# Mangrove Developer - Get Backtest Trades

> Mangrove Developer - Get Backtest Trades is a paid API for AI agents from api.mangrovedeveloper.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-04).

Retrieves the list of trades executed within a specific backtest run by its ID

## Facts

- Endpoint: GET https://api.mangrovedeveloper.ai/api/v1/backtests/%7Bbacktest_id%7D/trades?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mangrove-developer-get-backtest-trades-b3d29d45
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DLzNp-hboKZs2LPxtG_xM

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability mangrove-developer-get-backtest-trades-b3d29d45
```

Example prompt: Can you pull up all the trades that were executed in my Mangrove backtest with ID bt_abc123? I want to review the individual order activity from that run.

## When to prefer this

Use this endpoint when you need to inspect the granular trade-level activity of a specific backtest run by its ID on the Mangrove Agent platform. It is the right choice when you already have a backtest_id and want to audit individual orders, compute trade-level statistics, or export execution history for further analysis. Prefer this over summary-level backtest endpoints when per-trade detail matters.

## Known failure modes

- Invalid or non-existent backtest_id returns a 404 not found error
- Unauthorized access if the backtest belongs to another user returns a 401/403 error
- Malformed backtest_id format may return a 400 bad request
- Empty result set if no trades were executed during the backtest
- Service unavailable or timeout if the backtest data store is unreachable

## How this service works

Developer references for Mangrove Agent, API contracts, MCP and AI integrations.

## Output

Returns a list of trade records associated with the specified backtest, including details such as trade timestamps, direction (buy/sell), quantities, prices, and execution metadata for each order placed during the backtest simulation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mangrove-developer-get-backtest-trades-b3d29d45/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.mangrovedeveloper.ai](https://www.zero.xyz/host/api.mangrovedeveloper.ai/llms.txt)
