Public channels

Order book Level 2 and public trades — no authentication.

Connect to wss://ws.bit2me.com/v1/trading. Any user can subscribe to these channels without authenticating. subscribe and unsubscribe allow 50 messages per second (limits).

Order book

Level 2 order book for one symbol. Sample: get-order-book.

Subscribe

{
  "event": "subscribe",
  "symbol": "B2M/EUR",
  "subscription": { "name": "order-book" }
}

Message

Each entry in bids and asks is [price, amount].

{
  "event": "order-book",
  "symbol": "B2M/EUR",
  "data": {
    "symbol": "B2M/EUR",
    "bids": [
      [0.012, 4800],
      [0.011, 6000],
      [0.01, 1000],
      [0.009, 3000]
    ],
    "asks": [
      [0.014, 3300],
      [0.015, 1000],
      [0.016, 950]
    ],
    "nonce": 1665998580905
  }
}

Unsubscribe

{
  "event": "unsubscribe",
  "symbol": "B2M/EUR",
  "subscription": { "name": "order-book" }
}

Public trades

Last trades executed on one symbol. Sample: get-last-trades.

Subscribe

{
  "event": "subscribe",
  "symbol": "B2M/EUR",
  "subscription": { "name": "public-trades" }
}

Message

{
  "event": "public-trades",
  "symbol": "B2M/EUR",
  "data": {
    "side": "buy",
    "price": 0.012,
    "amount": 100,
    "timestamp": 1673599321725
  }
}

Unsubscribe

{
  "event": "unsubscribe",
  "symbol": "B2M/EUR",
  "subscription": { "name": "public-trades" }
}

On this page