-
Notifications
You must be signed in to change notification settings - Fork 102
/
Copy pathmarketSummary.go
31 lines (28 loc) · 1.02 KB
/
marketSummary.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
package bittrex
import (
"github.com/shopspring/decimal"
"time"
)
type MarketSummary struct {
MarketName string `json:"MarketName"`
High decimal.Decimal `json:"High"`
Low decimal.Decimal `json:"Low"`
Ask decimal.Decimal `json:"Ask"`
Bid decimal.Decimal `json:"Bid"`
OpenBuyOrders int `json:"OpenBuyOrders"`
OpenSellOrders int `json:"OpenSellOrders"`
Volume decimal.Decimal `json:"Volume"`
Last decimal.Decimal `json:"Last"`
BaseVolume decimal.Decimal `json:"BaseVolume"`
PrevDay decimal.Decimal `json:"PrevDay"`
TimeStamp string `json:"TimeStamp"`
}
type MarketSummaryV3 struct {
Symbol string `json:"symbol"`
High decimal.Decimal `json:"high"`
Low decimal.Decimal `json:"low"`
Volume decimal.Decimal `json:"volume"`
QuoteVolume decimal.Decimal `json:"quoteVolume"`
PercentChange decimal.Decimal `json:"percentChange"`
UpdatedAt time.Time `json:"updatedAt"`
}