Skip to content

Commit

Permalink
Merge pull request #5387 from OpenBB-finance/release/3.2.2
Browse files Browse the repository at this point in the history
Release/3.2.2
  • Loading branch information
jmaslek authored Aug 29, 2023
2 parents e0207e7 + f890eec commit 478ca2f
Show file tree
Hide file tree
Showing 256 changed files with 17,230 additions and 6,673 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/branch-name-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ jobs:
echo "Source-branch=$source_branch" >> $GITHUB_OUTPUT
echo "target-branch=$target_branch" >> $GITHUB_OUTPUT
- name: Show Output result for source-branch and target-branch
run: |
echo "source-branch=${{ steps.branch-name-check.outputs.source-branch }}"
echo "target-branch=${{ steps.branch-name-check.outputs.target-branch }}"
- name: Check branch name for develop PRs
if: ${{ steps.branch-name-check.outputs.target-branch == 'develop' }}
run: |
Expand All @@ -50,4 +50,4 @@ jobs:
else
echo "PR is not from a hotfix or release branch. Pull requests must be from a hotfix or release branch and target the main branch"
exit 1
fi
fi
4 changes: 2 additions & 2 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: workflow_dispatch
jobs:
publish-image:
runs-on: ubuntu-latest
env:
env:
OPENBBTERMINAL_DOCKER_GITHUB_REPOSITORY: ${{ github.repository }}
OPENBB_LOGGING_APP_NAME: "gst_docker"

Expand Down Expand Up @@ -45,4 +45,4 @@ jobs:
- name: Publishing the latest Docker image
run: |
docker push "${OPENBBTERMINAL_DOCKER_POETRY_IMAGE_LATEST}"
if: startsWith(github.ref, 'refs/heads/main')
if: startsWith(github.ref, 'refs/heads/main')
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
(github.event_name == 'pull_request' &&
github.event.pull_request.merged == true &&
github.event.pull_request.base.ref == 'develop' &&
startsWith(github.head_ref, 'docs/'))
startsWith(github.head_ref, 'docs/'))
with:
github_token: ${{ secrets.DEPLOY_TOKEN }}
publish_dir: ./website/build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
restore-keys: ${{ runner.os }}-linting-${{ hashFiles('**/poetry.lock') }}

- run: |
pip install bandit black codespell mypy==1.1.1 pylint==2.17.0 ruff==0.0.256
pip install bandit black codespell mypy==1.5.1 pylint==2.17.0 ruff==0.0.285
pip install types-pytz types-requests types-termcolor types-tabulate types-PyYAML types-python-dateutil types-setuptools types-six
- run: bandit -x ./tests -r . || true
- run: black --diff --check .
Expand Down Expand Up @@ -74,4 +74,4 @@ jobs:
id: json-yaml-validate
uses: GrantBirki/json-yaml-validate@v2.0.0
with:
exclude_file: json_validate_exclude.txt
exclude_file: json_validate_exclude.txt
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
hooks:
- id: black
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.256"
rev: "v0.0.285"
hooks:
- id: ruff
- repo: https://github.com/codespell-project/codespell
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="3.2.1"
OPENBBTERMINAL_DOCKER_RELEASE_VERSION="3.2.2"
6 changes: 3 additions & 3 deletions 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 "3.2.1"
!define VERSION "3.2.2"
!define SLUG "${NAME} v${VERSION}"

;--------------------------------
Expand All @@ -20,8 +20,8 @@
VIAddVersionKey Comments "An installer for OpenBB Terminal. For additional details, visit OpenBB.co"
VIAddVersionKey CompanyName OpenBB.co
VIAddVersionKey FileDescription "OpenBB Terminal Program"
VIAddVersionKey FileVersion 3.2.1.0
VIAddVersionKey ProductVersion 3.2.1.0
VIAddVersionKey FileVersion 3.2.2.0
VIAddVersionKey ProductVersion 3.2.2.0
VIAddVersionKey InternalName "OpenBB Terminal"

