# Polymarket Documentation: English API Reference Perps ## Perps - [Overview](https://docs.polymarket.com/api-reference/perps/overview.md): Explore the APIs available for building with Polymarket Perps. - [Rate Limits](https://docs.polymarket.com/api-reference/perps/rate-limits.md): IP rate limits, action rate limits, and WebSocket limits for Perps integrations - [Geographic Restrictions](https://docs.polymarket.com/api-reference/perps/geographic-restrictions.md): Jurisdictions where Polymarket Perps order placement is not permitted ### HTTP - [Test Connection](https://docs.polymarket.com/api-reference/test-connection.md): Test connection to the server. - [Get Server Time](https://docs.polymarket.com/api-reference/get-server-time.md): Get server time. - [Get Exchange Info](https://docs.polymarket.com/api-reference/get-exchange-info.md): Get exchange information. - [Get Collateral Assets](https://docs.polymarket.com/api-reference/get-collateral-assets.md): Get a list of collateral assets. - [Get Instruments](https://docs.polymarket.com/api-reference/get-instruments.md): Get enabled instruments. When instrument_id is supplied, a permanently settled instrument is also returned, including its final settlement record. Other disabled instruments remain excluded. The presence of settlement means the instrument is delisted and cannot trade. - [Get Tickers](https://docs.polymarket.com/api-reference/get-tickers.md): Get all instrument tickers with live market data. - [Get Statistics](https://docs.polymarket.com/api-reference/get-statistics.md): Get last 24-hour statistics for all instruments. - [Get Exchange Statistics](https://docs.polymarket.com/api-reference/get-exchange-statistics.md): Get aggregate statistics for all pUSD-quoted Polymarket perpetual markets. The time window is half-open: trades at `start_timestamp` are included and trades at `end_timestamp` are excluded. The maximum window is 31 days. Open interest is the one-sided USD notional from the latest complete sample bef… - [Get Leaderboard](https://docs.polymarket.com/api-reference/get-leaderboard.md): Get the global perpetuals leaderboard, ranked by PnL, notional volume, current account value, or ROI across all instruments. - [Get Trading Competitions](https://docs.polymarket.com/api-reference/get-trading-competitions.md): List trading competitions for the carousel, newest first, with the live competition's ID (for "Back to live") and the one the Competitions tab should open on: the live competition, else the next upcoming one, else the most recently ended one. - [Get Trading Competition](https://docs.polymarket.com/api-reference/get-trading-competition.md): Settings, status and prize table of one competition: its markets and boosts (also for upcoming competitions), the qualification minimum, the market the "Start Trading" button opens (the boosted market with the most 24-hour volume, else the top market overall), and when the leaderboard was last updat… - [Get Trading Competition Leaderboard](https://docs.polymarket.com/api-reference/get-trading-competition-leaderboard.md): Ranked leaderboard rows at any depth. Only accounts that reached the minimum volume are ranked; ties go to higher boosted volume, then the earlier first qualifying fill. `prize` is the projected prize while live and the prize won once the competition ends. `updated_at` is the event time the standing… - [Get Trading Competition Account](https://docs.polymarket.com/api-reference/get-trading-competition-account.md): One account's standing: rank and score once qualified, otherwise its volume so far and how much more it needs to rank; projected or won prize; places and score from the prize zone; every position it held when the competition started, by market, and whether it has since been closed. An address with n… - [Get Trading Competition Widget](https://docs.polymarket.com/api-reference/get-trading-competition-widget.md): The live competition at a glance for the trading page: when it ends, and, with `address`, that account's rank and progress toward the qualification minimum. Designed to be polled; it reads only the published standings. Without a live competition only `timestamp` is set. - [Get Klines](https://docs.polymarket.com/api-reference/get-klines.md): Get klines for an instrument. If no end time is provided, the current time will be used. Maximum of 1000 entries returned per request. - [Get Mark Price History](https://docs.polymarket.com/api-reference/get-mark-price-history.md): Get mark price history for an instrument, bucketed by interval. If no end time is provided, the current time will be used. Maximum of 1000 entries returned per request. Only buckets with at least one mark update are included. For intervals of a minute or coarser, a bucket cut mid-way by `end_timesta… - [Get BBO](https://docs.polymarket.com/api-reference/get-bbo.md): Get best bid and offer for all instruments. - [Get Book](https://docs.polymarket.com/api-reference/get-book.md): Get book for an instrument. - [Get Index](https://docs.polymarket.com/api-reference/get-index.md): Get index price and the list of constituents for an asset. - [Get Recent Trades](https://docs.polymarket.com/api-reference/get-recent-trades.md): Get public trades for an instrument. Maximum of 100 entries returned per request. - [Get Public Portfolio](https://docs.polymarket.com/api-reference/get-public-portfolio.md): Get public portfolio for an address including equity and open positions. - [Get Public Fills](https://docs.polymarket.com/api-reference/get-public-fills.md): Get fill history for a registered account address. Rows include order IDs, exchange and builder fees, and position accounting. Builder identity and rate are omitted on this public surface. The default window starts 30 days before request time. When instrument_id is provided, returns only fills for t… - [Get Current Position Fills](https://docs.polymarket.com/api-reference/get-current-position-fills.md): Get every fill in a registered account's current open position cycle for one instrument. A cycle begins when the position opens from flat or flips direction. For a flip, every fill from the flipping engine event belongs to the new cycle so a fill is never split between cycles. - [Get Position Share Card Snapshots](https://docs.polymarket.com/api-reference/get-position-share-card-snapshots.md): Build share-card numbers, candles and trade markers for a registered account. Supply up to 20 active instruments and 4 historical fills, with at least one selection. History keys use instrument_id, trade_id and the public fill timestamp in milliseconds. Trade IDs are UInt64 decimal strings; returned… - [Get Historical Funding](https://docs.polymarket.com/api-reference/get-historical-funding.md): Get public funding rate history for an instrument. Maximum of 100 entries returned per request. - [Get Fees](https://docs.polymarket.com/api-reference/get-fees.md): Get the fee tier schedule for each instrument type and category. - [Get builder profile and eligibility](https://docs.polymarket.com/api-reference/get-builder-profile-and-eligibility.md): Public builder profile for an address. Returns the saved display name and current registration, enablement, platform admission and fee-cap fields. The name is null for unregistered addresses or builders without a saved name. - [Approve or revoke builder fees with an account owner signature](https://docs.polymarket.com/api-reference/approve-or-revoke-builder-fees-with-an-account-owner-signature.md) - [Read builder approvals, including retained revoked versions](https://docs.polymarket.com/api-reference/read-builder-approvals-including-retained-revoked-versions.md) - [Get authenticated builder receipts](https://docs.polymarket.com/api-reference/get-authenticated-builder-receipts.md): Returns this account's builder credits only. The time window is inclusive, defaults to the last seven days, and is bounded to 90 days. Supply the same start_timestamp, end_timestamp and as_of_sequence to compare list and summary. Older receipts remain queryable by selecting a past window. Zero-fee e… - [Get authenticated builder settled earnings summary](https://docs.polymarket.com/api-reference/get-authenticated-builder-settled-earnings-summary.md): Returns this account's builder credits only. The time window is inclusive, defaults to the last seven days, and is bounded to 90 days. Supply the same start_timestamp, end_timestamp and as_of_sequence to compare list and summary. Older receipts remain queryable by selecting a past window. Zero-fee e… - [Get Limit Tiers](https://docs.polymarket.com/api-reference/get-limit-tiers.md): Get the list of account limit tiers. Action and open-order fields are enforced per account; legacy request-rate fields are not used for gateway request enforcement. - [Check Invite Code](https://docs.polymarket.com/api-reference/check-invite-code.md): Check whether an invite code can be used. When `address` is provided, the response is invalid if that address already has an account. - [Get Registration](https://docs.polymarket.com/api-reference/get-registration.md): Check whether an address has a Perps account. Registration is permanent, so a `true` answer never changes; a `false` answer flips as soon as the address registers. - [Create Orders](https://docs.polymarket.com/api-reference/create-orders.md): Create new orders. Requires proxy signature, see [proxy signing](/http/signing#2-proxy-signing). - [Modify Orders](https://docs.polymarket.com/api-reference/modify-orders.md): Modify the price and total quantity of existing orders by exchange order ID. Requires proxy signature, see [proxy signing](/http/signing#2-proxy-signing). - [Modify Orders COID](https://docs.polymarket.com/api-reference/modify-orders-coid.md): Modify the price and total quantity of existing orders by client order ID. Requires proxy signature, see [proxy signing](/http/signing#2-proxy-signing). - [Cancel Orders](https://docs.polymarket.com/api-reference/cancel-orders.md): Cancel orders. Requires proxy signature, see [proxy signing](/http/signing#2-proxy-signing). - [Cancel Orders COID](https://docs.polymarket.com/api-reference/cancel-orders-coid.md): Cancel orders by client order ID. Requires proxy signature, see [proxy signing](/http/signing#2-proxy-signing). - [Cancel All Orders](https://docs.polymarket.com/api-reference/cancel-all-orders.md): Cancel all open orders for the authenticated account on one instrument. Requires proxy signature, see [proxy signing](/http/signing#2-proxy-signing). - [Set Auto-Cancel](https://docs.polymarket.com/api-reference/set-auto-cancel.md): Set a dead man's switch that cancels all your open orders at the chosen time. The time must be at least 5 seconds in the future. Send 0 to clear an active schedule without triggering it; posting a new time replaces the current one. - [Update Leverage](https://docs.polymarket.com/api-reference/update-leverage.md): Update leverage for an instrument. - [Update Leverage for Multiple Instruments](https://docs.polymarket.com/api-reference/update-leverage-for-multiple-instruments.md): Update leverage for up to 100 unique instruments. Updates are processed sequentially and are not atomic. If only some responses arrive before the gateway deadline, missing item results use `internal_error`; whether those updates applied is unknown. If no responses arrive, the request returns 503 — r… - [Update Isolated Margin](https://docs.polymarket.com/api-reference/update-isolated-margin.md): Adjust the signed collateral allocation for an existing isolated position. Use a positive amount to add margin and a negative amount to remove it. A removal may include unrealized isolated profit, but the resulting isolated position equity (allocation + unrealized PnL - settled funding) must remain… - [Update your builder display name](https://docs.polymarket.com/api-reference/update-your-builder-display-name.md): Sign with the owner wallet of an existing registered Perps builder using the standard signed-operation format: op.type is updateBuilder and op.args contains only name. No Admin credentials or trading proxy are needed. The signer determines the account; no address or version parameter is accepted. Na… - [Create Proxy](https://docs.polymarket.com/api-reference/create-proxy.md): Create a new proxy to sign orders. Returns an API secret for private account access. Requires EOA signature, see [EOA signing](/http/signing#1-eoa-signing). - [Delete Proxy](https://docs.polymarket.com/api-reference/delete-proxy.md): Delete a proxy by address. Requires EOA signature, see [EOA signing](/http/signing#1-eoa-signing). - [Get Credentials](https://docs.polymarket.com/api-reference/get-credentials.md): Get the account ID, address, and proxy keys for the authenticated account. - [Get Orders](https://docs.polymarket.com/api-reference/get-orders.md): Get historical order snapshots for the authenticated account from the order history database. Returns the latest known state for each matching order, including accepted, open, partial, filled, and cancelled orders. For currently resting orders only, use Get Open Orders. Maximum of 100 entries return… - [Get Open Orders](https://docs.polymarket.com/api-reference/get-open-orders.md): Get open orders for the authenticated account. - [Get Balances](https://docs.polymarket.com/api-reference/get-balances.md): Get asset balances for the authenticated account. - [Get Portfolio](https://docs.polymarket.com/api-reference/get-portfolio.md): Get current portfolio snapshot including open positions, margin summary, and withdrawable balance. - [Get Fills](https://docs.polymarket.com/api-reference/get-fills.md): Get fill history for the authenticated account. If no end time is provided, the current time will be used. Maximum of 100 entries returned per request. Results are ordered by time; use `sort` to choose newest-first (`desc`, default) or oldest-first (`asc`). To page through more than 100 fills, pass… - [Get Equity](https://docs.polymarket.com/api-reference/get-equity.md): Get equity history for the authenticated account. If no end time is provided, the current time will be used. Each point is the last equity sample in its `interval` bucket, stamped with that sample's own timestamp rather than the bucket's start — so every timestamp falls within the requested window.… - [Get PnL](https://docs.polymarket.com/api-reference/get-pnl.md): Get PnL history for the authenticated account. If no end time is provided, the current time will be used. Each point is the PnL realized inside its `interval` bucket — not a running total. Buckets are aligned to the Unix epoch, and one in which nothing was realized is omitted, so the series is spars… - [Get Account Backstop Transfers](https://docs.polymarket.com/api-reference/get-account-backstop-transfers.md): Get exact quote cash transfers for backstops of the authenticated account. Defaults to the last 90 days. Rows are ordered newest first. If no end time is provided, the current time will be used. Maximum of 100 entries returned per request. - [Get Funding Charges](https://docs.polymarket.com/api-reference/get-funding-charges.md): Get funding payment history for the authenticated account. If no end time is provided, the current time will be used. Maximum of 100 entries returned per request. - [Withdraw](https://docs.polymarket.com/api-reference/withdraw.md): Submit a signed withdrawal request. Requires EOA signature, see [EOA signing](/http/signing#1-eoa-signing). - [Internal Transfer](https://docs.polymarket.com/api-reference/internal-transfer.md): Submit a signed internal ledger transfer between two exchange accounts. Sign with the source account owner or a non-expired trading key registered to the source account. Trading-key signatures require both accounts to belong to the same nonzero, exchange-managed account group. Owner signatures remai… - [Get Deposits](https://docs.polymarket.com/api-reference/get-deposits.md): Get deposit history for the authenticated account. If no end time is provided, the current time will be used. Maximum of 100 entries returned per request. - [Get Internal Transfers](https://docs.polymarket.com/api-reference/get-internal-transfers.md): Get settled internal transfer history for the authenticated account. Returns both inbound and outbound transfers unless `direction` narrows the page to one side; a value other than `in` or `out` is refused. - [Get Withdrawals](https://docs.polymarket.com/api-reference/get-withdrawals.md): Get withdrawal history for the authenticated account. If no end time is provided, the current time will be used. Maximum of 100 entries returned per request. - [Get Account Stats](https://docs.polymarket.com/api-reference/get-account-stats.md): Get the authenticated account's 7-day trading stats (taker volume, maker volume, account maker share, and entity maker share when applicable). Stats are cached by UTC day and may be stale by up to 24 hours. - [Get Account Limits](https://docs.polymarket.com/api-reference/get-account-limits.md): Get the authenticated account's effective rate-limit allowances for its current volume-based tier: order-action rate, open-order cap, and the display-only messages-per-minute figure. `open_orders` reflects the account's current live open-order count; the rate-usage counters (`actions_per_minute`, `a… - [Get Account Rewards](https://docs.polymarket.com/api-reference/get-account-rewards.md): Get per-instrument daily liquidity reward shares for the authenticated account. Reward periods run from 12:00 UTC to 12:00 UTC and are labeled by their UTC end date. The first reward period starts at 2026-07-06 12:00 UTC. If no date range is provided, the latest computed reward period is returned. - [Get Instrument Config](https://docs.polymarket.com/api-reference/get-instrument-config.md): Get resolved per-instrument configuration (leverage and margin mode) for the authenticated account. Each setting resolves independently: explicit per-instrument setting, then exchange-managed account-group default, then instrument maximum leverage and isolated margin. Group leverage is capped at the… - [Get Auto-Cancel Status](https://docs.polymarket.com/api-reference/get-auto-cancel-status.md): Get the current auto-cancel status for the authenticated account: the armed deadline, how many times the switch has fired today, and when the daily counter resets. - [Create Account Invite](https://docs.polymarket.com/api-reference/create-account-invite.md): Create or return the authenticated account's primary invite code. The call is idempotent for accounts that already have a primary invite code. - [Get Account Referral](https://docs.polymarket.com/api-reference/get-account-referral.md): Get the authenticated account's invite code, parent referral code, direct referral count, and fee share rate. - [Apply Referral Code](https://docs.polymarket.com/api-reference/apply-referral-code.md): Apply a referral code to the authenticated account after signup. Accounts can only apply a referral code if they do not already have one. - [Get Notifications](https://docs.polymarket.com/api-reference/get-notifications.md): Get the authenticated account's notifications, newest first. - [Mark Notifications Read](https://docs.polymarket.com/api-reference/mark-notifications-read.md): Mark notifications as read. Send a list of notification ids, or a before cursor to mark everything up to and including that point. You can only mark your own notifications. ### WebSocket - [Ping](https://docs.polymarket.com/api-reference/wss/perps-ping.md): Perps WebSocket heartbeat. - [Place Orders](https://docs.polymarket.com/api-reference/wss/perps-place-orders.md): Perps WebSocket order placement. - [Modify Orders](https://docs.polymarket.com/api-reference/wss/perps-modify-orders.md): Perps WebSocket order modification by order ID. - [Modify Orders by Client Order ID](https://docs.polymarket.com/api-reference/wss/perps-modify-orders-coid.md): Perps WebSocket order modification by client order ID. - [Cancel Orders](https://docs.polymarket.com/api-reference/wss/perps-cancel-orders.md): Perps WebSocket order cancellation by order ID. - [Cancel Orders by Client Order ID](https://docs.polymarket.com/api-reference/wss/perps-cancel-orders-coid.md): Perps WebSocket order cancellation by client order ID. - [Cancel All Orders](https://docs.polymarket.com/api-reference/wss/perps-cancel-all.md): Perps WebSocket cancellation of all open orders. - [Auto Cancel](https://docs.polymarket.com/api-reference/wss/perps-auto-cancel.md): Perps WebSocket dead man's switch updates. - [Update Leverage](https://docs.polymarket.com/api-reference/wss/perps-update-leverage.md): Perps WebSocket leverage updates. - [Update Leverages](https://docs.polymarket.com/api-reference/wss/perps-update-leverages.md): Perps WebSocket batch leverage updates. - [Update Isolated Margin](https://docs.polymarket.com/api-reference/wss/perps-update-margin.md): Add or remove margin from an isolated Perps position over WebSocket. - [Auth](https://docs.polymarket.com/api-reference/wss/perps-auth.md): Perps WebSocket authentication. - [Trades](https://docs.polymarket.com/api-reference/wss/perps-trades.md): Perps WebSocket public trade updates. - [BBO](https://docs.polymarket.com/api-reference/wss/perps-bbo.md): Perps WebSocket best bid and offer updates. - [Book](https://docs.polymarket.com/api-reference/wss/perps-book.md): Perps WebSocket order book updates. - [Klines](https://docs.polymarket.com/api-reference/wss/perps-klines.md): Perps WebSocket candle updates. - [Tickers](https://docs.polymarket.com/api-reference/wss/perps-tickers.md): Perps WebSocket ticker updates. - [Statistics](https://docs.polymarket.com/api-reference/wss/perps-statistics.md): Perps WebSocket 24-hour statistics updates. - [Fills](https://docs.polymarket.com/api-reference/wss/perps-fills.md): Perps WebSocket private fill updates. - [Builder Fills](https://docs.polymarket.com/api-reference/wss/perps-builder-fills.md): Live attributed fills for an authenticated Perps builder. - [Orders](https://docs.polymarket.com/api-reference/wss/perps-orders.md): Perps WebSocket private order updates. - [Funding](https://docs.polymarket.com/api-reference/wss/perps-funding.md): Perps WebSocket private funding updates. - [Balances](https://docs.polymarket.com/api-reference/wss/perps-balances.md): Perps WebSocket private balance updates. - [Portfolio](https://docs.polymarket.com/api-reference/wss/perps-portfolio.md): Perps WebSocket private portfolio updates. - [Deposits](https://docs.polymarket.com/api-reference/wss/perps-deposits.md): Perps WebSocket private deposit updates. - [Withdrawals](https://docs.polymarket.com/api-reference/wss/perps-withdrawals.md): Perps WebSocket private withdrawal updates. - [TP/SL](https://docs.polymarket.com/api-reference/wss/perps-tpsl.md): Perps WebSocket private TP/SL lifecycle updates. - [Notifications](https://docs.polymarket.com/api-reference/wss/perps-notifications.md): Perps WebSocket private notification updates. ## OpenAPI Specs - [perps-openapi](/api-spec/perps-openapi.json) ## AsyncAPI Specs - [asyncapi-perps](/asyncapi-perps.json)