2.0 KiB
Vendored
title, sidebar_position, description, keywords
| title | sidebar_position | description | keywords | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Setup your development environment | 2 | Learn how to setup your development environment for the OpenBB Platform. |
|
import HeadTitle from '@site/src/components/General/HeadTitle.tsx';
In order to contribute to the OpenBB Platform, you need to setup your environment to ensure a smooth development experience.
Need help setting up Miniconda or Git?
Sometimes, installing Miniconda or Git can be a bit tricky, so we've prepared a set of instructions to help you get started.
Please refer to OpenBBTerminal docs for more information.
-
Clone the repository:
git clone git@github.com:OpenBB-finance/OpenBBTerminal.git -
Create and activate a virtual environment:
Supported python versions: python = ">=3.8,<3.12"
conda create -n "obb-dev" python=3.9.13 conda activate obb-dev -
Manage your environment with Poetry:
pip install poetry -
Install the packages using the
dev_install.pyscript located in theopenbb_platformfolder:python dev_install.pyTo install all the packages, including extras, use the
-eargument with the above script. -
Setup your API keys locally by adding them to the
~/.openbb_platform/user_settings.jsonfile. Populate this file with the following template and replace the values with your keys:
{
"credentials": {
"fmp_api_key": "REPLACE_ME",
"polygon_api_key": "REPLACE_ME",
"benzinga_api_key": "REPLACE_ME",
"fred_api_key": "REPLACE_ME"
}
}
You can also setup and use your keys from the OpenBB Hub and the Python interface at runtime. Follow the steps in API Keys section to know more about it.