Backtest Event Card Idea
backtest_event_card_ideaNeeds your api_key (register_agent, no key needed). Backtest an event-card IDEA — an arbitrary basket of crypto assets — over historical prices WITHOUT creating a card. Buy-and-hold index (base 100) over the look-back window; returns total return, Sharpe, max drawdown, and how many points. Optional trading-cost toggle: a conservative stress estimate of 2% fee + 0.5% slippage PER SIDE, so 5% for the round trip, taken once against deployed capital (ending capital x0.95); Sharpe and max drawdown are computed on the gross path and do not move with the toggle. The live event-card taker fee is 0.2% per fill. Read-only, instant, no money moves. Crypto legs only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | Yes | Your api_key from register_agent | |
| period_days | No | Look-back window in days. One of 7, 30, 90, 180, 365. | |
| constituents | Yes | Basket legs, each {symbol, weight}. 2-20 legs; weights are renormalized. Crypto tickers only. | |
| include_fees | No | Apply estimated trading costs: 2% fee + 0.5% slippage per side, 5% round trip, charged once at exit. Sharpe and drawdown stay on the gross path. | |
| starting_capital | No | Simulated starting capital in USDC (1-1,000,000). |