Final Project Web Mobile Crypto Sim Mobile Application - SaumYazdani/Web-Mobile-FInal-Project GitHub Wiki
Team Members:
Saum Yazdani (Team Leader), Ravi Teja, Harshitha Challa
Objective:
For our final project, we decided to create a crypto trading app that simulates trading Bitcoin. The goal is to train the user to invest their money more efficiently - the app requires no fiat money to be spent.
Screen 1
The first screen is a simple login page. No code is provided since it was used from a template upon creation of the project.
Screen 2
Screen 2 is where the user selects how much money they would like to tart investing with
The Output
The code is mainly used for error handling and value validation. If the user enters 0, or no number at all, a message will appear. After the user enters a number then hits the account overview button, the value will be transported to the next screen.
Screen 3
Screen 3 is where the user will see their account overview and statistics. This is where all the calculations for profit loss, percent return, and return on investment are done.
The initial Output
As mentioned above, the code is responsible for calculating the statistics of the user. The code also makes a get request to access the bitcoin price to preform some of the calculations. The majority of the code is refreshed every 1 second to get an updated bitcoin price, and thus an updated statistics view. Finally, we will pass all the necessary values to the next screen so that they can be manipulated.
Screen 4
Screen 4 is where the user will be able to spend the balance they entered on bitcoin. This is also where they can sell however much bitcoin they'd like. Their remaining balance and bitcoin ownership amt are updated with each sale/purchase.
Output after purchasing $45,000 worth of btc.
Similarly to part 2, we are accessing the api and parsing the JSON response to get the btc price for later calculations.
Next we set the chart with an incrementor and the bitcoin price.
The bulk of the code for part 4 is the logic for buying and selling. We need to check many different cases to ensure no error occurs and that the program displays the proper error message.
Finally, the values are returned to screen 2 for calculations.
Account overview page after purchasing $45,000 in bitcoin and selling .017285 of it (to get an even .8). Statistics are updated.