https://api.lbkrs.com/v3/quote/klineParameters
counter_idstringqueryRequiredSecurity ID (counter_id), for example ST/US/AAPL or ST/HK/700
line_typeintegerqueryRequiredK-line period:
1- 1 minute5- 5 minutes15- 15 minutes30- 30 minutes60- 60 minutes1000- Daily2000- Weekly3000- Monthly3500- Quarterly4000- Yearly
1515306010002000300035004000
line_numintegerqueryRequiredNumber of K-lines to return, at most 1000 per request. The Broker App passes 310 on phones and 620 on tablets
timestampintegerqueryPaging reference time as a Unix timestamp in seconds. Omit it to query the latest K-lines
directionintegerqueryPaging direction, used with timestamp:
0- Older data beforetimestamp1- Newer data aftertimestamp
01
adjust_typeintegerqueryPrice adjustment type:
0- Unadjusted1- Forward-adjusted
01
kline_sessionintegerqueryRequiredTrading sessions included in the K-lines:
0- Regular session only100- All trading sessions101- Pre-market, regular, and post-market102- Overnight and regular
The Broker App chooses the value from the user's pre/post-market and overnight K-line settings, and passes 100 when both are on.
0100101102
new_version_klinebooleanqueryRequiredWhether to use the new price adjustment algorithm. The Broker App always passes true
include_turnover_ratebooleanqueryRequiredWhether to return the turnover rate turnover_rate for each K-line
Responses
HTTP 200The request succeeded. The response body contains the result of the “Get K-lines” operation.codemessagedatadataobjectdata structureK-lines in ascending time order; an empty array when there is no data
Child attributes
K-line time as a Unix timestamp in seconds
Open price
High price
Low price
Close price; for a K-line that has not ended, the latest price
Close price of the previous K-line, used to calculate the change
Volume, in the trading unit of the security (such as shares or contracts)
Turnover, in the quote currency of the security
Turnover rate; returned only when include_turnover_rate is true
Adjustment factor A, used with factor_b to convert adjusted prices
Adjustment factor B, used with factor_a to convert adjusted prices
Latest free-float shares, which can be used with volume to calculate the turnover rate