Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/4.1.0 #5901

Merged
merged 38 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
50c8649
fix tests for provider with - on the name
hjoaquim Dec 18, 2023
f156371
remove federal-reserve from the optional extensions
hjoaquim Dec 18, 2023
5e485d8
fix path on contributing guidleines
hjoaquim Dec 18, 2023
7c69f1e
update core version
hjoaquim Dec 18, 2023
88e4185
Prevent poetry from removing it's deps when trying to update extensions
piiq Dec 19, 2023
6d8e6cd
Merge remote-tracking branch 'OpenBB-finance/develop' into release/4.1.0
hjoaquim Dec 19, 2023
0ccf5f8
upgrade core version and remove black
hjoaquim Dec 19, 2023
0da933c
Add random-user-agent to goventment_us provider
piiq Dec 19, 2023
7a72359
Re-build static prior to version bump
piiq Dec 19, 2023
fca93d0
Mark wsj as optional in dev_install script
piiq Dec 19, 2023
4bec65c
Include wsj in all extras
piiq Dec 19, 2023
65a2ac3
re-record tests
hjoaquim Dec 19, 2023
082f300
Merge branch 'release/4.1.0' of github.com:OpenBB-finance/OpenBBTermi…
hjoaquim Dec 19, 2023
6571d4f
Merge remote-tracking branch 'upstream/release/4.1.0' into release/4.1.0
piiq Dec 19, 2023
61c798c
bumping and publishing extensions
hjoaquim Dec 19, 2023
dceea16
updating static assets
hjoaquim Dec 19, 2023
763c42f
bumping versions on the openbb package
hjoaquim Dec 19, 2023
5578288
update poetry.lock files
hjoaquim Dec 19, 2023
39b727e
Merge branch 'release/4.1.0' of github.com:OpenBB-finance/OpenBBTermi…
hjoaquim Dec 19, 2023
9806cf8
Update yfinance test data for failing unit tests
piiq Dec 20, 2023
e84dbc6
Update all yfinance test data after a cache flush
piiq Dec 20, 2023
74e0164
Revert "Update all yfinance test data after a cache flush"
piiq Dec 20, 2023
72e6fc0
Revert "Update yfinance test data for failing unit tests"
piiq Dec 20, 2023
49853fd
tests
jmaslek Dec 22, 2023
75ffb06
Merge branch 'develop' into release/4.1.0
hjoaquim Jan 2, 2024
30bca93
patch ultima
hjoaquim Jan 2, 2024
a182625
yf cassetes
hjoaquim Jan 2, 2024
37a5b2f
skip yf tests for now
hjoaquim Jan 2, 2024
3622556
poetry lock
hjoaquim Jan 3, 2024
9eab016
requirements
hjoaquim Jan 3, 2024
bf3d27e
remove cached env
hjoaquim Jan 3, 2024
bfdc3fd
pytest
hjoaquim Jan 3, 2024
2859093
importlib_metadata
hjoaquim Jan 3, 2024
6c74a98
split steps and use poetry run
hjoaquim Jan 3, 2024
fb13aec
activate venv
hjoaquim Jan 3, 2024
004cfb5
Merge branch 'develop' into release/4.1.0
the-praxs Jan 3, 2024
f8c0629
Merge branch 'develop' into release/4.1.0
hjoaquim Jan 3, 2024
51d18d5
Merge branch 'develop' into release/4.1.0
hjoaquim Jan 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/pypi/openbb_platform/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
EXTENSION_PACKAGES = ["extensions", "providers"]

CMD = [sys.executable, "-m", "poetry"]
EXTENSION_DEPENDENCIES_UPDATE_CMD = ["add", "openbb-core=latest"]
EXTENSION_DEPENDENCIES_UPDATE_CMD = ["add", "openbb-core=latest", "--lock"]
VERSION_BUMP_CMD = ["version", "prerelease"]
PUBLISH_CMD = ["publish", "--build"]

Expand Down
4 changes: 2 additions & 2 deletions openbb_platform/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ The OpenBB Platform is built by the Open-Source community and is characterized b
The REST API is built on top of FastAPI and can be started by running the following command from the root:

```bash
uvicorn openbb_platform.platform.core.openbb_core.api.rest_api:app --host 0.0.0.0 --port 8000 --reload
uvicorn openbb_platform.core.openbb_core.api.rest_api:app --host 0.0.0.0 --port 8000 --reload
```

The Python interfaces we provide to users is the `openbb` python package.
Expand Down Expand Up @@ -742,7 +742,7 @@ python openbb_platform/extensions/tests/utils/integration_tests_api_generator.py
When testing the API interface, you'll need to run the OpenBB Platform locally before running the tests. To do so, you can run the following command:

