GET /v1/trades?account_id={uuid}
Query parameters
| Param | Required | Notes |
|---|---|---|
account_id | yes | UUID. |
status | no | OPEN or CLOSED. |
instrument_id | no | Filter to one instrument. |
from_ts | no | Unix ms, filters on opened_at. |
to_ts | no | Unix ms. |
limit | no | Default 50, max 200. |
curl -sS "$TRADARA_BASE_URL/v1/trades?account_id=$ACCOUNT_ID&status=CLOSED&limit=50" \
-H "X-Tradara-Api-Key: $TRADARA_API_KEY"
{
"items": [
{
"trade_id": "trd_a",
"account_id": "5b1c...",
"instrument_id": "1111...",
"side": "LONG",
"status": "CLOSED",
"opened_quantity": 2,
"closed_quantity": 2,
"average_open_price": "5800.25",
"average_close_price": "5810.50",
"realized_pnl": "205.00",
"opened_at": 1750000000150,
"closed_at": 1750000900000
}
]
}

