Skip to main content
POST
/
v1
/
trading
/
orders
/
replace
Cancel replace order
curl --request POST \
  --url https://api.polymarketexchange.com/v1/trading/orders/replace \
  --header 'Content-Type: application/json' \
  --data '
{
  "orderId": "<string>",
  "clordId": "<string>",
  "symbol": "<string>",
  "price": "<string>",
  "orderQty": "<string>",
  "timeInForce": "TIME_IN_FORCE_DAY",
  "stopPrice": "<string>",
  "minQty": "<string>",
  "allOrNone": true,
  "participateDontInitiate": true,
  "strictLimit": true,
  "goodTillTime": "2023-11-07T05:31:56Z",
  "bestLimit": true,
  "immediatelyExecutableLimit": true,
  "manualOrderIndicator": "MANUAL_ORDER_INDICATOR_MANUAL"
}
'
{}

Body

application/json
orderId
string
clordId
string
symbol
string
price
string<int64>
orderQty
string<int64>
timeInForce
enum<string>

TimeInForce specifies how long the order remains in effect.

Available options:
TIME_IN_FORCE_DAY,
TIME_IN_FORCE_GOOD_TILL_CANCEL,
TIME_IN_FORCE_IMMEDIATE_OR_CANCEL,
TIME_IN_FORCE_GOOD_TILL_TIME,
TIME_IN_FORCE_FILL_OR_KILL
stopPrice
string<int64>
minQty
string<int64>
allOrNone
boolean
participateDontInitiate
boolean
strictLimit
boolean
goodTillTime
string<date-time>
bestLimit
boolean
immediatelyExecutableLimit
boolean
manualOrderIndicator
enum<string>

ManualOrderIndicator designates the manual or automated nature of an order.

Available options:
MANUAL_ORDER_INDICATOR_MANUAL,
MANUAL_ORDER_INDICATOR_AUTOMATED

Response

200 - application/json

A successful response.

The response is of type object.