forked from gateio/gateapi-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_contract.go
78 lines (76 loc) · 3.33 KB
/
model_contract.go
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
/*
* 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
// Futures contract details
type Contract struct {
// Futures contract
Name string `json:"name,omitempty"`
// Futures contract type
Type string `json:"type,omitempty"`
// Multiplier used in converting from invoicing to settlement currency in quanto futures
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 - based on internal trading, index - based on 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, where negative means rebate
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 float32 `json:"funding_next_apply,omitempty"`
// Risk limit base
RiskLimitBase string `json:"risk_limit_base,omitempty"`
// Step of adjusting risk limit
RiskLimitStep string `json:"risk_limit_step,omitempty"`
// Maximum risk limit the contract allowed
RiskLimitMax string `json:"risk_limit_max,omitempty"`
// Minimum order size the contract allowed
OrderSizeMin int64 `json:"order_size_min,omitempty"`
// Maximum order size the contract allowed
OrderSizeMax int64 `json:"order_size_max,omitempty"`
// deviation between order price and current index price. If price of an order is denoted as order_price, it must meet the following condition: abs(order_price - mark_price) <= mark_price * order_price_deviate
OrderPriceDeviate string `json:"order_price_deviate,omitempty"`
// Referral fee rate discount
RefDiscountRate string `json:"ref_discount_rate,omitempty"`
// Referrer commission rate
RefRebateRate string `json:"ref_rebate_rate,omitempty"`
// Current orderbook ID
OrderbookId int64 `json:"orderbook_id,omitempty"`
// Current trade ID
TradeId int64 `json:"trade_id,omitempty"`
// Historical accumulation trade size
TradeSize int64 `json:"trade_size,omitempty"`
// Current total long position size
PositionSize int64 `json:"position_size,omitempty"`
// Configuration's last changed time
ConfigChangeTime float32 `json:"config_change_time,omitempty"`
// Contract is delisting
InDelisting bool `json:"in_delisting,omitempty"`
// Maximum number of open orders
OrdersLimit int32 `json:"orders_limit,omitempty"`
}