yobit
yobit copied to clipboard
addTrade : Invalid Method
Hi there,
First of all thanks for the great work! I am trying to use the code but I cannot make it works :(
privateYoBit.addTrade(function(err,data){
console.log(data);
console.log(err)
}, {symbol : 'eth_btc', type : 'buy', amount : 0.04, price : 0.02});
}
I get the following:
{ success: 0, error: 'invalid method' } null
what am I doing wrong? I have tried also the below with the same results:
privateYoBit.addTrade(function(err,data){
console.log(data);
console.log(err)
},"eth_btc","buy",0.04, 0.02);
}
I can easily use the "getInfo" method, but not the addTrade...
Cheers
see pull request https://github.com/kwiksand/yobit/pull/9