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 Booked

Spot#

{
    "channel_name": "TRADING",
    "type": "BOOKED", // DEPRECATED
    "event": "ORDER",
    "status": "OPEN",
    "order_book_sequence": 70422217646,
    "side": "SELL",
    "amount": "0.1",
    "price": "85000",
    "instrument_code": "BTC_EUR",
    "tif": "GTC",
    "client_id": "c95d3780-cd25-44e2-a7c6-5f04991e819e",
    "order_id": "b3572bca-4c88-4fc0-8537-2ada40cd91c1",
    "time": 1743072083415515130,
    "bals": [
        {
            "c": "BTC",
            "a": "10"
        },
        {
            "c": "EUR",
            "a": "20000"
        }
    ],
    "lckd_bals": [
        {
            "c": "BTC",
            "a": "0.1"
        },
        {
            "c": "EUR",
            "a": "0"
        }
    ]
}
SpotBookedOrder
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:
BOOKED
event
enum<string> 
required
The event type this message relates to.
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
order_book_sequence
integer 
required
The order book sequence number.
side
string 
required
BUY or SELL
amount
string 
required
The amount for the order.
price
string 
required
The price the order was booked at.
instrument_code
string 
required
The instrument code of the market.
tif
enum<string> 
required
Time in force.
Allowed values:
GTCFOKIOCPOST_ONLY
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
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": "BOOKED", // DEPRECATED
    "event": "ORDER",
    "status": "OPEN",
    "order_book_sequence": 70422328145,
    "side": "BUY",
    "uid": 1407374883553397,
    "amount": "0.5",
    "price": "95000",
    "instrument_code": "BTC_EUR_P",
    "tif": "GTC",
    "client_id": "e303aa78-ef05-4d25-86df-f30c89411441",
    "order_id": "688c96fd-1b01-4ae1-a43d-fb29551b2546",
    "time": 1743073597225086103,
    "margin_used": "4750",
    "liquidation": true, // This is optional, and only present if the order is part of a liquidation event
    "bals": [
        {
            "c": "EUR",
            "a": "800146.32750407"
        }
    ]
}
FuturesBookedOrder
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:
BOOKED
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
order_book_sequence
integer 
required
The order book sequence number.
side
string 
required
BUY or SELL
amount
string 
required
The amount for the order.
price
string 
required
The price the order was booked at.
instrument_code
string 
required
The instrument code of the market.
tif
enum<string> 
required
Time in force.
Allowed values:
GTCFOKIOCPOST_ONLY
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
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
Funding Payment
Next
Order Rejected
Built with