Trading API

Stream

Short-lived tickets for the WebSocket stream (quotes + account / execution events).

POST/api/open/v1/stream_ticket

#A 60-second single-use ticket for the WebSocket: wss://api.your-brand.com/rt/v1/ws?ticket=... (a read-only key is enough; 403 websocket_disabled unless OPEN_API_WS)

Auth X-API-Key Trading API

Responses

201

OK

400

Bad request (invalid_json)

401

No / invalid / revoked / expired API key

403

Refused (IP, scope, brand switch, kill switch, account, inactive client)

404

Not found (also every path while the Open API is off on this server)

422

Invalid request or refused by the order checks (margin, levels, size, market closed ...)

429

Rate limited (Retry-After)

500

Internal error; unknown_outcome = look the order up before sending it again

503

Temporarily unavailable (prices, balance, quotes, rate-limit store)

curl -X POST "https://api.your-brand.com/api/open/v1/stream_ticket" \
  -H "X-API-Key: $OCTOLIT_API_KEY"
Response 201
{
  "ticket": "st_...",
  "exp": 1,
  "expires_in": 60,
  "url": "https://trade.your-brand.com/login?token=...",
  "single_use": true
}