> For the complete documentation index, see [llms.txt](https://docs.forepaas.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.forepaas.org/v2/resources/asyncapi-specification.md).

# AsyncAPI Specification

Machine-readable contract for the public market WebSocket

This page defines the complete public market WebSocket contract for `wss://openapiws.foregate.com/ws/market`.

It includes:

* Initial subscriptions and dynamic subscribe/unsubscribe frames
* Plain-text `PING` and `PONG` heartbeat messages
* All seven server event schemas and their required fields
* Shared nested schemas for order-book levels, price changes, and lifecycle metadata

Use the [WebSocket API guide](/v2/advanced/websocket-api.md#public-market-channel) for connection examples and event-handling guidance.
