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.

Path Parameters

orderId
string
required

Exchange-assigned Order ID to modify

Body

application/json

Side cannot be changed.

marketSlug
string
required

Instrument's market slug.

price
object
required

Replacement YES book price in USD.

quantity
string<decimal>
required

New total shares as a decimal string, including shares already filled.

time_in_force
enum<string>
required

Replacement lifetime.

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

Require maker-only execution.

good_till_time_ms

Expiration in whole Unix milliseconds. Required with TIME_IN_FORCE_GOOD_TILL_DATE.

Example:

1798761600000

Response

Order modification acknowledged

Replacement request acknowledgement. Reconcile order to confirm final state.