v1

latestOpenAPI 3.0.02026-08-04134348905.1 KB
Trading

Cancel an async order

Permissions required: Execute trades

Cancels an async order.

post/trading/async-order/cancel

Query parameters

orderIdstring

The orderId for the async order to cancel

clOrderIdstring

The clOrderId for the async order to cancel

Response

Successfully cancel an ansyc order

Example response

{
  "data": {
    "accountId": "0e2b2f9d-8d10-4f1e-960b-28567255045f",
    "allocation": [
      {
        "counterQtyAllIn": "10000",
        "counterQtyAllInToSettle": "10000",
        "cumQty": "10000",
        "executionId": "6290d9bd-494f-11ed-975e-2e567b4c0e09",
        "fee": "10000",
        "quantity": "10000",
        "subaccountId": "905272f0-52f9-404e-b6cd-ad879e671790"
      }
    ],
    "avgPx": "21005.4",
    "avgPxAllIn": "21006.00",
    "cancelQty": "10000.00",
    "clOrderId": "6fb5fc79-0bb4-446d-82dd-d4687fb56a02",
    "counterCurrency": "BTC",
    "counterQty": "0.001",
    "counterQtyAllIn": "0.0012",
    "cumQty": "10000.00",
    "currency": "USD",
    "execId": "3fb532c79-0bb4-446d-82dd-d4687fb56a02",
    "execType": "PENDING_NEW",
    "fee": "10.0",
    "feeCurrency": "BTC",
    "leavesQty": "10000.00",
    "limitPrice": "21005.5",
    "orderId": "a94c8d75-6c9d-4903-95f3-5b0893e76cb7",
    "orderQty": "10000.00",
    "subaccountId": "0e2b2f9d-8d10-4f1e-960b-28567255045f",
    "symbol": "BTC-USD"
  }
}