

/api/v1/forward/accountsYour forward-testing accounts: demo accounts traded against live data and settled server-side. Summary only, no trades. Owner-scoped. Pass ?id=<account id> to fetch a single account with its full trade list, or ?status=active|archived to filter. Stats cover the closed trades (net P&L, win rate, profit factor, balance) and the live state: floating P&L, equity, used margin, and how many trades are open or pending. Accounts are created in the app, not via the API.
| Name | In | Type | Req. | Description |
|---|---|---|---|---|
| id | query | string | no | Fetch a single account (with its trades) by id instead of listing. |
| status | query | "active" | "archived" | no | Only accounts in this state. |
| limit | query | integer | no | Max accounts to list, newest first (default 50, max 200). |
curl -H "Authorization: Bearer afx_live_xxx" \
"https://www.analytics-fx.com/api/v1/forward/accounts"{
"apiVersion": "v1",
"data": [
{ "id": "7c1d...", "name": "Live sniper", "startingBalance": 10000, "leverage": 100,
"status": "active", "createdAt": "2026-08-14T22:10:00.000Z",
"stats": { "trades": 12, "netPnl": 430.25, "winRate": 58.33, "profitFactor": 1.64,
"balance": 10430.25, "openTrades": 1, "pendingOrders": 2,
"floatingPnl": 62.5, "equity": 10492.75, "usedMargin": 540.6 } }
],
"meta": { "requestId": "req_fw01", "credits": { "cost": 2, "remaining": 980 } }
}GET /api/v1/forward/accounts?status=active&limit=50Create a key at /dashboard/api. The key stays in your browser.