Environment Setup

How to setup Quantplay environment on your machine

The Quantplay Command Line Interface (CLI) is a unified tool to simplify algorithmic trading for everyone. This one tool caters multiple services:

  • Market data
  • Backtesting
  • Automation

To setup Quantplay CLI run the following command in terminal:

pip3 install quantplay
pip3 install qplay-cli

Adding the Quantplay CLI to your path

After installing the Quantplay CLI, the quantplay program is already in your operating system’s PATH environment variable. The quantplay program may not be added if you installed in a custom location or didn’t have proper permissions to have paths created at the time of installation. If the quanplay command doesn’t run after installing it, you might need to set it manually. To add the Quantplay CLI to your PATH, use the following instructions appropriate for your operating system.

  1. Find your shell’s profile script in your user directory. If you’re not sure which shell you have, run echo $SHELL.
ls -a ~
.  ..  .bash_logout  .bash_profile  .bashrc  Desktop  Documents  Downloads
* Bash --.bash_profile, .profile, or .bash_login
  • Zsh – .zshrc
  • Tcsh –.tcshrc, .cshrc, or .login
  1. Add an export command to your profile script. The following command adds your local bin to the current PATH variable.
export PATH=/usr/local/bin:$PATH
  1. Reload the updated profile into your current session.
$ source ~/.bash_profile