# PnL Discord BOT

Prediqt has built a custom Discord bot that lets users easily track the PnL of any Abstract wallet. Just drop a wallet address into the channel, and the bot will automatically pick it up and start processing it

Once detected, the address is sent to our backend where our PnL system fetches the wallet’s full transaction history, calculates realised PnL, and returns a clean summary showing the **Top 5 Wins** and **Top 5 Losses**

There’s also an option to **export the full PnL breakdown**, so users can review each trade in detail whenever they want

### Calculation Logic:

The way our system calculates PnL is designed to keep things accurate and avoid misleading results. Here’s how it works under the hood:

* **Only ETH/WETH/USDC Pairs**\
  The bot only tracks swaps involving ETH, WETH, or USDC. Any token-to-token swaps (e.g. swapping one memecoin for another) are ignored, since they can’t be reliably tracked for profit/loss calculations
* **Tracks Only Real Purchases**\
  When calculating PnL for a specific token, we only consider the amount that was actually *purchased* by the wallet. For example, if a wallet buys 1,000 $PRQT and then receives an extra 500 tokens from another wallet, the PnL is still based on just the 1,000 purchased — not the full 1,500 held. Tokens received for free or transferred in from other wallets are treated as having a cost basis of zero and aren’t included in the profit/loss calculations

### Below is an example PnL breakdown:

<div align="left"><figure><img src="/files/KdmGS7aa9jV3m3IiIgTR" alt="" width="285"><figcaption></figcaption></figure></div>


---

# 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.prediqt.xyz/current-utilities/pnl-discord-bot.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.
