-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
74 lines (67 loc) · 2.02 KB
/
Copy pathtypes.go
File metadata and controls
74 lines (67 loc) · 2.02 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
package marketstack
type Pagination struct {
Limit int `json:"limit"`
Offset int `json:"offset"`
Count int `json:"count"`
Total int `json:"total"`
}
type EODData struct {
Open float64 `json:"open"`
High float64 `json:"high"`
Low float64 `json:"low"`
Close float64 `json:"close"`
Volume float64 `json:"volume"`
AdjHigh float64 `json:"adj_high"`
AdjLow float64 `json:"adj_low"`
AdjClose float64 `json:"adj_close"`
AdjOpen float64 `json:"adj_open"`
AdjVolume float64 `json:"adj_volume"`
SplitFactor float64 `json:"split_factor"`
Dividend float64 `json:"dividend"`
Symbol string `json:"symbol"`
Exchange string `json:"exchange"`
Date string `json:"date"`
}
type IntradayData struct {
Open float64 `json:"open"`
High float64 `json:"high"`
Low float64 `json:"low"`
Last float64 `json:"last"`
Close float64 `json:"close"`
Volume float64 `json:"volume"`
Symbol string `json:"symbol"`
Exchange string `json:"exchange"`
Date string `json:"date"`
}
type StockExchange struct {
Name string `json:"name"`
Acronym string `json:"acronym"`
MIC string `json:"mic"`
Country string `json:"country"`
CountryCode string `json:"country_code"`
City string `json:"city"`
Website string `json:"website"`
Timezone struct {
Timezone string `json:"timezone"`
Abbr string `json:"abbr"`
AbbrDST string `json:"abbr_dst"`
} `json:"timezone,omitempty"`
}
type Ticker struct {
Name string `json:"name"`
Symbol string `json:"symbol"`
HasIntraday bool `json:"has_intraday"`
HasEOD bool `json:"has_eod"`
Country string `json:"country"`
StockExchange *StockExchange `json:"stock_exchange"`
}
type Currency struct {
Code string `json:"code"`
Symbol string `json:"symbol"`
Name string `json:"name"`
}
type Timezone struct {
Timezone string `json:"timezone"`
Abbr string `json:"abbr"`
AbbrDST string `json:"abbr_dst"`
}