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

Feature/proper polo dep #2435

Merged
merged 4 commits into from
Aug 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions exchange/package-lock.json

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

2 changes: 1 addition & 1 deletion exchange/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"kraken-api": "^1.0.0",
"lodash": "^4.17.5",
"moment": "^2.22.1",
"gekko-broker-poloniex": "^0.0.11",
"gekko-broker-poloniex": "^0.0.12",
"request-promise": "^4.2.2",
"retry": "^0.12.0",
"gekko-bittrex": "^0.8.5"
Expand Down
8 changes: 6 additions & 2 deletions exchange/wrappers/poloniex.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Poloniex = require("poloniex.js");
const Poloniex = require("gekko-broker-poloniex");
const _ = require('lodash');
const moment = require('moment');
const retry = require('../exchangeUtils').retry;
Expand All @@ -18,7 +18,11 @@ const Trader = function(config) {

this.pair = this.currency + '_' + this.asset;

this.poloniex = new Poloniex(this.key, this.secret);
this.poloniex = new Poloniex({
key: this.key,
secret: this.secret,
userAgent: 'Gekko Broker v' + require('../package.json').version
});
}

const recoverableErrors = [
Expand Down