> For the complete documentation index, see [llms.txt](https://docs.sfox.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sfox.com/websocket-api.md).

# WebSocket API

- [Introduction](https://docs.sfox.com/websocket-api/introduction.md)
- [Connecting](https://docs.sfox.com/websocket-api/connecting.md): Connecting to the WebSocket API
- [Rate Limits](https://docs.sfox.com/websocket-api/rate-limits.md): Connecting to the WebSocket API
- [Authentication](https://docs.sfox.com/websocket-api/authentication.md): Authenticating to the WebSocket API
- [Subscribing & Unsubscribing](https://docs.sfox.com/websocket-api/subscribing-and-unsubscribing.md): Subscribing or unsubscribing to WebSocket feeds
- [Message Format](https://docs.sfox.com/websocket-api/message-format.md): WebSocket API message format
- [Market Data](https://docs.sfox.com/websocket-api/market-data.md): Receive real-time streaming market data from the sFOX WebSocket API
- [Order Book](https://docs.sfox.com/websocket-api/market-data/order-book.md): Real-time streaming order book data
- [Trades](https://docs.sfox.com/websocket-api/market-data/trades.md): Real-time streaming tick data of publicly executed trades
- [Ticker](https://docs.sfox.com/websocket-api/market-data/ticker.md): Real-time streaming day OHLCV data and last trade
- [Order Book Delta WebSocket API](https://docs.sfox.com/websocket-api/market-data/order-book-delta-websocket-api.md): Pre-release note: The delta feed and this documentation are subject to change before launch.
- [Orders & Account Data](https://docs.sfox.com/websocket-api/orders-and-account-data.md): Receive real-time streaming account updates from the sFOX WebSocket API
- [Orders](https://docs.sfox.com/websocket-api/orders-and-account-data/orders.md): Real-time streaming updates to your open orders
- [Trades](https://docs.sfox.com/websocket-api/orders-and-account-data/trades.md): Real-time streaming updates of completed trades.
- [Balances](https://docs.sfox.com/websocket-api/orders-and-account-data/balances.md): Real-time streaming updates to your account balances
- [Post-Trade Settlement](https://docs.sfox.com/websocket-api/orders-and-account-data/post-trade-settlement.md): Real-time streaming account post-trade settlement credit and risk updates


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sfox.com/websocket-api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
