-
Notifications
You must be signed in to change notification settings - Fork 42
/
model_flash_swap_order_request.go
24 lines (22 loc) · 1.08 KB
/
model_flash_swap_order_request.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
/*
* 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 FlashSwapOrderRequest struct {
// Preview result ID
PreviewId string `json:"preview_id"`
// 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 (based on the preview result)
SellAmount string `json:"sell_amount"`
// 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 (based on the preview result)
BuyAmount string `json:"buy_amount"`
}