-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from OpenBB-finance/feature/openbb-sdk-v4
Feature/openbb sdk v4
Showing
108 changed files
with
8,370 additions
and
562 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
[tool.poetry] | ||
name = "openbb-charting" | ||
version = "0.1.0a3" | ||
version = "0.1.0a4" | ||
description = "Charting extension for OpenBB" | ||
authors = ["OpenBB Team <[email protected]>"] | ||
readme = "README.md" | ||
packages = [{ include = "openbb_charting" }] | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.8,<3.12" # scipy forces python <4.0 explicitly | ||
python = ">=3.8,<3.12" # scipy forces python <4.0 explicitly | ||
scipy = "^1.10.0" | ||
plotly = "^5.17.0" | ||
statsmodels = "^0.14.0" | ||
|
@@ -17,7 +17,7 @@ svglib = "^1.5.1" | |
aiohttp = "^3.8.4" | ||
nbformat = "^5.9.2" | ||
pandas-ta = "^0.3.14b" | ||
openbb-core = "^0.1.0a4" | ||
openbb-core = "^0.1.0a5" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
|
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,14 +1,14 @@ | ||
[tool.poetry] | ||
name = "openbb-crypto" | ||
version = "0.1.0a3" | ||
version = "0.1.0a4" | ||
description = "Crypto extension for OpenBB" | ||
authors = ["OpenBB Team <[email protected]>"] | ||
readme = "README.md" | ||
packages = [{ include = "openbb_crypto" }] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
openbb-core = "^0.1.0a4" | ||
openbb-core = "^0.1.0a5" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
|
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,18 +1,18 @@ | ||
[tool.poetry] | ||
name = "openbb-econometrics" | ||
version = "0.1.0a3" | ||
version = "0.1.0a4" | ||
description = "Econometrics Toolkit for OpenBB" | ||
authors = ["OpenBB Team <[email protected]>"] | ||
readme = "README.md" | ||
packages = [{ include = "openbb_econometrics" }] | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.8,<3.12" # scipy forces python <4.0 explicitly | ||
python = ">=3.8,<3.12" # scipy forces python <4.0 explicitly | ||
scipy = "^1.10.1" | ||
statsmodels = "^0.14.0" | ||
arch = "^5.5.0" | ||
linearmodels = "<=4.25" # ^4.26 has setuptools-scm in setup_requires | ||
openbb-core = { version = "^0.1.0a3" } | ||
linearmodels = "<=4.25" # ^4.26 has setuptools-scm in setup_requires | ||
openbb-core = { version = "^0.1.0a5" } | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
[tool.poetry] | ||
name = "openbb-economy" | ||
version = "0.1.0a3" | ||
version = "0.1.0a4" | ||
description = "Economy extension for OpenBB" | ||
authors = ["OpenBB Team <[email protected]>"] | ||
readme = "README.md" | ||
packages = [{ include = "openbb_economy" }] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
openbb-core = "^0.1.0a4" | ||
openbb-core = "^0.1.0a5" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
|
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,11 @@ | ||
# ETF data extension for OpenBB SDK | ||
|
||
This extension provides a set of commands for ETF data retrieval. | ||
|
||
## Installation | ||
|
||
To install the extension, run the following command in this folder: | ||
|
||
```bash | ||
pip install . | ||
``` |
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 @@ | ||
"""OpenBB ETF Extension.""" |
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,40 @@ | ||
"""ETF Router.""" | ||
|
||
from openbb_core.app.model.command_context import CommandContext | ||
from openbb_core.app.model.obbject import OBBject | ||
from openbb_core.app.provider_interface import ( | ||
ExtraParams, | ||
ProviderChoices, | ||
StandardParams, | ||
) | ||
from openbb_core.app.query import Query | ||
from openbb_core.app.router import Router | ||
from pydantic import BaseModel | ||
|
||
router = Router(prefix="") | ||
|
||
|
||
# pylint: disable=unused-argument | ||
@router.command(model="EtfSearch") | ||
def search( | ||
cc: CommandContext, | ||
provider_choices: ProviderChoices, | ||
standard_params: StandardParams, | ||
extra_params: ExtraParams, | ||
) -> OBBject[BaseModel]: | ||
"""Search for ETFs. | ||
An empty query returns the full list of ETFs from the provider. | ||
""" | ||
return OBBject(results=Query(**locals()).execute()) | ||
|
||
|
||
@router.command(model="EtfHistorical") | ||
def historical( | ||
cc: CommandContext, | ||
provider_choices: ProviderChoices, | ||
standard_params: StandardParams, | ||
extra_params: ExtraParams, | ||
) -> OBBject[BaseModel]: | ||
"""ETF Historical Market Price.""" | ||
return OBBject(results=Query(**locals()).execute()) |
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 @@ | ||
[tool.poetry] | ||
name = "openbb-etf" | ||
version = "0.1.0a3" | ||
description = "ETF extension for OpenBB" | ||
authors = ["OpenBB Team <[email protected]>"] | ||
readme = "README.md" | ||
packages = [{ include = "openbb_etf" }] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
openbb-core = "^0.1.0a4" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.poetry.plugins."openbb_core_extension"] | ||
etf = "openbb_etf.etf_router:router" |
Empty file.
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,14 +1,14 @@ | ||
[tool.poetry] | ||
name = "openbb-fixedincome" | ||
version = "0.1.0a3" | ||
version = "0.1.0a4" | ||
description = "Fixed income extension for OpenBB" | ||
authors = ["OpenBB Team <[email protected]>"] | ||
readme = "README.md" | ||
packages = [{ include = "openbb_fixedincome" }] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
openbb-core = "^0.1.0a4" | ||
openbb-core = "^0.1.0a5" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
|
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,14 +1,14 @@ | ||
[tool.poetry] | ||
name = "openbb-forex" | ||
version = "0.1.0a3" | ||
version = "0.1.0a4" | ||
description = "Forex extension for OpenBB" | ||
authors = ["OpenBB Team <[email protected]>"] | ||
readme = "README.md" | ||
packages = [{ include = "openbb_forex" }] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
openbb-core = "^0.1.0a4" | ||
openbb-core = "^0.1.0a5" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
|
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,14 +1,14 @@ | ||
[tool.poetry] | ||
name = "openbb-futures" | ||
version = "0.1.0a3" | ||
version = "0.1.0a4" | ||
description = "Futures extension for OpenBB" | ||
authors = ["OpenBB Team <[email protected]>"] | ||
readme = "README.md" | ||
packages = [{ include = "openbb_futures" }] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
openbb-core = "^0.1.0a4" | ||
openbb-core = "^0.1.0a5" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
|
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
Oops, something went wrong.