> For the complete documentation index, see [llms.txt](https://docs.hypertracker.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hypertracker.io/api-usage-examples/level-5-structural-order-flow-and-liquidation-cluster-mapper.md). Agents can also search and read this documentation through its [MCP server](https://docs.hypertracker.io/~gitbook/mcp).

# Level 5: Structural Order Flow & Liquidation Cluster Mapper

Stream live execution flows via private WebSockets and parse rolling order book snapshots to map forced liquidation cascades and institutional liquidity block movements.

High-frequency quantitative desks and risk managers cannot rely on retroactive state chunks. To map structural order flow, capture execution slippage alpha, or trade ahead of forced liquidations, systems require real-time visibility into the exchange's working order landscape. This level demonstrates how to combine HyperTracker’s massive 5-minute global order snapshots with ultra-low latency private WebSockets to map out precisely where stop-losses, take-profits, and forced closure boundaries are clustered across the network.

By utilizing this high-frequency infrastructure, you can build a localized Market Radar terminal or an automated liquidation-chasing execution algorithm. This engine processes live transaction streams, monitors where liquidity clusters are building or unwinding, and calculates the exact price points where a trailing asset price will trigger a cascading liquidation event.

#### Results-Oriented Thinking

When building a high-frequency order flow and liquidation mapping engine, success means achieving several specific operational metrics:

* Microsecond Flow Surveillance: Subscribing to private WebSocket fill and account event streams to capture execution realities long before they settle into historical state updates.
* Resting Book Density Mapping: Processing full exchange-wide open order snapshot files to calculate the true depth of stop-losses and take-profits sitting on the book.
* Liquidation Cascade Forecasting: Ingesting live liquidation levels and structural clusters to identify crowded price pools vulnerable to rapid, forced-closure runs.
* Ecosystem Fee Optimization: Tracking builder attribution flows and rolling VIP fee structures to optimize high-frequency execution routing overhead.

#### External API Endpoints

* `/api/external/leaderboards/all-pnl`
* `/api/external/leaderboards/perp-pnl`
* `/api/external/builders/{builder}/users`
* `/api/external/builders/{builder}/fills`
* `/api/external/exports/coins/{coin}/liquidation-heatmap`
* `api/external/`{`segmentId`}`/assets/liquidation-risk`
* `/api/external/orders/5m-snapshots/latest-snapshot-timestamp`
* `/api/external/orders/5m-snapshots/latest`
* `/api/external/orders/5m-snapshots/{snapshotTime}`
* `/api/external/orders/5m-snapshots/{snapshotTime}/download`
* `/api/external/orders/5m-snapshots/coins/{coin}/download`
* `/api/external/positions/open/coin/{coin}`
* `/api/external/positions`
* `/api/external/positions/coins`
* `/api/external/closed-trades/{hash}/fills`
* `/api/external/fills`

#### [Hyperliquid Info Endpoints](https://docs.hypertracker.io/endpoints/hyperliquid-info-endpoints.md)

* `userFees`

***

An example of how a Structural Order Flow & Liquidation Cluster Mapper would look like:

<figure><img src="https://797705725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKkv2IiibnImsf0K43fna%2Fuploads%2FrVFQeo1ZOYeaMBT3gFq8%2Fb23a2b4a-80a3-4557-9458-702d05ee52be.png?alt=media&amp;token=ecc3038c-2dff-408f-8694-1c996939b9fc" alt=""><figcaption></figcaption></figure>


---

# 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.hypertracker.io/api-usage-examples/level-5-structural-order-flow-and-liquidation-cluster-mapper.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.
