> ## Documentation Index
> Fetch the complete documentation index at: https://docs.centaur.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Rank a complete trader cohort

> Select the whole cohort and position sample before ranking traders.

Use `POST /v2/traders/rankings/query` or MCP `rank_trader_cohort` when the ranking must cover a defined trader cohort. Both require `stats.read`. Existing `GET /v2/traders/rankings` and `rank_traders` remain available with their existing defaults and inclusive time bounds.

```json theme={null}
{
  "cohort": { "sourcePlatforms": ["X"], "signalVisibility": "public" },
  "positions": {
    "assetIds": [1],
    "openedAt": { "gte": "2026-09-01T00:00:00Z", "lt": "2026-10-01T00:00:00Z" }
  },
  "metric": { "id": "mean_return_pct", "horizon": "7D" },
  "minScoredPositions": 3,
  "order": "desc",
  "limit": 20,
  "include": ["traders"]
}
```

Send JSON with `Content-Type: application/json` and `x-api-key`. `/api/v2/traders/rankings/query` is an equivalent alias. Resolve names through asset or trader discovery first, and use returned IDs.

## Select the population before taking top results

Explicit `cohort.traderIds` and `sourcePlatforms` intersect. Arrays deduplicate and do not silently truncate. Source membership uses the current assigned source: the directory gives Telegram precedence when both are assigned, independently of scraper tracking status. An X social link alone does not establish X membership.

`public` means public signal visibility. `accessible` uses the caller's permitted visibility. Position selectors intersect asset IDs, direction and opening time, and include both open and closed eligible positions. They exclude deleted positions, ineligible positions and assets without an active pricing market.

Opening intervals use UTC `[gte,lt)`, with up to microsecond precision. When omitted, the sample starts January 1 UTC and ends now. This aggregate access does not grant access to equally old source messages or events.

The limit applies **after** cohort selection, scoring and qualification. Filtering a global top list cannot establish the top traders within a different cohort. Results default to descending order and 20 rows, with a maximum of 50. Ascending changes the metric direction; ties use trader ID ascending. Ranking uses the rounded Partners metric values.

## Preserve metric and coverage meaning

* `position_count` counts sampled positions. It accepts neither a horizon nor a scored minimum.
* `mean_return_pct`, `median_return_pct` and `win_rate_pct` use scored `1D`, `7D` or `30D` forward snapshots. Values are rounded to two places. Zero returns are not wins.
* `return_mean_over_sample_sd` is mean return divided by sample standard deviation. It is unannualized, has no risk-free-rate adjustment and is null below two scored positions or at zero variance.

Performance qualification defaults to at least three scored positions. Null measures do not rank. Qualification never changes the sample denominator: each row reports `sampled`, `scored` and `coverage`. For position counts, `scored` and `coverage` are null because no return was requested.

`context.completeness` reports the full population:

* `matchedTraders`: visible cohort members, including those with no selected positions.
* `sampledTraders`: members with at least one eligible position in the opening sample.
* `qualifiedTraders`: sampled traders with a non-null metric who meet the scored minimum.
* `returned`: rows after the top limit.

The ranking is computed in one database statement. It is not a replayable historical snapshot, pooled group statistic or portfolio return. Read `GET /v2/definitions` or `get_workflow_definitions` for the versioned method.

## Read identities and contributing evidence

`include: ["traders"]` also requires `directory.read`. Labels come from a separate current directory read; `included.unavailableTraderIds` lists generic unavailable outcomes without removing ranked rows. Consumers with separate per-tool grants can omit the include and hydrate IDs with `list_trader_directory`.

Use the positions workflow with the same trader, asset, direction and opening selectors to inspect contributing positions. Evidence hydration retains its own scopes and history limits. A failed, forbidden or incomplete source read does not change the aggregate sample, and an upstream failure does not mean an empty ranking.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.