package polymarket
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
OCaml client library for the Polymarket prediction market API
Install
dune-project
Dependency
Authors
Maintainers
Sources
0.2.0.tar.gz
md5=4eb4c5d2f63ff081c9713d90be5a51b2
sha512=0e3de0c9b40683e09ab8f9f966a44784ef1b9b482c3eefef84104a7e8042c92f1d79893ee9588b24fa3d0decaed7f365509f4d1c23c66ce8328efb64e721f276
doc/polymarket.common/Polymarket_common/Auth/index.html
Module Polymarket_common.AuthSource
Authentication types and header builders for Polymarket APIs.
This module provides credentials types and functions for building authentication headers for L1 (wallet-based) and L2 (API key-based) authentication.
Types
API credentials for L2 authentication.
Response from API key endpoints (create or derive).
Conversion
Convert API key response to credentials.
L1 Authentication
L1 authentication uses EIP-712 signed messages to prove wallet ownership. It's used for creating and deriving API credentials.
Source
val build_l1_headers :
private_key:Crypto.private_key ->
address:string ->
nonce:int ->
(string * string) listBuild L1 authentication headers for wallet-based endpoints.
L2 Authentication
L2 authentication uses HMAC-SHA256 to sign requests using API credentials. It's used for authenticated trading and account management endpoints.
Source
val build_l2_headers :
credentials:credentials ->
address:string ->
method_:string ->
path:string ->
body:string ->
(string * string) listBuild L2 authentication headers for API key-authenticated endpoints.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page