Giter Club home page Giter Club logo

stock-mock's Introduction

STOCK MOCK

First, let's procrastinate:

https://www.youtube.com/watch?v=Qujrvw_qHH0

STOCK MARKET SIMULATION

each player when signed up gets 50.000 $ for start

JOIN:

- signup an account 

- log in 

- make a transaction/ check your stocks 

- you have 50.000$, trade away !

ORDER TYPES:

- MARKET ORDER: trade by bid/ask price.

- STOP ORDER: set a price and wait untill the market accepts and you get your stocks (or money if selling).

- LIMIT ORDER: set a price and wait untill the market accepts, then the order becomes market order.

Current Features:

- See stocks in database 

- Add order to buy/sell stocks

- Check what stock/assets you are having.

- Check what transactions are pending ( stop order or limit order ). Which means they are being processed by a cron job I set up, which will process or decline the transaction if the price is met/expired.

- When pending transactions go through ( accepted or declined ), you will receive/lose money/stocks.

- when clients make order for an odd stock, the system will grab that stock, return false if no stock found. 

Working on :

- Site security.

- ajax for automatic refresh (so user can see stock prices update every 60 seconds);

- stock-bot: a bot that trades stocks (long-term) 

TECHNICAL SPECS

  • use alphavantage.co API for stock data

  • NodeJS + ReactJS with mongoDB (caching stock price) and MySQL (core data).

  • run 2 workers (cron jobs):

    • API worker: read data from mongoDB, query new stock data every 10 minutes from alphavantage.co

    • Stock Analisys worker: check users' transactions to see if the new stock price match the transition price, if so then proceed the transaction. This worker also remove out-dated transactions.

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.