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
    • 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
channel_name
enum<string> 
required
The name of the WebSocket channel, always TRADING.
Allowed value:
TRADING
type
enum<string> 
deprecated
This field is deprecated and will be removed soon, please use the event and status fields.
Allowed value:
DONE
event
enum<string> 
required
Allowed value:
ORDER
status
enum<string> 
required
The order status.
Allowed values:
OPENFILLFILLED_FULLYCANCELLEDMOVEDINSUFFICIENT_FUNDSINSUFFICIENT_LIQUIDITYSELF_TRADEMOVE_SELF_TRADEMATCHING_POST_ONLY_RESULTS_IN_MATCHMATCHING_MOVE_FAILED_PRICE_OVER_RISK_LIMITRISK_MARGIN_TRADING_DISABLEDRISK_INVALID_RESERVE_BID_PRICERISK_FAILED_OVER_MAX_POSITION
instrument_code
string 
required
The instrument code of the market.
client_id
string <uuid>
required
The client provided, or system generated client id.
order_id
string <uuid>
required
The system generated order id.
time
number 
required
Nanosecond timestamp the order was accepted into the order book
side
string 
required
BUY or SELL
order_book_sequence
integer 
required
The order book sequence number.
amount
string 
required
The amount for the order.
remaining
string 
required
The amount remaining for this order at the time of closure.
price
string 
required
The price the order was booked at.
tif
enum<string> 
required
Time in force.
Allowed values:
GTCFOKIOCPOST_ONLY
bals
array[object (TradingBalance) {2}] 
required
Available balances for the currencies concerned with this market.
c
string 
required
Currency code of the balance
a
string 
required
Amount of the balance
lckd_bals
array[object (TradingBalance) {2}] 
required
Locked balances for the currencies concerned with this market.
c
string 
required
Currency code of the balance
a
string 
required
Amount of the balance

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
channel_name
enum<string> 
required
The name of the WebSocket channel, always TRADING.
Allowed value:
TRADING
type
enum<string> 
deprecated
This field is deprecated and will be removed soon, please use the event and status fields.
Allowed value:
DONE
event
enum<string> 
required
Allowed value:
ORDER
status
enum<string> 
required
The order status.
Allowed values:
OPENFILLFILLED_FULLYCANCELLEDMOVEDINSUFFICIENT_FUNDSINSUFFICIENT_LIQUIDITYSELF_TRADEMOVE_SELF_TRADEMATCHING_POST_ONLY_RESULTS_IN_MATCHMATCHING_MOVE_FAILED_PRICE_OVER_RISK_LIMITRISK_MARGIN_TRADING_DISABLEDRISK_INVALID_RESERVE_BID_PRICERISK_FAILED_OVER_MAX_POSITION
instrument_code
string 
required
The instrument code of the market.
client_id
string <uuid>
required
The client provided, or system generated client id.
order_id
string <uuid>
required
The system generated order id.
time
number 
required
Nanosecond timestamp the order was accepted into the order book
side
string 
required
BUY or SELL
order_book_sequence
integer 
required
The order book sequence number.
amount
string 
required
The amount for the order.
remaining
string 
required
The amount remaining for this order at the time of closure.
price
string 
required
The price the order was booked at.
tif
enum<string> 
required
Time in force.
Allowed values:
GTCFOKIOCPOST_ONLY
margin_used
string 
required
The total margin used in your futures account, expressed in quote currency.
liquidation
boolean 
optional
Present and true if the trade was part of a liquidation event.
bals
array[object (TradingBalance) {2}] 
required
An array containing your account balance (equity) after the order has been booked. In this cash-settled futures account, the array will typically contain a single entry representing your balance in the settlement currency (EUR).
c
string 
required
Currency code of the balance
a
string 
required
Amount of the balance
Previous
Order Rejected
Next
Trade Executed
Built with