-
Notifications
You must be signed in to change notification settings - Fork 39
/
model_currency_pair.go
40 lines (38 loc) · 1.63 KB
/
model_currency_pair.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
33
34
35
36
37
38
39
40
/*
* 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: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package gateapi
// Spot currency pair
type CurrencyPair struct {
// Currency pair
Id string `json:"id,omitempty"`
// Base currency
Base string `json:"base,omitempty"`
// Quote currency
Quote string `json:"quote,omitempty"`
// Trading fee
Fee string `json:"fee,omitempty"`
// Minimum amount of base currency to trade, `null` means no limit
MinBaseAmount string `json:"min_base_amount,omitempty"`
// Minimum amount of quote currency to trade, `null` means no limit
MinQuoteAmount string `json:"min_quote_amount,omitempty"`
// Maximum amount of base currency to trade, `null` means no limit
MaxBaseAmount string `json:"max_base_amount,omitempty"`
// Maximum amount of quote currency to trade, `null` means no limit
MaxQuoteAmount string `json:"max_quote_amount,omitempty"`
// Amount scale
AmountPrecision int32 `json:"amount_precision,omitempty"`
// Price scale
Precision int32 `json:"precision,omitempty"`
// How currency pair can be traded - untradable: cannot be bought or sold - buyable: can be bought - sellable: can be sold - tradable: can be bought or sold
TradeStatus string `json:"trade_status,omitempty"`
// Sell start unix timestamp in seconds
SellStart int64 `json:"sell_start,omitempty"`
// Buy start unix timestamp in seconds
BuyStart int64 `json:"buy_start,omitempty"`
}