Name | Type | Description | Notes |
---|---|---|---|
contract | str | Futures contract | |
size | int | Represents the number of contracts that need to be closed, full closing: size=0 Partial closing: plan-close-short-position size>0 Partial closing: plan-close-long-position size<0 | [optional] |
price | str | Order price. Set to 0 to use market price | |
close | bool | When all positions are closed in a single position mode, it must be set to true to perform the closing operation When partially closed positions in single-store mode/double-store mode, you can not set close, or close=false | [optional] [default to False] |
tif | str | Time in force strategy, default is gtc, market order currently only supports ioc mode Market order currently only supports ioc mode - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled | [optional] [default to 'gtc'] |
text | str | The source of the order, including: - web: web - api: api - app: app | [optional] |
reduce_only | bool | When set to true, perform automatic position reduction operation. Set to true to ensure that the order will not open a new position, and is only used to close or reduce positions | [optional] [default to False] |
auto_size | str | Do not set auto_size When the dual-position mode is closed all positions (size=0), auto_size, close_long, close_short, short When the double-storey mode partially closes the position (size ≠ 0), there is no need to set auto_size | [optional] |
is_reduce_only | bool | Is the order reduce-only | [optional] [readonly] |
is_close | bool | Is the order to close position | [optional] [readonly] |