Skip to main content
The Pacifica Python SDK provides a comprehensive example on using this endpoint.

Request

{
  "id": "1bb2b72f-f545-4938-8a38-c5cda8823675",
  "params": {
    "cancel_order": {
      "account": "AwX6321...",
      "signature": "4RqbgB...",
      "timestamp": 1749223343149,
      "expiry_window": 5000,
      "symbol": "BTC",
      "client_order_id": "79f948fd-7556-4066-a128-083f3ea49322"
    }
  }
}
FieldTypeNeedDescriptionExample
”id”Full UUID stringrequiredClient-defined request ID1bb2b72f-f545-4938-8a38-c5cda8823675
”params”objectrequiredContains action type and action parameters”cancel_order"
"cancel_order”objectrequiredSpecifies action type and contains parametersSee examples.
”account”stringrequiredUser’s wallet address42trU9A5…
“agent_wallet”stringoptionalAgent wallet address69trU9A5…
“signature”stringrequiredCryptographic signature5j1Vy9Uq…
“timestamp”integerrequiredCurrent timestamp in milliseconds1716200000000
”expiry_window”integeroptionalSignature expiry in milliseconds30000
”symbol”stringrequiredTrading pair symbolBTC
”order_id”integerrequired (if no CLOID)Exchange-assigned order ID123
”client_order_id”Full UUID stringrequired (if no OID)Client-defined order IDf47ac10b-58cc-4372-a567-0e02b2c3d479

Response

{
  "code": 200,
  "data": {
    "I": "79f948fd-7556-4066-a128-083f3ea49322",
    "i": null,
    "s": "BTC"
  },
  "id": "1bb2b72f-f545-4938-8a38-c5cda8823675",
  "t": 1749223343610,
  "type": "cancel_order",
  "rl": {
    "r": 9995,
    "q": 10000,
    "t": 1000
  }
}
FieldTypeDescription
'code'integerStatus code
'data'objectContains information about placed order
'I'stringCLOID (if provided)
'i'integerOrder ID
's'stringSymbol
'id'stringSame as above request ID
't'integerTimestamp in milliseconds
'type'stringSpecifies action type
'rl'object or nullRate-limit info, always present: r = credits remaining, q = quota, t = reset-in (ms)
On error, the frame omits data and instead carries an err (string) field describing the failure, alongside the same id, type, code, t, and rl fields. Cancels are not subject to any speedbump.