jayrav13 / cs673-finance Goto Github PK
View Code? Open in Web Editor NEWA portfolio optimization tool.
A portfolio optimization tool.
Currently, our web application uses the cash
column in the users
table to determine if someone has enough money to buy a stock. This was the wrong way to address this.
Instead, we have to have the depositing / withdrawing of cash move to the portfolios
table.
Current cash
entity: https://github.com/jayrav13/cs673-finance/blob/master/database/migrations/01_create_users_table.sql#L12
We have to change this migration to include cash: https://github.com/jayrav13/cs673-finance/blob/master/database/migrations/02_create_portfolios_table.sql
The logic for buying a stock starts here: https://github.com/jayrav13/cs673-finance/blob/master/public/portfolio.php#L52
Cost checking in the above file starts here: https://github.com/jayrav13/cs673-finance/blob/master/public/portfolio.php#L111
Depositing / Withdrawing currently take place here - needs to be moved to the portfolios view:
Potentially create a new file in includes/
called exporter.php
or csv.php
that has functions which can format a user's portfolio or account data. The file can then be imported here for functions to be used globally:
https://github.com/jayrav13/cs673-finance/blob/master/includes/config.php#L19
I would just go check out the requirements on Moodle and build this EXACTLY according to them!
Check out the below link:
https://github.com/jayrav13/cs673-finance/blob/master/documentation/erdiagram.png
This is an ER Diagram for our proposed application. The task at hand is to create all of the CREATE TABLE
scripts and store them in the database/migrations
folder.
Note - be sure to start all files with ##_
. The files will be executed in order (i.e. 01_
, 02_
, etc). This will be important when creating foreign keys.
"autoload.php" is not available inside vendor directory.
config.php (Line#20)
require("../vendor/autoload.php");
The current lookup(...)
function returns the current stock price of a symbol. Create a second, optional parameter that requests past closing price and returns accordingly.
TO DO: A feature that allows the user to search for symbols and provides the quotes to the user.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.