Skip to content

Commit

Permalink
Release -> develop (#4581)
Browse files Browse the repository at this point in the history
* Update trailmap.py (#4300)

* Fixes Failing AutoDocs (#4304)

* Fixes Failing AutoDocs

* Update test_print_help.txt

* Release 2.5.0 (#4355)

* Rename SDK folder

* Fixing all the tests I hope

* Depreciate the sia menu

* Fix routine script

* Update SDK generation scripts

* This needed fixing anyways

* Regenerate SDK files

* Update paths in sdk helpers

* Regenerate the remains of the SDK

* Fix candle not working with symbol via the sdk

* Fix pydocstyle errors

* deps

* Add in Docstrings

* Push to website since I need to upload images

* typos

* Add in Fixed Income Guide

* Tests : fix cassette

* changes to layout and adding more content

* trailmap

* poetry

* updates to requirements files

* add `_try_to_login` to sdk generation, fix `_chart` in `about()` url

* sentiment analysis

* refactor

* changing to base model default

* rounding

* renewing poetry

* fixed poetry

* spacing

* black

* adds selectable models for realized volatility calculations

* fixes line too long

* Add intro guides to Fixed Income

* Fix some missing docstrings

* Fix website not working

* missed a few

* fix /economy/test_yfinance_view tests

* fix etf/test_stockanalysis_model.py

* fix etf/test_stockanalysis_view.py

* fix test_stocks_controller

* deprecating non used function

* update financedatabase to 2.0.4

* Delete SIA from OpenBB Docs and SDK

* Searching was not done properly for short name and index

* changes the default data source for crypto.load

* Fix tests I broke

* Little fixy fix to remove duplicates

* Fix tests

* typo

* adds check for empty dataframe

* Patch Equity Report

* Update so that image links to website

* linting v2

* silly imports

* adding tempfile

* add imap unordered

* reordering imports

* Adding databento as a source (#4293)

* First commit

* Baby steps

* Keys and sdk

* Fix import for api key

* Add SDK endpoints

* Test + api checks

* tests

* roque print of api key

* Changes

* minor

* custom timeout

* improve timeouts

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>

* Tests

* Integration test

* frozendict remove

* update spec

* rename sdk faq to troubleshooting

* add hidden import

* add hidden imports

* imports again

* valid url check

* new lines and prompt

* split imports

* more spec

* adds cones to the crypto-ta menu

* Fix tests

* Update code to reflect new changes to FinanceDatabase

* Small bugfix for DCF if you have no ticker loaded

* remove yfinance from news

* add reverse fx choices

* black

* ruff

* Add options greeks to the SDK

* Linting

* Delete rogue file and update test and add fixedincome to en.yml

* fix for options screener

* ruff

* updates tests for options screener

* reqs

* updates more test files

* rewrite for test_github_model

* rewrite test for test_syncretism_view

* removes test_view_available_presets[]

* black

* coverage

* adds option screener preset

* Update directories.py

* len & set

* set all list

* adds unit testing for cones

* ruff

* pylint

* adds options screener endpoint to SDK

* test markers

* Testing draft PR mode

* Update package to v2.0.7

* Remove etf/screener and tests

* Updated

* Merge reqs

* Updated readme

* hook test for pyinstaller

* Little fixy fix

* Remove etf/scr from SDK

* Update tests

* Update hook-whisper.py

* oops lol

* Update sdk

* update

* Etf

* removed old trailmap csv's

* Update fixedincome text

* add greeks to trail

* rouge file

* merge killed it

* fix test

* fix build failure

* catch for error message

* fix for frozendict

* caching search and prompting on hub

* whisper model prompts

* Fix long/short issue and fix transform issue

* separates volatility models from cones function

* Introduce CPI functionality

* improves error handling for volatility models when window length is too small

* ur welcome <3

* additional sanity check for volatility_view

* updates volatility_model test

* black

* Fix linting

* Make cpi a little bit more robust

* Add in missing value

* sdk updates

* update dep files

* Update trail_map_forecasting.csv

* import ordering pylint?

* fix trailing comma

* sorted trailmaps

* remove one test artifact

* rewrite test

* Adds the missing pieces.

* adds clickable URL in keys + Databento

* adds databento images

* adds images for Databento

* update deps

* req files

* swap order in databento

* ruff

* mypy

* lint

* sdk

* makes requested changes

* ruff v2..

* replaces screenshot.

* Removed because it shouldn't have been in this PR.

* ruff v3

* Minor edit, move installation to position 2 instead of last

* util linting changes

* linting for controller

* fix test

* test

* Revert some tests

* Guess not

* see if this sticks

* fixes

* Fix linters.  Add --video if not provided

* Checkout develop tests for keys

* Release time

* Revert papermill and update gh pages action

* Fix shortname (#4356)

* uninstall brotli on conda test

* Fix issue 4316 (#4357)

* Fix issue 4316

* Updating polygon_model + options_controller

* Tests : FRED

* ruff

---------

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: northern-64bit <75195383+northern-64bit@users.noreply.github.com>
Co-authored-by: luqazino@gmail.com <luqazino@gmail.com>
Co-authored-by: colin99d <colin99delahunty@gmail.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>

* Release/2.5.1 (#4368)

* Fix routine script

* Update SDK generation scripts

* This needed fixing anyways

* Regenerate SDK files

* Update paths in sdk helpers

* Regenerate the remains of the SDK

* Fix candle not working with symbol via the sdk

* Fix pydocstyle errors

* deps

* Add in Docstrings

* Push to website since I need to upload images

* typos

* Add in Fixed Income Guide

* Tests : fix cassette

* changes to layout and adding more content

* trailmap

* poetry

* updates to requirements files

* add `_try_to_login` to sdk generation, fix `_chart` in `about()` url

* sentiment analysis

* refactor

* changing to base model default

* rounding

* renewing poetry

* fixed poetry

* spacing

* black

* adds selectable models for realized volatility calculations

* fixes line too long

* Add intro guides to Fixed Income

* Fix some missing docstrings

* Fix website not working

* missed a few

* fix /economy/test_yfinance_view tests

* fix etf/test_stockanalysis_model.py

* fix etf/test_stockanalysis_view.py

* fix test_stocks_controller

* deprecating non used function

* update financedatabase to 2.0.4

* Delete SIA from OpenBB Docs and SDK

* Searching was not done properly for short name and index

* changes the default data source for crypto.load

* Fix tests I broke

* Little fixy fix to remove duplicates

* Fix tests

* typo

* adds check for empty dataframe

* Patch Equity Report

* Update so that image links to website

* linting v2

* silly imports

* adding tempfile

* add imap unordered

* reordering imports

* Adding databento as a source (#4293)

* First commit

* Baby steps

* Keys and sdk

* Fix import for api key

* Add SDK endpoints

* Test + api checks

* tests

* roque print of api key

* Changes

* minor

* custom timeout

* improve timeouts

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>

* Tests

* Integration test

* frozendict remove

* update spec

* rename sdk faq to troubleshooting

* add hidden import

* add hidden imports

* imports again

* valid url check

* new lines and prompt

* split imports

* more spec

* adds cones to the crypto-ta menu

* Fix tests

* Update code to reflect new changes to FinanceDatabase

* Small bugfix for DCF if you have no ticker loaded

* remove yfinance from news

* add reverse fx choices

* black

* ruff

* Add options greeks to the SDK

* Linting

* Delete rogue file and update test and add fixedincome to en.yml

* fix for options screener

* ruff

* updates tests for options screener

* reqs

* updates more test files

* rewrite for test_github_model

* rewrite test for test_syncretism_view

* removes test_view_available_presets[]

* black

* coverage

* adds option screener preset

* Update directories.py

* len & set

* set all list

* adds unit testing for cones

* ruff

* pylint

* adds options screener endpoint to SDK

* test markers

* Testing draft PR mode

* Update package to v2.0.7

* Remove etf/screener and tests

* Updated

* Merge reqs

* Updated readme

* hook test for pyinstaller

* Little fixy fix

* Remove etf/scr from SDK

* Update tests

* Update hook-whisper.py

* oops lol

* Update sdk

* update

* Etf

* removed old trailmap csv's

* Update fixedincome text

* add greeks to trail

* rouge file

* merge killed it

* fix test

* fix build failure

* catch for error message

* fix for frozendict

* caching search and prompting on hub

* whisper model prompts

* Fix long/short issue and fix transform issue

* separates volatility models from cones function

* Introduce CPI functionality

* improves error handling for volatility models when window length is too small

* ur welcome <3

* additional sanity check for volatility_view

* updates volatility_model test

* black

* Fix linting

* Make cpi a little bit more robust

* Add in missing value

* sdk updates

* update dep files

* Update trail_map_forecasting.csv

* import ordering pylint?

* fix trailing comma

* sorted trailmaps

* remove one test artifact

* rewrite test

* Adds the missing pieces.

* adds clickable URL in keys + Databento

* adds databento images

* adds images for Databento

* update deps

* req files

* swap order in databento

* ruff

* mypy

* lint

* sdk

* makes requested changes

* ruff v2..

* replaces screenshot.

* Removed because it shouldn't have been in this PR.

* ruff v3

* Minor edit, move installation to position 2 instead of last

* util linting changes

* linting for controller

* fix test

* test

* Revert some tests

* Guess not

* see if this sticks

* fixes

* Fix linters.  Add --video if not provided

* Checkout develop tests for keys

* merge release into develop (#4359)

* Update trailmap.py (#4300)

* Fixes Failing AutoDocs (#4304)

* Fixes Failing AutoDocs

* Update test_print_help.txt

* Release time

* Revert papermill and update gh pages action

* Fix shortname (#4356)

* uninstall brotli on conda test

* Fix issue 4316 (#4357)

* Fix issue 4316

* Updating polygon_model + options_controller

* Tests : FRED

* ruff

---------

Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
Co-authored-by: Chavithra <chavithra@gmail.com>
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>

* Add pydantic to reqs and get ffmpeg in docker image

* initialize session (#4360)

* Unpin old version of jsonschema (#4365)

* puts pip install openbb[all] inside quotes (#4366)

Co-authored-by: James Maslek <jmaslek11@gmail.com>

* Merge deps

* Hotfix/bug #3837 (#3942)

* Fix: Fixed spaces causing error in --sort flag at crypto/disc/...

* Fixed minor issues

* fixed formatting using black

* Ran tests locally

* fixed top command

* reverse flag to gainers

* reverse flag to losers

* fixed dappradar verbose exceptions

* tests

* tests

* tests

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>

* Update release files

---------

Co-authored-by: jeroen <jer.bouma@gmail.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: northern-64bit <75195383+northern-64bit@users.noreply.github.com>
Co-authored-by: luqazino@gmail.com <luqazino@gmail.com>
Co-authored-by: colin99d <colin99delahunty@gmail.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: Brendan de Faria <brendan.defaria@gmail.com>

* hotfix/Fix troubleshooting and adding lines (#4379)

* Release Branch

* fix print_pretty_prediction, avoid error on DummyBackend.__version__

* Update gh-pages.yml

* fix removed start_required_configurations

* fix gh-pages yarn lockfile, integration tests libs

* ship it

---------

Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: northern-64bit <75195383+northern-64bit@users.noreply.github.com>
Co-authored-by: luqazino@gmail.com <luqazino@gmail.com>
Co-authored-by: colin99d <colin99delahunty@gmail.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: Brendan de Faria <brendan.defaria@gmail.com>
  • Loading branch information
15 people authored Mar 24, 2023
1 parent 50a20ae commit 099a9db
Show file tree
Hide file tree
Showing 21 changed files with 80 additions and 243 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ jobs:
virtualenvs-create: true
virtualenvs-in-project: true

- name: Setup sudo apt installs for ubuntu-latest
run: |
sudo apt-get update
sudo apt-get install -y \
libgtk-3-dev \
libwebkit2gtk-4.0-dev
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
Expand Down Expand Up @@ -55,7 +62,7 @@ jobs:
cache-dependency-path: website/yarn.lock

- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install
working-directory: website

- name: Build website
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ jobs:
virtualenvs-create: true
virtualenvs-in-project: true

- name: Setup sudo apt installs for ubuntu-latest
run: |
sudo apt-get update
sudo apt-get install -y \
libgtk-3-dev \
libwebkit2gtk-4.0-dev
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
Expand Down Expand Up @@ -72,7 +79,7 @@ jobs:
title: "Integration test summary"
path: failed_tests.txt
channel: ${{ secrets.SLACK_CHANNEL_ID }}

- name: Slack Notification - Success/Failure
uses: act10ns/slack@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion build/docker/compose.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
OPENBBTERMINAL_DOCKER_REGISTRY="ghcr.io"
OPENBBTERMINAL_DOCKER_RELEASE_VERSION="2.5.1"
OPENBBTERMINAL_DOCKER_RELEASE_VERSION="3.0.0rc1"
2 changes: 1 addition & 1 deletion build/docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ services:
- ~/OpenBBUserData:/home/python/OpenBBUserData
- ~/.openbb_terminal:/home/python/.openbb_terminal
platform: linux/amd64
image: ghcr.io/openbb-finance/openbbterminal/openbb:2.5.1
image: ghcr.io/openbb-finance/openbbterminal/openbb:3.0.0rc1
stdin_open: true # docker run -i
tty: true # docker run -t
2 changes: 1 addition & 1 deletion build/nsis/setup.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
!define NAME "OpenBB Terminal"
!define COMPANY "OpenBB"
!define APPFILE "OpenBBTerminal.exe"
!define VERSION "2.5.1"
!define VERSION "3.0.0rc1"
!define SLUG "${NAME} v${VERSION}"

;--------------------------------
Expand Down
2 changes: 1 addition & 1 deletion build/pyinstaller/.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
OPENBB_LOGGING_APP_NAME=gst_packaged
OPENBB_LOGGING_COMMIT_HASH=sha:7c74b10
OPENBB_LOGGING_COMMIT_HASH=sha:7972098
OPENBB_ENABLE_PREDICT=false
OPENBB_ENABLE_CHECK_API=true
OPENBB_ENABLE_THOUGHTS_DAY=false
Expand Down
2 changes: 1 addition & 1 deletion openbb_terminal/core/models/system_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class SystemModel(BaseModel):
"""Data model for system variables and configurations."""

# System version
VERSION = "2.5.1"
VERSION = "3.0.0rc1"

# Logging section
LOGGING_APP_NAME: str = "gst"
Expand Down
2 changes: 1 addition & 1 deletion openbb_terminal/core/plots/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def __init__(self, daemon: bool = True, max_retries: int = 30):
and not strtobool(os.environ.get("OPENBB_ENABLE_QUICK_EXIT", False))
and current_process().name == "MainProcess"
)
if PyWry.__version__ == "0.0.0":
if hasattr(PyWry, "__version__") and PyWry.__version__ == "0.0.0":
self.isatty = False

self.WIDTH, self.HEIGHT = 1400, 762
Expand Down
4 changes: 2 additions & 2 deletions openbb_terminal/core/plots/no_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
from openbb_terminal.core.config.paths import SETTINGS_ENV_FILE
from openbb_terminal.core.session.current_user import get_current_user

__version__ = "0.0.0"

pywry_missing = """
[red]PyWry is not installed or missing required linux dependencies.[/]
Expand All @@ -34,6 +32,8 @@
class DummyBackend:
"""Dummy class to avoid import errors."""

__version__ = "0.0.0"

max_retries = 0
outgoing: List[str] = []
init_engine: List[str] = []
Expand Down
2 changes: 1 addition & 1 deletion openbb_terminal/dashboards/voila/chains.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
" xanchor=\"center\",\n",
" yanchor=\"top\",\n",
" ),\n",
" )\n"
" )"
]
},
{
Expand Down
9 changes: 5 additions & 4 deletions openbb_terminal/forecast/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,12 +343,13 @@ def lambda_price_prediction_color(val: float) -> str:
def print_pretty_prediction(df_pred: pd.DataFrame, last_price: float):
"""Print predictions"""

if rich_config.USE_COLOR and not get_current_user().preferences.USE_INTERACTIVE_DF:
if rich_config.USE_COLOR:
df_pred = pd.DataFrame(df_pred)
df_pred.columns = ["pred"]
df_pred["pred"] = df_pred["pred"].apply(
lambda x: lambda_price_prediction_color(x)
)
if not get_current_user().preferences.USE_INTERACTIVE_DF:
df_pred["pred"] = df_pred["pred"].apply(
lambda x: lambda_price_prediction_color(x)
)
if check_dates(df_pred.index.to_series()):
df_pred.index = df_pred.index.date
print_rich_table(
Expand Down
2 changes: 1 addition & 1 deletion openbb_terminal/miscellaneous/i18n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ en:
economy/balance: Show Government defict or surplus in capital income and expenditures
economy/revenue: Show Government revenue based on tax income
economy/spending: Show Government spending as indicator of size of government
economy/trust: Show Government trust based on surveys regarding confidence in the government
economy/trust: Show Government trust based on surveys regarding confidence in the government
economy/_database_: Databases
economy/_stored: Stored datasets
economy/overview: show a market overview of either indices, bonds or currencies
Expand Down
24 changes: 12 additions & 12 deletions openbb_terminal/miscellaneous/stocks/options/high_iv.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# tickers [string]: a list of space or comma separated tickers to restrict or exclude them from the query.
# E.g. "GME" or for multiples "AMC,BB,GME".
tickers =
tickers =

# exclude [true|false]: if true, then tickers are excluded. If false, the search is restricted to these tickers.
exclude =
Expand All @@ -25,25 +25,25 @@ otm = true
min-ask-bid =

# max-ask-bid [float]: maximum spread between bid and ask.
max-ask-bid =
max-ask-bid =

# min-exp [int]: minimum days until expiration.
min-exp =

# max-exp [int]: maximum days until expiration.
max-exp =
max-exp =

# min-price [float]: minimum option premium.
min-price =
min-price =

# max-price [float]: maximum option premium.
max-price =

#min-strike [float]: minimum option strike.
min-strike =
min-strike =

#max-strike [float]: maximum option strike.
max-strike =
max-strike =

# calls [true|false]: select call options.
calls = true
Expand Down Expand Up @@ -76,10 +76,10 @@ min-myield =
max-myield =

# min-delta [float]: minimum delta greek.
min-delta =
min-delta =

# max-delta [float]: maximum delta greek.
max-delta =
max-delta =

# min-gamma [float]: minimum gamma greek.
min-gamma =
Expand All @@ -103,7 +103,7 @@ max-vega =
min-iv = 1.00

#max-iv [float]: maximum implied volatility.
max-iv =
max-iv =

#min-oi [float]: minimum open interest.
min-oi = 10
Expand All @@ -118,7 +118,7 @@ min-volume = 10
max-volume =

#min-voi [float]: minimum volume / oi ratio.
min-voi =
min-voi =

#max-voi [float]: maximum volume / oi ratio.
max-voi =
Expand Down Expand Up @@ -151,8 +151,8 @@ min-price-20d =
max-price-20d =
min-volume-20d =
max-volume-20d =
min-iv-20d =
max-iv-20d =
min-iv-20d =
max-iv-20d =
min-delta-20d =
max-delta-20d =
min-gamma-20d =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,19 +100,19 @@ min-vega =
max-vega =

#min-iv [float]: minimum implied volatility.
min-iv =
min-iv = 1.00

#max-iv [float]: maximum implied volatility.
max-iv =

#min-oi [float]: minimum open interest.
min-oi = 1
min-oi = 10

#max-oi[float]: maximum open interest
max-oi =

#min-volume [float]: minimum volume.
min-volume =
min-volume = 10

#max-volume [float]: maximum volume.
max-volume =
Expand Down
34 changes: 17 additions & 17 deletions openbb_terminal/terminal_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,60 +129,60 @@ def update_terminal():


def open_openbb_documentation(
path, url="http://localhost/app/terminal", command=None, arg_type=""
path, url="https://my.openbb.dev/app/terminal", command=None, arg_type=""
):
"""Opens the documentation page based on your current location within the terminal. Make exceptions for menus
that are considered 'common' by adjusting the path accordingly."""
if path == "/" and command is None:
path = "/how-to"
path = "/guides"
command = ""
elif "keys" in path:
path = "/guides?full=1&path=/quickstart/api-keys"
path = "/usage?full=1&path=/guides/api-keys"
command = ""
elif "settings" in path:
path = "/guides?path=/advanced/customizing-the-terminal"
path = "/usage?path=/guides/customizing-the-terminal"
command = ""
elif "featflags" in path:
path = "/guides?path=/advanced/customizing-the-terminal"
path = "/usage?path=/guides/customizing-the-terminal"
command = ""
elif "sources" in path:
path = "/guides?path=/advanced/changing-sources"
path = "/usage?path=/guides/changing-sources"
command = ""
elif "params" in path:
path = "/guides?path=/intros/portfolio/po"
path = "/usage?path=/intros/portfolio/po"
command = ""
else:
if arg_type == "command": # user passed a command name
path = f"/reference?path={path}"
elif arg_type == "menu": # user passed a menu name
if command in ["ta", "ba", "qa"]:
menu = path.split("/")[-2]
path = f"/guides?path=/intros/common/{menu}"
path = f"/usage?path=/intros/common/{menu}"
elif command == "forecast":
command = ""
path = "/guides?path=/intros/forecast"
path = "/usage?path=/intros/forecast"
else:
path = f"/guides?path=/intros/{path}"
path = f"/usage?path=/intros/{path}"
else: # user didn't pass argument and is in a menu
menu = path.split("/")[-2]
path = (
f"/guides?path=/intros/common/{menu}"
f"/usage?path=/intros/common/{menu}"
if menu in ["ta", "ba", "qa"]
else f"/guides?path=/intros/{path}"
else f"/usage?path=/intros/{path}"
)

if command:
if command == "keys":
path = "/guides?full=1&path=/quickstart/api-keys"
path = "/usage?full=1&path=/guides/api-keys"
command = ""
elif "settings" in path or "featflags" in path:
path = "/guides?path=/advanced/customizing-the-terminal"
path = "/usage?path=/guides/customizing-the-terminal"
command = ""
elif "sources" in path:
path = "/guides?path=/advanced/changing-sources"
path = "/usage?path=/guides/changing-sources"
command = ""
elif command in ["record", "stop", "exe"]:
path = "/guides?path=/advanced/scripts-and-routines"
path = "/usage?path=/guides/scripts-and-routines"
command = ""
elif command in [
"intro",
Expand All @@ -193,7 +193,7 @@ def open_openbb_documentation(
"wiki",
"news",
]:
path = ""
path = "/guides"
command = ""
elif command in ["ta", "ba", "qa"]:
path = f"/guides?path=/intros/common/{command}"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "openbb"
version = "2.5.1"
version = "3.0.0rc1"
description = "Investment Research for Everyone, Anywhere."
license = "MIT"
authors = ["Didier Rodrigues Lopes"]
Expand Down
Loading

0 comments on commit 099a9db

Please sign in to comment.