Skip to content
K-Lines and Intraday

Get Daily K-lines by Time Range

Returns the daily K-lines of a security between a start and an end time. Use it to show the price trend around an event, such as market signal and catalyst cards or price charts linked to news. Only trading days are returned, so the count is lower than the number of calendar days in the range.

WhaleCore's quoteService() provides K-line queries. If you use WhaleCore, evaluate the corresponding quoteService() capability first.

GEThttps://api.lbkrs.com/v3/quote/range_day_kline

Parameters

counter_idstringqueryRequired

Security ID (counter_id), for example ST/US/AAPL or ST/HK/700

begin_timestampintegerquery

Range start as a Unix timestamp in seconds

end_timestampintegerquery

Range end as a Unix timestamp in seconds

line_typeintegerquery

K-line period. The Broker App always passes 1000 (daily)

1000

adjust_typeintegerquery

Price adjustment type:

  • 0 - Unadjusted
  • 1 - Forward-adjusted

01

marketstringquery

Market of the security, such as US or HK

Responses

HTTP 200The request succeeded. The response body contains the result of the “Get Daily K-lines by Time Range” operation.
Standard response envelopecodemessagedata
dataobjectdata structure
klinesarray<object>

Daily K-lines in ascending time order; an empty array when the range has no trading day

Child attributes
timestampstring

K-line time as a Unix timestamp in seconds, in string form

openstring

Open price

highstring

High price

lowstring

Low price

closestring

Close price

prev_closestring

Close price of the previous K-line

amountstring

Volume, in the trading unit of the security

balancestring

Turnover, in the quote currency of the security

turnover_ratestring

Turnover rate

factor_astring

Adjustment factor A

factor_bstring

Adjustment factor B

Whale Docs