---
title: "Equity curve"
method: GET
path: "/api/bot/v1/equity"
tags: ["Paper trading"]
---

# Equity curve

`GET /api/bot/v1/equity`

## Request

- Base URL: `https://marginpad.io`
- URL: `https://marginpad.io/api/bot/v1/equity`
- Auth: API key in header `X-API-Key`

starting_balance_usd + realized P&L per bucket from the ledger (fees and funding settled), the live unrealized point at the end, and max_drawdown_pct. Buckets before the first close carry the realized total up to that time.

## Query parameters

- `days` string
- `step_min` string

## Response `200`

{ ok, points:[{t, realized_pnl_usd, equity_usd, closes}], now:{…}, max_drawdown_pct }

---

[API](https://skmtc.dev/marginpad/apis/marginpad-free-crypto-api.md) · [All operations](https://skmtc.dev/marginpad/apis/marginpad-free-crypto-api/llms.txt) · [OpenAPI document](https://skmtc.dev/marginpad/apis/marginpad-free-crypto-api/revisions/27d21fcd0bf0?raw)
