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
| Parameter | Type | Required | Description |
|---|---|---|---|
| futuresName | String | Yes | Futures name, e.g. "E-BTC-USDT" |
| interval | String | Yes | K-line particle size, 1min(1minute), 5min(5minutes), 15min(15minutes) |
| limit | String | No | The 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
| Parameter | Type | Description |
|---|---|---|
| > high | String | Highest price |
| > low | String | Lowest price |
| > open | String | Open price |
| > close | String | Close price |
| > vol | String | Trading of volume |
| > idx | String | Timestamp, 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"
},
...
]
}