v1

latestOpenAPI 3.1.02026-07-24590534.0 KB

Fetch 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.

get/markets/{currency}/k_with_pending_trades/{trade_id}

Path parameters

currency'btcngn' | 'usdtngn' | 'ethngn' | 'xautngn' | 'usdcngn' | 'trxngn' | 'dashngn' | 'ltcngn' | 'xrpngn' | 'solngn' | 'qdxngn' | 'btcusdt' | 'ethusdt' | 'xautusdt' | 'trxusdt' | 'usdcusdt' | 'bnbusdt' | 'dogeusdt' | 'usatusdt' | 'ltcusdt' | 'linkusdt' | 'polusdt' | 'xrpusdt' | 'dotusdt' | 'aaveusdt' | 'dashusdt' | 'shibusdt' | 'xlmusdt' | 'cakeusdt' | 'adausdt' | 'bchusdt' | 'slpusdt' | 'flokiusdt' | 'solusdt' | 'cfxusdt' | 'pepeusdt' | 'bonkusdt' | 'algousdt' | 'wifusdt' | 'tonusdt' | 'rndrusdt' | 'xyousdt' | 'hypeusdt' | 'fartcoinusdt' | 'cngnngn' | 'suiusdt' | 'usdtghs' | 'lskusdt' | 'axcnhusdt' | 'axcnhngn' | 'usdtcngn' | 'qdxusdt' | 'usdtxaf' | 'usdtxof' | 'usdtzar' | 'usdtkes' | 'axsusdt' | 'filusdt' | 'babydogeusdt' | 'oneusdt' | 'xtzusdt' | 'sushiusdt' | 'zilusdt' | 'manausdt' | 'sandusdt' | 'apeusdt' | 'enjusdt' | 'lrcusdt' | 'wldusdt' | 'memeusdt' | 'ordiusdt' | 'ensusdt' | 'arbusdt' | 'myrousdt' | 'magatrumpusdt' | 'jupusdt' | 'blurusdt' | 'coqusdt' | 'fetusdt' | 'aiusdt' | 'bobusdt' | 'bomeusdt' | 'stxusdt' | 'mogusdt' | 'injusdt' | 'mntusdt' | 'beamusdt' | 'mewusdt' | 'gnousdt' | 'wavesusdt' | 'trumpusdt' | 'pnutusdt' | 'ethghs' | 'etcusdt' | 'ethbtc' | 'ltcbtc' | 'bchbtc' | 'cngnusdt' | 'watsonusdt' | 'wlfiusdt' | 'usdtusd' | 'btcghs' | 'nochillusdt' | 'katausdt' | 'slerfusdt' | 'nosusdt' | 'nearusdt' | 'strkusdt' | 'zkusdt' | 'susdt' required

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_idstring required

trade_id

Query parameters

limitinteger

Limit the number of returned data points. Type: Integer. Allowed values: 1..10000. Default is 30

periodinteger

Time period of K line. You can choose between 1, 5, 15, 30, 60, 120, 240, 360, 720, 1440, 4320, 10080. Default to 1.

timestampinteger

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

statusstring
messagestring

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"
      }
    ]
  }
}