GithubHelp home page GithubHelp logo

datashaft / q4_majorshortsqueezes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from superstonkquants/q4_majorshortsqueezes

0.0 0.0 0.0 216 KB

Using this repo we try to answer the question how many major short squeezes have happened in the US stock market.

License: MIT License

Shell 3.54% Python 96.46%

q4_majorshortsqueezes's Introduction

q4_majorshortsqueezes

Using this repo we try to answer the question how many major short squeezes have happened in the US stock market.

Getting Started

Install

We have the same building infrastructure as the GameStonkTerminal: https://github.com/GamestonkTerminal/GamestonkTerminal

If you want to use or contribute to the GameStonkTerminal you can use the same tech stack.

Install

This project supports Python 3.9.

Our current recommendation is to use this project with Anaconda's Python distribution - either full Anaconda3 Latest or Miniconda3 Latest. Several features in this project utilize Machine Learning. Machine Learning Python dependencies are optional. If you decided to add Machine Learning features at a later point, you will likely have better user experience with Anaconda's Python distribution.

  1. Install Anaconda

Confirm that you have it with: conda -V. The output should be something along the lines of: conda 4.9.2

  1. Install git
conda install -c anaconda git
  1. Clone the Project
  • Via HTTPS: git clone https://github.com/DidierRLopes/GamestonkTerminal.git
  • via SSH: git clone [email protected]:DidierRLopes/GamestonkTerminal.git
  1. Navigate into the project's folder
cd GamestonkTerminal/
  1. Create Environment

You can name the environment whatever you want. Although you could use names such as: welikethestock, thisistheway or diamondhands, we recommend something simple and intuitive like gst. This is because this name will be used from now onwards.

conda create -n q4 --file conda/conda-3-9-env.yaml
  1. Activate the virtual environment
conda activate q4

Note: At the end, you can deactivate it with: conda deactivate.

  1. Install poetry dependencies
poetry install

This is a library for package management, and ensures a smoother experience than: pip install -r requirements.txt

  1. You are ready to interact with the package. The following pulls GME, AMC and TSLA and returns only the tickers that have doubled in value within 5 consecutive days in 2021. The historical price data of the returned tickers is written to the ./ticker_data dir.
poetry run python bin/pull_data.py --tickers GME AMC TSLA --start-date "2020-01-01" --filters "q4_majorshortsqueezes.filter/double_price_within_a_week" --output-path ./ticker_data

For help messages use the -h option:

poetry run python bin/pull_data.py -h

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.