-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/validate-command-kwarg
- Loading branch information
Showing
29 changed files
with
5,469 additions
and
972 deletions.
There are no files selected for viewing
14 changes: 0 additions & 14 deletions
14
openbb_platform/core/openbb_core/provider/standard_models/compare_groups.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,12 @@ | ||
"""Compare Groups Model.""" | ||
|
||
from typing import Optional | ||
|
||
from openbb_core.provider.abstract.data import Data | ||
from openbb_core.provider.abstract.query_params import QueryParams | ||
from pydantic import Field | ||
|
||
|
||
class CompareGroupsQueryParams(QueryParams): | ||
"""Compare Groups Query.""" | ||
|
||
group: Optional[str] = Field( | ||
default=None, | ||
description="The group to compare - i.e., 'sector', 'industry', 'country'. Choices vary by provider.", | ||
) | ||
metric: Optional[str] = Field( | ||
default=None, | ||
description="The type of metrics to compare - i.e, 'valuation', 'performance'. Choices vary by provider.", | ||
) | ||
|
||
|
||
class CompareGroupsData(Data): | ||
"""Compare Groups Data.""" | ||
|
||
name: str = Field(description="Name or label of the group.") |
18 changes: 18 additions & 0 deletions
18
openbb_platform/core/openbb_core/provider/standard_models/futures_info.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
"""Futures Info Standard Model.""" | ||
|
||
from openbb_core.provider.abstract.data import Data | ||
from openbb_core.provider.abstract.query_params import QueryParams | ||
from openbb_core.provider.utils.descriptions import DATA_DESCRIPTIONS | ||
from pydantic import Field | ||
|
||
|
||
class FuturesInfoQueryParams(QueryParams): | ||
"""Futures Info Query.""" | ||
|
||
# leaving this empty to let the provider create custom symbol docstrings. | ||
|
||
|
||
class FuturesInfoData(Data): | ||
"""Futures Instruments Data.""" | ||
|
||
symbol: str = Field(description=DATA_DESCRIPTIONS.get("symbol", "")) |
12 changes: 12 additions & 0 deletions
12
openbb_platform/core/openbb_core/provider/standard_models/futures_instruments.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
"""Futures Instruments Standard Model.""" | ||
|
||
from openbb_core.provider.abstract.data import Data | ||
from openbb_core.provider.abstract.query_params import QueryParams | ||
|
||
|
||
class FuturesInstrumentsQueryParams(QueryParams): | ||
"""Futures Instruments Query.""" | ||
|
||
|
||
class FuturesInstrumentsData(Data): | ||
"""Futures Instruments Data.""" |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 11 additions & 2 deletions
13
openbb_platform/providers/deribit/openbb_deribit/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
"""OpenBB Deribit Provider Module.""" | ||
|
||
from openbb_core.provider.abstract.provider import Provider | ||
|
||
from openbb_deribit.models.futures_curve import DeribitFuturesCurveFetcher | ||
from openbb_deribit.models.futures_historical import DeribitFuturesHistoricalFetcher | ||
from openbb_deribit.models.futures_info import DeribitFuturesInfoFetcher | ||
from openbb_deribit.models.futures_instruments import DeribitFuturesInstrumentsFetcher | ||
from openbb_deribit.models.options_chains import DeribitOptionsChainsFetcher | ||
|
||
deribit_provider = Provider( | ||
name="deribit", | ||
website="https://deribit.com/", | ||
description="""Unofficial Python client for public data published by Deribit.""", | ||
credentials=None, | ||
fetcher_dict={"OptionsChains": DeribitOptionsChainsFetcher}, | ||
fetcher_dict={ | ||
"FuturesCurve": DeribitFuturesCurveFetcher, | ||
"FuturesHistorical": DeribitFuturesHistoricalFetcher, | ||
"FuturesInfo": DeribitFuturesInfoFetcher, | ||
"FuturesInstruments": DeribitFuturesInstrumentsFetcher, | ||
"OptionsChains": DeribitOptionsChainsFetcher, | ||
}, | ||
repr_name="Deribit Public Data", | ||
instructions="This provider does not require any credentials and is not meant for trading.", | ||
) |
Oops, something went wrong.