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 Rejected

Spot#

{
    "channel_name": "TRADING",
    "type": "DONE", // DEPRECATED
    "event": "ORDER",
    "status": "INSUFFICIENT_FUNDS",
    "instrument_code": "BTC_EUR",
    "client_id": "51453434-a081-49d3-a47b-db51d7e705ce",
    "order_id": "f4030a53-7c16-4a64-ad7c-7b9e85bb6412",
    "time": 1743072200276955246,
    "side": "SELL",
    "order_book_sequence": 70422226207,
    "remaining": "0",
    "amount": "2.5",
    "price": "85000",
    "tif": "GTC",
    "bals": [
        {
            "c": "BTC",
            "a": "1.5"
        },
        {
            "c": "EUR",
            "a": "100000"
        }
    ],
    "lckd_bals": [
        {
            "c": "BTC",
            "a": "0"
        },
        {
            "c": "EUR",
            "a": "0"
        }
    ]
}
SpotRejectedOrder
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 reason the order was rejected.
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 rejected orders.
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": "RISK_FAILED_OVER_MAX_POSITION",
    "instrument_code": "BTC_EUR_P",
    "client_id": "b2cc4a47-aa4e-40a7-a2ff-e229b117d4df",
    "order_id": "be5b6780-cb1d-459d-81fd-e2248a66bf23",
    "time": 1743073689388694705,
    "side": "BUY",
    "order_book_sequence": 70422334944,
    "remaining": "0",
    "amount": "0.5",
    "price": "90000",
    "tif": "GTC",
    "margin_used": "1900",
    "liquidation": true, // This is optional, and only present if the order is part of a liquidation event
    "bals": [
        {
            "c": "EUR",
            "a": "2000"
        }
    ]
}
FuturesRejectedOrder
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 reason the order was rejected.
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 rejected orders.
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 Booked
Next
Order Closed
Built with