Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.4%) to scientific vocabulary
Last synced: 9 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: ch33nchan
  • License: apache-2.0
  • Language: Jupyter Notebook
  • Default Branch: main
  • Size: 7.73 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme License Citation

README.md

Okay, here is the content of the file based on the provided context. Since I don't have the specific diff of the changes made previously, I'm showing the relevant sections as they appear in the context.

```markdown:/Users/cheencheen/Downloads/light-quant-main/README.md

Lightning Quant

Lightning Quant is a library for algorithmic trading agents built with Lightning AI ecosystem projects Nixtla's neuralforecast and Eclectic Sheep's SheepRL. Alpaca Markets is used to fetch the historical data for the exercise.

Lightning AI's PyTorch Lightning and Lightning Fabric are agnostic to the market broker and data source. One needs only to acquire and preprocess the desired market data and then construct the requisite PyTorch DataLoaders and LightningDataModule for the PyTorch Lightning Trainer or Lightning Fabric training loop that will be used with the bespoke PyTorch model, a SheepRL algorithm, or a neuralforecast model.

SPY (S&P 500) is used in examples.

Setup

First – fork, then clone the repo. After cloning the repo to your machine, do the following in terminal to navigate to your clone:

sh cd {{ path to clone }}

Note

SheepRL requires a Python version less than 3.11 and greater than or equal to 3.8.

If you have Python 3.10, 3.9, or 3.8 as system Python, you can create and activate a virtual environment with:

sh python3 -m venv .venv source .venv/bin/activate

If you have Python 3.11 or later as system Python, but have homebrew installed, you can install Python 3.10 and then create the venv with:

sh brew install python@3.10 python3.10 -m venv .venv source .venv/bin/activate

If you have Python 3.11 or later as system Python, but have conda or miniconda installed, create the conda env with:

sh conda create -n lit-quant python=3.10 -y conda activate lit-quant

Then, install an editable version of lightning-quant with:

sh pip install -e .

Note

ensure your venv or conda env is activated before proceeding

Note

the example uses pip regardless of if you've created your env with venv or conda

Note

if you are on an Apple Silicon powered MacBook and encounter an error attributed box2dpy during install, you need to install SWIG using the instructions shown below to support gym and gymnasium.

It is recommended to use homebrew to install SWIG to support Gym.

```sh

if needed, install homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

then, do

brew install swig

then attempt to pip install again

pip install -e . ```

Requirements

The instructions shown above will install the base requirements, those requirements are:

Additional Requirements

Note

To install the Cython version of TA-Lib, you must first install the SWIG version.

```sh

if needed, install homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

then, do

brew install ta-lib

then install Cython Ta-Lib

pip install TA-lib ```

Using Lightning-Quant

Lightning-Quant provides a CLI, quant. The available commands for quant are shown below.

To run data acquisition, feature engineering, brute force optimization, and label generation at one time, do:

sh quant run agent --key-YOUR-ALPACA-KEY --secret=YOUR-ALPACA-SECRET-KEY --symbol=SPY

Alternatively, you can create a .env file and lightning-quant will automatically load the provided environment variables for you. And then use the following in terminal:

sh quant run agent --symbol=SPY --tasks=all

Warning

do not commit your .env files to GitHub

The contents of your .env file should be:

txt API_KEY=YOUR_API_KEY SECRET_KEY=YOUR_SECRET_KEY

Owner

  • Name: Srinivas T B
  • Login: ch33nchan
  • Kind: user
  • Location: Bangalore,India

Machine Learning Engineer & Autonomous Vehicles

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
  - family-names: lastName
    given-names: firstName
  - name: "FirstName LastName"
title: "lightning_quant"
version: 0.0.1
date-released: 2022-08-06
license: "Apache-2.0"
repository-code: ""
keywords:
  - machine learning
  - deep learning
  - artificial intelligence

GitHub Events

Total
  • Push event: 3
  • Create event: 2
Last Year
  • Push event: 3
  • Create event: 2