Build prediction market apps on Polymarket.
Guides developers in building Polymarket integrations for trading, market data, and onchain asset operations.
When to use it
Use when answering questions about or building Polymarket authentication, trading, market data, streaming, token operations, bridging, or gasless transactions.
It changes how the agent builds Polymarket integrations by supplying client setup, core code patterns, and topic-specific reference material.
What you provide
The authenticated client examples read the wallet private key from the environment to create or derive API credentials; public orderbook reads need no authentication.
Authenticated trading requests send the API key in POLY_API_KEY alongside the passphrase and an HMAC signature.
The client creates or derives API credentials containing a secret, which participates in L2 HMAC authentication rather than replacing the wallet's L1 authentication.
Authenticated trading requests send the API passphrase in POLY_PASSPHRASE together with the API key and HMAC signature.
No additional actions listed.