GithubHelp home page GithubHelp logo

hackgtx's Introduction

GENERATE JSON

Steps

  1. Go to data-ingest dir
  2. python3 -m venv venv
  3. python3 -m pip install -r requirements.txt
  4. python3 -m pip install yfinance
  5. python3 main.py

JSON file generation

  • stocks: list of stocks
  • stockOpenPrices: last price the market closed on (Friday)
  • week: stock prices for last week (5 minute data)
  • month: stock prices for last month (hour data)
  • year: stock prices for last year (day data)

API Endpoints

  • GET /today?stock={stock_name}
  • GET /week?stock={stock_name}
  • GET /month?stock={stock_name}
  • GET /year?stock={stock_name}

Return

{
    "prices": [0, 1, 2],
    "error": "error string",
}

Prices is a list of numbers, starting from opening to close, with the specified interval

Valid stock names

From https://www.nasdaq.com/market-activity/quotes/historical

  • AAPL (Apple)
  • SBUX (Starbucks)
  • MSFT (Microsoft)
  • CSCO (Cisco Systems)
  • QCOM (QUALCOMM)
  • META (Meta)
  • AMZN (Amazon.com)
  • TSLA (Tesla)
  • AMD (Advanced Micro Devices)
  • NFLX (Netflix)

NOTE: JSON file is autogenerated by data-ingest

Generate Random Trade Data

percent chance to go down based on delta: diff bw curr + open price

  • [delta] = [up chance] [down chance]
  • 0 = 50% 50%
  • -1 = 100% 0%
  • 1 = 0% 100%
  • 0.5 = 25% 75%

will generate up to the current minute's data points for today, then generate 1/min

Paper Trading

idfk

hackgtx's People

Contributors

nickburnett avatar michaelzhao21 avatar abdullah50053 avatar

Stargazers

 avatar

Watchers

 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.