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 200Fields are taken from the real responses definition for this operation in the published Whale OpenAPI spec (whale-openapi/Whale-openapi.json).
Standard response envelopecodemessagedata
dataobjectdata structure
order_idstringrequired

Order ID. Order ID

statusstringrequired

Order Status. Order Status

stock_namestringrequired

Stock Name. Stock Name

quantitystringrequired

Submitted Quantity. Submitted Quantity

executed_quantitystringrequired

Executed Quantity. Executed Quantity

pricestringrequired

Submitted Price. Submitted Price

executed_pricestringrequired

Executed Price. Executed Price

submitted_atstringrequired

Submitted Time. Submitted Time

sidestringrequired

Side. Side

symbolstringrequired

Stock Symbol. Stock Symbol

order_typestringrequired

Order Type. Order Type

last_donestringrequired

Latest Executed Price. Latest Executed Price

trigger_pricestringrequired

Trigger Price. Trigger Price

msgstringrequired

Reject Reason. Reject Reason

tagstringrequired

Order Tag. Order Tag

time_in_forcestringrequired

Time in Force. Time in Force

expire_datestringrequired

Long-term Order Expiration Time. Long-term Order Expiration Time

updated_atstringrequired

Updated Time (最近更新时间,格式为时间戳

trigger_atstringrequired

Conditional Order Trigger Time (条件单触发时间,格式为时间戳

trailing_amountstringrequired

Order Trailing Amount. Order Trailing Amount

trailing_percentstringrequired

Order Trailing Percent. Order Trailing Percent

limit_offsetstringrequired

Order Target Price Spread. Order Target Price Spread

trigger_statusstringrequired

Conditional Order Trigger Status. Conditional Order Trigger Status

currencystringrequired

Settlement Currency. Settlement Currency

outside_rthstringrequired

Outside Regular Trading Hour. Outside Regular Trading Hour

remarkobjectrequired

Remark. Remark

free_statusnumberrequired

Commission-free Status. Commission-free Status

free_amountstringrequired

Commission-free Amount. Commission-free Amount

free_currencystringrequired

Commission-free Currency. Commission-free Currency

deductions_statusnumberrequired

Deduction State. Deduction State

deductions_amountstringrequired

Deduction Amount. Deduction Amount

deductions_currencystringrequired

Deduction Currency. Deduction Currency

platform_deducted_statusnumberrequired

Platform Fee Deduction State. Platform Fee Deduction State

platform_deducted_amountstringrequired

Platform Fee Deduction Amount. Platform Fee Deduction Amount

platform_deducted_currencystringrequired

Platform Fee Deduction Currency. Platform Fee Deduction Currency

historyarray<object>

Order History Details. Order History Details

Child attributes
pricestringrequired

Filled Orders Displayed with Executed Price, Expired, Canceled, Rejected Orders Displayed with Submitted Price. 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. Filled Orders Displayed with Filled Quantity, Expired, Canceled, Rejected Orders Displayed with Remaining Quantity

statusstringrequired

Order Status. Order Status

msgstringrequired

Trade or Error Message. Trade or Error Message

timestringrequired

Occurrence Time. Occurrence Time

charge_detailobject

Trading Fee. Trading Fee

Child attributes
itemsarray<object>

Trading Fee Details. Trading Fee Details

Child attributes
codenumberrequired

Fee Category Code. Fee Category Code

namestringrequired

Fee Category Name. Fee Category Name

feesarray<object>

Fee Details. Fee Details

Child attributes
codestringrequired

Fee Code. Fee Code

namestringrequired

Fee Name. Fee Name

amountstringrequired

Unit Fee Amount. Unit Fee Amount

currentstringrequired

Fee Currency. Fee Currency

total_amountstringrequired

Total Fee Amount. Total Fee Amount

currencystringrequired

Settlement Currency. 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