Skip to content
Order Queries

Get Candlestick Trade Points

Gets the fills of the current account for one security within a candlestick range, grouped by candlestick period, with the average price, quantity, and number of fills for buys and sells. Use it to mark buy and sell (B/S) points on a candlestick chart. When the Client scrolls the chart, request each visible range separately. After the Client selects a point, use GET /v3/orders/trade_done/share to get the filled orders in that interval.

This operation is also used for historical trade points on the single-stock position page, trade point display on stock detail candlesticks, and candlestick trade points in grid order share images.

When you call this operation through WhaleCore requestService(), you do not need to set requiresTradeToken to true.

GEThttps://api.lbkrs.com/v2/orders/history_trades

Parameters

counter_idstringqueryRequired

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

line_typeintegerqueryRequired

Candlestick period: 1, 2, 3, 5, 10, 15, 20, 30, 45, 60, 120, 180, and 240 are the number of minutes; 1000 is daily, 2000 weekly, 3000 monthly, 3500 quarterly, and 4000 yearly

123510152030456012018024010002000300035004000

account_channelstringqueryRequired

Account channel (account_channel) of the current account

timestampintegerquery

Later end of the query range as a Unix timestamp in seconds, usually the end of the last visible candlestick

end_timestampintegerquery

Earlier end of the query range as a Unix timestamp in seconds, usually the time of the first visible candlestick

line_numintegerquery

Maximum number of candlesticks to return

Responses

HTTP 200The request succeeded. The response body contains the result of the “Get Candlestick Trade Points” operation.
Standard response envelopecodemessagedata
dataobjectdata structure
pointsarray<object>

Trade points on candlesticks with fills, in time order; empty when there are no fills in the range

Child attributes
timestampstring

Timestamp of the matching candlestick in seconds, used to align with candlestick data

begin_timestampstring

Start of the aggregation interval as a Unix timestamp in seconds

end_timestampstring

End of the aggregation interval as a Unix timestamp in seconds

buyobject

Fills on one side within a candlestick period; an empty object when there are no fills on that side

Child attributes
avg_pricestring

Average filled price

amountstring

Filled quantity

trade_countsstring

Number of fills

sellobject

Fills on one side within a candlestick period; an empty object when there are no fills on that side

Child attributes
avg_pricestring

Average filled price

amountstring

Filled quantity

trade_countsstring

Number of fills

Whale Docs