Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

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

Open
anaamnizami opened this issue Aug 10, 2020 · 2 comments
Open

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

anaamnizami opened this issue Aug 10, 2020 · 2 comments

Comments

@anaamnizami
Copy link

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
Copy link
Collaborator

CliffS commented Aug 10, 2020

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

@CliffS CliffS self-assigned this Aug 10, 2020
@anaamnizami
Copy link
Author

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.

@CliffS CliffS removed their assignment Mar 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant