forked from gateio/gateapi-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodel_futures_price_trigger.go
More file actions
23 lines (21 loc) · 1.29 KB
/
model_futures_price_trigger.go
File metadata and controls
23 lines (21 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
* Gate API v4
*
* APIv4 provides spot, margin and futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
*
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package gateapi
type FuturesPriceTrigger struct {
// How the order will be triggered - `0`: by price, which means order will be triggered on price condition satisfied - `1`: by price gap, which means order will be triggered on gap of recent two prices of specified `price_type` satisfied. Only `0` is supported currently
StrategyType int32 `json:"strategy_type,omitempty"`
// Price type. 0 - latest deal price, 1 - mark price, 2 - index price
PriceType int32 `json:"price_type,omitempty"`
// Value of price on price triggered, or price gap on price gap triggered
Price string `json:"price,omitempty"`
// Trigger condition type - `1`: calculated price based on `strategy_type` and `price_type` >= `price` - `2`: calculated price based on `strategy_type` and `price_type` <= `price`
Rule int32 `json:"rule,omitempty"`
// How many seconds will the order wait for the condition being triggered. Order will be cancelled on timed out
Expiration int32 `json:"expiration,omitempty"`
}