Skip to content

Commit

Permalink
mv triggers into gekko broker
Browse files Browse the repository at this point in the history
  • Loading branch information
askmike committed Aug 27, 2018
1 parent 2e0b4e2 commit a7038a7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion core/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ var util = {
tools: ROOT + 'core/tools/',
workers: ROOT + 'core/workers/',
web: ROOT + 'web/',
config: ROOT + 'config/'
config: ROOT + 'config/',
broker: ROOT + 'exchange/'
}
},
inherit: function(dest, source) {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion plugins/paperTrader/paperTrader.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const watchConfig = config.watch;
const dirs = util.dirs();
const log = require(dirs.core + 'log');

const TrailingStop = require(dirs.core + 'triggers/trailingStop');
const TrailingStop = require(dirs.broker + 'triggers/trailingStop');

const PaperTrader = function() {
_.bindAll(this);
Expand Down
4 changes: 2 additions & 2 deletions test/triggers/trailingStop.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ const moment = require('moment');
const utils = require(__dirname + '/../../core/util');

const dirs = utils.dirs();
const TrailingStop = require(dirs.core + 'triggers/trailingStop');
const TrailingStop = require(dirs.broker + 'triggers/trailingStop');

describe('core/trigger/trailingStop', () => {
describe('exchange/triggers/trailingStop', () => {
let cb;

it('should instantiate a trailing stop loss trigger', () => {
Expand Down

0 comments on commit a7038a7

Please sign in to comment.