Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,18 @@ resp = client.get_search_instrument(query_string='crypto')
resp = client.get_search_instrument(query_string='Chile', bonds_only=1)
```

- **Symbol Change History**: With this API endpoint, you will get a symbol change history. The history starts from 2022-07-22 and is updated on daily basis. Only US exchanges are supported for the moment, other exchanges are coming.
- Parameters:
- ```from_```(str) and ```to```(str): Optional – the format is ‘YYYY-MM-DD’. If you need data from Jul 22, 2022, to Aug 10, 2022, you should use ```from_='2022-07-22'``` and ```to='2022-08-10'```.
- Usage:
```python
# Get symbol change history
resp = client.get_symbol_change_history()
# Get symbol change history from 2022-07-22
resp = client.get_symbol_change_history(from_='2022-07-22')
```


### Alternative Financial Data [:arrow_up:](#eod-historical-data-sdk)
- **Sentiment Financial Data**: Retrieve sentimental data calculated from the EOD historical data API. The aggregated sentiment data from the EOD historical API is collected from the news (and in the nearest future from tweets) for stocks, ETFs, Forex, and cryptocurrencies data. The data is aggregated by day.
- Paramaters:
Expand Down
6 changes: 4 additions & 2 deletions eod/exchanges/exchanges_stocks_financials.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
from eod.exchanges.trading_hours_market_holidays_api import MarketHoursHolidays
from eod.exchanges.search_instrument_api import SearchInstrument
from eod.exchanges.stock_market_screener_api import StockMarketScreener
from eod.exchanges.symbol_change_history_api import SymbolChangeHistory

class ExchangesAndMarkets(BulkMarketRequest, ExchangesAndTickers, MarketHoursHolidays,
SearchInstrument, StockMarketScreener):
SearchInstrument, StockMarketScreener, SymbolChangeHistory):
def __init__(self, api_key:str, timeout:int):
BulkMarketRequest.__init__(self, api_key, timeout)
ExchangesAndTickers.__init__(self, api_key, timeout)
MarketHoursHolidays.__init__(self, api_key, timeout)
SearchInstrument.__init__(self, api_key, timeout)
StockMarketScreener.__init__(self, api_key, timeout)
StockMarketScreener.__init__(self, api_key, timeout)
SymbolChangeHistory.__init__(self, api_key, timeout)
8 changes: 8 additions & 0 deletions eod/exchanges/symbol_change_history_api/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# -*- coding: utf-8 -*-
"""
Created on Fri Apr 12 08:52:56 2023

@author: donghwan0206
"""

from .symbol_change_history import SymbolChangeHistory
31 changes: 31 additions & 0 deletions eod/exchanges/symbol_change_history_api/symbol_change_history.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
"""
Created on Fri Apr 12 08:52:56 2023

@author: donghwan0206
"""

from eod.request_handler_class import RequestHandler

class SymbolChangeHistory(RequestHandler):
def __init__(self, api_key:str, timeout:int):
self.URL_SYMBOL_CHANGE_HISTORY = 'https://eodhistoricaldata.com/api/symbol-change-history/'
super().__init__(api_key, timeout)

def get_symbol_change_history(self, **query_params):
"""
Get symbol change history you should use the following URL (only US exchanges are supported nowe.

Parameters
----------
**query_params :
query_params.

Returns
-------
list
List of symbol change history data

"""
self.endpoint = self.URL_SYMBOL_CHANGE_HISTORY
return super().handle_request(self.endpoint, query_params)
3 changes: 2 additions & 1 deletion sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@
# Stock Market Screener API
resp = client.get_screener_signals()
resp = client.get_instrument_screener(signals='wallstreet_hi')

# Symbol Change History API
resp = client.get_symbol_change_history()

# Questions and changes

Expand Down