Name | Type | Description | Notes |
---|---|---|---|
Contract | string | Futures contract | |
Size | int64 | Order size. Positive size means to buy, while negative one means to sell. Set to 0 to close the position | [optional] |
Price | string | Order price. Set to 0 to use market price | |
Close | bool | Set to true if trying to close the position | [optional] [default to false] |
Tif | string | Time in force. If using market price, only `ioc` is supported. - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled | [optional] [default to TIF_GTC] |
Text | string | The source of the order, including: - web: web - api: api - app: app | [optional] |
ReduceOnly | bool | Set to true to create a reduce-only order | [optional] [default to false] |
AutoSize | string | Set side to close dual-mode position. `close_long` closes the long side; while `close_short` the short one. Note `size` also needs to be set to 0 | [optional] |
IsReduceOnly | bool | Is the order reduce-only | [optional] [readonly] |
IsClose | bool | Is the order to close position | [optional] [readonly] |