forked from gateio/gateapi-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodel_loan_patch.go
More file actions
23 lines (21 loc) · 804 Bytes
/
model_loan_patch.go
File metadata and controls
23 lines (21 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
* 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
type LoanPatch struct {
// Loan currency
Currency string `json:"currency"`
// Loan side. Possible values are `lend` and `borrow`. For `LoanRecord` patching, only `lend` is supported
Side string `json:"side"`
// Auto renew
AutoRenew bool `json:"auto_renew"`
// Currency pair. Required for borrowing side
CurrencyPair string `json:"currency_pair,omitempty"`
// Loan ID. Required for `LoanRecord` patching
LoanId string `json:"loan_id,omitempty"`
}