Investment Research for Everyone, Anywhere.
Project description
title: Installation sidebar_position: 2
Installation
We provide a simple installation method in order to utilize the OpenBB SDK. You must first create an environment, which allows you to isolate the SDK from the rest of your system. It is our recommendation that you utilize a conda
environment because there are optional features, such as forecast
, that utilize libraries that are specifically sourced from conda-forge
. Due to this, if you do not use a conda environment, you will not be able to use some of these features. As such, the installation steps will be written under the assumption that you are using conda.
Steps
:::note NOTE Make sure you meet all requirements before proceeding. :::
1. Install Miniconda
Download the x86_64
Miniconda for your respective system and follow along
with it's installation instructions. The Miniconda architecture MUST be
x86_64
in order to use certain features.
2. Create the virtual environment
conda create -n obb python=3.9.6 -y
3. Activate the virtual environment
conda activate obb
4. Install OpenBB SDK Core package
pip install openbb
5. (Optional) Install the Toolkits
5.1 If you would like to use the Portfolio Optimization features
:::note NOTE If on Apple Silicon Macs (M1/M2) you will need to install dependency from conda-forge first
conda install -c conda-forge cvxpy=1.2.2 -y
:::
Install the Portfolio Optimization Toolkit
pip install "openbb[optimization]"
5.2 If you would like ML Forecasting features
:::note NOTE If on Apple Silicon Macs (M1/M2) you will need to install the dependency from conda-forge first
conda install -c conda-forge lightgbm=3.3.3 -y
:::
Install the Forecasting Toolkit
pip install "openbb[prediction]"
5.3 If you would like to use both Portfolio Optimization and ML forecast features
:::note NOTE If on Apple Silicon Macs (M1/M2) you will need to install the dependencies from conda-forge first
conda install -c conda-forge lightgbm=3.3.3 cvxpy=1.2.2 -y
:::
Install all Toolkits
pip install "openbb[all]"
Congratulations! You have successfully installed openbb
on an environment and are now able to begin using it. However, it is important to note that if you close out of your CLI you must re-activate your environment in order begin using it again. This can be done with the following:
conda activate obb
The OpenBB SDK can be imported to a Jupyter Notebook or any code editor with, from openbb_terminal.sdk import openbb
as explained in the How to use the SDK guides. By following the above process, the OpenBB Terminal is automatically included as well which can be ran by typing openbb
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file repl_openbb-2.1.2.tar.gz
.
File metadata
- Download URL: repl_openbb-2.1.2.tar.gz
- Upload date:
- Size: 6.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d74268087bafbd8d505f64c212f7c269a0485a01fe2fce2ab1077d19da45b998 |
|
MD5 | 96eff7fb58dd9f2c2968bf9b9752cf22 |
|
BLAKE2b-256 | f4ca2b98a58f9e266cd87e25025472a0f694d02de4e73da11000d49cdc87c1c7 |
File details
Details for the file repl_openbb-2.1.2-py3-none-any.whl
.
File metadata
- Download URL: repl_openbb-2.1.2-py3-none-any.whl
- Upload date:
- Size: 7.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f295abb18b55ec6fb5778325d08dfbeda1f879e1249c87be8f3abed47a896a7e |
|
MD5 | 53afbbccee65f961200f561dfad77b8e |
|
BLAKE2b-256 | 2ffdb4fa59823eff1740394b72997aecd93db4b9aa819c64f85522a803dfb754 |