

/api/v1/forward/accounts/{id}/tradesThe trades on one of your forward-testing accounts, newest first. Every open position carries its CURRENT floating P&L, the live price that figure came from, and the margin it ties up, so this one call answers 'where do my positions stand' without a lookup per trade. Closed rows carry the realized pnl instead; a position whose 1-minute series has no recent bar reports a null floating P&L rather than a stale one. Owner-scoped: 404 if the account does not exist or is not yours.
| Name | In | Type | Req. | Description |
|---|---|---|---|---|
| id | path | string | yes | The forward account id. |
| status | query | "pending" | "open" | "closed" | no | Only trades in this state. |
| limit | query | integer | no | Max trades to return (default 100, max 500). |
curl -H "Authorization: Bearer afx_live_xxx" \
"https://www.analytics-fx.com/api/v1/forward/accounts/value/trades"{
"apiVersion": "v1",
"data": [
{ "id": "9b8a...", "accountId": "7c1d...", "symbol": "EURUSD", "side": "long",
"orderType": "market", "status": "open", "size": 0.5,
"entryPrice": 1.0821, "exitPrice": null, "stopLoss": 1.08, "takeProfit": 1.09,
"pnl": null, "floatingPnl": 62.5, "currentPrice": 1.08335,
"pricedAt": "2026-08-27T14:01:00.000Z", "usedMargin": 540.6,
"openedAt": "2026-08-15T08:00:00.000Z", "closedAt": null }
],
"meta": { "requestId": "req_fw03", "credits": { "cost": 2, "remaining": 976 } }
}GET /api/v1/forward/accounts//trades?status=pending&limit=100Create a key at /dashboard/api. The key stays in your browser.