-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmodel_delivery_account.go
More file actions
64 lines (62 loc) · 3.8 KB
/
model_delivery_account.go
File metadata and controls
64 lines (62 loc) · 3.8 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
/*
* 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 DeliveryAccount struct {
// Balance, only applicable to classic contract account.The balance is the sum of all historical fund flows, including historical transfers in and out, closing settlements, and transaction fee expenses, but does not include upl of positions.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"`
// Deprecated
PositionMargin string `json:"position_margin,omitempty"`
// initial margin of all open orders
OrderMargin string `json:"order_margin,omitempty"`
// Available amount for transfer or trading, which includes credit limits under the unified account (includes experience funds; experience funds cannot be transferred, so when transferring, the transfer amount must deduct experience funds)
Available string `json:"available,omitempty"`
// Point card amount
Point string `json:"point,omitempty"`
// Settlement currency
Currency string `json:"currency,omitempty"`
// Whether Hedge Mode is enabled
InDualMode bool `json:"in_dual_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"`
// Deprecated
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"`
// Deprecated
EnableNewDualMode bool `json:"enable_new_dual_mode,omitempty"`
// Margin mode of the account 0: classic future account or Classic Spot Margin Mode of unified account; 1: Multi-Currency Margin Mode; 2: Portoforlio Margin Mode; 3: Single-Currency Margin Mode
MarginMode int32 `json:"margin_mode,omitempty"`
// Whether to enable tiered maintenance margin calculation
EnableTieredMm bool `json:"enable_tiered_mm,omitempty"`
History DeliveryAccountHistory `json:"history,omitempty"`
}