Skip to content
K-Lines and Intraday

Get Intraday Data

Returns today's intraday data for a security, for the intraday chart on the security detail page. When the user switches between the regular, pre-market, and post-market sessions, call it again with a different trade_session. Use base_price as the previous-close reference line. This endpoint also serves intraday overlay comparison (loading intraday data of the overlay securities). For five-day intraday data, call GET /v1/quote/stock/mutitimeshares.

WhaleCore's quoteService() wraps this endpoint as the typed method getTimeshares. If you use WhaleCore, prefer that method.

GEThttps://api.lbkrs.com/v5/quote/stock/timeshares

Parameters

counter_idstringqueryRequired

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

daysintegerqueryRequired

Number of days. The Broker App passes 1

15

trade_sessionintegerqueryRequired

Intraday trading session. Known values:

  • 0 - Regular session
  • 1 - Pre-market or post-market, chosen by the server for the current time
  • 2 - Pre-market
  • 3 - Post-market

Confirm the values for the overnight session and all sessions with the server.

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 Intraday Data” 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