Skip to content
K-Lines and Intraday

Get Price Line

Returns the close price series of a security from a specified start time, plus the close before the start. Use it for lightweight trend charts that need only a price line, such as comparing the account's return against a market index in portfolio analysis. The start time may fall on a non-trading day, so the Broker App moves it earlier (2 weeks for daily lines, 1 month for monthly lines) and trims the result as needed.

GEThttps://api.lbkrs.com/v1/quote/price_line

Parameters

counter_idstringqueryRequired

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

line_typeintegerqueryRequired

Interval between price points:

  • 1000 - Daily
  • 2000 - Weekly
  • 3000 - Monthly

100020003000

begin_timestampintegerqueryRequired

Start time as a Unix timestamp in seconds

end_timestampintegerquery

End time as a Unix timestamp in seconds; omit it to return data up to the latest point

Responses

HTTP 200The request succeeded. The response body contains the result of the “Get Price Line” operation.
Standard response envelopecodemessagedata
dataobjectdata structure
prev_closestring

Close before the first price point, used as the base for calculating the change

pricesarray<object>

Price points in ascending time order

Child attributes
pricestring

Close price

timestampinteger

Unix timestamp in seconds

Whale Docs