Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 2.94 KB

File metadata and controls

41 lines (32 loc) · 2.94 KB

FuturesPriceTriggeredOrder

Futures price-triggered order details

Properties

Name Type Description Notes
initial FuturesInitialOrder
trigger FuturesPriceTrigger
id Long Auto order ID [optional] [readonly]
idString String String form of the auto order ID; the same order as numeric `id`, as the decimal string of `id` to avoid int64 precision loss in JavaScript and similar environments. Prefer this field to display the order ID or when a string unique identifier is needed; one-to-one with `id`. Same meaning as the field of the same name in futures price-trigger REST APIs and in `futures.orders` / `futures.autoorders` WebSocket pushes. [optional] [readonly]
user Integer User ID [optional] [readonly]
createTime Double Created time [optional] [readonly]
finishTime Double End time [optional] [readonly]
tradeId Long ID of the order created after trigger [optional] [readonly]
status StatusEnum Order status - `open`: Active - `finished`: Finished - `inactive`: Inactive, only applies to order take-profit/stop-loss - `invalid`: Invalid, only applies to order take-profit/stop-loss [optional] [readonly]
finishAs FinishAsEnum Finish status: cancelled - Cancelled; succeeded - Succeeded; failed - Failed; expired - Expired [optional] [readonly]
reason String Additional description of how the order was completed [optional] [readonly]
orderType String Types of take-profit and stop-loss orders, including: - `close-long-order`: Order take-profit/stop-loss, close long position - `close-short-order`: Order take-profit/stop-loss, close short position - `close-long-position`: Position take-profit/stop-loss, used to close all long positions - `close-short-position`: Position take-profit/stop-loss, used to close all short positions - `plan-close-long-position`: Position plan take-profit/stop-loss, used to close all or partial long positions - `plan-close-short-position`: Position plan take-profit/stop-loss, used to close all or partial short positions The two types of order take-profit/stop-loss are read-only and cannot be passed in requests [optional]
meOrderId Long Corresponding order ID for order take-profit/stop-loss orders [optional] [readonly]

Enum: StatusEnum

Name Value
OPEN "open"
FINISHED "finished"
INACTIVE "inactive"
INVALID "invalid"

Enum: FinishAsEnum

Name Value
CANCELLED "cancelled"
SUCCEEDED "succeeded"
FAILED "failed"
EXPIRED "expired"