Skip to main content
WSS
Connect to wss://partners-rt-gw.sandbox.securitize.io/v1/market-maker/stream, send a signed hello within 10 seconds, and wait for welcome; any other well-formed message first is refused with UNAUTHENTICATED and closes the socket, while a malformed frame answers MALFORMED and the socket stays open. Send ping every 10 seconds. One socket is one session. See Sandbox and authentication for signing and a working example.
ed25519Signature
type:asymmetricEncryption

Each client registers an Ed25519 public key with Securitize beforehand; the private key never leaves the client. hello, place_order, cancel_order, submit_crypto_funding, sandbox_deposit and sandbox_withdraw carry timestamp (Unix seconds) and signature = base58( Ed25519-Sign( privateKey, timestamp + "." + type + "." + payloadBytes ) ), where payloadBytes are the exact bytes of payload as sent on the wire. The timestamp must be within 30 seconds of the server clock. Other messages ride on the session hello opens.

hello
type:object

Opens the session. Signed. The first message on every connection.

ping
type:object

Heartbeat. Send one every 10 seconds.

welcome
type:object

The session is open.

pong
type:object

Answers ping, with the server clock.

error
type:object

A request was refused. Most errors leave the socket open.