-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathmodel_flash_swap_order.go
32 lines (30 loc) · 1.03 KB
/
model_flash_swap_order.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
27
28
29
30
31
32
/*
* 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
// Flash swap order
type FlashSwapOrder struct {
// Flash swap order ID
Id int64 `json:"id,omitempty"`
// Creation time of order (in milliseconds)
CreateTime int64 `json:"create_time,omitempty"`
// User ID
UserId int64 `json:"user_id,omitempty"`
// Currency to sell
SellCurrency string `json:"sell_currency,omitempty"`
// Amount to sell
SellAmount string `json:"sell_amount,omitempty"`
// Currency to buy
BuyCurrency string `json:"buy_currency,omitempty"`
// Amount to buy
BuyAmount string `json:"buy_amount,omitempty"`
// Price
Price string `json:"price,omitempty"`
// Flash swap order status `1` - success `2` - failure
Status int32 `json:"status,omitempty"`
}