Skip to content

GGFM2023/shift-python

 
 

Repository files navigation

SHIFT Python

Installation

Docker Image Installation (recommended)

  • Step 01:

    • Install or upgrade your operating system to latest version:
  • Step 02:

    • Install Docker. When you install Docker, make sure to choose Linux Containers and not Windows Containers:
    • For Windows, if you store your file in a different drive location from C:/, then you will need to access the Docker preferences to add other Shared Folder locations, such as D:/ or whatever.
    • Follow the online Docker installation instructions carefully and make sure to test the Docker installation.
    • NOTE: In some cases, you may need to enable virtualization on your computers.
  • Step 03:

    • Download shift-python_x.x.x_docker.zip, the Docker Compose package from our GitHub Release Page.
    • Unzip the downloaded file to somewhere you like.
    • Access a terminal window on your computer. You may require admin privileges:
      • For macOS, Terminal.app.
      • For Windows, Powershell (run as administrator). NOTE: do not use PowerShell ISE.
cd [directory-you-unzipped-the-package]
docker-compose build
  • If successful, you should see the Docker image named shift-python_xxx_docker_anaconda3 by running:
docker images
  • Now you should be able to run the SHIFT Python Docker image by running:
docker-compose up

Anaconda Packages Installation (linux only)

Note: This is for Linux users only. Windows and macOS are not yet supported.

  • Run the following to create a new shift environment and install SHIFT Python:
conda create -y -n shift python=3.6 anaconda
conda activate shift
wget -qO- https://github.com/hanlonlab/shift-python/releases/download/beta/shift-python_beta_conda_linux64.zip | bsdtar -xvf-
cd shift*
conda install *.tar.bz2

Get Started with PyCharm Pro

  • Install PyCharm Pro. Use your Stevens email address to request a free student license (https://www.jetbrains.com/student).
  • Configuring Docker as a remote interpreter:
    • For Windows, follow the extra instructions in the Prerequisites session of this guide.
    • Open an existing project, or create a completely new Python project in Pycharm Pro.
    • Follow the steps in the Configuring Docker as a remote interpreter session of this guide.

Get Started with Command Line

  • Run conda activate shift to get into the shift environment. You need to do this every time you open a new shell (or you can add this command onto your .bashrc or .bash_profile file).
  • If you see (shift) in the beginning of your command line, that means you are in the right environment to run SHIFT.
  • Don't forget to import shift when you use Python with SHIFT.

About

Stevens High Frequency Trading (SHIFT) Simulation System - Python Client

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 33.4%
  • HTML 22.2%
  • Jupyter Notebook 12.6%
  • QMake 10.2%
  • CMake 9.8%
  • Python 5.0%
  • Other 6.8%