> For the complete documentation index, see [llms.txt](https://docs.hydromancer.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hydromancer.xyz/readme/websocket/tp-sl-streaming.md). Agents can also search and read this documentation through its [MCP server](https://docs.hydromancer.xyz/~gitbook/mcp).

# TP/SL streaming

Stream real-time TP/SL trigger order updates per block.

Both modes share one canonical stream when that capability is enabled in the environment. Default mode emits lifecycle add/remove rows; opt-in enhanced mode also emits derived trailing updates. See [tpslUpdates](https://docs.hydromancer.xyz/readme/websocket/tp-sl-streaming/tpslupdates.md) for native resume tokens, exact snapshot fences and same-socket gap recovery.

With this capability enabled, a temporarily unavailable or busy `tpslBook` snapshot returns HTTP 503 with `Retry-After` in either mode. Retry after that delay while buffering stream updates; an unsuccessful snapshot must not replace the client's book.
