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

fix exchange response key #990

Merged
merged 1 commit into from
Dec 27, 2017
Merged
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
7 changes: 4 additions & 3 deletions extensions/exchanges/kraken/exchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@ module.exports = function container(get, set, clear) {
if (assetsToFix.indexOf(asset) >= 0 && currency.length > 3) {
currency = currency.substring(1)
}
return asset + currency;
return `X${asset}X${currency}`
}

function retry(method, args, error) {
let timeout, errorMsg
if (error.message.match(/API:Rate limit exceeded/)) {
var timeout = 10000
timeout = 10000
} else {
var timeout = 150
timeout = 150
}

// silence common timeout errors
Expand Down