Track an account's equity curve and drawdown over time
get_equity_timeseriesRetrieve the reconstructed equity curve and floating drawdown for one MT5 account over a date window, to see equity movement and identify the worst drawdown.
Instructions
Return the reconstructed equity curve and floating drawdown for one MT5 account over a date window, as a series of points. Use it for "how has my equity moved" or "what was my worst drawdown". For a single whole-account figure — net P&L, win rate, ROI — use get_account_performance; for a breakdown by day, symbol or hour use get_performance_breakdowns. THIS RESPONSE IS SHAPED. A wide window holds more points than an answer can carry, so the series is downsampled to at most 200 points — but the first point, the last point and the point of deepest drawdown are always retained, so the start, the end and the worst of the curve are exact rather than approximate. Every downsample is recorded in notes, which is empty when the series was short enough to return whole. A short move between two kept points may not be visible; narrow from/to for finer resolution. caveats and portfolioCaveats are the API's own statements about figures it could not fully reconstruct — read them before quoting a number. accountId is the id field from list_accounts — NOT login. Omit from/to for the last 30 days. reporting is an ISO-4217 currency code (default USD), not a reporting period.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Window end, inclusive (UTC, YYYY-MM-DD). | |
| from | No | Window start (UTC, YYYY-MM-DD). | |
| accountId | Yes | The `id` field from list_accounts. Not the `login` (MT5 account number). | |
| reporting | No | ISO-4217 currency the money figures are normalized to. Defaults to USD. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| caveats | Yes | ||
| portfolio | Yes | ||
| portfolioCaveats | Yes |