> For the complete documentation index, see [llms.txt](https://docs.sudo.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sudo.finance/sudo-api/sudo-api-reference/trader-data.md).

# Trader Data

## **GET /traderSummary**

Returns trading summary statistics for a specific trader.

**Parameters:**

| Name   | Type   | Required | Description          |
| ------ | ------ | -------- | -------------------- |
| trader | string | Yes      | The trader's address |

**Response:**

```json
{
  "totalVolume": 1000,
  "totalPnl": 100,
  "totalLiquidationVolume": 0,
  "totalTrades": 10
}
```

## **GET /traderEvents**

Returns a list of trading events for a specific trader.

**Parameters:**

| Name   | Type   | Required | Description          |
| ------ | ------ | -------- | -------------------- |
| trader | string | Yes      | The trader's address |

**Response:**

```json
[
  {
    "eventName": "OpenPositionSuccessEvent",
    "owner": "0x123...",
    "txid": "transaction-hash",
    "volume": 100,
    "fee": 1,
    "pnl": 5,
    "network": "mainnet",
    "created": 1642348800000,
    "indexPrice": 50000,
    "indexToken": "BTC",
    "direction": "long",
    "collateralAmount": 10,
    "collateralPrice": 1,
    "positionId": "position-id"
  }
]
```

## **GET /traderSlpEntryPrice**

Returns the average entry price for SLP tokens for a specific trader.

**Parameters:**

| Name   | Type   | Required | Description          |
| ------ | ------ | -------- | -------------------- |
| trader | string | Yes      | The trader's address |

**Response:**

```json
{
  "entryPrice": 1.05
}
```

## **GET /traderPoints**

Returns the points accumulated by a trader.

**Parameters:**

| Name    | Type   | Required | Description          |
| ------- | ------ | -------- | -------------------- |
| address | string | Yes      | The trader's address |

**Response:**

```json
{
  "distinctUserId": "0x123...",
  "offChainPoints": 1500,
  "suiNsName": "@trader"
}
```
