Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 2.01 KB

File metadata and controls

24 lines (17 loc) · 2.01 KB

FuturesInitialOrder

Properties

Name Type Description Notes
contract string Futures contract [default to undefined]
size number 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] [default to undefined]
price string Order price. Set to 0 to use market price [default to undefined]
close boolean 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 undefined]
tif string Time in force strategy, default is gtc, market orders currently only support ioc mode - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled [optional] [default to 'gtc']
text string The source of the order, including: - web: Web - api: API call - app: Mobile app [optional] [default to undefined]
reduceOnly boolean 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 undefined]
autoSize string Single position mode: auto_size is not required Dual position mode full closing (size=0): auto_size must be set, close_long for closing long positions, close_short for closing short positions Dual position mode partial closing (size≠0): auto_size is not required [optional] [default to undefined]
isReduceOnly boolean Is the order reduce-only [optional] [readonly] [default to undefined]
isClose boolean Is the order to close position [optional] [readonly] [default to undefined]

Enum: FuturesInitialOrder.Tif

  • Gtc (value: 'gtc')

  • Ioc (value: 'ioc')