Skip to main content
Use Polymarket through Corsair: one client, typed API calls. Market data needs no key: Gamma (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 its secret, passphrase and wallet address. Make one with clob.apiKeys.create or clob.apiKeys.derive, which take your wallet’s EIP-712 ClobAuth signature as poly_address, poly_signature, poly_timestamp and poly_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.create takes 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 the perps option { proxy, secret } from perps.proxy.create; RFQ partner routes the rfq option { keyId, secret }; the Relayer the relayer option (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) are read.
  • Token ids are long decimal strings (keep them as strings); condition ids and addresses are 0x hex.
What you get:
  • 276 typed API operations

Setup

1

Install

2

Add the plugin

corsair.ts
With multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.
3

Choose authentication

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
See the full list on the API page.

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.