Skip to main content
A refusal does not close the socket. A refused order costs an order, not the session. Only a failed hello, a well-formed message before the session is open, and an oversized frame close it. A malformed frame answers MALFORMED and the socket stays open, before hello as after.

How an error looks

Branch on code; message is for people and can change. The error carries the requestId of the message that caused it when the frame could be parsed far enough; a frame refused at envelope level (a malformed envelope, duplicate keys) gets an error without it. Quote traceId when you contact Securitize.

What to do

Treat a code you do not recognise as a refusal of that message, not as a reason to drop the session. The reads over HTTP answer the same codes, with an HTTP status.

Close codes

What is safe to retry

Getting help

When you contact Securitize about a message, send:
  • the traceId of the reply or push;
  • your externalRef, and the orderId and regulatoryId if you have them;
  • the message type, when you sent it, and whether it was sandbox or production;
  • the code you received, and what you expected instead.
Never send your private key. The traceId is enough for Securitize to find the exchange.