What does this error mean?
"EAPI:Invalid nonce" means Kraken received an API request with a nonce value that was repeated or lower than expected.
Why does this happen?
Every API request to Kraken must include a unique, incrementing nonce value. Because the nonce must always increase with each request, errors occur when making simultaneous requests, requests in rapid succession, or when using a single API key across multiple devices, apps, or bots.
For example: if two simultaneous requests are sent, they may not arrive at Kraken in the intended order. If the second request (with the higher nonce) arrives first, the first request (with the lower nonce) will be rejected when it arrives. Invalid nonce errors cause your orders to fail and should not be ignored.
What you can do
Create multiple API keys: Cryptohopper supports using 2 separate API keys for Kraken, and we recommend doing this for the best trading experience. Each key has its own nonce counter, so simultaneous requests no longer conflict. Follow the step-by-step guide on how to connect to Kraken with API keys.
Increase the nonce resolution: A higher nonce resolution allows more requests within the same time frame. Cryptohopper recommends using 1000 or 10000 as the nonce value.
Verify it's fixed
After making changes, monitor your bot's log to confirm the error no longer appears.
