Code Monkey home page Code Monkey logo

eod-data's People

Contributors

lautaroparada avatar shijunjie07 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

eod-data's Issues

Async EOD client for historical data

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.

Unusual _ for 'from' parameter

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.

Intraday Commodities and Government Bonds returning empty list

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!

client.get_stock_options() only returns 1 entry per contract

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

requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://eodhistoricaldata.com/api/historical-market-cap/AAPL.US?fmt=json&api_token=APIKEY&from=2020-01-01

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.