For AI agents: the documentation index is at /llms.txt, and this page is available as Markdown at /api/events/stream-events.md.

Stream account events

Organization tokenNo token

GET
/events

Opens a Server-Sent Events stream of the caller's order, transfer and ramp events. A user token streams that user's events; an organization token streams the events of every user the organization serves. TM-On-Behalf-Of is refused.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

An access token from POST /v1/auth/api-key/token, or a user's access token.

Header Parameters

Last-Event-ID?string

The last id received, to resume after it. Up to 20 digits.

Match^[0-9]{1,20}$

Response Body

The event stream. It opens with retry: <ms> (1000 to 5000), then sends each event as id: <seq>, event: <type> and data: <EventEnvelope>, and a : heartbeat comment every 15 seconds. A heartbeat carries an id when the stream has moved past your last event, so your last id keeps up even when you get no events of your own.

Reconnect with Last-Event-ID set to the last id received to resume with no gap and no duplicate. If the stream can't resume from that id, it sends an event: reset frame with an id and a ResetEvent, then continues live. A reset during the stream (you fell behind, or the stream was rebuilt) is followed by the stream closing. After any reset, refetch your REST lists, since events may have been missed, and reconnect from the reset's id.

The server closes the stream at the earlier of the token's expiry and 30 to 35 minutes, or when it restarts. On any close, network error or non-200 response, back off (honouring Retry-After when present) and reconnect with your last id. A browser EventSource stops for good after a non-200 response, so recreate it.

text/event-stream
  1. response

An order event; data is the order as the conductor orders endpoints return it.

id*string

The event's id.

Formatuuid
type*string
Value in"order.created""order.opened""order.partially_filled""order.filled""order.modified""order.canceled""order.failed""order.updated"
created_at*string

When the event happened, UTC with milliseconds.

Formatdate-time
user_id*string

The user the order belongs to.

Formatuuid
data*

Order with execution data, returned by the list-orders and get-order endpoints for orders of any status. Includes fill information from the CeFi exchange for CeFi orders.

Example Request
curl -X GET 'https://api.truemarkets.co/v1/events'
Example Response
"retry: 3127\n\nid: 1042\nevent: order.filled\ndata: {\"id\":\"7c1e0c4a-2c4b-4f5e-9a2f-0f3c0b1d2e3f\",\"type\":\"order.filled\",\"created_at\":\"2026-11-23T12:00:00.000Z\",\"user_id\":\"5f0c7d0e-1a2b-4c3d-8e4f-5a6b7c8d9e0f\",\"data\":{\"order_id\":\"...\"}}\n\nid: 1057\n: heartbeat\n"