forked from toorop/go-bittrex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
market.go
34 lines (30 loc) · 1.16 KB
/
market.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
package bittrex
import (
"github.com/shopspring/decimal"
"time"
)
type Market struct {
MarketCurrency string `json:"MarketCurrency"`
BaseCurrency string `json:"BaseCurrency"`
MarketCurrencyLong string `json:"MarketCurrencyLong"`
BaseCurrencyLong string `json:"BaseCurrencyLong"`
MinTradeSize decimal.Decimal `json:"MinTradeSize"`
MarketName string `json:"MarketName"`
IsActive bool `json:"IsActive"`
IsRestricted bool `json:"IsRestricted"`
Notice string `json:"Notice"`
IsSponsored bool `json:"IsSponsored"`
LogoUrl string `json:"LogoUrl"`
Created string `json:"Created"`
}
type MarketV3 struct {
Symbol string `json:"symbol"`
BaseCurrencySymbol string `json:"baseCurrencySymbol"`
QuoteCurrencySymbol string `json:"quoteCurrencySymbol"`
MinTradeSize decimal.Decimal `json:"minTradeSize"`
Precision int32 `json:"precision"`
Status string `json:"status"`
CreatedAt time.Time `json:"createdAt"`
Notice string `json:"notice"`
ProhibitedIn []string `json:"prohibitedIn"`
}