finagg.indices package
Submodules
finagg.indices.api module
Indices API (symbols in popular indices).
- class finagg.indices.api.API[source]
Bases:
ABC
Abstract indices API.
- class finagg.indices.api.DJIA[source]
Bases:
API
Get data on all companies within the DJIA.
The module variable
finagg.indices.api.djia
is an instance of this API implementation and is the most popular interface for querying this API.- classmethod get(*, user_agent: None | str = None) DataFrame [source]
Get a dataframe containing data on the tickers in the DJIA.
Examples
>>> finagg.indices.api.djia.get().head(5) company exchange ticker industry added weight 0 3M NYSE MMM Conglomerate 1976-08-09 0.0241 1 American Express NYSE AXP Financial services 1982-08-30 0.0302 2 Amgen NASDAQ AMGN Biopharmaceutical 2020-08-31 0.0548 3 Apple NASDAQ AAPL Information technology 2015-03-19 0.0284 4 Boeing NYSE BA Aerospace and defense 1987-03-12 0.0336
- class finagg.indices.api.Nasdaq100[source]
Bases:
API
Get data on all companies within the Nasdaq 100.
The module variable
finagg.indices.api.nasdaq100
is an instance of this API implementation and is the most popular interface for querying this API.- classmethod get(*, user_agent: None | str = None) DataFrame [source]
Get a dataframe containing data on the tickers in the Nasdaq 100.
Examples
>>> finagg.indices.api.nasdaq100.get().head(5) company ticker industry sub_industry 0 Activision Blizzard ATVI Communication Services Interactive Home Entertainment 1 Adobe Inc. ADBE Information Technology Application Software 2 ADP ADP Information Technology Data Processing & Outsourced Services 3 Airbnb ABNB Consumer Discretionary Internet & Direct Marketing Retail 4 Align Technology ALGN Health Care Health Care Supplies
- class finagg.indices.api.SP500[source]
Bases:
API
Get data on all companies within the S&P 500.
The module variable
finagg.indices.api.sp500
is an instance of this API implementation and is the most popular interface for querying this API.- classmethod get(*, user_agent: None | str = None) DataFrame [source]
Get a dataframe containing data on the tickers in the S&P 500.
Examples
>>> finagg.indices.api.sp500.get().head(5) ticker company industry ... 0 MMM 3M Industrials ... 1 AOS A. O. Smith Industrials ... 2 ABT Abbott Health Care ... 3 ABBV AbbVie Health Care ... 4 ACN Accenture Information Technology ...
finagg.indices.sql module
Indices SQLAlchemy interfaces.
- finagg.indices.sql.metadata
The metadata associated with all SQL tables defined in this module.
- finagg.indices.sql.djia
SQL table for storing raw data as returned by
finagg.indices.api.djia
(an alias forfinagg.indices.api.DJIA
).
- finagg.indices.sql.nasdaq100
SQL table for storing raw data as returned by
finagg.indices.api.nasdaq100
(an alias forfinagg.indices.api.Nasdaq100
).
- finagg.indices.sql.sp500
SQL table for storing raw data as returned by
finagg.indices.api.sp500
(an alias forfinagg.indices.api.SP500
).
Module contents
Top-level indices interface.