GTrader is a trading strategy back-tester and bot manager.
Please use GTrader-env to set up the PHP, MySQL and Nginx-SSL environment in Docker containers.
docker run -d --name gtrader_php -p 127.0.0.1:9000:9000 gsoros/gtrader:latest
- inside the container, edit .env with your database settings
- configure your webserver to use php-fpm
- PHP 7 with GD support
- PHP-FANN extension
- Trader extension
- Composer
- NPM
git clone https://github.com/gsoros/GTrader.git
cd GTrader
composer install
npm install
cp .env.example .env
php artisan key:generate
- edit .env
- set up db
php artisan migrate
npm run dev
(crontab -l; echo -e "### GTrader Schedule\n* * * * * `which php` `pwd`/artisan schedule:run >> `pwd`/storage/logs/schedule.log 2>&1") | crontab -
php artisan serve
Trading carries a high level of risk. This software is at an early stage of development and most likely contains serious bugs. Please do not use it with a live exchange account unless you are prepared to lose part or all of your balance. Even if you are confident having extensively backtested a strategy and are familiar with the inner workings of this software, it is very likely that your strategy is suffering from overfitting or any number of the many pitfalls of algo-trading.