Skip to content

Get Candlestick Data

Description

Get the candlestick data of the futures name. By default, 100 records are returned.

HTTP Request

  • GET /fapi/v1/market/candles

Request Parameters

ParameterTypeRequiredDescription
futuresNameStringYesFutures name, e.g. "E-BTC-USDT"
intervalStringYesK-line particle size, 1min(1minute), 5min(5minutes), 15min(15minutes)
limitStringNoThe result of query. Default: 100, maximum: 300

Request Example

http
curl 'https://futuresopenapi.100ex.com/fapi/v1/market/candles?futuresName=E-BTC-USDT&interval=1min'

Response Parameters

ParameterTypeDescription
> highStringHighest price
> lowStringLowest price
> openStringOpen price
> closeStringClose price
> volStringTrading of volume
> idxStringTimestamp, ms

Response Example

json
{
    "code": "0",
    "msg": "成功",
    "data": [
        {
            "high": "57879",
            "vol": "0",	
            "low": "57879",
            "idx": "1736472120000",
            "close": "57879",
            "open": "57879"
        },
        {
            "high": "57879",
            "vol": "0",
            "low": "57879",
            "idx": "1736472060000",
            "close": "57879",
            "open": "57879"
        },
        ...
    ]
}