DXtrade close code
DXtrade close code: WebSocket close code 1013
The error, as text you can copy
WebSocket close code 1013- Kind
- Close code
- Where you meet it
- When a WebSocket connection closes
- API
- DXtrade APIs
What does WebSocket close code 1013 mean on the DXtrade API?
DXtrade Push API: when a client cannot consume data fast enough and data builds up in the outgoing queue beyond the maximum queue size configured on the server, the vendor says the websocket session is forcibly closed with the code 1013.
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 WebSocket close code 1013?
The vendor's page gives no remedy. It follows from the description that the client has to read from the socket fast enough to keep the queue from filling.