forked from gateio/gateapi-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel_transfer.go
26 lines (24 loc) · 1.03 KB
/
model_transfer.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
/*
* 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: [email protected]
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package gateapi
// Accounts available to transfer: - `spot`: spot account - `margin`: margin account - `futures`: perpetual futures account - `delivery`: delivery futures account
type Transfer struct {
// Transfer currency. For futures account, `currency` can be set to `POINT` or settle currency
Currency string `json:"currency"`
// Account transferred from
From string `json:"from"`
// Account transferred to
To string `json:"to"`
// Transfer amount
Amount string `json:"amount"`
// Margin currency pair. Required if transfer from or to margin account
CurrencyPair string `json:"currency_pair,omitempty"`
// Futures settle currency. Required if `currency` is `POINT`
Settle string `json:"settle,omitempty"`
}