-
Notifications
You must be signed in to change notification settings - Fork 42
/
model_cross_margin_balance.go
31 lines (29 loc) · 1.27 KB
/
model_cross_margin_balance.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
/*
* Gate API v4
*
* Welcome to Gate.io API 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: [email protected]
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package gateapi
type CrossMarginBalance struct {
// Available amount
Available string `json:"available,omitempty"`
// Locked amount
Freeze string `json:"freeze,omitempty"`
// Borrowed amount
Borrowed string `json:"borrowed,omitempty"`
// Unpaid interests
Interest string `json:"interest,omitempty"`
// Negative Liabilities. Formula:Min[available+total+unrealized_pnl,0]
NegativeLiab string `json:"negative_liab,omitempty"`
// Borrowing to Open Positions in Futures
FuturesPosLiab string `json:"futures_pos_liab,omitempty"`
// Equity. Formula: available + freeze - borrowed + futures account's total + unrealized_pnl
Equity string `json:"equity,omitempty"`
// Total freeze. Formula: freeze + position_initial_margin + order_margin
TotalFreeze string `json:"total_freeze,omitempty"`
// Total liabilities. Formula: Max[Abs[Min[quity - total_freeze,0], borrowed]] - futures_pos_liab
TotalLiab string `json:"total_liab,omitempty"`
}