Skip to content

Commit

Permalink
cleand up folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
askmike committed Dec 31, 2013
1 parent 87ce32e commit c6455ab
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 386 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion exchangeChecker.js → core/exchangeChecker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var exchanges = require('./exchanges.js');
var exchanges = require('../exchanges.js');
var _ = require('lodash');

var Checker = function() {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion portfolioManager.js → core/portfolioManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var events = require("events");
var log = require('./log');
var async = require('async');
var exchangeChecker = require('./exchangeChecker.js');
var exchanges = require('./exchanges.js');
var exchanges = require('../exchanges.js');

var Manager = function(conf) {
this.exchangeSlug = conf.exchange.toLowerCase();
Expand Down
2 changes: 1 addition & 1 deletion tradeFetcher.js → core/tradeFetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var config = util.getConfig();
var exchangeChecker = require('./exchangeChecker');

var provider = config.watch.exchange.toLowerCase();
var DataProvider = require('./exchanges/' + provider);
var DataProvider = require('../exchanges/' + provider);

var Fetcher = function() {
_.bindAll(this);
Expand Down
File renamed without changes.
76 changes: 0 additions & 76 deletions exchanges/bitcoincharts.js

This file was deleted.

4 changes: 2 additions & 2 deletions exchanges/bitstamp.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
var Bitstamp = require("bitstamp");
var util = require('../util.js');
var util = require('../core/util.js');
var _ = require('lodash');
var moment = require('moment');
var log = require('../log');
var log = require('../core/log');

var Trader = function(config) {
if(_.isObject(config)) {
Expand Down
4 changes: 2 additions & 2 deletions exchanges/btce.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
var BTCE = require('btc-e');

var moment = require('moment');
var util = require('../util');
var util = require('../core/util');
var _ = require('lodash');
var log = require('../log')
var log = require('../core/log')

var Trader = function(config) {
this.key = config.key;
Expand Down
4 changes: 2 additions & 2 deletions exchanges/cexio.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ var CEXio = require('cexio'),
moment = require('moment'),
async = require('async'),
_ = require('lodash'),
util = require('../util'),
log = require('../log');
util = require('../core/util'),
log = require('../core/log');

var Trader = function(config) {
this.user = config.username;
Expand Down
10 changes: 5 additions & 5 deletions gekko.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
// helpers
var moment = require('moment');
var _ = require('lodash');
var util = require('./util');
var log = require('./log');
var util = require('./core/util');
var log = require('./core/log');
var async = require('async');
var Manager = require('./portfolioManager');
var exchangeChecker = require('./exchangeChecker');
var Manager = require('./core/portfolioManager');
var exchangeChecker = require('./core/exchangeChecker');

var config = util.getConfig();

Expand Down Expand Up @@ -60,7 +60,7 @@ util.setConfig(config);

// var TradeFetcher = require('./tradeFetcher.js');
// var tradeFetcher = new TradeFetcher();
var CM = require('./candleManager');
var CM = require('./core/candleManager');
var cm = new CM;

cm.on('prepared', function(history) {
Expand Down
111 changes: 0 additions & 111 deletions historicalCandleFetcher.js

This file was deleted.

4 changes: 2 additions & 2 deletions methods/exponential-moving-average-crossovers.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
// helpers
var moment = require('moment');
var _ = require('lodash');
var util = require('../util.js');
var util = require('../core/util.js');
var Util = require('util');
var log = require('../log.js');
var log = require('../core/log.js');

var config = util.getConfig();
var settings = config.EMA;
Expand Down
Loading

0 comments on commit c6455ab

Please sign in to comment.