v1
latestOpenAPI 3.1.02026-07-24590534.0 KBFetch k-line data with pending trades for a market
Returns the k-line (OHLC) data with pending trades, which are the trades not included in K data yet, because there's delay between trade generated and processed by K data generator.
Path parameters
Allowed Currencies values: qdxusdt, btcusdt, btcngn, ethngn, qdxngn, xrpngn, dashngn, ltcngn, usdtngn, btcghs, usdtghs, trxngn, dogeusdt, bnbusdt, maticusdt, safemoonusdt, aaveusdt, shibusdt, dotusdt, linkusdt, cakeusdt, xlmusdt, xrpusdt, ltcusdt, ethusdt, trxusdt, axsusdt, wsgusdt, afenusdt, blsusdt, dashusdt.
trade_id
Query parameters
Limit the number of returned data points. Type: Integer. Allowed values: 1..10000. Default is 30
Time period of K line. You can choose between 1, 5, 15, 30, 60, 120, 240, 360, 720, 1440, 4320, 10080. Default to 1.
An integer represents the seconds elapsed since Unix epoch. If set, only k-line data after that time will be returned. Type: Integer.
Response
200
Example response
{
"status": "success",
"message": "Successful",
"data": {
"k": [
[
1302736.74
]
],
"trades": [
{
"tid": 41,
"type": "buy",
"date": 1533139874,
"price": "2672301.0",
"amount": "0.0001",
"base_volume": "0.0001",
"quote_volume": "267.2301"
}
]
}
}