> For the complete documentation index, see [llms.txt](https://pepympus.gitbook.io/pepympus.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pepympus.gitbook.io/pepympus.com/methods/getfilteredbuys.md). Agents can also search and read this documentation through its [MCP server](https://pepympus.gitbook.io/pepympus.com/~gitbook/mcp).

# getFilteredBuys

The `getFilteredBuys` method allows you to retrieve detailed information about the buys of a specified token, including buyer details, transaction amounts, platform information, and profit/loss calculations.

```arduino
POST https://pepympus.com/api/v1/getFilteredBuys
```

### **Request Body**

The request body should be in JSON format and include the following parameters:

<table><thead><tr><th width="280">Parameter</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>token</code></td><td><code>string</code></td><td>The token for which you want to retrieve buy information.</td></tr><tr><td><code>filters</code></td><td><code>object</code></td><td>(Optional) Filters to apply to the data.</td></tr><tr><td><code>filters.amount_min</code></td><td><code>number</code></td><td>(Optional) Minimum amount of the buy.</td></tr><tr><td><code>filters.amount_max</code></td><td><code>number</code></td><td>(Optional) Maximum amount of the buy.</td></tr><tr><td><code>filters.platform</code></td><td><code>string</code></td><td>(Optional) Filter by the platform where the transaction occurred.</td></tr><tr><td><code>filters.realized_pnl</code></td><td><code>number</code></td><td>(Optional) Minimum realized profit/loss to filter results.</td></tr><tr><td><code>filters.unrealized_pnl</code></td><td><code>number</code></td><td>(Optional) Minimum unrealized profit/loss to filter results.</td></tr><tr><td><code>filters.procent_min</code></td><td><code>number</code></td><td>(Optional) Minimum percentage profit/loss to filter results.</td></tr><tr><td><code>filters.procent_max</code></td><td><code>number</code></td><td>(Optional) Maximum percentage profit/loss to filter results.</td></tr></tbody></table>

**Example Request Body**

```json
{
  "token": "4Cnk9EPnW5ixfLZatCPJjDB1PUtcRpVVgTQukm9epump",
  "filters": {
    "amount_min": 5000,
    "platform": "Raydium",
    "unrealized_pnl": 100,
    "procent_min": 0.2,
    "procent_max": 1.0
  }
}
```

### **Example Response**

```json
{
  "status": "success",
  "data": {
    "buys": [
      {
        "signature": "4K5h8YTG9YaTBWWdbPdyN5gQ4Cfy8Wukz1B5G2CKTSEm1QCJ1crymBBBRsKwzgiGhvfubMK1wHB5toegyxki7iEy",
        "amount": "8,292.687576",
        "buyer": "BYLiyyhHrDtK6Htp8PACvmGBrgPexaWRATFzTDaJFgAz",
        "platform": "Raydium",
        "buyerPNL": {
          "realized": 0,
          "unrealized": 464.44,
          "procent": 0.23
        }
      },
      ...
    ]
  }
}
```

{% hint style="info" %}
Unfortunately, this page is currently under development and will be updated as new information becomes available. You may notice some discrepancies with the actual development stage. If you encounter any issues, please don’t hesitate to contant us.
{% endhint %}
