Skip to content

Latest commit

 

History

History
35 lines (19 loc) · 1.64 KB

FuturesPriceTrigger.md

File metadata and controls

35 lines (19 loc) · 1.64 KB

FuturesPriceTrigger

Properties

Name Type Description Notes
strategyType number Trigger Policy - 0: Price trigger, that is, when the price meets the conditions - 1: Price spread trigger, i.e. the last price specified in `price_type` minus the second-last price difference At present, only 0 is the latest transaction price [optional] [default to undefined]
priceType number Price type. 0 - latest deal price, 1 - mark price, 2 - index price [optional] [default to undefined]
price string Value of price on price triggered, or price gap on price gap triggered [optional] [default to undefined]
rule number Price Condition Type - 1: Indicates that the price calculated based on `strategy_type` and `price_type` is greater than or equal to `Trigger.Price` Trigger, while Trigger.Price must > last_price - 2: Indicates that the price calculated based on `strategy_type` and `price_type` is less than or equal to `Trigger.Price` Trigger, and Trigger.Price must < last_price [optional] [default to undefined]
expiration number How long (in seconds) to wait for the condition to be triggered before cancelling the order. [optional] [default to undefined]

Enum: FuturesPriceTrigger.StrategyType

  • NUMBER_0 (value: 0)

  • NUMBER_1 (value: 1)

Enum: FuturesPriceTrigger.PriceType

  • NUMBER_0 (value: 0)

  • NUMBER_1 (value: 1)

  • NUMBER_2 (value: 2)

Enum: FuturesPriceTrigger.Rule

  • NUMBER_1 (value: 1)

  • NUMBER_2 (value: 2)