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

Introduction

The ORDER_BOOK WebSocket Channel allows clients to access real-time order book data for specified market(s). This channel provides an initial snapshot of the order book, giving a complete view of active bids and asks at the time of connection. Following the snapshot, clients receive incremental updates as changes occur in the order book, such as new orders, modifications, or cancellations.

Subscribe#

{
    "type": "SUBSCRIBE",
    "channels": [
        {
            "name": "ORDER_BOOK",
            "instrument_codes": [
                "BTC_EUR",
                "ETH_EUR"
            ]
        }
    ]
}

Subscription Confirmation#

{
    "type": "SUBSCRIPTIONS",
    "channels": [
        {
            "name": "ORDER_BOOK",
            "instrument_codes": [
                "BTC_EUR",
                "ETH_EUR"
            ]
        }
    ],
    "time": 1732050545807000000
}
Previous
Balance Adjustment
Next
Orderbook Snapshot
Built with