PUBLISH Cancel All Orders

PUB wss://ws.aevo.xyz
Cancels all orders. Optionally, you can specify an instrument type to cancel only orders for that instrument type.
REQUEST
  • *id** integer Request ID, an arbitrary integer to link requests with responses. Eg. 1
  • *op** string required Operation code: cancel_all_orders

data.instrument_type string optional Instrument Type: Eg. OPTION or PERPETUAL

Example
{
  "id": 1,
  "op": "cancel_all_orders",
  "data": {
    "instrument_type": "OPTION"
  }
}

RESPONSE
  • *id** integer Response ID, an arbitrary integer to link requests with responses. Eg. 1

data.success boolean required True if cancel is successful.

data.order_ids array of strings required Returns a list of order ids that were successfully cancelled.

Example
{
  "id": 1,
  "data": {
    "success": true,
    "orders_ids": [
      "0xc0653e811ee2dd55d5265104a65e08ce31d4570cf46e0cda77555ecd2ce00874",
      "0x2192bb429415e838367e553446574be218091af997c34ccf3fa407ff644c0376"
    ]
  }
}