Setup Your Workspace
Prerequisites
You will need the following to start with Pyalgotrading:
Step 1 | AlgoBulls Account
To upload and test your strategies, you will need this account. You can create your account for FREE on the AlgoBulls website.
Step 2 | Developer Key
To access the features, you will need a developer key.
- Get the Developer Key from the Settings section.
Note
Please Note
For security reasons, the developer key will get reset every time you log out from your AlgoBulls account.
Once you have the developer key, you can access the AlgoBulls platform using pyalgotrading
functions.
Step 3 | Python 3.10+
The Pyalgotrading platform can run all strategies that conform to Python 3.8 or higher. However, we recommend Python 3.10 or higher.
Tip
Python Tips
- It is a good idea to set up a virtual environment first while installing Python 3.10.
- Once Python is installed, most packages are easily installed in your venv using
pip install
command
Step 4 | Pyalgotrading Package
To create and execute your fully automated trading strategies, you only need to install pyalgotrading
. You can install the pyalgotrading
package using the following command:
pip install pyalgotrading
Step 5 | Jupyter Notebook
You will use a Jupyter Notebook to connect to the AlgoBulls platform. Using the notebook, you can upload the strategy, test your strategy (Backtesting, Paper Trading, or Real Trading), and fetch logs.
Install Jupyter Notebook using the following command:
pip install jupyter
Tip
If you are an experienced Pyalgotrading user, Jupyter Notebook might not be necessary. You directly integrate it into your application.
Step 6 | Enhancing Productivity
For enhancing your productivity while building and executing strategies using Pyalgotrading, you can make use of Python IDEs of your choice, such as: