Skip to content

ayushmaanbhav/stockmart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

StockMart

A java based Virtual Stock Exchange Game (VSE)
Want to know more about Stock Markets? Here: https://www.youtube.com/watch?v=F3QpgXBtDeo

Description:

I developed the application in two parts, a client applet which interacts with a server application via TCP. The features of the client applet include live ranking, chat discussion, news items, company stocks and their market values, the status of share market and sensex. The features of the admin application (server) include live view of the users, their details, stocks and money, set news items, set time limit, block chat, delete user, view rankings, chat discussion and edit stock prices.

Features and Improvements (Branch: real-bid):

Introduced real bidding whereas the code in the master branch operates on Monte Carlo simulation and there is no real bidding. Introduced many new features like bid graphs and order queue graphs !!! Fixed many bugs.... Developed a matching engine for matching orders or bids..... Improved code structure....

Guidelines

Server

* money.txt: specify user's initial money. user will get that money and some random shares of the same value.
* companies.txt: specify the companies and their initial share value just after their name, separated by a ":", ignore rest of the values. eg:
"Reliance:260"
(one company per line)
* reg.txt: if only user with allotted regnos are to be able to play then specify the registration nos in this file, (only small chars and numbers), you can disable the regno. checking by clicking on the button "CheckREG" on the main screen.
* Start server by double clicking it, set the time limit, wait for the users to connect, finally start the server by clicking the start button...
* You can add spice to the game by using the text area below to show news to the users. "ONE NEWS ITEM PER LINE". News about companies to fluctuate the prices. :) Eg. of a positive news:
"Microsoft announces Windows 10. This new version will thrill the users."
* You can view users in the user panel, increase their money, give them bonus, increase their chat, change their pass, ban and delete them, view their stocks and orders... etc
* You can view the pending orders in the order queue and manually cancel them if necessary or u face any problem.

Client:

* Start client by cmd prompt or terminal by giving ip of the server as the first argument eg:
"java -jar StockMartClient.jar -localhost"
* Register (each field is restricted to use only small chars and nos.), login and start playing.

Screenshots:

Server:

Client: