A trading app to emulate real world stock exchange with prices updating every minute and a leaderboard to decide the winner.
Explore the docs »
·
Report Bug
·
Request Feature
Table of Contents
This repo only contains the backend to support the transactions, updates in prices and news, leaderboard and other portfolio management.
After the user has been authenticated via Auth0 (whitelisted), they are initialized with a predefined amount of currency. Once the event begins, a floating timer starts counting down to 0s from 60s after which an update in news and prices takes places. User predict the price updates based on the news. Every round also has a limit on the maximum quantity that can be purchased.
After every round the leaderboard is also updated.
To get a local copy up and running follow these simple example steps.
- yarn
npm install --global yarn
- Set up a billing account on GCP.
- Clone the repo
git clone https://github.com/aarav22/trading-app-backend.git
- Install NPM packages
yarn install
- Enter your API Keys in
.env
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.