Access the Polymarket US trading API with managed authentication. Read markets, events, order books, prices, and your portfolio, and preview, place, modify, or cancel orders. Polymarket US only: accounts and keys from the international polymarket.com do not work.
Permissions
Suggested read access
In the Console, Read limits the connection to these 43 read-only endpoints, plus deny rules for any write endpoint a broader rule would otherwise match. Endpoints Maton has found to return credentials, start jobs, or spend credits are left out; a few reads that can change state or return a secret depending on their parameters stay in, and their descriptions say how. It is a suggestion: the saved rules are exactly the ones you see, and you can change them with Custom. See Access policy.
Reference
This is Polymarket US (polymarket.us), the CFTC-regulated US exchange. Keys from the international site (polymarket.com) do not work and return 401 "API key not found"; its CLOB, Gamma, and Data API paths are not served here.
Account API
Get Balances
maton api '/polymarket/v1/account/balances'Response:
{
"balances": [
{
"currentBalance": 100.0,
"currency": "USD",
"buyingPower": 100.0,
"assetNotional": 0,
"openOrders": 0,
"unsettledFunds": 0,
"pendingWithdrawals": [],
"lastUpdated": "..."
}
]
}An account that has never been funded returns {"balances": []}.
Portfolio API
Get Positions
maton api '/polymarket/v1/portfolio/positions'Query parameters:
market(string, optional): One market sluglimit(integer, optional): Results per pagecursor(string, optional):nextCursorfrom the previous page
Response:
{
"positions": {
"{market-slug}": {
"netPosition": "10",
"netPositionDecimal": "10",
"qtyAvailable": "10",
"cost": {"value": "5.50", "currency": "USD"},
"cashValue": {"value": "6.10", "currency": "USD"},
"realized": {"value": "0", "currency": "USD"},
"marketMetadata": {...}
}
},
"availablePositions": [],
"nextCursor": "",
"eof": true
}positions is an object keyed by market slug. A NO holding has a negative netPositionDecimal.
List Activities
maton api '/polymarket/v1/portfolio/activities?limit=10&types=ACTIVITY_TYPE_TRADE'Query parameters:
types(string, optional, repeatable):ACTIVITY_TYPE_TRADE(fills),ACTIVITY_TYPE_POSITION_RESOLUTION(settlements),ACTIVITY_TYPE_ACCOUNT_DEPOSIT,ACTIVITY_TYPE_ACCOUNT_WITHDRAWAL, and others listed in the docsmarketSlug(string, optional): One marketsortOrder(string, optional): Sort directionlimit,cursor(optional): Pagination
Returns {"activities": [...], "nextCursor": "...", "eof": true}. Trade activities are the fills record.
Get Incentive Earnings
maton api '/polymarket/v1/incentives/earnings'Returns {"rewards": [...]}.
Orders API (reads)
List Open Orders
maton api '/polymarket/v1/orders/open'Filter with slugs (repeatable market slug). The YES-book form, with BID/ASK sides and YES prices, is:
maton api '/polymarket/v2/orders/open'v2 also accepts eventIds. Both return {"orders": [...]}.
Get Order
maton api '/polymarket/v1/order/{orderId}'Or in the YES-book form
maton api '/polymarket/v2/order/{orderId}'Markets API
List Markets
maton api '/polymarket/v1/markets?limit=5&active=true&closed=false'Query parameters:
limit,offset(integer, optional): Paginationactive,closed,archived(boolean, optional): Status filtersslug,id(optional): Specific marketscategories,marketTypes,tagIds(optional): FiltersorderBy,orderDirection(optional): SortingstartDateMin,endDateMax,volumeNumMin, ... (optional): Range filters
Response:
{
"markets": [
{
"id": "7974",
"slug": "tec-mls-winner-2026-11-07-vwh",
"question": "Major League Soccer Champion",
"active": true,
"closed": false,
"marketType": "futures",
"outcomes": "...",
"outcomePrices": "...",
"marketSides": [...],
"minimumTradeQty": 1,
"orderPriceMinTickSize": 0.001,
"bestBidQuote": {...},
"bestAskQuote": {...}
}
]
}Read minimumTradeQty and orderPriceMinTickSize before building an order: a price off the market's tick is rejected.
Get Market
maton api '/polymarket/v1/market/slug/{slug}'Or by numeric ID
maton api '/polymarket/v1/market/id/{id}'Both return {"market": {...}}.
Get Order Book
maton api '/polymarket/v1/markets/{slug}/book'Response:
{
"marketData": {
"marketSlug": "tec-mls-winner-2026-11-07-vwh",
"bids": [{"px": {"value": "0.2590", "currency": "USD"}, "qty": "7.0000"}],
"offers": [{"px": {"value": "0.2600", "currency": "USD"}, "qty": "287.0000"}],
"state": "MARKET_STATE_OPEN",
"stats": {...},
"transactTime": "..."
}
}Bids and offers are YES prices, best first. Resting NO buys appear as YES offers at 1 − price.
Get Best Bid and Offer
maton api '/polymarket/v1/markets/{slug}/bbo'Returns marketData with bestBid, bestAsk, lastTradePx, currentPx, depth, and open interest.
Get Settlement
maton api '/polymarket/v1/markets/{slug}/settlement'Returns {"slug": "...", "settlement": 1} for a resolved market; an unresolved market returns 404.
Get Price History
maton api '/polymarket/v1/price-history?symbol={slug}&fixedInterval=INTERVAL_1D&fidelity=5'symbol is the market slug. fixedInterval needs its matching fidelity: INTERVAL_1H or INTERVAL_6H with 1, INTERVAL_1D with 5, INTERVAL_1W, INTERVAL_1M, or INTERVAL_ALL with 180. A custom range uses timestamp.startTimestamp and timestamp.endTimestamp (Unix seconds, up to 24 hours) with fidelity=1. Returns {"history": [...]}.
Events API
List Events
maton api '/polymarket/v1/events?limit=5&active=true&closed=false'Accepts the same limit, offset, active, closed, orderBy, and orderDirection parameters as markets, plus seriesId, tagSlug, categories, live, ended, startTimeMin, and startTimeMax. Returns {"events": [...]}; each event carries its markets.
Get Event
maton api '/polymarket/v1/events/{id}'Or by slug
maton api '/polymarket/v1/events/slug/{slug}'Both return {"event": {...}}.
Series API
List Series
maton api '/polymarket/v1/series?limit=5'Get Series
maton api '/polymarket/v1/series/id/{id}'Search API
Search Events and Markets
maton api '/polymarket/v1/search?query=bitcoin&limit=5&status=open'Query parameters:
query(string): Search textlimit(integer, optional): Results per pagepage(integer, optional): Page numberstatus,marketType,seriesIds,startTimeMin,startTimeMax(optional): Filters
Returns {"events": [...]} with each event's markets.
Sports API
maton api '/polymarket/v2/sports'maton api '/polymarket/v2/leagues'Sports, leagues, teams (/v1/sports/teams), and players (/v1/sports/players) are reference data for sports markets.
Combos API
A combo is a user-defined instrument made of 2–50 legs, each an existing market symbol that the combo buys or sells. Once open, a combo trades through the normal Orders API.
Get Combo
maton api '/polymarket/v1/combos?symbol={comboSymbol}'Takes the exact combo symbol and returns {"combos": [...]}; an unknown symbol returns an empty array. This endpoint doesn't list or paginate combos.
Create Combo
maton api -X POST '/polymarket/v1/combos' -H 'Content-Type: application/json' --input - <<'JSON'
{
"legs": [
{"symbol": "{marketSlugA}", "side": "SIDE_BUY"},
{"symbol": "{marketSlugB}", "side": "SIDE_SELL"}
]
}
JSONCreates the combo for these legs, or returns the existing one: a given set of legs always maps to the same combo symbol. Returns {"combo": {"id": "...", "legs": [...], "state": "INSTRUMENT_STATE_OPEN", "createdTime": "...", "tickSize": 0.001}}; treat the id (caoc-... or crossd-...) as opaque. Leg symbols must be open, tradable markets, without duplicates. Creating a combo places no order, but each new combo counts against a weekly creation quota per account (the docs give 1,000 and 3,000 in different places; it resets Monday 00:00 UTC). Returning an existing combo doesn't count. Combo and RFQ creation also share a limit of 10 requests per 10 seconds per API key and per IP.
Orders API (writes)
Prices are always the YES price (price.value between 0.01 and 0.99), whichever side is traded. In a team market the first team in the slug is YES. To trade NO at price q, use 1 − q.
Preview Order
maton api -X POST '/polymarket/v1/order/preview' -H 'Content-Type: application/json' --input - <<'JSON'
{
"request": {
"marketSlug": "{slug}",
"type": "ORDER_TYPE_LIMIT",
"price": {"value": "0.45", "currency": "USD"},
"quantity": 10,
"tif": "TIME_IN_FORCE_GOOD_TILL_CANCEL",
"intent": "ORDER_INTENT_BUY_LONG",
"manualOrderIndicator": "MANUAL_ORDER_INDICATOR_AUTOMATIC"
}
}
JSONValidates the order and returns {"order": {...}} with calculated values, without placing it.
Create Order
maton api -X POST '/polymarket/v1/orders' -H 'Content-Type: application/json' -H 'Idempotency-Key: {new-uuid}' --input - <<'JSON'
{
"marketSlug": "{slug}",
"type": "ORDER_TYPE_LIMIT",
"price": {"value": "0.45", "currency": "USD"},
"quantity": 10,
"tif": "TIME_IN_FORCE_GOOD_TILL_CANCEL",
"intent": "ORDER_INTENT_BUY_LONG",
"manualOrderIndicator": "MANUAL_ORDER_INDICATOR_AUTOMATIC"
}
JSONBody fields:
marketSlug(string, required): Market slugtype(string):ORDER_TYPE_LIMITorORDER_TYPE_MARKETprice(object):{"value": "0.45", "currency": "USD"}, the YES pricequantity(number): Contracts, aligned to the market'sminimumTradeQtytif(string):TIME_IN_FORCE_GOOD_TILL_CANCEL,TIME_IN_FORCE_GOOD_TILL_DATE(withgoodTillTime),TIME_IN_FORCE_IMMEDIATE_OR_CANCEL,TIME_IN_FORCE_FILL_OR_KILL, orTIME_IN_FORCE_DAYintent(string):ORDER_INTENT_BUY_LONG(buy YES),ORDER_INTENT_SELL_LONG(sell YES),ORDER_INTENT_BUY_SHORT(buy NO),ORDER_INTENT_SELL_SHORT(sell NO).outcomeSide+actionis the equivalent alternative.manualOrderIndicator(string):MANUAL_ORDER_INDICATOR_MANUALorMANUAL_ORDER_INDICATOR_AUTOMATIC; required for regulatory reportingslippageTolerance(object, optional):{"currentPrice": {...}, "ticks": 5}orbips; a market order has no slippage limit without itparticipateDontInitiate(boolean, optional): Post-onlysynchronousExecution/maxBlockTime(optional): Wait up to 5 seconds for the final state
Idempotency-Key (up to 255 bytes) makes the API return the recorded response for 24 hours when the same request is retried with the same key.
Create Order (YES book, v2)
maton api -X POST '/polymarket/v2/orders' -H 'Content-Type: application/json' -H 'Idempotency-Key: {new-uuid}' --input - <<'JSON'
{
"marketSlug": "{slug}",
"side": "BID",
"price": {"value": "0.17", "currency": "USD"},
"quantity": "10",
"time_in_force": "TIME_IN_FORCE_GOOD_TILL_CANCEL"
}
JSONLimit orders only. BID buys YES up to the price, ASK sells YES down to it; buying NO at q is an ASK at 1 − q. An ASK first reduces a long YES position and then opens a short one. post_only and expiration_time_ms are optional. An exchange rejection during the wait (including insufficient funds) returns 400.
Modify Order
maton api -X POST '/polymarket/v1/order/{orderId}/modify' -H 'Content-Type: application/json' --input - <<'JSON'
{
"marketSlug": "{slug}",
"price": {"value": "0.46", "currency": "USD"},
"quantity": 10,
"tif": "TIME_IN_FORCE_GOOD_TILL_CANCEL"
}
JSONA modify is a cancel-replace. The v2 form is POST /v2/order/{orderId}/modify with a string quantity and time_in_force.
Cancel Order
maton api -X POST '/polymarket/v1/order/{orderId}/cancel' -H 'Content-Type: application/json' --input - <<'JSON'
{
"marketSlug": "{slug}"
}
JSONCancel All Open Orders
maton api -X POST '/polymarket/v1/orders/open/cancel' -H 'Content-Type: application/json' --input - <<'JSON'
{
"slugs": ["{slug}"]
}
JSONAn empty or missing slugs cancels every open order on the account.
Close Position
maton api -X POST '/polymarket/v1/order/close-position' -H 'Content-Type: application/json' --input - <<'JSON'
{
"marketSlug": "{slug}",
"manualOrderIndicator": "MANUAL_ORDER_INDICATOR_AUTOMATIC",
"slippageTolerance": {"currentPrice": {"value": "0.50", "currency": "USD"}, "ticks": 5}
}
JSONSells the entire position in the market at market price. Set slippageTolerance so a thin book cannot fill it far from the current price.
Batch Create Orders
maton api -X POST '/polymarket/v1/orders/batched' -H 'Content-Type: application/json' --input - <<'JSON'
{
"orders": [
{
"marketSlug": "{slug}",
"type": "ORDER_TYPE_LIMIT",
"price": {"value": "0.45", "currency": "USD"},
"quantity": 10,
"tif": "TIME_IN_FORCE_GOOD_TILL_CANCEL",
"intent": "ORDER_INTENT_BUY_LONG",
"manualOrderIndicator": "MANUAL_ORDER_INDICATOR_AUTOMATIC"
}
]
}
JSON1 to 20 orders. If any entry fails shape validation the whole batch is rejected with 400; otherwise createdOrderIds come back in request order, and each order's accept, fill, or reject is only visible in the order state afterwards.
Batch Cancel and Modify
maton api -X POST '/polymarket/v1/orders/batched/cancel' -H 'Content-Type: application/json' --input - <<'JSON'
{
"orders": [
{"orderId": "{orderId}", "marketSlug": "{slug}"}
]
}
JSONPOST /v1/orders/batched/modify takes the same orders list with orderId, marketSlug, and the new price/quantity/tif. Both accept up to 20 entries, silently ignore unknown order IDs, and return canceledOrderIds / modifiedOrderIds as an echo of the request, not a confirmation. Read the open orders afterwards.
Pagination
- Markets, events, and series use
limitandoffset. - Portfolio positions and activities use
cursor: passnextCursoruntileofistrue. - Search uses
page.
maton api '/polymarket/v1/portfolio/activities?limit=50&cursor={nextCursor}'Notes
- Polymarket US only. Keys come from polymarket.us/developer; polymarket.com (international) keys return
401"API key not found". - Markets are identified by slug (for example
tec-mls-winner-2026-11-07-vwh) and also carry a numericid. price.valueis always the YES price. Validate it againstorderPriceMinTickSizeand keep it between 0.01 and 0.99: an out-of-range price still gets an order ID but never fills.- Order states:
ORDER_STATE_NEW(resting),PARTIALLY_FILLED,FILLED,CANCELED,REPLACED,REJECTED,EXPIRED, plusPENDING_*while the exchange processes a request. TIME_IN_FORCE_DAYorders currently do not auto-cancel at the trading-day roll; useTIME_IN_FORCE_GOOD_TILL_DATEwithgoodTillTime.- An order rejected with
Order Processing Max Delay Exceeded(formerlyGlobal Rate Limit Exceeded) hit the exchange's 5-second latency stopgap, not a rate limit; the order was not placed.