From 1abdd31f3efc9f52c1ab258da0b44d3aea982205 Mon Sep 17 00:00:00 2001 From: you21979 Date: Thu, 14 Jul 2016 15:59:33 +0900 Subject: [PATCH] mod --- lib/private_api.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/private_api.js b/lib/private_api.js index d678f7c..683fe1c 100644 --- a/lib/private_api.js +++ b/lib/private_api.js @@ -82,8 +82,8 @@ TradeApi.prototype.withdrawHistory = function(options){ TradeApi.prototype.trade = function(currency_pair, action, price, amount, options){ return this.query('trade', { - currency_pair : currency_pair, - action : action, + currency_pair : currency_pair.toLowerCase(), + action : action.toLowerCase(), price : price, amount : amount }, options) @@ -97,7 +97,7 @@ TradeApi.prototype.cancelOrder = function(order_id, options){ TradeApi.prototype.withdraw = function(currency, address, amount, options){ return this.query('withdraw', { - currency : currency, + currency : currency.toLowerCase(), address : address, amount : amount, }, options)