# Mangrove Strategy Evaluation

> Mangrove Strategy Evaluation is a paid API for AI agents from api.mangrovedeveloper.ai, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-04).

Evaluates a trading strategy by executing it against current market conditions, optionally persisting the resulting orders, positions, and trades to the database.

## Facts

- Endpoint: POST https://api.mangrovedeveloper.ai/api/v1/execution/evaluate/%7Bstrategy_id%7D?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mangrove-strategy-evaluation-05aed180
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6WJsObWvyZbh6bnLmKujt

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-strategy-evaluation-05aed180 -d '<json body>'
```

Example prompt: Run an evaluation of my Mangrove trading strategy (ID: strat_abc123) and make sure to persist the resulting orders and positions to the database.

## When to prefer this

Use this endpoint when you need to evaluate or test a specific Mangrove trading strategy against live or current market conditions, especially when you want fine-grained control over whether the resulting orders and positions are persisted. Prefer this over manual backtesting tools when you need programmatic, agent-driven strategy execution with optional database storage.

## Known failure modes

- Invalid or non-existent strategy_id returns a 404 or similar error
- Payment not provided or insufficient USDC results in a 402 Payment Required
- Strategy evaluation failure due to market data unavailability
- Database write failure when persist=true is set
- Malformed request body returns a 400 validation error

## How this service works

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

## Output

Returns the evaluation output of the specified strategy, including generated orders, open positions, and executed trades. If persist is true, these are written to the database; otherwise the results are returned ephemerally for review.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "persist": {
   "type": "boolean",
   "default": true,
   "description": "Whether to persist orders, positions, and trades to database."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mangrove-strategy-evaluation-05aed180/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)
