Skip to main content

OSS L1 Snapshot

WSProductionwss://ws.btse.com/ws/oss/spotTestnetwss://testws.btse.io/ws/oss/spot

Subscribe to the best bid / best ask (Level 1) for a market. Topic format: snapshotL1:<symbol> (e.g. snapshotL1:BTC-USD)

Response Content​

NameTypeRequiredDescription
topicStringYesWebSocket topic
dataObjectYesData object

Data Object:

NameTypeRequiredDescription
bidsString[][]YesBest bid [price, size]
asksString[][]YesBest ask [price, size]
symbolStringYesMarket symbol
typeStringYes
timestampLongYesOrderbook timestamp (ms)
example

Response

{
"topic": "snapshotL1:BTC-USD",
"data": {
"bids": [
[
"28016.7",
"1.48063"
]
],
"asks": [
[
"28033.6",
"1.34133"
]
],
"type": "snapshotL1",
"symbol": "BTC-USD",
"timestamp": 1680750154232
}
}