-
Notifications
You must be signed in to change notification settings - Fork 42
/
model_cross_margin_loan.go
33 lines (31 loc) · 1.22 KB
/
model_cross_margin_loan.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
/*
* 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 CrossMarginLoan struct {
// Loan record ID
Id string `json:"id,omitempty"`
// Creation timestamp, in milliseconds
CreateTime int64 `json:"create_time,omitempty"`
// Update timestamp, in milliseconds
UpdateTime int64 `json:"update_time,omitempty"`
// Currency name
Currency string `json:"currency"`
// Borrowed amount
Amount string `json:"amount"`
// User defined custom ID
Text string `json:"text,omitempty"`
// Deprecated. Currently, all statuses have been set to 2. Borrow loan status, which includes: - 1: failed to borrow - 2: borrowed but not repaid - 3: repayment complete
Status int32 `json:"status,omitempty"`
// Repaid amount
Repaid string `json:"repaid,omitempty"`
// Repaid interest
RepaidInterest string `json:"repaid_interest,omitempty"`
// Outstanding interest yet to be paid
UnpaidInterest string `json:"unpaid_interest,omitempty"`
}