Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 1.05 KB

README.md

File metadata and controls

50 lines (30 loc) · 1.05 KB

OandaTrader

This is a UI to be able to interact with the user account and Oanda Worker strategies.

oanda_trader_ui

Usage

Development

Start the service

bin/rails s

Start the workers

WORKERS=StrategyActivityJob,StrategyWarningJob,StrategyProgressJob,StrategyUpdateJob bundle exec rake sneakers:run

Backtesting

Start the service

RAILS_ENV=backtest bin/rails s --pid `pwd`/tmp/pids/server_backtest.pid

Start the workers

RAILS_ENV=backtest WORKERS=StrategyActivityJob,StrategyWarningJob,StrategyProgressJob,StrategyUpdateJob bundle exec rake sneakers:run

Developer Setup

Create the database

bin/rails db:create
RAILS_ENV=backtest bin/rails db:create

Migrate the database

bin/rails db:migrate
RAILS_ENV=backtest bin/rails db:migrate

Setup the database with the required authenticated users

bin/rails db:seed
RAILS_ENV=backtest bin/rails db:seed