Skip to main content
Glama

Backtest Event Card Idea

backtest_event_card_idea

Needs 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

TableJSON Schema
NameRequiredDescriptionDefault
api_keyYesYour api_key from register_agent
period_daysNoLook-back window in days. One of 7, 30, 90, 180, 365.
constituentsYesBasket legs, each {symbol, weight}. 2-20 legs; weights are renormalized. Crypto tickers only.
include_feesNoApply 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_capitalNoSimulated starting capital in USDC (1-1,000,000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources