Browse Source

mv triggers into gekko broker

develop
Mike van Rossum 3 years ago
parent
commit
a7038a7163
4 changed files with 5 additions and 4 deletions
  1. +2
    -1
      core/util.js
  2. +0
    -0
      exchange/triggers/trailingStop.js
  3. +1
    -1
      plugins/paperTrader/paperTrader.js
  4. +2
    -2
      test/triggers/trailingStop.js

+ 2
- 1
core/util.js View File

@ -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) {

core/triggers/trailingStop.js → exchange/triggers/trailingStop.js View File


+ 1
- 1
plugins/paperTrader/paperTrader.js View File

@ -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);

+ 2
- 2
test/triggers/trailingStop.js View File

@ -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', () => {

Loading…
Cancel
Save