Binance - Spot

Trades

The Trade Streams push raw trade information; each trade has a unique buyer and seller.

{
  "e": "trade",     // Event type
  "E": 123456789,   // Event time
  "s": "BNBBTC",    // Symbol
  "t": 12345,       // Trade ID
  "p": "0.001",     // Price
  "q": "100",       // Quantity
  "b": 88,          // Buyer order ID
  "a": 50,          // Seller order ID
  "T": 123456785,   // Trade time
  "m": true,        // Is the buyer the market maker?
  "M": true         // Ignore
}
  • Update speed: Real-time

Quotes

Order book price and quantity depth updates used to locally manage an order book.

{
  "e": "depthUpdate", // Event type
  "E": 123456789,     // Event time
  "s": "BNBBTC",      // Symbol
  "U": 157,           // First update ID in event
  "u": 160,           // Final update ID in event
  "b": [              // Bids to be updated
    [
      "0.0024",       // Price level to be updated
      "10"            // Quantity
    ]
  ],
  "a": [              // Asks to be updated
    [
      "0.0026",       // Price level to be updated
      "100"           // Quantity
    ]
  ]
}
  • Update speed: 100ms

OB Snapshots

{
  "lastUpdateId": 1027024,
  "bids": [
    [
      "4.00000000",     // PRICE
      "431.00000000"    // QTY
    ]
  ],
  "asks": [
    [
      "4.00000200",
      "12.00000000"
    ]
  ]
}
  • Snapshot interval is 10000 seconds

  • Maximum depth is 5000 levels

Aside the exchange's data points, we include a local timestamp (Epoch) for Trades, Quotes and Orderbook Snapshots when collecting the data.

Change Log

**04-11-2020**

  • Started market data collection for Quotes, Trades and Orderbook Snapshots

Last updated