-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathmodel_contract.go
More file actions
94 lines (92 loc) · 4.58 KB
/
model_contract.go
File metadata and controls
94 lines (92 loc) · 4.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/*
* Gate API
*
* Welcome to Gate API APIv4 provides operations related to spot, margin, and contract trading, including public interfaces for querying market data and authenticated private interfaces for implementing API-based automated trading.
*
* Contact: support@mail.gate.com
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package gateapi
// Futures contract details
type Contract struct {
// Futures contract
Name string `json:"name,omitempty"`
// Contract type: inverse - inverse contract, direct - direct contract
Type string `json:"type,omitempty"`
// Multiplier used in converting from invoicing to settlement currency
QuantoMultiplier string `json:"quanto_multiplier,omitempty"`
// Minimum leverage
LeverageMin string `json:"leverage_min,omitempty"`
// Maximum leverage
LeverageMax string `json:"leverage_max,omitempty"`
// Maintenance rate of margin
MaintenanceRate string `json:"maintenance_rate,omitempty"`
// Mark price type: internal - internal trading price, index - external index price
MarkType string `json:"mark_type,omitempty"`
// Current mark price
MarkPrice string `json:"mark_price,omitempty"`
// Current index price
IndexPrice string `json:"index_price,omitempty"`
// Last trading price
LastPrice string `json:"last_price,omitempty"`
// Maker fee rate, negative values indicate rebates
MakerFeeRate string `json:"maker_fee_rate,omitempty"`
// Taker fee rate
TakerFeeRate string `json:"taker_fee_rate,omitempty"`
// Minimum order price increment
OrderPriceRound string `json:"order_price_round,omitempty"`
// Minimum mark price increment
MarkPriceRound string `json:"mark_price_round,omitempty"`
// Current funding rate
FundingRate string `json:"funding_rate,omitempty"`
// Funding application interval, unit in seconds
FundingInterval int32 `json:"funding_interval,omitempty"`
// Next funding time
FundingNextApply float64 `json:"funding_next_apply,omitempty"`
// Base risk limit (deprecated)
RiskLimitBase string `json:"risk_limit_base,omitempty"`
// Risk limit adjustment step (deprecated)
RiskLimitStep string `json:"risk_limit_step,omitempty"`
// Maximum risk limit allowed by the contract (deprecated). It is recommended to use /futures/{settle}/risk_limit_tiers to query risk limits
RiskLimitMax string `json:"risk_limit_max,omitempty"`
// Minimum order size allowed by the contract
OrderSizeMin int64 `json:"order_size_min,omitempty"`
// Maximum order size allowed by the contract
OrderSizeMax int64 `json:"order_size_max,omitempty"`
// Maximum allowed deviation between order price and current mark price. The order price `order_price` must satisfy the following condition: abs(order_price - mark_price) <= mark_price * order_price_deviate
OrderPriceDeviate string `json:"order_price_deviate,omitempty"`
// Trading fee discount for referred users
RefDiscountRate string `json:"ref_discount_rate,omitempty"`
// Commission rate for referrers
RefRebateRate string `json:"ref_rebate_rate,omitempty"`
// Orderbook update ID
OrderbookId int64 `json:"orderbook_id,omitempty"`
// Current trade ID
TradeId int64 `json:"trade_id,omitempty"`
// Historical cumulative trading volume
TradeSize int64 `json:"trade_size,omitempty"`
// Current total long position size
PositionSize int64 `json:"position_size,omitempty"`
// Last configuration update time
ConfigChangeTime float64 `json:"config_change_time,omitempty"`
// `in_delisting=true` and position_size>0 indicates the contract is in delisting transition period `in_delisting=true` and position_size=0 indicates the contract is delisted
InDelisting bool `json:"in_delisting,omitempty"`
// Maximum number of pending orders
OrdersLimit int32 `json:"orders_limit,omitempty"`
// Whether bonus is enabled
EnableBonus bool `json:"enable_bonus,omitempty"`
// Whether portfolio margin account is enabled
EnableCredit bool `json:"enable_credit,omitempty"`
// Created time of the contract
CreateTime float64 `json:"create_time,omitempty"`
// The factor for the maximum of the funding rate. Maximum of funding rate = (1/market maximum leverage - maintenance margin rate) * funding_cap_ratio
FundingCapRatio string `json:"funding_cap_ratio,omitempty"`
// Contract status types include: prelaunch (pre-launch), trading (active), delisting (delisting), delisted (delisted), circuit_breaker (circuit breaker)
Status string `json:"status,omitempty"`
// Contract expiry timestamp
LaunchTime int64 `json:"launch_time,omitempty"`
// Timestamp when contract enters reduce-only state
DelistingTime int64 `json:"delisting_time,omitempty"`
// Contract delisting time
DelistedTime int64 `json:"delisted_time,omitempty"`
}