Retrieve statistics about each ticker’s historical data. This is especially useful to understand why certain tickers might fluctuate more than others as it could be due to local regulations or the currency the instrument is denoted in. It returns:

  • Currency: The currency the instrument is denoted in.
  • Symbol: The symbol of the instrument.
  • Exchange Name: The name of the exchange the instrument is listed on.
  • Instrument Type: The type of instrument.
  • First Trade Date: The date the instrument was first traded.
  • Regular Market Time: The time the instrument is traded.
  • GMT Offset: The GMT offset.
  • Timezone: The timezone the instrument is traded in.
  • Exchange Timezone Name: The name of the timezone the instrument is traded in.

Also known as: key statistics over time, historical key metrics.

Returns: pd.DataFrame: A DataFrame containing the statistics for each ticker.

Historical Statistics in Python

get_historical_statistics is part of the Toolkit module of the open-source Finance Toolkit. Install it with:

pip install financetoolkit -U

Then call get_historical_statistics as shown below.

from financetoolkit import Toolkit

companies = Toolkit(["AMZN", "^HSI", "IWDA.AS", "0P0000Z8RO.T"])

companies.get_historical_statistics()

Which returns:

  AMZN ^HSI IWDA.AS 0P0000Z8RO.T
Currency USD HKD EUR JPY
Symbol AMZN ^HSI IWDA.AS 0P0000Z8RO.T
Exchange Name NMS HKG AMS JPX
Instrument Type EQUITY INDEX ETF MUTUALFUND
First Trade Date 1997-05-15 1986-12-31 2009-09-25 2018-01-04
Regular Market Time 2023-09-22 2023-09-22 2023-09-22 2023-09-21
GMT Offset -14400 28800 7200 32400
Timezone EDT HKT CEST JST
Exchange Timezone Name America/New_York Asia/Hong_Kong Europe/Amsterdam Asia/Tokyo
Share