GET/v1/api/ticker
URL:
https://api.crossexchange.io/GET/v1/api/ticker?pair=ETH_USDT
Request filed:
| Filed |
Description |
type |
pair |
The name of a transactions pair to request. eg.ETH_USDT |
string |
Response:
{
"code": 0,
"data": {
"dchange": "-0.035000",
"high": "0.045000",
"vol": "3.455000",
"last": "0.010000",
"low": "0.010000",
"dchangepec": "-78.00",
"timestamp": "1530869555047"
},
"channel": "ticker",
"pair": "ETH_USDT"
}
| Filed | Description |
buy |
The first (highest)price to buy in order books. |
dchange |
Recent 24 hour price changes. |
dchangepec |
% price change in the last 24 hours. |
high |
Highest price in the last 24 hours. |
last |
Last trade price of 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. |
channel |
ticker | depth | Kline | trades |
pair |
The pair name |
Error:
{"code":-1,"msg":"fail"}
code |
response status, 0 is success, other is fail. |
msg |
error massage |
