-
Notifications
You must be signed in to change notification settings - Fork 42
/
model_flash_swap_preview_request.go
22 lines (20 loc) · 1.13 KB
/
model_flash_swap_preview_request.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
* 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
// Parameters of flash swap order creation
type FlashSwapPreviewRequest struct {
// The name of the asset being sold, as obtained from the \"GET /flash_swap/currency_pairs\" API, which retrieves a list of supported flash swap currency pairs.
SellCurrency string `json:"sell_currency"`
// Amount to sell. It is required to choose one parameter between `sell_amount` and `buy_amount`
SellAmount string `json:"sell_amount,omitempty"`
// The name of the asset being purchased, as obtained from the \"GET /flash_swap/currency_pairs\" API, which provides a list of supported flash swap currency pairs.
BuyCurrency string `json:"buy_currency"`
// Amount to buy. It is required to choose one parameter between `sell_amount` and `buy_amount`
BuyAmount string `json:"buy_amount,omitempty"`
}