# Get trader PnL history

`GET /api/trader-stats/{trader}/pnl-history`

## Authorization



## Parameters

- path: trader (string; required). 

Type: string

- query: period (number · nullable; optional). 

Type: number · nullable

## Example · cURL

```bash
curl --request GET 'https://api.storm.tg/api/trader-stats/{trader}/pnl-history' \
  --header 'Accept: application/json'
```

## Example · JavaScript

```javascript
const response = await fetch("https://api.storm.tg/api/trader-stats/{trader}/pnl-history", {
  method: "GET",
  headers: {
    "Accept": "application/json"
  },
});
console.log(response.status, await response.text());
```

## Example · Python

```python
import requests

response = requests.request(
    "GET",
    "https://api.storm.tg/api/trader-stats/{trader}/pnl-history",
    headers={"Accept":"application/json"},
    timeout=30,
)
print(response.status_code, response.text)
```

## Response 200

**200** application/json — Response

Type: object[]

[]Type: object

[]Required fields: timestamp, totalPnl, trader

[]Required field types: timestamp (string · date-time; required), totalPnl (string; required), trader (string; required)

- []timestamp (string · date-time; required)

[]timestamp example: 2026-01-01T00:00:00Z

[]timestamp.Type: string · date-time

[]timestamp.format: date-time

- []totalPnl (string; required)

[]totalPnl example: string

[]totalPnl.Type: string

- []trader (string; required)

[]trader example: string

[]trader.Type: string

Example



```json
[
  {
    "timestamp": "2026-01-01T00:00:00Z",
    "totalPnl": "string",
    "trader": "string"
  }
]
```