-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructs.go
68 lines (65 loc) · 2.24 KB
/
structs.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package main
//APIResponse does things
type APIResponse struct {
QuoteSummary struct {
Result []struct {
SummaryDetail struct {
PreviousClose struct {
Raw float64 `json:"raw"`
Fmt string `json:"fmt"`
} `json:"previousClose"`
DayLow struct {
Raw float64 `json:"raw"`
Fmt string `json:"fmt"`
} `json:"dayLow"`
DayHigh struct {
Raw float64 `json:"raw"`
Fmt string `json:"fmt"`
} `json:"dayHigh"`
Bid struct {
Raw float64 `json:"raw"`
Fmt string `json:"fmt"`
} `json:"bid"`
Ask struct {
Raw float64 `json:"raw"`
Fmt string `json:"fmt"`
} `json:"ask"`
Volume struct {
Raw int `json:"raw"`
Fmt string `json:"fmt"`
LongFmt string `json:"longFmt"`
} `json:"volume"`
Currency string `json:"currency"`
} `json:"summaryDetail"`
Price struct {
RegularMarketChangePercent struct {
Raw float64 `json:"raw"`
Fmt string `json:"fmt"`
} `json:"regularMarketChangePercent"`
RegularMarketChange struct {
Raw float64 `json:"raw"`
Fmt string `json:"fmt"`
} `json:"regularMarketChange"`
Exchange string `json:"exchange"`
ExchangeName string `json:"exchangeName"`
ExchangeDataDelayedBy int `json:"exchangeDataDelayedBy"`
MarketState string `json:"marketState"`
QuoteType string `json:"quoteType"`
Symbol string `json:"symbol"`
UnderlyingSymbol interface{} `json:"underlyingSymbol"`
ShortName string `json:"shortName"`
LongName string `json:"longName"`
Currency string `json:"currency"`
QuoteSourceName string `json:"quoteSourceName"`
CurrencySymbol string `json:"currencySymbol"`
FromCurrency interface{} `json:"fromCurrency"`
ToCurrency interface{} `json:"toCurrency"`
LastMarket interface{} `json:"lastMarket"`
} `json:"price"`
} `json:"result"`
Error struct {
Code string `json:"code"`
Description string `json:"description"`
} `json:"error"`
} `json:"quoteSummary"`
}