Git Product home page Git Product logo

algotrading_colab's Introduction

Getting Started

Setting up Virtual Environment with Python venv

Read through the Python Venv Docs and setup your virtual environment. I setup mine by creating a .venv directory in my user folder

$ cd C:/Users/USER_NAME/.venv
$ python -m venv ENV_NAME
$ C:/Users/USER_NAME/.venv/ENV_NAME/Scripts/Activate

Then point VSCode to the python instance located at C:/Users/USER_NAME/.venv/ENV_NAME/Scripts/python.exe

if you are using code-runner add the following into your workspace .code-workspace "settings"

    "code-runner.executorMap": {
        "python": "$pythonPath -u $fullFileName"
    }

Note, the virtual environment and the files for the project do not need to be in the same directory or share the same name. For example, i have the following:

virtual env: C:/Users/USER_NAME/.venv/AlgoTrading/
program files: D:/git/AlgoTrading/

Setting up a Docker Image for local Data Base

Take a read through the following:

Install dependencies

Activate your virtual environment

first, ensure your virtual environment is active

$ C:/Users/USER_NAME/.venv/ENV_NAME/Scripts/Activate

Install TA-lib

TA-lib, short for Technical Analysis Library is a C library that has a python wrapper. In order for it to work, the binary files need to be installed. Vist the "Unofficial Windows Binaries for Python Extension Packages" and download the relevant .whl package.

To locate the correct package to install, determine your system's architecture (it is probably 64 bit) and your version of python

(ENV_NAME) $ python --version   # Prints your current python version (Make sure you are in the virtual env)

If you are using python version 3.9 on a 64-bit machine, you want TA_Lib‑0.4.21‑cp39‑cp39‑win_amd64.whl. If your version of python is not 3.9, then select the appropriate .whl file to download.

Ensuring your virtual environment is active, install the .whl file according to The Pip documentation. The following worked for me. Your .whl file name may be different

(ENV_NAME) $ py -m pip install TA_Lib‑0.4.21‑cp39‑cp39‑win_amd64.whl

Install from requirements file

(ENV_NAME) $ pip install -r requirements.txt

Creating the API Keys file

rename the config_template.py file (located in /algotradingcolab/db) to config.py and populate the relevant fields

algotrading_colab's People

Contributors

jkalish14 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.