-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathmodel_flash_swap_preview_request.go
More file actions
22 lines (20 loc) · 1.14 KB
/
model_flash_swap_preview_request.go
File metadata and controls
22 lines (20 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
* 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
// 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"`
}