One Trading API
REST APIWebSocket API
REST APIWebSocket API
  1. Orderbook
  • 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. Orderbook

Orderbook Snapshot

You must be subscribed to the ORDER_BOOK channel to receive any order book related updates. You will only receive updates for instrument_codes you have specified.
The ORDER_BOOK_SNAPSHOT provides an immediate overview of all the bids and aks in a particular market at the time of subscription.
{
    "channel_name": "ORDER_BOOK",
    "type": "ORDER_BOOK_SNAPSHOT",
    "time": 1715268699262970610,
    "instrument_code": "BTC_EUR",
    "asks": [
        [
            "100000",
            "4"
        ]
    ],
    "bids": [
        [
            "10000",
            "6"
        ]
    ]
}
OrderbookSnapshot
channel_name
enum<string> 
required
Allowed value:
ORDER_BOOK
type
enum<string> 
required
Allowed value:
ORDER_BOOK_SNAPSHOT
time
integer 
required
instrument_code
string 
required
asks
array [array] 
required
string 
optional
string 
optional
bids
array [array] 
required
string 
optional
string 
optional
Previous
Introduction
Next
Orderbook Update
Built with