lautaroparada / eod-data Goto Github PK
View Code? Open in Web Editor NEWSDK for the EOD Historical data API
License: Apache License 2.0
SDK for the EOD Historical data API
License: Apache License 2.0
Hi there. Nice simple implementation of the EOD API. I'm using it for historical data currently.
Any thoughts or plans for doing an async version of the Python client?
The question if so is whether to set up a separate async class you can import (probably the cleanest) or try to integrate into one class and detect if it is working in async or blocking mode (probably the cleverest).
If you are thinking of bringing this into scope, I'm happy to contribute.
@LautaroParada - are you associated with the company EOD? I'm wondering if this could become the official supported version of the Python API.
Hey there,
Is there any implementation of this method which accepts a date-range rather than a particular day or is it required to do a loop to get multiple tickers/dates then merge the dataframe?
Hello, you use 'from_' in your documentation for some functions, but I believe it should be 'from':
resp = client.get_prices_eod('AAL.LSE', period='d', order='a', from_='2017-01-05')
Not only this one, there are more of them. Thank you.
Hello, I am trying to get intraday data for both the commodities and government bonds exchange. I am pulling from Jan 1, 2020 to Jan 1, 2022. However, the request is returning an empty list. For reference, I am using symbols including CL.COMM
and US3Y.GBOND
Thanks!
Is it possible to request only a part of the response dict?
With requests I can write requests.get(f'https://eodhistoricaldata.com/api/fundamentals/{ticker}.us?api_token={eod_api}&filter={eod_filter}')
with eod_filter = 'General::Code,Name,Description'
to get only a part of the response.
It would be nice to have this possibility with client.get_search_instrument()
too.
Hi, EODHD has an endpoint for bulk fundamental data. Can you please add support for this endpoint?
TA example returns error:
example: client.get_instrument_ta('AAPL', function='sar', from_='2020-03-01', to='2021-06-30', period=50, filter_='last_sar')
error result: Forbidden. Please contact [email protected]
Hi @LautaroParada, great implementation of the EOD API.
I implemented the User API (https://eodhistoricaldata.com/financial-apis/user-api/).
Is it okay if I create a PR?
I am trying to get Apple options from the last 2 years, but using client.get_stock_options('AAPL.US', from_=(datetime.now() - timedelta(days=730)).strftime("%Y-%m-%d"), to=datetime.now().strftime("%Y-%m-%d"))
returns 1 entry per contract
from eod import EodHistoricalData
# create the instance of the SDK
api_key = 'MY API KEY'
client = EodHistoricalData(api_key)
resp = client.get_market_cap(symbol='AAPL.US', from_='2020-01-01')
returns the error:
Traceback (most recent call last):
File "/opt/anaconda3/envs/forecasting/lib/python3.10/code.py", line 90, in runcode
exec(code, self.locals)
File "<input>", line 1, in <module>
File "/opt/anaconda3/envs/forecasting/lib/python3.10/site-packages/eod/fundamental_economic_data/historical_market_capitalization_api/market_capitalization.py", line 34, in get_market_cap
return super().handle_request(self.endpoint, query_params)
File "/opt/anaconda3/envs/forecasting/lib/python3.10/site-packages/eod/request_handler_class/request_handler.py", line 40, in handle_request
self.resp.raise_for_status()
File "/opt/anaconda3/envs/forecasting/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://eodhistoricaldata.com/api/historical-market-cap/AAPL.US?fmt=json&api_token=(MYAPIKEYTHATIMHIDING)&from=2020-01-01
any idea why?
Edit: It seems to have used all 20 of my requests, but I only ran it once. does the internals run a series of queries?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.