Market Data

Order book

Level 2 order book of a symbol.

WSSwss://ws.bit2me.com/v1/tradingorder-book

Streams the level 2 order book of a symbol: every price level of both sides with its amount, sent again on every change. Any client can subscribe, without authenticating.

Subscribe

Subscribes the connection to order-book. Send symbol with the market to subscribe to.

event*string
Valuesubscribe
symbol*string

Market to subscribe to.

Match^[A-Z0-9]+/[A-Z0-9]+$
ExampleB2M/EUR
subscription*object
Show properties
name*string
Valueorder-book

Update

Level 2 order book of a symbol.

event*string
Valueorder-book
symbol*string

Market symbol as BASE/QUOTE, uppercase. The list of valid symbols is GET /v2/trading/market-config.

Match^[A-Z0-9]+/[A-Z0-9]+$
ExampleB2M/EUR
data*object
Show properties
symbol*string

Market symbol as BASE/QUOTE, uppercase. The list of valid symbols is GET /v2/trading/market-config.

Match^[A-Z0-9]+/[A-Z0-9]+$
ExampleB2M/EUR
bids*number[][]

Buy side, best price first.

asks*number[][]

Sell side, best price first.

nonce?integer

Increases with every update of the order book.

Unsubscribe

Removes the order-book subscription. Send the same symbol used to subscribe, if any.

Removes the order-book subscription of the connection.

event*string
Valueunsubscribe
symbol*string

The same symbol sent to subscribe, if any.

Match^[A-Z0-9]+/[A-Z0-9]+$
ExampleB2M/EUR
subscription*object
Show properties
name*string
Valueorder-book
{  "event": "subscribe",  "symbol": "B2M/EUR",  "subscription": {    "name": "order-book"  }}
{  "event": "order-book",  "symbol": "B2M/EUR",  "data": {    "symbol": "B2M/EUR",    "bids": [      [0.012, 4800],      [0.011, 6000]    ],    "asks": [      [0.014, 3300],      [0.015, 1000]    ],    "nonce": 1665998580905  }}
{  "event": "unsubscribe",  "symbol": "B2M/EUR",  "subscription": {    "name": "order-book"  }}