eodhd 0.19.7 → 0.19.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG +18 -0
- data/Gemfile +1 -1
- data/LICENSE +21 -0
- data/README.md +4 -8
- data/eodhd.gemspec +5 -3
- data/lib/Eodhd/VERSION.rb +1 -1
- data/lib/eodhd.rb +1 -1
- data/test/{Eodhd_test.rb → eodhd_test.rb} +2 -2
- data/test/fixtures/vcr_cassettes/client_eod_bulk_last_day.yml +51 -0
- data/test/fixtures/vcr_cassettes/client_eod_bulk_last_day_401_error.yml +43 -0
- data/test/fixtures/vcr_cassettes/client_eod_data.yml +51 -0
- data/test/fixtures/vcr_cassettes/client_eod_data_401_error.yml +43 -0
- data/test/fixtures/vcr_cassettes/client_exchange_symbol_list.yml +2774 -0
- data/test/fixtures/vcr_cassettes/client_exchange_symbol_list_401_error.yml +43 -0
- data/test/fixtures/vcr_cassettes/client_exchanges_list.yml +97 -0
- data/test/fixtures/vcr_cassettes/client_exchanges_list_401_error.yml +43 -0
- data/test/fixtures/vcr_cassettes/client_fundamentals.yml +153 -0
- data/test/fixtures/vcr_cassettes/client_fundamentals_401_error.yml +43 -0
- data/test/fixtures/vcr_cassettes/client_fundamentals_filtered.yml +91 -0
- data/test/fixtures/vcr_cassettes/client_intraday.yml +6492 -0
- data/test/fixtures/vcr_cassettes/client_intraday_401_error.yml +43 -0
- data/test/fixtures/vcr_cassettes/eodhd_eod_bulk_last_day.yml +51 -0
- data/test/fixtures/vcr_cassettes/eodhd_eod_data.yml +51 -0
- data/test/fixtures/vcr_cassettes/eodhd_exchange_symbols.yml +2931 -0
- data/test/fixtures/vcr_cassettes/eodhd_exchanges.yml +123 -0
- data/test/fixtures/vcr_cassettes/eodhd_fundamentals.yml +153 -0
- data/test/fixtures/vcr_cassettes/eodhd_intraday.yml +6492 -0
- data/test/fixtures/vcr_cassettes/fundamentals_aapl.yml +153 -0
- data/test/fixtures/vcr_cassettes/fundamentals_cba_au.yml +99 -0
- data/test/gemspec_test.rb +1 -1
- data/test/helper.rb +1 -1
- metadata +39 -3
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://eodhd.com/api/exchanges-list?api_token=<API_TOKEN>&fmt=json
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Accept-Encoding:
|
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
12
|
+
Accept:
|
|
13
|
+
- "*/*"
|
|
14
|
+
User-Agent:
|
|
15
|
+
- Ruby
|
|
16
|
+
response:
|
|
17
|
+
status:
|
|
18
|
+
code: 200
|
|
19
|
+
message: OK
|
|
20
|
+
headers:
|
|
21
|
+
Server:
|
|
22
|
+
- nginx/1.19.10
|
|
23
|
+
Content-Type:
|
|
24
|
+
- application/json
|
|
25
|
+
Transfer-Encoding:
|
|
26
|
+
- chunked
|
|
27
|
+
Connection:
|
|
28
|
+
- keep-alive
|
|
29
|
+
Vary:
|
|
30
|
+
- Accept-Encoding
|
|
31
|
+
Cache-Control:
|
|
32
|
+
- no-cache, private
|
|
33
|
+
Date:
|
|
34
|
+
- Sun, 05 Oct 2025 08:27:15 GMT
|
|
35
|
+
X-Ratelimit-Limit:
|
|
36
|
+
- '1400'
|
|
37
|
+
X-Ratelimit-Remaining:
|
|
38
|
+
- '1398'
|
|
39
|
+
Access-Control-Allow-Origin:
|
|
40
|
+
- "*"
|
|
41
|
+
Access-Control-Allow-Credentials:
|
|
42
|
+
- 'true'
|
|
43
|
+
Access-Control-Allow-Methods:
|
|
44
|
+
- GET, POST, PUT, DELETE, OPTIONS
|
|
45
|
+
Access-Control-Allow-Headers:
|
|
46
|
+
- Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With
|
|
47
|
+
body:
|
|
48
|
+
encoding: ASCII-8BIT
|
|
49
|
+
string: '[{"Name":"USA Stocks","Code":"US","OperatingMIC":"XNAS, XNYS, OTCM","Country":"USA","Currency":"USD","CountryISO2":"US","CountryISO3":"USA"},{"Name":"London
|
|
50
|
+
Exchange","Code":"LSE","OperatingMIC":"XLON","Country":"UK","Currency":"GBP","CountryISO2":"GB","CountryISO3":"GBR"},{"Name":"Toronto
|
|
51
|
+
Exchange","Code":"TO","OperatingMIC":"XTSE","Country":"Canada","Currency":"CAD","CountryISO2":"CA","CountryISO3":"CAN"},{"Name":"NEO
|
|
52
|
+
Exchange","Code":"NEO","OperatingMIC":"NEOE","Country":"Canada","Currency":"CAD","CountryISO2":"CA","CountryISO3":"CAN"},{"Name":"TSX
|
|
53
|
+
Venture Exchange","Code":"V","OperatingMIC":"XTSX","Country":"Canada","Currency":"CAD","CountryISO2":"CA","CountryISO3":"CAN"},{"Name":"Berlin
|
|
54
|
+
Exchange","Code":"BE","OperatingMIC":"XBER","Country":"Germany","Currency":"EUR","CountryISO2":"DE","CountryISO3":"DEU"},{"Name":"Hamburg
|
|
55
|
+
Exchange","Code":"HM","OperatingMIC":"XHAM","Country":"Germany","Currency":"EUR","CountryISO2":"DE","CountryISO3":"DEU"},{"Name":"XETRA
|
|
56
|
+
Stock Exchange","Code":"XETRA","OperatingMIC":"XETR","Country":"Germany","Currency":"EUR","CountryISO2":"DE","CountryISO3":"DEU"},{"Name":"Dusseldorf
|
|
57
|
+
Exchange","Code":"DU","OperatingMIC":"XDUS","Country":"Germany","Currency":"EUR","CountryISO2":"DE","CountryISO3":"DEU"},{"Name":"Hanover
|
|
58
|
+
Exchange","Code":"HA","OperatingMIC":"XHAN","Country":"Germany","Currency":"EUR","CountryISO2":"DE","CountryISO3":"DEU"},{"Name":"Munich
|
|
59
|
+
Exchange","Code":"MU","OperatingMIC":"XMUN","Country":"Germany","Currency":"EUR","CountryISO2":"DE","CountryISO3":"DEU"},{"Name":"Stuttgart
|
|
60
|
+
Exchange","Code":"STU","OperatingMIC":"XSTU","Country":"Germany","Currency":"EUR","CountryISO2":"DE","CountryISO3":"DEU"},{"Name":"Frankfurt
|
|
61
|
+
Exchange","Code":"F","OperatingMIC":"XFRA","Country":"Germany","Currency":"EUR","CountryISO2":"DE","CountryISO3":"DEU"},{"Name":"Luxembourg
|
|
62
|
+
Stock Exchange","Code":"LU","OperatingMIC":"XLUX","Country":"Luxembourg","Currency":"EUR","CountryISO2":"LU","CountryISO3":"LUX"},{"Name":"Vienna
|
|
63
|
+
Exchange","Code":"VI","OperatingMIC":"XWBO","Country":"Austria","Currency":"EUR","CountryISO2":"AT","CountryISO3":"AUT"},{"Name":"Euronext
|
|
64
|
+
Paris","Code":"PA","OperatingMIC":"XPAR","Country":"France","Currency":"EUR","CountryISO2":"FR","CountryISO3":"FRA"},{"Name":"Euronext
|
|
65
|
+
Brussels","Code":"BR","OperatingMIC":"XBRU","Country":"Belgium","Currency":"EUR","CountryISO2":"BE","CountryISO3":"BEL"},{"Name":"Madrid
|
|
66
|
+
Exchange","Code":"MC","OperatingMIC":"BMEX","Country":"Spain","Currency":"EUR","CountryISO2":"ES","CountryISO3":"ESP"},{"Name":"SIX
|
|
67
|
+
Swiss Exchange","Code":"SW","OperatingMIC":"XSWX","Country":"Switzerland","Currency":"CHF","CountryISO2":"CH","CountryISO3":"CHE"},{"Name":"Euronext
|
|
68
|
+
Lisbon","Code":"LS","OperatingMIC":"XLIS","Country":"Portugal","Currency":"EUR","CountryISO2":"PT","CountryISO3":"PRT"},{"Name":"Euronext
|
|
69
|
+
Amsterdam","Code":"AS","OperatingMIC":"XAMS","Country":"Netherlands","Currency":"EUR","CountryISO2":"NL","CountryISO3":"NLD"},{"Name":"Iceland
|
|
70
|
+
Exchange","Code":"IC","OperatingMIC":"XICE","Country":"Iceland","Currency":"ISK","CountryISO2":"IS","CountryISO3":"ISL"},{"Name":"Irish
|
|
71
|
+
Exchange","Code":"IR","OperatingMIC":"XDUB","Country":"Ireland","Currency":"EUR","CountryISO2":"IE","CountryISO3":"IRL"},{"Name":"Helsinki
|
|
72
|
+
Exchange","Code":"HE","OperatingMIC":"XHEL","Country":"Finland","Currency":"EUR","CountryISO2":"FI","CountryISO3":"FIN"},{"Name":"Oslo
|
|
73
|
+
Stock Exchange","Code":"OL","OperatingMIC":"XOSL","Country":"Norway","Currency":"NOK","CountryISO2":"NO","CountryISO3":"NOR"},{"Name":"Copenhagen
|
|
74
|
+
Exchange","Code":"CO","OperatingMIC":"XCSE","Country":"Denmark","Currency":"DKK","CountryISO2":"DK","CountryISO3":"DNK"},{"Name":"Stockholm
|
|
75
|
+
Exchange","Code":"ST","OperatingMIC":"XSTO","Country":"Sweden","Currency":"SEK","CountryISO2":"SE","CountryISO3":"SWE"},{"Name":"Victoria
|
|
76
|
+
Falls Stock Exchange","Code":"VFEX","OperatingMIC":"VFEX","Country":"Zimbabwe","Currency":"ZWL","CountryISO2":"ZW","CountryISO3":"ZWE"},{"Name":"Zimbabwe
|
|
77
|
+
Stock Exchange","Code":"XZIM","OperatingMIC":"XZIM","Country":"Zimbabwe","Currency":"ZWL","CountryISO2":"ZW","CountryISO3":"ZWE"},{"Name":"Lusaka
|
|
78
|
+
Stock Exchange","Code":"LUSE","OperatingMIC":"XLUS","Country":"Zambia","Currency":"ZMW","CountryISO2":"ZM","CountryISO3":"ZMB"},{"Name":"Uganda
|
|
79
|
+
Securities Exchange","Code":"USE","OperatingMIC":"XUGA","Country":"Uganda","Currency":"UGX","CountryISO2":"UG","CountryISO3":"UGA"},{"Name":"Dar
|
|
80
|
+
es Salaam Stock Exchange","Code":"DSE","OperatingMIC":"XDAR","Country":"Tanzania","Currency":"TZS","CountryISO2":"TZ","CountryISO3":"TZA"},{"Name":"Rwanda
|
|
81
|
+
Stock Exchange","Code":"RSE","OperatingMIC":"RSEX","Country":"Rwanda","Currency":"RWF
|
|
82
|
+
","CountryISO2":"RW","CountryISO3":"RWA"},{"Name":"Prague Stock Exchange","Code":"PR","OperatingMIC":"XPRA","Country":"Czech
|
|
83
|
+
Republic","Currency":"CZK","CountryISO2":"CZ","CountryISO3":"CZE"},{"Name":"Botswana
|
|
84
|
+
Stock Exchange","Code":"XBOT","OperatingMIC":"XBOT","Country":"Botswana","Currency":"BWP","CountryISO2":"BW","CountryISO3":"BWA"},{"Name":"Nigerian
|
|
85
|
+
Stock Exchange","Code":"XNSA","OperatingMIC":"XNSA","Country":"Nigeria","Currency":"NGN","CountryISO2":"NG","CountryISO3":"NGA"},{"Name":"Egyptian
|
|
86
|
+
Exchange","Code":"EGX","OperatingMIC":"NILX","Country":"Egypt","Currency":"EGP","CountryISO2":"EG","CountryISO3":"EGY"},{"Name":"Malawi
|
|
87
|
+
Stock Exchange","Code":"MSE","OperatingMIC":"XMSW","Country":"Malawi","Currency":"MWK","CountryISO2":"MW","CountryISO3":"MWI"},{"Name":"Ghana
|
|
88
|
+
Stock Exchange","Code":"GSE","OperatingMIC":"XGHA","Country":"Ghana","Currency":"GHS","CountryISO2":"GH","CountryISO3":"GHA"},{"Name":"Nairobi
|
|
89
|
+
Securities Exchange","Code":"XNAI","OperatingMIC":"XNAI","Country":"Kenya","Currency":"KES","CountryISO2":"KE","CountryISO3":"KEN"},{"Name":"Casablanca
|
|
90
|
+
Stock Exchange","Code":"BC","OperatingMIC":"XCAS","Country":"Morocco","Currency":"MAD","CountryISO2":"MA","CountryISO3":"MAR"},{"Name":"Stock
|
|
91
|
+
Exchange of Mauritius","Code":"SEM","OperatingMIC":"XMAU","Country":"Mauritius","Currency":"MUR","CountryISO2":"MU","CountryISO3":"MUS"},{"Name":"Tel
|
|
92
|
+
Aviv Stock Exchange","Code":"TA","OperatingMIC":"XTAE","Country":"Israel","Currency":"ILS","CountryISO2":"IL","CountryISO3":"ISR"},{"Name":"Korea
|
|
93
|
+
Stock Exchange","Code":"KO","OperatingMIC":"XKRX","Country":"Korea","Currency":"KRW","CountryISO2":"KR","CountryISO3":"KOR"},{"Name":"KOSDAQ","Code":"KQ","OperatingMIC":"XKOS","Country":"Korea","Currency":"KRW","CountryISO2":"KR","CountryISO3":"KOR"},{"Name":"Budapest
|
|
94
|
+
Stock Exchange","Code":"BUD","OperatingMIC":"XBUD","Country":"Hungary","Currency":"HUF","CountryISO2":"HU","CountryISO3":"HUN"},{"Name":"Warsaw
|
|
95
|
+
Stock Exchange","Code":"WAR","OperatingMIC":"XWAR","Country":"Poland","Currency":"PLN","CountryISO2":"PL","CountryISO3":"POL"},{"Name":"Philippine
|
|
96
|
+
Stock Exchange","Code":"PSE","OperatingMIC":"XPHS","Country":"Philippines","Currency":"PHP","CountryISO2":"PH","CountryISO3":"PHL"},{"Name":"Shanghai
|
|
97
|
+
Stock Exchange","Code":"SHG","OperatingMIC":"XSHG","Country":"China","Currency":"CNY","CountryISO2":"CN","CountryISO3":"CHN"},{"Name":"Jakarta
|
|
98
|
+
Exchange","Code":"JK","OperatingMIC":"XIDX","Country":"Indonesia","Currency":"IDR","CountryISO2":"ID","CountryISO3":"IDN"},{"Name":"National
|
|
99
|
+
Stock Exchange of India","Code":"NSE","OperatingMIC":"XNSE","Country":"India","Currency":"INR","CountryISO2":"IN","CountryISO3":"IND"},{"Name":"Athens
|
|
100
|
+
Exchange","Code":"AT","OperatingMIC":"ASEX","Country":"Greece","Currency":"EUR","CountryISO2":"GR","CountryISO3":"GRC"},{"Name":"Shenzhen
|
|
101
|
+
Stock Exchange","Code":"SHE","OperatingMIC":"XSHE","Country":"China","Currency":"CNY","CountryISO2":"CN","CountryISO3":"CHN"},{"Name":"Australian
|
|
102
|
+
Securities Exchange","Code":"AU","OperatingMIC":"XASX","Country":"Australia","Currency":"AUD","CountryISO2":"AU","CountryISO3":"AUS"},{"Name":"Chilean
|
|
103
|
+
Stock Exchange","Code":"SN","OperatingMIC":"XSGO","Country":"Chile","Currency":"CLP","CountryISO2":"CL","CountryISO3":"CHL"},{"Name":"Johannesburg
|
|
104
|
+
Exchange","Code":"JSE","OperatingMIC":"XJSE","Country":"South Africa","Currency":"ZAR","CountryISO2":"ZA","CountryISO3":"ZAF"},{"Name":"Karachi
|
|
105
|
+
Stock Exchange","Code":"KAR","OperatingMIC":"XKAR","Country":"Pakistan","Currency":"PKR","CountryISO2":"PK","CountryISO3":"PAK"},{"Name":"Thailand
|
|
106
|
+
Exchange","Code":"BK","OperatingMIC":"XBKK","Country":"Thailand","Currency":"THB","CountryISO2":"TH","CountryISO3":"THA"},{"Name":"Colombo
|
|
107
|
+
Stock Exchange","Code":"CM","OperatingMIC":"XCOL","Country":"Sri Lanka","Currency":"LKR","CountryISO2":"LK","CountryISO3":"LKA"},{"Name":"Vietnam
|
|
108
|
+
Stocks","Code":"VN","OperatingMIC":"HSTC","Country":"Vietnam","Currency":"VND","CountryISO2":"VN","CountryISO3":"VNM"},{"Name":"Kuala
|
|
109
|
+
Lumpur Exchange","Code":"KLSE","OperatingMIC":"XKLS","Country":"Malaysia","Currency":"MYR","CountryISO2":"MY","CountryISO3":"MYS"},{"Name":"Bucharest
|
|
110
|
+
Stock Exchange","Code":"RO","OperatingMIC":"XBSE","Country":"Romania","Currency":"RON","CountryISO2":"RO","CountryISO3":"ROU"},{"Name":"Buenos
|
|
111
|
+
Aires Exchange","Code":"BA","OperatingMIC":"XBUE","Country":"Argentina","Currency":"ARS","CountryISO2":"AR","CountryISO3":"ARG"},{"Name":"Sao
|
|
112
|
+
Paulo Exchange","Code":"SA","OperatingMIC":"BVMF","Country":"Brazil","Currency":"BRL","CountryISO2":"BR","CountryISO3":"BRA"},{"Name":"Mexican
|
|
113
|
+
Exchange","Code":"MX","OperatingMIC":"XMEX","Country":"Mexico","Currency":"MXN","CountryISO2":"MX","CountryISO3":"MEX"},{"Name":"London
|
|
114
|
+
IL","Code":"IL","OperatingMIC":"XLON","Country":"UK","Currency":"USD","CountryISO2":"GB","CountryISO3":"GBR"},{"Name":"Zagreb
|
|
115
|
+
Stock Exchange","Code":"ZSE","OperatingMIC":"XZAG","Country":"Croatia","Currency":"EUR","CountryISO2":"HR","CountryISO3":"HRV"},{"Name":"Taiwan
|
|
116
|
+
Stock Exchange","Code":"TW","OperatingMIC":"XTAI","Country":"Taiwan","Currency":"TWD","CountryISO2":"TW","CountryISO3":"TWN"},{"Name":"Taiwan
|
|
117
|
+
OTC Exchange","Code":"TWO","OperatingMIC":"ROCO","Country":"Taiwan","Currency":"TWD","CountryISO2":"TW","CountryISO3":"TWN"},{"Name":"Bolsa
|
|
118
|
+
de Valores de Lima","Code":"LIM","OperatingMIC":"XLIM","Country":"Peru","Currency":"PEN","CountryISO2":"PE","CountryISO3":"PER"},{"Name":"Government
|
|
119
|
+
Bonds","Code":"GBOND","OperatingMIC":null,"Country":"Unknown","Currency":"Unknown","CountryISO2":"","CountryISO3":""},{"Name":"Money
|
|
120
|
+
Market Virtual Exchange","Code":"MONEY","OperatingMIC":null,"Country":"Unknown","Currency":"Unknown","CountryISO2":"","CountryISO3":""},{"Name":"Europe
|
|
121
|
+
Fund Virtual Exchange","Code":"EUFUND","OperatingMIC":null,"Country":"Unknown","Currency":"EUR","CountryISO2":"","CountryISO3":""},{"Name":"Cryptocurrencies","Code":"CC","OperatingMIC":"CRYP","Country":"Unknown","Currency":"USD","CountryISO2":"","CountryISO3":""},{"Name":"FOREX","Code":"FOREX","OperatingMIC":"CDSL","Country":"Unknown","Currency":"Unknown","CountryISO2":"","CountryISO3":""}]'
|
|
122
|
+
recorded_at: Sun, 05 Oct 2025 08:27:15 GMT
|
|
123
|
+
recorded_with: VCR 6.3.1
|