# Invalid API key, IP, or permissions for action (-2015)

<figure><img src="https://2379306380-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcGt1WO05UW3ODmKzfeWL%2Fuploads%2FEm0wk8ufUIPNFZUTnAsY%2FInvalid%20API%20key.jpg?alt=media&#x26;token=828b6955-3ee3-43d9-9225-7d63244325d5" alt=""><figcaption></figcaption></figure>

Go to Binance.com and allow trading for SPOT or FUTURES

<figure><img src="https://2379306380-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcGt1WO05UW3ODmKzfeWL%2Fuploads%2FZdsgvS369Vd88KZnEar7%2FScreenshot%202022-12-02%20at%2012.13.23.png?alt=media&#x26;token=79ce4e3a-2b5e-4d43-933c-63e728dce190" alt=""><figcaption></figcaption></figure>
