get_benchmark
Buy-and-hold return for an asset between two dates, as a percentage. Use it whenever you state what a strategy returned: a return with nothing to compare it against does not answer whether the strategy was worth running. run_backtest already includes this for its own window, so call this for a different asset or a different period.
[Access: pay 0.005 USDC via x402 (PAYMENT-SIGNATURE header) OR authenticate with an API key. An x402-capable client will auto-pay; API-key clients pay nothing per call.]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | Asset symbol, e.g. BTC or ETH. | |
| end_date | Yes | ISO end of the window. | |
| base_token | No | Canonical base token; supply with quote_token and market_data_venue. | |
| start_date | Yes | ISO start of the window, e.g. 2026-01-01. | |
| quote_token | No | Quote currency of the requested market. | |
| market_data_venue | No | Exact venue of the requested market. |