# User performance

Endpoints for analyzing a user's trading performance — realized PnL from closed positions, win/loss stats, fees, funding, ranked leaderboards, and (coming soon) unrealized PnL, ROI, and other metrics.

#### **Aggregate stats for a single user**

{% content-ref url="/pages/gD4ErKzaspk4KWMVIhII" %}
[userPnlSummary](/readme/rest-api/user-performance/userpnlsummary.md)
{% endcontent-ref %}

#### **Top traders ranked by PnL, win rate, or volume**

{% content-ref url="/pages/Ak3VdFVO5mH2tR2zer07" %}
[userPnlLeaderboard](/readme/rest-api/user-performance/userpnlleaderboard.md)
{% endcontent-ref %}

#### **A user's most recent completed trades**

{% content-ref url="/pages/yK9zbUW4vMxCUan8phPm" %}
[userCompletedTrades](/readme/rest-api/user-performance/usercompletedtrades.md)
{% endcontent-ref %}

#### **Paginate a user's completed trades by time (cursor-based)**

{% content-ref url="/pages/R9FKEZaKOJWO8wo2JDtG" %}
[userCompletedTradesByTime](/readme/rest-api/user-performance/usercompletedtradesbytime.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hydromancer.xyz/readme/rest-api/user-performance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
