Skip to content
K-Lines and Intraday

Get Historical Intraday Data for a Day

Returns intraday data for a security on a specified historical trading day. Use it when the user long-presses a day on the daily K-line chart to view that day's intraday chart. Historical data does not change, and the Broker App caches the result for 1 day.

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

GEThttps://api.lbkrs.com/v1/quote/stock/history_timeshares

Parameters

counter_idstringqueryRequired

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

datestringqueryRequired

Trading day in YYYYMMDD format

trade_sessionintegerquery

Trading session; same values as trade_session in GET /v5/quote/stock/timeshares. The Broker App passes the all-sessions value

adjust_typeintegerquery

Price adjustment type:

  • 0 - Unadjusted
  • 1 - Forward-adjusted

01

avg_priceintegerquery

Whether to return the intraday average price avg_price: 1 returns it, 0 omits it. The Broker App always passes 1

01

Responses

HTTP 200The request succeeded. The response body contains the result of the “Get Historical Intraday Data for a Day” operation.
Standard response envelopecodemessagedata
dataobjectdata structure

Intraday data

base_pricestring

Intraday base price, used as the previous-close reference line and to calculate the change

timesharesarray<object>

Intraday data segments; a single-day query usually returns one segment, and a five-day query returns one segment per trading day

Child attributes
datestring

Trading day

pre_closestring

Previous close for this trading day

minutesarray<object>

Intraday points for the trading day, in ascending time order

Child attributes
timestampstring

Minute time as a Unix timestamp in seconds

pricestring

Price for the minute, used to draw the intraday line

avg_pricestring

Average price up to this minute; returned only when avg_price is 1

amountstring

Volume for the minute, in the trading unit of the security

balancestring

Turnover for the minute, in the quote currency of the security

Whale Docs