-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
37 lines (36 loc) · 1.32 KB
/
types.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
package main
type ChartData struct {
Chart struct {
Result []struct {
Meta struct {
Currency string `json:"currency"`
Symbol string `json:"symbol"`
ExchangeName string `json:"exchangeName"`
FullExchangeName string `json:"fullExchangeName"`
InstrumentType string `json:"instrumentType"`
RegularMarketPrice float64 `json:"regularMarketPrice"`
FiftyTwoWeekHigh float64 `json:"fiftyTwoWeekHigh"`
FiftyTwoWeekLow float64 `json:"fiftyTwoWeekLow"`
RegularMarketDayHigh float64 `json:"regularMarketDayHigh"`
RegularMarketDayLow float64 `json:"regularMarketDayLow"`
RegularMarketVolume int `json:"regularMarketVolume"`
LongName string `json:"longName"`
ShortName string `json:"shortName"`
ExchangeTimezoneName string `json:"exchangeTimezoneName"`
} `json:"meta"`
Timestamp []int64 `json:"timestamp"`
Indicators struct {
Quote []struct {
High []float64 `json:"high"`
Volume []int `json:"volume"`
Low []float64 `json:"low"`
Close []float64 `json:"close"`
Open []float64 `json:"open"`
} `json:"quote"`
AdjClose []struct {
AdjClose []float64 `json:"adjclose"`
} `json:"adjclose"`
} `json:"indicators"`
} `json:"result"`
} `json:"chart"`
}