Files
OpenBB/openbb_sdk/providers/polygon/openbb_polygon/provider.py
Theodore Aptekarev e5a9a7f427 Update folder structure for the SDK v4 (#5212)
* Move openbb_provider

* Add lock file for provider core

* Move sdk core

* Move openbb-provider readme text to the correct location

* Move data providers code

* Remove decoupling leftovers

* Lower the supported python version to 3.8

* Move sdk extensions

* Rename provider imports

* Update openbb pyproject toml

* Fix import statements after the move

* Update lock files

* Change ignored path for the static assets

* Add obb mascot

* Fix providers not being available in the openbb package

* Remove providers extension in favor of the coverage router in sdk core

* username is optional

* linting

* Change openbb_sdk_core to openbb_core

* Bump ruff pre-commit to latest version

* Bump ruff to latest in github actions

* Make ruff and pylint lint only the code in diff in GHA

* Attempt to fix broken linting action

* Attempt to fix the broken linting action II

* Lint code with pre-commit

* Revert all changes to github actions

* Revert to using ruff 0.0.256

* Use dot for local imports

* Re-commit lost forex pairs

* Fix fmp's typo that made it to the openbb data points

* Add other_investing_activities field that has a typo in fmp's api

---------

Co-authored-by: montezdesousa <montezdesousa@gmail.com>
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2023-07-12 18:43:30 +02:00

44 lines
1.6 KiB
Python

"""Polygon provider module."""
# IMPORT STANDARD
# IMPORT INTERNAL
from openbb_provider.provider.abstract.provider import Provider, ProviderNameType
from openbb_polygon.balance_sheet import PolygonBalanceSheetFetcher
from openbb_polygon.cash_flow import PolygonCashFlowStatementFetcher
from openbb_polygon.crypto_eod import PolygonCryptoEODFetcher
from openbb_polygon.crypto_price import PolygonCryptoPriceFetcher
from openbb_polygon.forex_eod import PolygonForexEODFetcher
from openbb_polygon.forex_price import PolygonForexPriceFetcher
from openbb_polygon.income_statement import PolygonIncomeStatementFetcher
from openbb_polygon.major_indices_eod import PolygonMajorIndicesEODFetcher
from openbb_polygon.major_indices_price import (
PolygonMajorIndicesPriceFetcher,
)
from openbb_polygon.stock_eod import PolygonStockEODFetcher
from openbb_polygon.stock_news import PolygonStockNewsFetcher
from openbb_polygon.stock_price import PolygonStockPriceFetcher
# IMPORT THIRD-PARTY
# mypy: disable-error-code="list-item"
polygon_provider = Provider(
name=ProviderNameType("polygon"),
description="Provider for Polygon.",
fetcher_list=[
PolygonStockEODFetcher,
PolygonStockNewsFetcher,
PolygonBalanceSheetFetcher,
PolygonIncomeStatementFetcher,
PolygonCashFlowStatementFetcher,
PolygonStockPriceFetcher,
PolygonCryptoPriceFetcher,
PolygonCryptoEODFetcher,
PolygonMajorIndicesEODFetcher,
PolygonMajorIndicesPriceFetcher,
PolygonForexEODFetcher,
PolygonForexPriceFetcher,
],
)