gamma.*: markets, events, tags,
series, sports, search), the Data API (data.*: positions, trades,
activity, holders, leaderboards, open interest), CLOB prices and books
(clob.books.get, clob.prices.get, clob.pricesHistory.get …), Perps
market info (perps.instruments, perps.book …) and the Bridge.
- Trading on the CLOB (
clob.orders.*, balances, rewards, notifications,combos.*) needs a CLOB API key set: connect with the API key as the key and itssecret,passphraseand walletaddress. Make one withclob.apiKeys.createorclob.apiKeys.derive, which take your wallet’s EIP-712 ClobAuth signature aspoly_address,poly_signature,poly_timestampandpoly_nonce(the plugin never holds a private key). Each call is signed with the secret (HMAC-SHA256). - Orders are signed by your wallet.
clob.orders.createtakes the order your wallet signed (the TypeScript or Python SDK builds it); Perps orders, withdrawals and transfers carry their own signature too. - Perps account reads (
perps.account.*) take theperpsoption{ proxy, secret }fromperps.proxy.create; RFQ partner routes therfqoption{ keyId, secret }; the Relayer therelayeroption (a relayer API key, or builder credentials). - Risk. Placing orders, withdrawals, transfers, leverage and margin
changes, quotes, submitting transactions and minting API keys are
destructive, as is every cancel and delete. Lookups sent as POST (batch prices, books, midpoints) areread. - Token ids are long decimal strings (keep them as strings); condition ids and addresses are 0x hex.
- 276 typed API operations
Setup
1
Install
2
Add the plugin
corsair.ts
multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
Store the Polymarket API key before the first call: More: API Key
pnpm corsair setup --plugin=polymarket --tenant=acme api_key=<your-key> (leave out --tenant without multiTenancy), or pass it as key in the plugin options. With Hub, each tenant enters their own key on the connect page. See API key auth.4
Connect a tenant
Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.
Example API calls
bridge.quote
bridge.deposit
What’s next
API reference
Every
polymarket.api.* operation with input and output types.Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.