K-line data

1. Request Url

https://{host}/market/history/kline

2. Request Param

Parameter name
Is it necessary
description

channelId

yes

Channel number

timestamp

yes

Millisecond timestamp(UTC+8)

symbol

yes

symbol

period

yes

Return data time granularity, that is, the time interval of each candle (1min, 5min, 15min, 30min, 60min, 1day, 1mon, 1week, 1year)

3.Request Example

{
     "channelId":"swft-channel",
     "sign":"102027D292DD0707E0D899459D91C759858D7367D223CB239A8EC3A90C30B122",
     "timestamp":"1557653925555",
     "symbol":"BTC/USDT",
     "period":"5min"
 }

4.Response Data

5.Response Data Explanation

Description
Is Array
Parameter name
Data type

amount

Y

amount

String

close

Y

close

String

count

Y

count

String

high

Y

high

String

low

Y

low

String

open

Y

open

String

ts

Y

ts

String

vol

Y

vol

String