One Trading API
REST APIWebSocket API
REST APIWebSocket API
  1. Trading
  • Introduction
  • Authenticate
  • Subscribe
  • Ping / Pong
  • Trading
    • Introduction
    • Dead Man Switch (Auto Cancellation)
    • Create Order
    • Cancel All Orders
    • Cancel Order by Client ID
    • Cancel Order by Order ID
    • Margin Update
    • Settlement
    • Funding Payment
    • Order Booked
    • Order Rejected
    • Order Closed
    • Trade Executed
    • Order Fully Filled
    • Move Order
    • Balance Adjustment
  • Orderbook
    • Introduction
    • Orderbook Snapshot
    • Orderbook Update
  • Price Ticks
    • Introduction
    • Price Tick
  • Book Ticker
    • Introduction
    • Book Tick
  1. Trading

Order Closed

Spot#

{
    "channel_name": "TRADING",
    "type": "DONE", // DEPRECATED
    "event": "ORDER",
    "status": "CANCELLED",
    "instrument_code": "BTC_EUR",
    "client_id": "ca88c44b-3c30-4488-ba03-19c2ddaf9fec",
    "order_id": "2c8c5391-1121-4105-919b-e77586acec04",
    "side": "BUY",
    "order_book_sequence": 70422288526,
    "remaining": "0.1",
    "amount": "0.1",
    "price": "85000",
    "time": 1743073077701521427,
    "bals": [
        {
            "c": "BTC",
            "a": "2.5"
        },
        {
            "c": "EUR",
            "a": "20000"
        }
    ],
    "lckd_bals": [
        {
            "c": "BTC",
            "a": "0"
        },
        {
            "c": "EUR",
            "a": "0"
        }
    ]
}
SpotClosedOrder

Futures#

{
    "channel_name": "TRADING",
    "type": "DONE", // DEPRECATED
    "event": "ORDER",
    "status": "CANCELLED",
    "instrument_code": "BTC_EUR_P",
    "client_id": "c405ca89-72bf-492c-9e6c-beeaed92dfb9",
    "order_id": "e66cf0ef-f4f5-4d55-b485-759e938d041e",
    "side": "BUY",
    "order_book_sequence": 70422361957,
    "remaining": "0.1",
    "amount": "0.1",
    "price": "85000",
    "time": 1743074076856974143,
    "margin_used": "350.5",
    "liquidation": true, // This is optional, and only present if the order is part of a liquidation event
    "bals": [
        {
            "c": "EUR",
            "a": "80000"
        }
    ]
}
FuturesClosedOrder

Previous
Order Rejected
Next
Trade Executed
Built with