Skip to content

Latest commit

 

History

History
35 lines (31 loc) · 3.35 KB

OptionsOrder.md

File metadata and controls

35 lines (31 loc) · 3.35 KB

OptionsOrder

Options order detail

Properties

Name Type Description Notes
id int Options order ID [optional] [readonly]
user int User ID [optional] [readonly]
create_time float Creation time of order [optional] [readonly]
finish_time float Order finished time. Not returned if order is open [optional] [readonly]
finish_as str 结束方式,包括: - filled: 完全成交 - cancelled: 用户撤销 - liquidated: 强制平仓撤销 - ioc: 未立即完全成交,因为tif设置为ioc - auto_deleveraged: 自动减仓撤销 - reduce_only: 增持仓位撤销,因为设置reduce_only或平仓 - position_closed: 因为仓位平掉了,所以挂单被撤掉 - reduce_out: 只减仓被排除的不容易成交的挂单 - mmp_cancelled: MMP撤销 [optional] [readonly]
status str Order status - `open`: waiting to be traded - `finished`: finished [optional] [readonly]
contract str Contract name
size int Order size. Specify positive number to make a bid, and negative number to ask
iceberg int Display size for iceberg order. 0 for non-iceberg. Note that you will have to pay the taker fee for the hidden size [optional]
price str Order price. 0 for market order with `tif` set as `ioc` (USDT) [optional]
close bool Set as `true` to close the position, with `size` set to 0 [optional] [default to False]
is_close bool Is the order to close position [optional] [readonly]
reduce_only bool Set as `true` to be reduce-only order [optional] [default to False]
is_reduce_only bool Is the order reduce-only [optional] [readonly]
is_liq bool Is the order for liquidation [optional] [readonly]
mmp bool 设置为 true 的时候,为MMP委托 [optional] [default to False]
is_mmp bool 是否为MMP委托。对应请求中的`mmp`。 [optional] [readonly]
tif str Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee [optional] [default to 'gtc']
left int Size left to be traded [optional] [readonly]
fill_price str Fill price of the order [optional] [readonly]
text str User defined information. If not empty, must follow the rules below: 1. prefixed with `t-` 2. no longer than 28 bytes without `t-` prefix 3. can only include 0-9, A-Z, a-z, underscore(_), hyphen(-) or dot(.) Besides user defined information, reserved contents are listed below, denoting how the order is created: - web: from web - api: from API - app: from mobile phones - auto_deleveraging: from ADL - liquidation: from liquidation - insurance: from insurance [optional]
tkfr str Taker fee [optional] [readonly]
mkfr str Maker fee [optional] [readonly]
refu int Reference user ID [optional] [readonly]
refr str Referrer rebate [optional] [readonly]

[Back to Model list] [Back to API list] [Back to README]