-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathmodel_flash_swap_order_request.go
More file actions
24 lines (22 loc) · 1.06 KB
/
model_flash_swap_order_request.go
File metadata and controls
24 lines (22 loc) · 1.06 KB
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
*
* 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 FlashSwapOrderRequest struct {
// Preview result ID
PreviewId string `json:"preview_id"`
// Name of the asset to be sold, obtained from the interface GET /flash_swap/currency_pairs: Query the list of all trading pairs supporting flash swap
SellCurrency string `json:"sell_currency"`
// Amount to sell (based on the preview result)
SellAmount string `json:"sell_amount"`
// Name of the asset to be bought, obtained from the interface GET /flash_swap/currency_pairs: Query the list of all trading pairs supporting flash swap
BuyCurrency string `json:"buy_currency"`
// Amount to buy (based on the preview result)
BuyAmount string `json:"buy_amount"`
}