-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathmodel_cross_margin_loan.go
More file actions
33 lines (31 loc) · 1.2 KB
/
model_cross_margin_loan.go
File metadata and controls
33 lines (31 loc) · 1.2 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
/*
* 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 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"`
// Unpaid interest
UnpaidInterest string `json:"unpaid_interest,omitempty"`
}