Skip to content
Order Management

Order Details

his interface is used to retrieve the complete detail information of a specified order. By providing the account number account_no and order ID order_id, it returns the full order data including stock symbol, stock name, trade direction, order type, submitted price, submitted quantity, executed price, executed quantity, order status, submission time, update time, time-in-force, trigger price, trigger status, settlement currency, outside regular trading hours flag, remarks, commission-free status and amount, deduction status and amount, platform fee deduction information, order history details, and trading fee breakdown.

GEThttps://b-api.longbridge.xyz/v1/whaleapi/trade/order

Authorization

AuthorizationstringheaderRequired

Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.

Parameters

order_idstringRequired

Order ID

account_nostringRequired

Account Number

Responses

HTTP 200OK
Standard response envelopecodemessagedata
dataobjectdata structure
order_idstringrequired

Order ID

statusstringrequired

Order Status

stock_namestringrequired

Stock Name

quantitystringrequired

Submitted Quantity

executed_quantitystringrequired

Executed Quantity

pricestringrequired

Submitted Price

executed_pricestringrequired

Executed Price

submitted_atstringrequired

Submitted Time

sidestringrequired

Side

symbolstringrequired

Stock Symbol

order_typestringrequired

Order Type

last_donestringrequired

Latest Executed Price

trigger_pricestringrequired

Trigger Price

msgstringrequired

Reject Reason

tagstringrequired

Order Tag

time_in_forcestringrequired

Time in Force

expire_datestringrequired

Long-term Order Expiration Time

updated_atstringrequired

Last updated time, as a Unix timestamp in seconds

trigger_atstringrequired

Conditional order trigger time, as a Unix timestamp in seconds

trailing_amountstringrequired

Order Trailing Amount

trailing_percentstringrequired

Order Trailing Percent

limit_offsetstringrequired

Order Target Price Spread

trigger_statusstringrequired

Conditional Order Trigger Status

currencystringrequired

Settlement Currency

outside_rthstringrequired

Outside Regular Trading Hour

remarkobjectrequired

Remark

free_statusnumberrequired

Commission-free Status

free_amountstringrequired

Commission-free Amount

free_currencystringrequired

Commission-free Currency

deductions_statusnumberrequired

Deduction State

deductions_amountstringrequired

Deduction Amount

deductions_currencystringrequired

Deduction Currency

platform_deducted_statusnumberrequired

Platform Fee Deduction State

platform_deducted_amountstringrequired

Platform Fee Deduction Amount

platform_deducted_currencystringrequired

Platform Fee Deduction Currency

historyarray<object>

Order History Details

Child attributes
pricestringrequired

Filled Orders Displayed with Executed Price, Expired, Canceled, Rejected Orders Displayed with Submitted Price

quantitystringrequired

Filled Orders Displayed with Filled Quantity, Expired, Canceled, Rejected Orders Displayed with Remaining Quantity

statusstringrequired

Order Status

msgstringrequired

Trade or Error Message

timestringrequired

Occurrence Time

charge_detailobject

Trading Fee

Child attributes
itemsarray<object>

Trading Fee Details

Child attributes
codenumberrequired

Fee Category Code

namestringrequired

Fee Category Name

feesarray<object>

Fee Details

Child attributes
codestringrequired

Fee Code

namestringrequired

Fee Name

amountstringrequired

Unit Fee Amount

currentstringrequired

Fee Currency

total_amountstringrequired

Total Fee Amount

currencystringrequired

Settlement Currency

HTTP 400Bad request. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 401The user is not authenticated, or the login session has expired.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 408The request timed out. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

Whale Docs