Files
OpenBB/openbb_sdk/providers/polygon/openbb_polygon/__init__.py
Igor Radovanovic fea3b40cc9 Lint and init
2023-09-18 12:12:21 +02:00

34 lines
1.7 KiB
Python

"""Polygon provider module."""
from openbb_polygon.models.balance_sheet import PolygonBalanceSheetFetcher
from openbb_polygon.models.cash_flow import PolygonCashFlowStatementFetcher
from openbb_polygon.models.crypto_historical import PolygonCryptoHistoricalFetcher
from openbb_polygon.models.forex_historical import PolygonForexHistoricalFetcher
from openbb_polygon.models.forex_pairs import PolygonForexPairsFetcher
from openbb_polygon.models.income_statement import PolygonIncomeStatementFetcher
from openbb_polygon.models.major_indices_historical import (
PolygonMajorIndicesHistoricalFetcher,
)
from openbb_polygon.models.stock_historical import PolygonStockHistoricalFetcher
from openbb_polygon.models.stock_news import PolygonStockNewsFetcher
from openbb_provider.abstract.provider import Provider
polygon_provider = Provider(
name="polygon",
website="https://polygon.io/",
description="""The Polygon.io Stocks API provides REST endpoints that let you query
the latest market data from all US stock exchanges. You can also find data on
company financials, stock market holidays, corporate actions, and more.""",
required_credentials=["api_key"],
fetcher_dict={
"StockHistorical": PolygonStockHistoricalFetcher,
"StockNews": PolygonStockNewsFetcher,
"BalanceSheet": PolygonBalanceSheetFetcher,
"IncomeStatement": PolygonIncomeStatementFetcher,
"CashFlowStatement": PolygonCashFlowStatementFetcher,
"CryptoHistorical": PolygonCryptoHistoricalFetcher,
"MajorIndicesHistorical": PolygonMajorIndicesHistoricalFetcher,
"ForexHistorical": PolygonForexHistoricalFetcher,
"ForexPairs": PolygonForexPairsFetcher,
},
)