Query kline data
Query kline Data
Address/openApi/market/kline
Accept Parameters
Submission Method: GET
Example
curl -d /openApi/market/kline
Submission Parameters
Parameter Name | Required | Type | Example | Description |
---|---|---|---|---|
symbol | Yes | string | BTC-USDT | Trading Pair |
period | Yes | string | 1min | K-line type: 1min, 5min, 15min, 30min, 1hour, 6hour, 12hour, 1day, 1week |
size | No | int | 150 | Number of records to retrieve, range: [1,2000] |
Return Parameters
Parameter Name | Required | Type | Example | Description |
---|---|---|---|---|
errno | Yes | int | 0 | Status Code |
errmsg | Yes | success | success | Status Information |
result | Yes | array | See example | Return Results |
result description
Parameter Name | Required | Type | Example | Description |
---|---|---|---|---|
ts | Yes | int | 1499184000 | Data retrieval time |
symbol | Yes | string | BTC-USDT | Trading Pair |
period | Yes | string | 1min | K-line type: 1min, 5min, 15min, 30min, 60min, 1day, 1mon, 1week, 1year |
data | Yes | array | See example | kline data |
Data Description
JSON
"data": [
{
"id": K-line id,
"amount": Volume,
"count": Number of transactions,
"open": Opening price,
"close": Closing price, when the candlestick is the latest one, it is the latest transaction price
"low": Lowest price,
"high": Highest price,
"vol": Total trading volume, i.e., sum(each transaction price * volume of the transaction)
}
]