Skip to content

Selling USDT for ETH #67

Open
Open
@BronacusAmmon

Description

@BronacusAmmon

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); })();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions