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

Fixed authed_client to authedClient() function #780

Closed
wants to merge 1 commit into from
Closed
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
3 changes: 2 additions & 1 deletion extensions/exchanges/wexnz/exchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ module.exports = function container (get, set, clear) {

trade: function (type, opts, cb) {
var func_args = [].slice.call(arguments)
var client = authed_client()
var client = authedClient()
var pair = joinProduct(opts.product_id)
/* WEXNZ has no order type?
if (typeof opts.post_only === 'undefined') {
Expand All @@ -166,6 +166,7 @@ module.exports = function container (get, set, clear) {
}
*/
delete opts.order_type
delete opts.cancel_after
client.trade({'pair': pair, 'type': type, 'rate': opts.price, 'amount': opts.size }, function(err, body) {
body = statusErr(err, body)
// Fix me - Check return codes from API
Expand Down