API Reference
Base URL: https://api.metakit.cloud
Performance
The complete analytics payload behind the account performance dashboard — equity curve, drawdown, risk ratios and breakdowns by symbol, weekday, trading session and hold time. This is the exact same computation the dashboard renders, so your charts can match ours without re-deriving anything from raw deals.
/v1/accounts/{id}/performance
Get performance
Everything is derived from closed positions, which are reconstructed by pairing entry and exit deals on the same position id — so a partially closed trade counts once, and still-open positions are excluded. Note the two series: sessions has one entry per TRADING day and is what Sharpe and profitable_sessions are computed from, while timeline pads the same curve to every calendar day (net 0, cumulative and drawdown carried forward) so charts keep a proportional time axis. Deal history is cached ~60s per account.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| range | string | No | Window to compute over: 1m, 3m, 6m, 12m or all. Defaults to 12m. |
Example request
curl https://api.metakit.cloud/v1/accounts/123/performance \
-H "Authorization: Bearer stk_live_..."Example response
{
"range": "12m",
"from": "2025-07-28",
"to": "2026-07-24",
"currency": "USD",
"net_profit": 50368.42,
"growth": 201.47,
"equity": 75368.42,
"balance": 74948.1,
"win_rate": 53.21,
"closed_trades": 778,
"profit_factor": 1.61,
"expectancy": 64.74,
"max_drawdown": -2781.4,
"max_drawdown_pct": -5.3,
"sharpe": 5.4,
"sessions": [
{ "date": "2025-07-28", "net": 412.5, "cumulative": 412.5, "drawdown": 0 },
{ "date": "2025-07-31", "net": -134.2, "cumulative": 278.3, "drawdown": -134.2 }
],
"timeline": [
{ "date": "2025-07-28", "net": 412.5, "cumulative": 412.5, "drawdown": 0 },
{ "date": "2025-07-29", "net": 0, "cumulative": 412.5, "drawdown": 0 },
{ "date": "2025-07-30", "net": 0, "cumulative": 412.5, "drawdown": 0 },
{ "date": "2025-07-31", "net": -134.2, "cumulative": 278.3, "drawdown": -134.2 }
],
"profitable_sessions": 159,
"long": { "label": "Long", "net": 32628.1, "trades": 415, "wins": 232 },
"short": { "label": "Short", "net": 17740.3, "trades": 363, "wins": 182 },
"by_symbol": [
{ "label": "XAUUSD", "net": 21430.5, "trades": 244, "wins": 138 },
{ "label": "EURUSD", "net": 15920.8, "trades": 201, "wins": 109 }
],
"by_weekday": [
{ "label": "Mon", "net": 6400.2, "trades": 150, "wins": 79 }
],
"by_hold_time": [
{ "label": "<5m", "net": 1820.4, "trades": 96, "wins": 51 },
{ "label": "5–30m", "net": 18240.9, "trades": 288, "wins": 161 },
{ "label": "30m–2h", "net": 14903.2, "trades": 201, "wins": 106 },
{ "label": "2–8h", "net": 9120.6, "trades": 132, "wins": 68 },
{ "label": ">8h", "net": 6283.3, "trades": 61, "wins": 28 }
],
"session_heat": [
{ "weekday": "Mon", "net": { "Asia": 1600, "London": 800, "New York": 5000 } }
],
"average_win": 322.71,
"average_loss": -228.66,
"win_loss_ratio": 1.41,
"best_day": 1824.3,
"worst_day": -1479.1,
"recovery_factor": 18.11,
"max_win_streak": 9,
"max_loss_streak": 7,
"median_hold_ms": 3060000,
"recent_positions": [
{
"position_id": 88421901,
"symbol": "XAUUSD",
"side": "sell",
"volume": 0.85,
"opened_at": "2026-07-14T11:36:00.000Z",
"closed_at": "2026-07-14T13:01:00.000Z",
"hold_ms": 5100000,
"open_price": 2412.55,
"close_price": 2427.66,
"pips": -151.1,
"net": -158.03
}
]
}