Everyone starts with $100k to invest - but this amount can be changed inside account.json.
HOW TO GET STARTED
- Clone & Download this Repo.
- Create a local .env file in this repo with the line below.
FINNHUB_API_KEY="XXXXXXXXXXXXXXXX"
- Create a Finnhub API Token; swap out the X's in the .env with the API Token.
- Use the following commands via CLI to play:
VIEW ACCOUNT:
node index.js account
VIEW A STOCK PRICE:
node index.js symbol="AAPL"
BUY A STOCK:
node index.js buy="AAPL, 10"
SELL A STOCK:
node index.js sell="AAPL"
SELL A PARTIAL AMOUNT OF STOCK:
node index.js sell="AAPL, 2"
VIEW PROFIT / LOSS REPORT:
node index.js report