Skip to main content
WSS
A buy is checked against the available of get_cash_balance_v2, your own cash. See Cash for what each figure means, and Fund your cash with crypto for the steps of a crypto deposit.
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.

get_cash_balance_v2
type:object

Reads your own cash, per currency.

get_cash_movements
type:object

Reads the movements behind your own cash balance, newest first.

get_crypto_funding
type:object

Reads where to send USDC to fund your own cash, and the wallets it must come from.

submit_crypto_funding
type:object

Credits a USDC deposit you already sent to your own cash, by its transaction hash. Signed.

cash_movement
type:object

Pushed when a movement of your own cash changes.

ack (get_cash_balance_v2)
type:object

Your own cash, one entry per currency.

ack (get_cash_movements)
type:object

One page of your cash movements.

ack (get_crypto_funding)
type:object

Where to send USDC, and the wallets it must come from.

ack (submit_crypto_funding)
type:object

The deposit is credited to your own cash.

error
type:object

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