WS PUBLIC ENDPOINTS
[WS] All Market Tickers Stream
24hr rolling window ticker statistics for all symbols that changed in an array. These are NOT the statistics of the UTC day, but a 24hr rolling window for the previous 24hrs. Note that only tickers that have changed will be present in the array.
/ws/ws/allTicker
Request Example
Response Example
-------------------- WS FRAME --------------------------
["subscribe-/ws/allTicker"]
-------------------- WS FRAME --------------------------
[
"/ws/allTicker",
[
{
"pair":"ETH_USDT",
"timestamp":1572806649000,
"last":180.26, // The current price
"volume":34208125.14232612, // 24hrs USDT volume
"volumeBase":187934.33030932304, // 24hrs ETH volume
"change":-3.8400000000,
"high":184.69, // the highest price in 24hrs
"low":179, // the lowest price in 24hrs
},{
"pair":"OMG_USDT",
"timestamp":1572806649000,
"last":0.958894,
...
},
...
]
]
-------------------- WS FRAME --------------------------
[
"/ws/allTicker",
[
{
"pair":"ETH_USDT",
"timestamp":1572806650000,
"last":180.28,
...
},
...
]
]
[WS] All Book Tickers Stream
Pushes any update to the best bid or ask's price or amount in real-time for all symbols.
/ws/ws/dp
Request Query Detail
Key | Required | Type | Default | Description |
---|---|---|---|---|
pair | True | string | none | Current Pair |
Request Example
Response Example
-------------------- WS FRAME --------------------------
["subscribe-/ws/dp"]
-------------------- WS FRAME --------------------------
[
"/ws/dp",
{
"asks":[],
"bids":[
{"price":179,"amount":333.82387},
{"price":178.98,"amount":3.87194},
{"price":178.97,"amount":0},
...
]
}
]
-------------------- WS FRAME --------------------------
[
"/ws/dp",
{
"asks":[
{"price":181.95,"amount":0},
...
],
"bids":[
{"price":179,"amount":0},
...
]
}
]
- The data on asks and bids is the absolute amount for a price level.
- If the amount is 0, remove the price level.
- Receiving an event that removes a price level that is not in your local order book can happen and is normal
[WS] Trades Stream
The Trade Streams push raw trade information; each trade has a price and amount
/ws/ws/hs
Request Query Detail
Key | Required | Type | Default | Description |
---|---|---|---|---|
pair | True | string | none | Current Pair |
Request Example
Response Example
-------------------- WS FRAME --------------------------
["subscribe-/ws/hs"]
-------------------- WS FRAME --------------------------
[
"/ws/hs",
[
{ "amount": 2.67548, "price": 186.28, "timestamp": 1572881730160 },
{ "amount": 1.30538, "price": 186.28, "timestamp": 1572881730160 } ,
...
]
]
-------------------- WS FRAME --------------------------
[
"/ws/hs",
[
{ "amount": 0.14388, "price": 186.28, "timestamp": 1572881730954 },
...
]
]