Description
Hello I've gotten the script working for buying USDT with ETH but when I try and sell the USDT for ETH I get insufficient funds error, even though I am sure I have more USDT than the 3 it would require for this test to submit an order, does anyone have suggestions?
const KrakenClient = require('kraken-api'); const kraken = new KrakenClient(key, secret); var vend = "sell"; var volume = 0.2; var price = 15; (async () => { // Get Ticker Info //var value = await kraken.api('AddOrder', { pair : 'ETHUSDT', type :
${type}, orderType: 'limit', price:
${price}, volume :
${volume}}); var value = await kraken.api('AddOrder', { pair : 'ETHUSDT', type :
${vend}, ordertype: 'limit', price:
${price}, volume:
${volume} }); var arrays = JSON.stringify(value); console.log(arrays); })();