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 Fully Filled

Spot#

{
  "channel_name": "TRADING",
  "type": "DONE", // DEPRECATED
  "event": "ORDER",
  "status": "FILLED_FULLY",
  "instrument_code": "BTC_EUR",
  "client_id": "72a56f6c-b323-455a-9182-229bbc1760a2",
  "order_id": "a3baff90-c763-4572-037d-56613d0ca6ba",
  "time": 1743122825374527200,
  "side": "BUY",
  "order_book_sequence": 70467252555,
  "remaining": "0",
  "amount": "0.00185",
  "price_avg": "80846.39",
  "cum_quote_amount": "149.5658215",
  "bals": [
    {
      "c": "BTC",
      "a": "10.00796032"
    },
    {
      "c": "EUR",
      "a": "1087951.20272462"
    }
  ],
  "lckd_bals": [
    {
      "c": "BTC",
      "a": "0"
    },
    {
      "c": "EUR",
      "a": "0"
    }
  ]
}
SpotFilledFully
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. Always 0 for FILLED_FULLY.
price_avg
string 
required
The average price at which the order was filled.
cum_quote_amount
string 
required
The cumulative quote currency amount for the filled portion of the order.
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
  "status": "FILLED_FULLY",
  "event": "ORDER",
  "instrument_code": "BTC_EUR_P",
  "client_id": "01f133fe-86d9-418f-8b52-86c71f1035d5",
  "order_id": "4539821b-df35-4d6a-21ed-ad1d6efc41fe",
  "time": 1743121323027671300,
  "side": "SELL",
  "order_book_sequence": 70467142629,
  "remaining": "0",
  "amount": "0.00185",
  "price_avg": "80667.3",
  "cum_quote_amount": "149.234505",
  "margin_used": "38.2479412",
  "liquidation": true, // This is optional, and only present if the order is part of a liquidation event
  "bals": [
    {
      "c": "EUR",
      "a": "962.73779864"
    }
  ]
}
FuturesFilledFully
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.
remaining
string 
required
The amount remaining for this order. Always 0 for FILLED_FULLY.
amount
string 
required
The amount for the order.
price_avg
string 
required
The average price at which the order was filled.
cum_quote_amount
string 
required
The cumulative quote currency amount for the filled portion of the order.
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
Trade Executed
Next
Balance Adjustment
Built with