CliffS / kraken-exchange

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

Error: KrakenAPI: EGeneral:Permission denied on placing order. #24

Open anaamnizami opened 3 years ago

anaamnizami commented 3 years ago

I haven`t enabled 2fa and I am getting the following error on kraken.addOrder() Error: KrakenAPI: EGeneral:Permission denied on placing order.

    const param = {
    pair : 'XXRPZUSD',
    type: 'buy',
    ordertype : 'market',
    volume : 100}
    kraken.addOrder(param).then((result)=>{
        console.log(result)
    }).catch((err)=>{
        console.log(err)
    })
CliffS commented 3 years ago

@anaamnizami Presumably you have called new Kraken() with the appropriate API_KEY and PRIVATE_KEY?

anaamnizami commented 3 years ago

const kraken = new Kraken(key, secret); yep and made sure api key and secret both are correct, although it is a new accout, and just transferred some funds few hours ago.