;--------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,24 @@ echo " |___/ "

BOOTUP_MESSAGE="
The boot up process might take a while. Please be patient...
Have you checked out Community Routines yet? You can access them through the OpenBB Hub!
Get started in less than 3 minutes: https://www.youtube.com/watch?v=UFh_Ku0fdtY
"
echo "$BOOTUP_MESSAGE"

# Add some messages we can print out
messages=("" "" "" "" \
"Did you know that you can search for stocks from a given country by running stocks/search --exchangecountry COUNTRY" \
"" "" "" \
"You can jump between menus by starting your command with a backslash. To go from funds to stocks/fa, you can run /stocks/fa" \
"" "" "" \
"Every command has a help flag. To access this use the -h flag after your command.")


# Pick a random one
index=$((RANDOM % ${#messages[@]}))
echo ${messages[$index]}

"$SCRIPTDIR"/.OpenBB/OpenBBTerminal
8 changes: 4 additions & 4 deletions build/pyinstaller/version.rc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ VSVersionInfo(
ffi=FixedFileInfo(
# filevers and prodvers should be always a tuple with four items: (1, 2, 3, 4)
# Set not needed items to zero 0.
filevers=(3, 0, 0, 0),
prodvers=(3, 0, 0, 0),
filevers=(3, 2, 2, 0),
prodvers=(3, 2, 2, 0),
# Contains a bitmask that specifies the valid bits 'flags'r
mask=0x0,
# Contains a bitmask that specifies the Boolean attributes of the file.
Expand All @@ -32,10 +32,10 @@ VSVersionInfo(
[StringStruct('Comments', 'The OpenBB Terminal. For additional details, visit OpenBB.co'),
StringStruct('CompanyName', 'OpenBB'),
StringStruct('FileDescription', 'OpenBB Terminal Program'),
StringStruct('FileVersion', '3.2.1.0'),
StringStruct('FileVersion', '3.2.2.0'),
StringStruct('InternalName', 'OpenBB Terminal'),
StringStruct('ProductName', 'OpenBB Terminal'),
StringStruct('ProductVersion', '3.2.1.0')])
StringStruct('ProductVersion', '3.2.2.0')])
]),
VarFileInfo([VarStruct('Translation', [1033, 1200])])
]
Expand Down
4 changes: 2 additions & 2 deletions custom_pre_commit/check_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ def main(ignore_files: Optional[str], ignore_commands: Optional[str]):
if not undocumented:
sys.exit(0)
else:
print("The following commands do not have documentation:")
print("The following commands do not have documentation:") # noqa: T201

undocumented = list(undocumented)
undocumented.sort()
for item in undocumented:
print(item)
print(item) # noqa: T201
sys.exit(1)


Expand Down
2 changes: 1 addition & 1 deletion custom_pre_commit/check_reserved_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def process_file(file_path: str, exp: str):
if long_arg is not None:
long_arg = long_arg.group()
if long_arg not in ("HistoryManager.hist_file", RESERVED_ARGS[short_arg]):
print(
print( # noqa: T201
f"{file_path}: "
f"'-{short_arg}' argument expected '{RESERVED_ARGS[short_arg]}'"
f" but assigned to '{long_arg}'"
Expand Down
15 changes: 15 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,18 @@ This notebook demonstrates how to fetch and work with options chains data.
- Calculate and visualize the Net Delta Exposure, in dollars, by strike and expiration.
- Visualize the term structure of the implied volatility skew.
- Get tables with multiple single-leg options strategies.

### googleColabInstallation

This notebook demonstrates how to install the OpenBB SDK within Google Colab.


### volumeAtPrice

Volume-at-price is a chart used by technical analysts as a visual gauge to where the trading levels are concentrated, relative to price and volume. In short, it is the sum of volume at different price levels. This notebook utilizes individual components of the OpenBB SDK and combines them to build a new view.

- Price
- Volume
- VWAP
- SMA
- OpenBBFigure
Loading

0 comments on commit 478ca2f

Please sign in to comment.