The ticker channel provides real-time price updates every time a match happens.
Subscribe:
To begin receiving feed messages, you must first send a subscribe message to the server indicating which channels and pairs to receive.
URL:
wss://api.crossexchange.io/wsv1
Request:
{"event":"subscribe", "channel":"ticker","pair":"ETH_USDT"}
event |
subscribe or cancel_subcribe |
channel |
Channel name. ticker | depth | kline | trade |
pair |
Pair name, eg.ETH_USDT |
Response:
{
"channel": "ticker",
"pair": "ETH_USDT",
"data": {
"buy": 290.03,
"high": 302.21,
"last": 289.51,
"low": 289.51,
"sell": 295.5,
"timestamp": 1411718074965,
"vol": 49020.30,
"dchange": 0.1,
"dchange_pec": 0
}
}
Upload:
{
"channel": "ticker",
"pair": "ETH_USDT",
"data": {
"buy": 298.03,
"high": 305.02,
"last": 292.51,
"low": 288.46,
"sell": 296.5,
"timestamp": 1411718074965,
"vol": 49020.30,
"dchange": 0.1,
"dchange_pec": 0
}
}
buy |
The first (highest)price to buy in order books. |
high |
Highest price in the last 24 hours. |
last |
Last trade price in this pair. |
low |
Lowest price in the last 24 hours. |
sell |
The first (lowest)price to sell in order books. |
timestamp |
timestamp |
vol |
The volume of transactions in the last 24 hours. |
dchange |
Recent 24 hour price changes. |
dchange_pec |
% price change in the last 24 hours. |