Portfolio
Stream Folio
Stream real-time portfolio updates via Server-Sent Events
GET
Stream Folio
Stream Folio
Opens a Server-Sent Events (SSE) stream that sends the sub-account’s full portfolio on connect, then streams incremental updates as positions change.Request
Path parameters
| Parameter | Type | Description |
|---|---|---|
account_id | string | The sub-account ID |
Response
The response is atext/event-stream with two event types.
snapshot event
Sent immediately on connect. Contains the full folio as a JSON array of [key, value] pairs:
update event
Sent whenever folio data changes. Contains only the changed key/value pairs:
Keepalive
A comment line is sent every 30 seconds to keep the connection alive:Examples
The stream sends all folio data as flat key/value pairs. See the Folio concepts page for the full key/value reference and value encoding details.
Errors
| Status | Code | Description |
|---|---|---|
| 404 | account_not_found | Account doesn’t exist |
Stream Folio