# Mangrove Backtesting Trades Retrieval

> Mangrove Backtesting Trades Retrieval 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 individual trades executed within a specific backtesting run by its backtest ID.

## Facts

- Endpoint: GET https://api.mangrovedeveloper.ai/api/v1/backtesting/backtest/%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-backtesting-trades-retrieval-4ba3ef00
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_V1_Uq5jOobNCppd2qJjtZ

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-backtesting-trades-retrieval-4ba3ef00
```

Example prompt: Can you pull up all the individual trades that were executed in my backtest with ID bt_abc123 so I can review each entry and exit?

## When to prefer this

Use this endpoint when you need trade-level granularity from a completed backtesting run — specifically when you want to analyze individual entries and exits rather than aggregate performance metrics. Prefer this over summary endpoints when diagnosing specific losing trades, calculating trade frequency, or exporting trade logs for further analysis.

## Known failure modes

- Invalid or non-existent backtest_id returns a 404 not found error
- Missing backtest_id path parameter results in a 400 bad request
- Unauthorized access if payment or auth credentials are missing (402 payment required)
- Backtest still in progress may return an empty list or partial results
- Rate limiting may return a 429 too many requests error

## How this service works

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

## Output

Returns a list of individual trade records associated with the specified backtest run, likely including entry/exit prices, timestamps, trade direction (long/short), size, and profit/loss per trade.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mangrove-backtesting-trades-retrieval-4ba3ef00/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)
