Skip to content
K-Lines and Intraday

Get K-lines for Multiple Securities

Returns K-lines of the same period for multiple securities in one request, grouped by security ID. Use it to compare price trends of several stocks, such as industry comparison and supply chain price charts on the security detail page (the Broker App takes the latest 61 forward-adjusted daily K-lines). This read-only endpoint has no side effects.

POSThttps://api.lbkrs.com/v1/quote/klines

Request body application/json

counter_idsarray<string>required

Security IDs to query

line_typestringrequired

K-line period; same values as line_type in GET /v3/quote/kline, passed as a string

line_numstringrequired

Number of K-lines per security, at most 1000, passed as a string

timestampstring

Paging reference time as a Unix timestamp in seconds; omit it to query the latest K-lines

directionstring

Paging direction: 0 older data, 1 newer data

adjust_typestring

Price adjustment type: 0 unadjusted, 1 forward-adjusted. Applies only to weekly and longer periods

new_version_klineboolean

Whether to use the new price adjustment algorithm. The Broker App passes true

Responses

HTTP 200The request succeeded. The response body contains the result of the “Get K-lines for Multiple Securities” operation.
Standard response envelopecodemessagedata
dataobjectdata structure
klinesobject

K-lines grouped by security ID; each key is a security ID from the request

Whale Docs