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

Commit

Permalink
add back internal API cache reference for orders for websocket failur…
Browse files Browse the repository at this point in the history
…es (#1277)
  • Loading branch information
krystophv authored and DeviaVir committed Feb 5, 2018
1 parent 99b2353 commit ad31de6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extensions/exchanges/gdax/exchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ module.exports = function container (get, set, clear) {
}
if (!err) err = statusErr(resp, body)
if (err) return retry('buy', func_args, err)
orders['~' + body.id] = body
cb(null, body)
})
},
Expand Down Expand Up @@ -356,6 +357,7 @@ module.exports = function container (get, set, clear) {
}
if (!err) err = statusErr(resp, body)
if (err) return retry('sell', func_args, err)
orders['~' + body.id] = body
cb(null, body)
})
},
Expand Down

0 comments on commit ad31de6

Please sign in to comment.