Skip to content
Order Queries

Get Filled Orders in Range

Gets the filled orders of the current account for one security within a time range. When the Client selects a candlestick trade point, use its begin_timestamp and end_timestamp as the range to list the matching filled orders. action=0 includes both sides.

This operation is also used to select the filled orders shown on a trade share card.

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

GEThttps://api.lbkrs.com/v3/orders/trade_done/share

Parameters

counter_idstringqueryRequired

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

actionintegerqueryRequired

Order side:

  • 0 - Both sides
  • 1 - Buy
  • 2 - Sell

012

account_channelstringqueryRequired

Account channel (account_channel) of the current account

start_atintegerquery

Start of the range as a Unix timestamp in seconds

end_atintegerquery

End of the range as a Unix timestamp in seconds

Responses

HTTP 200The request succeeded. The response body contains the result of the “Get Filled Orders in Range” operation.
Standard response envelopecodemessagedata
dataobjectdata structure
ordersarray<object>

Filled orders within the range

Child attributes
idstring

Order ID

counter_idstring

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

namestring

Security name

actionstring

Order side:

  • 1 - Buy
  • 2 - Sell
  • 5 - Short sell
order_typestring

Order type, for example LO (limit), MO (market), ELO (enhanced limit), ALO (at-auction limit), AO (at-auction market), ODD (odd lot), LIT (limit if touched), MIT (market if touched), TSLPAMT / TSLPPCT (trailing stop limit by amount / percentage), TSMAMT / TSMPCT (trailing stop market by amount / percentage), or MOC (market on close)

statusstring

Order status:

  • NotReported - Not reported
  • ReplacedNotReported - Not reported after a successful modification
  • ProtectedNotReported - Not reported (protected order)
  • VarietiesNotReported - Conditional order being monitored and not yet triggered
  • NotActivate - Not reported (conditional order not activated)
  • WaitToActivate - Not reported (conditional order waiting for activation)
  • Activated - Not reported (conditional order activated)
  • SuspenedStatus - Suspended
  • WaitToNew - Submitted, waiting to be reported
  • PendingNewStatus - Pending new
  • NewStatus - New
  • WaitToReplace - Modification waiting to be reported
  • PendingReplaceStatus - Pending modification
  • ReplacedStatus - Modified
  • WaitToCancel - Cancellation waiting to be reported
  • PendingCancelStatus - Pending cancellation
  • PartialFilledStatus - Partially filled
  • FilledStatus - Filled (final)
  • RejectedStatus - Rejected (final)
  • CanceledStatus - Canceled (final)
  • ExpiredStatus - Expired (final)
  • PartialWithdrawal - Canceled after a partial fill (final)

SuspenedStatus is the existing spelling used by the service.

Values
NotReported
ReplacedNotReported
ProtectedNotReported
VarietiesNotReported
NotActivate
WaitToActivate
Activated
SuspenedStatus
WaitToNew
PendingNewStatus
NewStatus
WaitToReplace
PendingReplaceStatus
ReplacedStatus
WaitToCancel
PendingCancelStatus
PartialFilledStatus
FilledStatus
RejectedStatus
CanceledStatus
ExpiredStatus
PartialWithdrawal
pricestring

Order price

quantitystring

Order quantity

trigger_pricestring

Trigger price of a conditional order

executed_pricestring

Average filled price

executed_qtystring

Filled quantity

currencystring

Order currency

trade_currencystring

Trading currency

last_donestring

Latest price of the security

msgstring

Additional order message, such as a rejection reason

submitted_atstring

Submission time as a Unix timestamp in seconds

updated_atstring

Last update time as a Unix timestamp in seconds

attached_ordersarray<object>

Take-profit and stop-loss orders attached to the main order

Whale Docs