Skip to main content
POST
/
v1
/
order
/
{orderId}
/
modify
Modify order
curl --request POST \
  --url https://api.polymarket.us/v1/order/{orderId}/modify \
  --header 'Content-Type: application/json' \
  --header 'X-PM-Access-Key: <api-key>' \
  --header 'X-PM-Signature: <api-key>' \
  --header 'X-PM-Timestamp: <api-key>' \
  --data '
{
  "marketSlug": "<string>",
  "price": {
    "value": "0.55",
    "currency": "USD"
  },
  "quantity": 123,
  "tif": "TIME_IN_FORCE_GOOD_TILL_CANCEL",
  "participateDontInitiate": true,
  "goodTillTime": "<string>"
}
'
{}

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

Request to modify an existing order

Request to modify an existing order

marketSlug
string

Unique market slug for the order being modified

price
object

New order price and currency

quantity
number<double>

New order quantity

tif
enum<string>

New order time in force

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
participateDontInitiate
boolean

Order must rest on the book prior to matching (maker only)

goodTillTime
string

Good till time for orders with TIME_IN_FORCE_GOOD_TILL_DATE

Response

Order modified successfully

Response for order modification (empty on success)