-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathmodel_currency_pair.go
More file actions
52 lines (50 loc) · 2.14 KB
/
model_currency_pair.go
File metadata and controls
52 lines (50 loc) · 2.14 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* 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
// Spot currency pair
type CurrencyPair struct {
// Currency pair
Id string `json:"id,omitempty"`
// Base currency
Base string `json:"base,omitempty"`
// Base currency name
BaseName string `json:"base_name,omitempty"`
// Quote currency
Quote string `json:"quote,omitempty"`
// Quote currency name
QuoteName string `json:"quote_name,omitempty"`
// Trading fee rate
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"`
// Trading status - untradable: cannot be traded - buyable: can be bought - sellable: can be sold - tradable: can be bought and 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"`
// Expected time to remove the shelves, Unix timestamp in seconds
DelistingTime int64 `json:"delisting_time,omitempty"`
// Trading pair type, normal: normal, premarket: pre-market
Type string `json:"type,omitempty"`
// Transaction link
TradeUrl string `json:"trade_url,omitempty"`
// Whether the trading pair is in ST risk assessment, false - No, true - Yes
StTag bool `json:"st_tag,omitempty"`
}