CliffS / kraken-exchange

A library to access the Kraken Bitcoin Exchange
GNU General Public License v3.0
11 stars 10 forks source link

closetype is not woking #5

Closed AhmedSalama81 closed 5 years ago

AhmedSalama81 commented 5 years ago

Hello,

I am trying to use close condition but its not working. the order filled without adding the close order.

var params = {pair: 'CRPUSD ', type: 'buy' , ordertype: 'market' , volume: 1.00000000 , leverage: 5, closetype : 'stop-loss' , closeprice : '-10%' }

Br Ahmed

AhmedSalama81 commented 5 years ago

I got it.

var params = {pair: 'XRPUSD ', type: 'buy' , ordertype: 'market' , volume: 1.00000000 , leverage: 5, 'close[ordertype]' : 'stop-loss' , 'close[price]' : '-10%'}