/oanda_trader

Oanda trading platform user interface to interact with the user account and trading strategies.

Primary LanguageRubyMIT LicenseMIT

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