Skip to main content
POST
cURL

Authorizations

X-PM-Access-Key
string
header
required

Your API key ID (UUID). Generate at polymarket.us/developer.

X-PM-Timestamp
string
header
required

Unix timestamp in milliseconds. Must be within 30 seconds of server time.

X-PM-Signature
string
header
required

Base64-encoded Ed25519 signature of timestamp + method + path. See Authentication for details.

Headers

Idempotency-Key
string

Optionally include this key to request best-effort deduplication of retries for the same order. For example, if an order with that key was recently submitted, another submission with that key does not submit another order to the exchange. This is useful after a timeout or other ambiguous error, where it may not be clear if the order was submitted successfully or not.

Body

application/json

Limit order sized in shares.

marketSlug
string
required

Instrument's market slug.

side
enum<string>
required

BID buys and ASK sells YES-quoted instrument.

Available options:
BID,
ASK
price
object
required

YES book price in USD.

quantity
string<decimal>
required

Total quantity in shares as a decimal string.

time_in_force
enum<string>
default:TIME_IN_FORCE_GOOD_TILL_CANCEL

Order lifetime. To set a specific expiry, use TIME_IN_FORCE_GOOD_TILL_DATE with expiration_time_ms.

Available options:
TIME_IN_FORCE_GOOD_TILL_CANCEL,
TIME_IN_FORCE_GOOD_TILL_DATE,
TIME_IN_FORCE_IMMEDIATE_OR_CANCEL,
TIME_IN_FORCE_FILL_OR_KILL
post_only
boolean
default:false

Require maker-only execution. Returns HTTP 400 if the order would take liquidity or if the time in force is IOC or FOK.

expiration_time_ms

Expiration in whole Unix milliseconds. Required with TIME_IN_FORCE_GOOD_TILL_DATE and rejected with other lifetimes.

Example:

1798761600000

Response

The exchange accepted the order. executions lists its fills and other events so far. Exchange rejections return 400 instead.

Accepted order and its exchange events so far.

id
string

Exchange order ID. Use it to look up or modify the order.

executions
object[]

The order's exchange events before this response: its acknowledgement, any fills and its final state, such as an IOC's expiry. The request waits up to 5 seconds for the order to fill, expire or be canceled. An order still resting then returns with its events so far.

pending
boolean

true if the exchange has the order but its events could not be read before this response. executions is then empty. Get the order by id or watch the private order stream.