Please note: before continuing to work with our APIs, make sure that you import and install all required libraries. More detailed information about the functions of the Symbol Change History API you can find on our documentation web-page.
Accessing the EODHD API
To access the EODHD API, we need to create an instance of the “APIClient” class and pass to it our API key. In this example, we will use the demo API key provided by EODHD, but in your real application, you should use your registered API key.
api = APIClient("demo")
Please, note that you can also specify the API key in a configuration file or as an environment variable, as described in the library documentation here.
1. Use the “demo” API key to test our data from a limited set of the tickers without registering:
AAPL.US | TSLA.US | VTI.US | AMZN.US | BTC-USD | EUR-USD
Real-Time Data and All of the APIs (except Bulk) are included without limitations on API calls.
2. Register to get your free API key (limitated by 20 API calls per day) with access to:
End-Of-Day Historical Data with only past year for any ticker and List of tickers per Exchange
3. To unlock your API key we recommend to choose subscription which covers your needs
Retrieving Symbol Change History
After we are with the API client, we can start checking the stock symbols change history.
resp = api.symbol_change_history()
The API response will be a single JSON structure.
Converting JSON Response to DataFrame
To convert JSON to DataFrame it is possible to use:
symbol = pd.DataFrame(resp)
All data in the DataFrame will contain information such as: “exchange”, “old symbol”, and “new symbol”.
Extended functions of Symbol Change History API
For a more accurate research, it is possible to use additional parameters of the Symbol Change History API.
symbol_extended = api.symbol_change_history(from_date = "2022-07-22", to_date = "2022-08-10")
The API response is a JSON array containing data for all the requested tickers. You can convert the resulting JSON array to a DataFrame for further analysis:
s_m = pd.DataFrame(symbol_extended)
For those seeking a more precise research, our Symbol Change History API offers additional parameters, allowing you to narrow down your search based on specific date ranges. This flexibility enhances your ability to analyze and interpret the evolving nature of stock symbols effectively.
In conclusion, our Symbol Change History API is your key to unlocking the historical record of stock symbol transitions. It empowers you to explore the evolution of companies, mergers, rebranding, and other transformative events within the financial markets. Whether you’re an investor, trader, or financial enthusiast, this API offers valuable insights into the ever-changing landscape of stocks. Happy exploring!