> 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/getallstats.md). Agents can also search and read this documentation through its [MCP server](https://pepympus.gitbook.io/pepympus.com/~gitbook/mcp).

# getAllStats

The `getAllStats` method combines the functionality of `getAllBuys` and `getAllSales`, providing a comprehensive view of all buy and sale transactions for a specified token.

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

### **Request Body**

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

| Parameter | Type     | Description                                                       |
| --------- | -------- | ----------------------------------------------------------------- |
| `token`   | `string` | The token for which you want to retrieve buy and sale statistics. |

***

**Example Request Body**

```json
{
  "token": "4Cnk9EPnW5ixfLZatCPJjDB1PUtcRpVVgTQukm9epump"
}
```

***

### **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,
        }
      },
      ...
    ],
    "sales": [
      {
        "signature": "2rpHA39Xm8dZktt91tBsBRqMw2TrV1fpk655NMXBR2buyMTmzXVsijfZXDNu8ZAicZZ53P8d8p1FR4w9HE7itEtd",
        "amount": "663.840279",
        "buyer": "7rtiKSUDLBm59b1SBmD9oajcP8xE64vAGSMbAN5CXy1q",
        "platform": "Jupiter",
        "buyerPNL": {
            "realized": 0,
            "unrealized": 37.18,
            "procent": 0.03,
        }
      },
      ...
    ]
  }
}
```

{% 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 %}
