Broker API HubMenu

Errors that belong to no broker

WebSocket close codes explained

12 entries decoded. These are the codes a WebSocket connection reports when it closes, which is how a price or account stream tells you why it stopped. Each page says what the entry means, what it means in trading API work and what to do next, and links to the place it is defined: RFC 6455, The WebSocket Protocol.

Independent and unofficialNewest reading

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.

Close codes

12 entries

When a WebSocket connection closes.

How to cite this

WebSocket close codes explained. Broker API Hub, https://openbrokerapi.com/errors/websocket, newest check .

Where you rely on a single figure, cite the source and the checked date printed beside it as well.