Deriv API error code
Deriv API error: InvalidToken
The error, as text you can copy
InvalidToken- Kind
- API error code
- HTTP status
- None recorded for this error
- API
- Deriv
What does InvalidToken mean on the Deriv API?
The token is not valid or has expired. Deriv lists this among its common error codes.
Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.
Independent and unofficialdevelopers.deriv.comchecked
How do I fix InvalidToken?
Obtain a fresh token. For a WebSocket connection, Deriv's page says to request a fresh OTP URL from the accounts OTP endpoint and reconnect.