forked from gateio/gateapi-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_loan_record.go
42 lines (40 loc) · 1.31 KB
/
model_loan_record.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
34
35
36
37
38
39
40
41
42
/*
* Gate API v4
*
* 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: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package gateapi
// Margin loaned record details
type LoanRecord struct {
// Loan record ID
Id string `json:"id,omitempty"`
// Loan ID the record belongs to
LoanId string `json:"loan_id,omitempty"`
// Loan time
CreateTime string `json:"create_time,omitempty"`
// Expiration time
ExpireTime string `json:"expire_time,omitempty"`
// Loan record status
Status string `json:"status,omitempty"`
// Garbled user ID
BorrowUserId string `json:"borrow_user_id,omitempty"`
// Loan currency
Currency string `json:"currency,omitempty"`
// Loan rate
Rate string `json:"rate,omitempty"`
// Loan amount
Amount string `json:"amount,omitempty"`
// Loan days
Days int32 `json:"days,omitempty"`
// Whether the record will auto renew on expiration
AutoRenew bool `json:"auto_renew,omitempty"`
// Repaid amount
Repaid string `json:"repaid,omitempty"`
// Repaid interest
PaidInterest string `json:"paid_interest,omitempty"`
// Interest not repaid
UnpaidInterest string `json:"unpaid_interest,omitempty"`
}