-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathmodel_futures_account.go
More file actions
66 lines (64 loc) · 3.79 KB
/
model_futures_account.go
File metadata and controls
66 lines (64 loc) · 3.79 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
/*
* 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
type FuturesAccount struct {
// total is the balance after the user's accumulated deposit, withdraw, profit and loss (including realized profit and loss, fund, fee and referral rebate), excluding unrealized profit and loss. total = SUM(history_dnw, history_pnl, history_fee, history_refr, history_fund)
Total string `json:"total,omitempty"`
// Unrealized PNL
UnrealisedPnl string `json:"unrealised_pnl,omitempty"`
// Position margin
PositionMargin string `json:"position_margin,omitempty"`
// Order margin of unfinished orders
OrderMargin string `json:"order_margin,omitempty"`
// Available balance for transferring or trading (including bonus. Bonus cannot be withdrawn, so transfer amount needs to deduct bonus)
Available string `json:"available,omitempty"`
// Point card amount
Point string `json:"point,omitempty"`
// Settlement currency
Currency string `json:"currency,omitempty"`
// Whether dual mode is enabled
InDualMode bool `json:"in_dual_mode,omitempty"`
// Position mode: single - one-way, dual - dual-side, split - sub-positions (in_dual_mode is deprecated)
PositionMode string `json:"position_mode,omitempty"`
// Whether portfolio margin account mode is enabled
EnableCredit bool `json:"enable_credit,omitempty"`
// Initial margin occupied by positions, applicable to unified account mode
PositionInitialMargin string `json:"position_initial_margin,omitempty"`
// Maintenance margin occupied by positions, applicable to new classic account margin mode and unified account mode
MaintenanceMargin string `json:"maintenance_margin,omitempty"`
// Bonus
Bonus string `json:"bonus,omitempty"`
// Classic account margin mode, true-new mode, false-old mode
EnableEvolvedClassic bool `json:"enable_evolved_classic,omitempty"`
// Cross margin order margin, applicable to new classic account margin mode
CrossOrderMargin string `json:"cross_order_margin,omitempty"`
// Cross margin initial margin, applicable to new classic account margin mode
CrossInitialMargin string `json:"cross_initial_margin,omitempty"`
// Cross margin maintenance margin, applicable to new classic account margin mode
CrossMaintenanceMargin string `json:"cross_maintenance_margin,omitempty"`
// Cross margin unrealized P&L, applicable to new classic account margin mode
CrossUnrealisedPnl string `json:"cross_unrealised_pnl,omitempty"`
// Cross margin available balance, applicable to new classic account margin mode
CrossAvailable string `json:"cross_available,omitempty"`
// Cross margin balance, applicable to new classic account margin mode
CrossMarginBalance string `json:"cross_margin_balance,omitempty"`
// Cross margin maintenance margin rate, applicable to new classic account margin mode
CrossMmr string `json:"cross_mmr,omitempty"`
// Cross margin initial margin rate, applicable to new classic account margin mode
CrossImr string `json:"cross_imr,omitempty"`
// Isolated position margin, applicable to new classic account margin mode
IsolatedPositionMargin string `json:"isolated_position_margin,omitempty"`
// Whether to open a new two-way position mode
EnableNewDualMode bool `json:"enable_new_dual_mode,omitempty"`
// Margin mode, 0-classic margin mode, 1-cross-currency margin mode, 2-combined margin mode
MarginMode int32 `json:"margin_mode,omitempty"`
// Whether to enable tiered maintenance margin calculation
EnableTieredMm bool `json:"enable_tiered_mm,omitempty"`
History FuturesAccountHistory `json:"history,omitempty"`
}