```bash
uvicorn openbb_platform.platform.core.openbb_core.api.rest_api:app --host 0.0.0.0 --port 8000 --reload
uvicorn openbb_platform.core.openbb_core.api.rest_api:app --host 0.0.0.0 --port 8000 --reload
```

These automated tests are a great way to reduce the amount of code you need to write, but they are not a replacement for manual testing and might require tweaking. That's why we have unit tests that test the generated integration tests to ensure they cover all providers and parameters.
Expand Down
2 changes: 1 addition & 1 deletion openbb_platform/core/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "openbb-core"
version = "1.0.1"
version = "1.2.0"
hjoaquim marked this conversation as resolved.
Show resolved Hide resolved
description = "OpenBB package with core functionality"
authors = ["OpenBB Team <[email protected]>"]
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions openbb_platform/dev_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
openbb-finra = { path = "./providers/finra", develop = true }
openbb-nasdaq = { path = "./providers/nasdaq", optional = true, develop = true }
openbb-seeking-alpha = { path = "./providers/seeking_alpha", optional = true, develop = true }
openbb-stockgrid = { path = "./providers/stockgrid" ,optional = true, develop = true }
openbb-wsj = { path = "./providers/wsj", develop = true }
openbb-stockgrid = { path = "./providers/stockgrid" , optional = true, develop = true }
openbb-wsj = { path = "./providers/wsj", optional = true, develop = true }
openbb-yfinance = { path = "./providers/yfinance", optional = true, develop = true }

openbb-charting = { path = "./extensions/charting", optional = true, develop = true }
Expand Down
3 changes: 3 additions & 0 deletions openbb_platform/openbb/package/__extensions__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ class Extensions(Container):
- [email protected]

- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
Expand Down
292 changes: 10 additions & 282 deletions openbb_platform/openbb/package/economy.py

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions openbb_platform/openbb/package/equity.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class ROUTER_equity(Container):
"""/equity
/calendar
/compare
/darkpool
/discovery
/estimates
/fundamental
Expand Down Expand Up @@ -45,6 +46,15 @@ def compare(self):

return equity_compare.ROUTER_equity_compare(command_runner=self._command_runner)

@property
def darkpool(self):
# pylint: disable=import-outside-toplevel
from . import equity_darkpool

return equity_darkpool.ROUTER_equity_darkpool(
command_runner=self._command_runner
)

@property
def discovery(self):
# pylint: disable=import-outside-toplevel
Expand Down
91 changes: 91 additions & 0 deletions openbb_platform/openbb/package/equity_darkpool.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
### THIS FILE IS AUTO-GENERATED. DO NOT EDIT. ###

from typing import List, Literal, Optional, Union

from openbb_core.app.model.custom_parameter import OpenBBCustomParameter
from openbb_core.app.model.obbject import OBBject
from openbb_core.app.static.container import Container
from openbb_core.app.static.utils.decorators import validate
from openbb_core.app.static.utils.filters import filter_inputs
from typing_extensions import Annotated


class ROUTER_equity_darkpool(Container):
"""/equity/darkpool
otc
"""

def __repr__(self) -> str:
return self.__doc__ or ""

@validate
def otc(
self,
symbol: Annotated[
Union[str, List[str]],
OpenBBCustomParameter(description="Symbol to get data for."),
] = None,
provider: Optional[Literal["finra"]] = None,
**kwargs
) -> OBBject:
"""Weekly aggregate trade data for Over The Counter deals.

ATS and non-ATS trading data for each ATS/firm
with trade reporting obligations under FINRA rules.


Parameters
----------
symbol : str
Symbol to get data for.
provider : Optional[Literal['finra']]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'finra' if there is
no default.
tier : Literal['T1', 'T2', 'OTCE']
"T1 - Securities included in the S&P 500, Russell 1000 and selected exchange-traded products;
T2 - All other NMS stocks; OTC - Over-the-Counter equity securities (provider: finra)
is_ats : bool
ATS data if true, NON-ATS otherwise (provider: finra)

Returns
-------
OBBject
results : List[OTCAggregate]
Serializable results.
provider : Optional[Literal['finra']]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
chart : Optional[Chart]
Chart object.
extra: Dict[str, Any]
Extra info.

OTCAggregate
------------
update_date : date
Most recent date on which total trades is updated based on data received from each ATS/OTC.
share_quantity : float
Aggregate weekly total number of shares reported by each ATS for the Symbol.
trade_quantity : float
Aggregate weekly total number of trades reported by each ATS for the Symbol

Example
-------
>>> from openbb import obb
>>> obb.equity.darkpool.otc()
""" # noqa: E501

return self._run(
"/equity/darkpool/otc",
**filter_inputs(
provider_choices={
"provider": provider,
},
standard_params={
"symbol": ",".join(symbol) if isinstance(symbol, list) else symbol,
},
extra_params=kwargs,
)
)
Loading
Loading