From 84b182f96fa1b7f22a18c66e6499c426a3334cf7 Mon Sep 17 00:00:00 2001 From: Evgen Date: Thu, 26 Sep 2024 21:41:11 +0700 Subject: [PATCH] extra slashes in the endpoint names have been removed --- eodhd/APIs/FundamentalDataAPI.py | 2 +- eodhd/APIs/HistoricalDividendsAPI.py | 2 +- eodhd/APIs/HistoricalSplitsAPI.py | 2 +- eodhd/APIs/LiveStockPricesAPI.py | 2 +- eodhd/__init__.py | 2 +- setup.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/eodhd/APIs/FundamentalDataAPI.py b/eodhd/APIs/FundamentalDataAPI.py index 4941754..9843510 100644 --- a/eodhd/APIs/FundamentalDataAPI.py +++ b/eodhd/APIs/FundamentalDataAPI.py @@ -4,7 +4,7 @@ class FundamentalDataAPI(BaseAPI): def get_fundamentals_data(self, api_token: str, ticker: str): - endpoint = 'fundamentals/' + endpoint = 'fundamentals' if ticker.strip() == "" or ticker is None: raise ValueError("Ticker is empty. You need to add ticker to args") diff --git a/eodhd/APIs/HistoricalDividendsAPI.py b/eodhd/APIs/HistoricalDividendsAPI.py index 3ec4188..ab7b6c8 100644 --- a/eodhd/APIs/HistoricalDividendsAPI.py +++ b/eodhd/APIs/HistoricalDividendsAPI.py @@ -4,7 +4,7 @@ class HistoricalDividendsAPI(BaseAPI): def get_historical_dividends_data(self, api_token: str, ticker: str, date_from: str = None, date_to: str = None): - endpoint = 'div/' + endpoint = 'div' if ticker.strip() == "" or ticker is None: raise ValueError("Ticker is empty. You need to add ticker to args") diff --git a/eodhd/APIs/HistoricalSplitsAPI.py b/eodhd/APIs/HistoricalSplitsAPI.py index cf4b4c1..bbc15c7 100644 --- a/eodhd/APIs/HistoricalSplitsAPI.py +++ b/eodhd/APIs/HistoricalSplitsAPI.py @@ -4,7 +4,7 @@ class HistoricalSplitsAPI(BaseAPI): def get_historical_splits_data(self, api_token: str, ticker: str, date_from: str = None, date_to: str = None): - endpoint = 'splits/' + endpoint = 'splits' if ticker.strip() == "" or ticker is None: raise ValueError("Ticker is empty. You need to add ticker to args") diff --git a/eodhd/APIs/LiveStockPricesAPI.py b/eodhd/APIs/LiveStockPricesAPI.py index 8c46221..f619dbf 100644 --- a/eodhd/APIs/LiveStockPricesAPI.py +++ b/eodhd/APIs/LiveStockPricesAPI.py @@ -4,7 +4,7 @@ class LiveStockPricesAPI(BaseAPI): def get_live_stock_prices(self, api_token: str, ticker: str, s:str): - endpoint = 'real-time/' + endpoint = 'real-time' query_string = '' if ticker.strip() == "" or ticker is None: diff --git a/eodhd/__init__.py b/eodhd/__init__.py index 2200773..3fa402e 100644 --- a/eodhd/__init__.py +++ b/eodhd/__init__.py @@ -8,4 +8,4 @@ # Version of eodhd package -__version__ = "1.0.30" +__version__ = "1.0.31" diff --git a/setup.py b/setup.py index 9b05fee..e470ec0 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ # This call to setup() does all the work setup( name="eodhd", - version="1.0.30", + version="1.0.31", description="Official EODHD API Python Library", long_description=long_description, long_description_content_type="text/markdown",