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