package polymarket
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
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/Order_signing/index.html
Module Polymarket_common.Order_signingSource
EIP-712 order signing for CTF Exchange.
This module provides the cryptographic primitives for signing orders compatible with Polymarket's CTF Exchange contract. Used by both CLOB and RFQ APIs.
Generate a random salt as a decimal string. Uses 63 bits of randomness.
EIP-712 type hash for CTF Exchange Order struct.
EIP-712 domain separator for CTF Exchange (Polygon mainnet).
Source
val sign_order :
private_key:Crypto.private_key ->
salt:string ->
maker:string ->
signer:string ->
taker:string ->
token_id:string ->
maker_amount:string ->
taker_amount:string ->
expiration:string ->
nonce:string ->
fee_rate_bps:string ->
side:int ->
signature_type:int ->
stringSign an order using EIP-712.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>