K-Lines (1 minute)
K-Lines
ResumeNo: -1 means the latest record,-30 means the latest 30 historical records.
Request
{
"SendTopicAction": {
"Action": "1",
"FilterValue": "DeepCoin_BTCUSDT_1m",
"LocalNo": 6,
"ResumeNo": -1,
"TopicID": "11"
}
}
Response Parameters
Field Name | Type | Example | Description |
---|---|---|---|
InstrumentID | string | "BTCUSDT" | Instrument ID |
PeriodID | string | 1m | Period |
BeginTime | int | 1691992620 | Begin time |
OpenPrice | float | 29437.2 | Open price |
ClosePrice | float | 29437.2 | Close price |
HighestPrice | float | 29437.2 | The highest price |
LowestPrice | float | 29437.2 | The lowest price |
Volume | float | 2554 | Volume |
Turnover | float | 75182.5694 | Turnover |
TimeZone | int | 57600 | Time zone |
UpdateTime | int | 1691992641 | DB Update time |
Response Example
{
"action": "PushKLine",
"localNo": 6,
"index": "DeepCoin_BTCUSDT_1m",
"seq": 325303,
"bNo": 1,
"changeType": "3",
"result": [
{
"table": "LastKLine",
"data": {
"ExchangeID": "DeepCoin",
"InstrumentID": "BTCUSDT",
"PeriodID": "1m",
"BeginTime": 1691992620,
"OpenPrice": 29437.2,
"ClosePrice": 29437.2,
"HighestPrice": 29437.2,
"LowestPrice": 29437.1,
"Volume": 2554.0,
"Turnover": 75182.5694,
"TimeZone": 57600,
"UpdateTime": 1691992641
}
}
]
}