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
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.
bearerAuthAuthorizationBearer <JWT>An access token from POST /v1/auth/api-key/token, or a user's access token.
Last-Event-ID?stringThe last id received, to resume after it. Up to 20 digits.
^[0-9]{1,20}$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- response
An order event; data is the order as the conductor orders endpoints return it.
id*stringThe event's id.
uuidtype*string"order.created""order.opened""order.partially_filled""order.filled""order.modified""order.canceled""order.failed""order.updated"created_at*stringWhen the event happened, UTC with milliseconds.
date-timeuser_id*stringThe user the order belongs to.
uuiddata*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.
curl -X GET 'https://api.truemarkets.co/v1/events'"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"