Saxo streaming message
Saxo streaming message: _disconnect
The error, as text you can copy
_disconnect - Kind
- Streaming message
- Where you meet it
- On the streaming connection, not in an HTTP reply
- API
- Saxo OpenAPI
What does _disconnect mean on the Saxo API?
A control message on a streaming connection. The server has closed the subscriptions, which Saxo's page says can happen when, for example, the user changes their account password. No more messages follow, and every later request is rejected with 401 until the user logs in again.
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.
How do I fix _disconnect?
Stop using the connection and have the user log in again. Saxo's page says a new subscription cannot be created after this message.