| Level | SPOT | FUTURES |
|---|---|---|
| Best1(BBO) | Real time | Real time |
| Best 5 | 100ms | 100ms |
| Best 50 | 100ms | 100ms |
| increment | Real time | Real time |
{
"id": "1545910660739",
"action": "SUBSCRIBE", // or UNSUBSCRIBE
"channel":"obu",
"tradeType": "SPOT", // SPOT / FUTURES
"symbol": "BTC-USDT",
"depth": "5", // 1 / 5 / 50 / increment
"rpiFilter": 0 // 0:Only NoneRPI orders [Default] 1(Only Support Futures):NoneRPI+ RPI Orders. When rpiFilter=1, "depth" only supports 5/50.
}Note:
O and C represent the starting sequence number and the ending sequence number of the data contained in the current push.1.For Snapshot pushes, the order book data reflects the state at a single sequence point, so the values of O and C are always the same. 2.For Incremental pushes, a single push may aggregate multiple order book changes, reflected as multiple price level updates in the bid (b) and ask (a) arrays. Therefore, the values of O and C may differ.
//SPOT-bbo
{
"T": "obu.SPOT",
"dp": "1",
"t": "snapshot",
"P": 1768217874990007701,
"d": {
"C": 25984468414,
"M": 1768217874986000000,
"O": 25984468414,
"a": [
[
"90701.2",
"0.5771583"
]
],
"b": [
[
"90701.1",
"0.13918404"
]
],
"s": "BTC-USDT"
}
}
//SPOT-increment
{
"T": "obu.SPOT",
"dp": "increment",
"t": "delta",
"P": 1768217909684719896,
"d": {
"C": 25984544840,
"M": 1768217909683000000,
"O": 25984544839,
"a": [],
"b": [
[
"1",
"12996.24994153"
]
],
"s": "BTC-USDT"
}
}
//FUTURES-bbo
{
"T": "obu.FUTURES",
"dp": "1",
"t": "snapshot",
"P": 1768217994549513415,
"d": {
"a": [
[
"90629.2",
"2236"
]
],
"b": [
[
"90629.1",
"301"
]
],
"s": "XBTUSDTM",
"C": 1732420529826,
"M": 1768217994548000000,
"O": 1732420529826
}
}
//FUTURES-increment
{
"T": "obu.FUTURES",
"dp": "increment",
"t": "delta",
"P": 1768218044321756061,
"d": {
"a": [
[
"90601.5",
"0"
]
],
"b": [],
"C": 1732420557695,
"s": "XBTUSDTM",
"M": 1768218044321000000,
"O": 1732420557695
}
}
//FUTURES-RPI
{
"t" : "snapshot",
"T" : "obu.FUTURES",
"d" : {
"O" : 1731931329201,
"b" : [
[
"88862.4",
"891",
"0"
]
],
"M" : 1767323800296000000,
"s" : "XBTUSDTM",
"a" : [
[
"88862.5",
"1645",
"0"
]
],
"C" : 1731931329201
},
"P" : 1767323800305802104,
"dp" : "5"
}
sequenceStart(new) <= sequenceEnd(old) + 1
sequenceEnd(new) > sequenceEnd(old) "sequence": "100001",
"asks": [
["115669", "0.1"],
["115553.5", "0.05"],
["115442", "0.2"]
],
"bids": [
["115404", "0.5"],
["115403.5", "0.3"],
["115388.9", "0.1"]
]
}| Price | Size | Side |
|---|---|---|
| 115669 | 0.1 | Sell |
| 115553.5 | 0.05 | Sell |
| 115442 | 0.2 | Sell |
| 115404 | 0.5 | Buy |
| 115403.5 | 0.3 | Buy |
| 115388.9 | 0.1 | Buy |
{
"T": "obu.spot",
"t": "delta",
"dp": "increment",
"P": 1760324595709048090,
"d": {
"C": 100002,
"M": 1760324595706000,
"O": 100002,
"a": [["115669", "0.0151843"]],
"b": [],
"s": "BTC-USDT"
}
}sequenceStart (100002) <= sequenceEnd(old) + 1 (100001 + 1 = 100002) and sequenceEnd (100002) > sequenceEnd(old) (100001).{
"T": "obu.spot",
"t": "delta",
"dp": "increment",
"P": 1760324595709048090,
"d": {
"C": 100003,
"M": 1760324595706000,
"O": 100003,
"a": [],
"b": [["115404", "0"]],
"s": "BTC-USDT"
}
}sequenceStart (100003) <= sequenceEnd(old) + 1 (100002 + 1 = 100003) and sequenceEnd (100003) > sequenceEnd(old) (100002).| Price | Size | Side |
|---|---|---|
| 115669 | 0.0151843 | Sell |
| 115553.5 | 0.05 | Sell |
| 115442 | 0.2 | Sell |
| 115403.5 | 0.3 | Buy |
| 115388.9 | 0.1 | Buy |