Expand description
Authentication and cryptographic utilities for Polymarket API
This module provides EIP-712 signing, HMAC authentication, and header generation for secure communication with the Polymarket CLOB API.
Structs§
Functions§
- build_
hmac_ signature - Build HMAC signature for L2 authentication
- create_
l1_ headers - Create L1 headers for authentication (using private key signature)
- create_
l2_ headers - Create L2 headers for API calls (using API key and HMAC)
- get_
current_ unix_ time_ secs - Get current Unix timestamp in seconds
- sign_
clob_ auth_ message - Sign CLOB authentication message using EIP-712
- sign_
order_ message - Sign order message using EIP-712