This was a playground project to experiment w/ stocks.
For the lack of time i'll probably NOT continue working on this. Before archiving the project in the hope that someone might find it useful, i changed the used API (from the now shut-down Yahoo finance API) to IEX Cloud and added a facade, so different APIs should be easily connectable.
Please note: This project is archived (read-only) now, so no pull-requests will be possible. Please feel free to fork and play with the project on your own new branch.
- Run: composer install
- Update database configuration in app/config.json
- Update your IEX Cloud API token in app/config.json
- Create database as in: app/deploy/install/trader.sql
- Run: app/deploy/install/import_symbols.php
Configurations for the application (database credentials, navigation elements, available currencies, etc.) and debugging/developer settings are set in: app/config.json
app/assets/js/lib - 3rd party JavaScript library sources app/assets/js/ - Application script sources app/assets/scss - CSS sources using SASS (automatically compiled w/ leafo/scssphp) var/assets - JS and CSS stylesheets (compiled and) loaded by the application.
To have JS and/or CSS assets rebuilt: delete the .js and/or .css files in the assets directory.
During bootstrap, the application checks this directory and detects whether any assets needed by the application need to be built. The assets are than compiled, minified and merged from the respective sources in app/assets.
Add a new file named w/ the prefix: "Trader.".
The assets building process of the bootstrap will recognize new assets by filename, no further configuration required. See: UiScript::mergeAndMinifyJs() in app/models/UiScript.php
The following variables are replaced in JavaScript:
- ###I::### - Replaced by translation of of active language
Written by Kay Stenschke in 2017. Licensed under the MIT License (MIT)