yobit icon indicating copy to clipboard operation
yobit copied to clipboard

addTrade : Invalid Method

Open xFABRIKA opened this issue 7 years ago • 1 comments

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

xFABRIKA avatar Nov 20 '17 21:11 xFABRIKA

see pull request https://github.com/kwiksand/yobit/pull/9

road-cycling avatar Jan 01 '18 15:01 road-cycling