Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

Commit

Permalink
mv bittrex dep to GB, update version
Browse files Browse the repository at this point in the history
  • Loading branch information
askmike committed Jul 15, 2018
1 parent bfd703c commit 2ca129c
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 119 deletions.
69 changes: 68 additions & 1 deletion exchange/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion exchange/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"moment": "^2.22.1",
"poloniex.js": "git://github.com/askmike/poloniex.js.git#69f5e254353e66d135070844fc3328efcbe3641c",
"request-promise": "^4.2.2",
"retry": "^0.12.0"
"retry": "^0.12.0",
"node.bittrex.api": "^1.0.0"
}
}
15 changes: 6 additions & 9 deletions exchange/wrappers/bittrex.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
var Bittrex = require('node.bittrex.api');
var util = require('../core/util.js');
var _ = require('lodash');
var moment = require('moment');
var log = require('../core/log');
const Bittrex = require('node.bittrex.api');
const _ = require('lodash');
const moment = require('moment');

// Helper methods
function joinCurrencies(currencyA, currencyB){
return currencyA + '-' + currencyB;
}

var Trader = function(config) {
_.bindAll(this);

if(!config.key) {
// no api key defined -> we need to set a dummy key, otherwise the Bittrex module will not work even for public requests
// no api key defined -> we need to set a
// dummy key, otherwise the Bittrex module
// will not work even for public requests.
config.key = 'dummyApiKey';
config.secret = 'dummyApiKey';
}

// override if cmd line mode (not --ui)
if(_.isObject(config)) {
this.key = config.key;
this.secret = config.secret;
Expand Down
108 changes: 1 addition & 107 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"lodash": "2.x",
"moment": "^2.20.1",
"node-wex": "^1.0.3",
"node.bittrex.api": "^0.4.3",
"okcoin-china": "0.0.7",
"opn": "^4.0.2",
"promisify-node": "^0.4.0",
Expand Down

0 comments on commit 2ca129c

Please sign in to comment.