Share your repls and programming experiences

← Back to all posts
Stock Market Simulator
AH3973

Have you ever wanted to invest in stocks but don't have any money? Well this program lets you buy and sell virtual stock, for absolutely nothing! You will be able to buy 3 popular stocks: AAPL, AMZN, and TSLA.

To buy or sell stocks, type Buy/Sell (amount of stock) (ticker)

To leave the interface, type: "Quit"

To view your current holdings, type: "position"

Voters
AH3973
Comments
hotnewtop
[deleted]

You should add an anti-error system to prevent errors from happening when you type something not valid and rather it say you can't do that action or it's not an action.