A retro stock-trading game utilizing live data.
Made mostly for fun, there's a very slow, CGI-based demo version available here.
- libcurl
- libcurses or equivalent (optional, see below)
Just run:
make ; sudo make install
This will install the market-sim binary in /usr/local/bin/
.
Uncomment the #define WITHOUT_CURSES
line in src/globals.h
, then build as described above.
When you first run market-sim
, an empty portfolio is created and you are given $1000 USD.
-
You probably want to buy some shares now; type
buy
.Enter the ticker symbol of the stock you wish to purchase:
-
Input a ticker symbol.
-
Enter the number of shares you wish to buy.
-
Confirm the transaction. This will return you to the main prompt.
-
From here, you probably want to save your porfolio to disk; type
write
. -
Enter the name of the file to save to. Careful, there's nothing to keep you from clobbering a file here!
-
Come back later and trade some more!
-
Profit!
Made with boredom and a cheaply bought keyboard.
Contributions are always welcome, see the TODO list for some things to do.
Market-Sim was written by Franklin Wei and is licensed under the GNU General Public License, version 2.