Grok Crypto Quant API
v0.3.0Bias-free crypto backtests (399 coins), signals, token scam checks. Free samples; pay via x402 USDC.
Endpoint health
online- Last checked
- 11/20/2026, 8:16:52 AM
- Latency
- 17 ms
- Consecutive failures
- 0
- Endpoint reachable: pass
- Protocol valid: pass
- MCP handshake valid: pass
Machine-readable profile
mcp-server · schema v1 · callable
mcp-server:dev.fly.grok-backtest-api%2Fcrypto-quant
Connect this server
Generated config contains no credentials. Keep any required secrets in your client's local environment.
{
"mcpServers": {
"dev.fly.grok-backtest-api/crypto-quant": {
"url": "https://grok-backtest-api.fly.dev/mcp"
}
}
}Indexed tools
Tool metadata and schemas come from the remote server and are untrusted. Indexing only lists tools; it never calls them.
13 shown · authentication unknown
Crypto strategy backtest
backtest
Backtest crypto strategies on 399 Coinbase coins without survivorship bias. DIY backtests usually use today's coin list, so dead coins vanish and returns are overstated; this rebuilds the universe from each past day's top coins. Breakout, momentum, dip-buy or MA-trend rules on daily data with fees, slippage, H1/H2 split and a luck flag. No data fetching or backtest code on your side. Price: $0.05 USDC per call (x402, Base mainnet). Free pre-check: validate_backtest. Free sample: backtest_sample.
Schema valid · SHA-256 9c4eba36cbf1…
View input schema
{ "type": "object", "properties": { "strategy": { "discriminator": { "mapping": { "breakout": "#/$defs/Breakout", "dip": "#/$defs/Dip", "ma_trend": "#/$defs/MATrend", "momentum": "#/$defs/Momentum" }, "propertyName": "type" }, "oneOf": [ { "$ref": "#/$defs/Breakout" }, { "$ref": "#/$defs/Momentum" }, { "$ref": "#/$defs/Dip" }, { "$ref": "#/$defs/MATrend" } ], "title": "Strategy" }, "universe": { "anyOf": [ { "$ref": "#/$defs/Universe" }, { "type": "null" } ], "default": null }, "start": { "anyOf": [ { "pattern": "^\\d{4}-\\d{2}-\\d{2}$", "type": "string" }, { "type": "null" } ], "default": null, "description": "YYYY-MM-DD", "title": "Start" }, "end": { "anyOf": [ { "pattern": "^\\d{4}-\\d{2}-\\d{2}$", "type": "string" }, { "type": "null" } ], "default": null, "description": "YYYY-MM-DD", "title": "End" }, "initial_capital": { "default": 150, "description": "Starting capital in USD", "exclusiveMinimum": 0, "maximum": 1000000000, "title": "Initial Capital", "type": "number" }, "fee": { "default": 0.009, "description": "Fee per side (0.009 = 0.9%)", "maximum": 0.05, "minimum": 0, "title": "Fee", "type": "number" }, "slippage": { "default": 0.002, "description": "Slippage per side", "maximum": 0.05, "minimum": 0, "title": "Slippage", "type": "number" }, "include_trades": { "default": true, "title": "Include Trades", "type": "boolean" } }, "required": [ "strategy" ], "$defs": { "Breakout": { "additionalProperties": false, "properties": { "type": { "const": "breakout", "title": "Type", "type": "string" }, "params": { "$ref": "#/$defs/BreakoutParams", "default": { "lookback": 20, "atr_mult": 2, "risk_per_trade": 0.05, "max_position_pct": 0.5, "max_positions": 3, "gate": "btc_ma50", "min_stop_pct": 0.06, "max_stop_pct": 0.4 } } }, "required": [ "type" ], "title": "Breakout", "type": "object" }, "BreakoutParams": { "additionalProperties": false, "properties": { "lookback": { "default": 20, "description": "Buy when close > highest high of prior N days", "maximum": 60, "minimum": 5, "title": "Lookback", "type": "integer" }, "atr_mult": { "default": 2, "description": "Trailing stop = highest close - k*ATR14", "maximum": 6, "minimum": 0.5, "title": "Atr Mult", "type": "number" }, "risk_per_trade": { "default": 0.05, "description": "Fraction of equity risked to the initial stop", "exclusiveMinimum": 0, "maximum": 0.25, "title": "Risk Per Trade", "type": "number" }, "max_position_pct": { "default": 0.5, "exclusiveMinimum": 0, "maximum": 1, "title": "Max Position Pct", "type": "number" }, "max_positions": { "default": 3, "maximum": 10, "minimum": 1, "title": "Max Positions", "type": "integer" }, "gate": { "default": "btc_ma50", "description": "Only open trades when BTC > 50-day SMA (btc_ma50) or >=50% of universe above 20d SMA (breadth50)", "enum": [ "none", "btc_ma50", "breadth50" ], "title": "Gate", "type": "string" }, "min_stop_pct": { "default": 0.06, "exclusiveMinimum": 0, "maximum": 0.5, "title": "Min Stop Pct", "type": "number" }, "max_stop_pct": { "default": 0.4, "exclusiveMinimum": 0, "maximum": 0.9, "title": "Max Stop Pct", "type": "number" } }, "title": "BreakoutParams", "type": "object" }, "Dip": { "additionalProperties": false, "properties": { "type": { "const": "dip", "title": "Type", "type": "string" }, "params": { "$ref": "#/$defs/DipParams", "default": { "drop_pct": 0.15, "days": 1, "trend_filter": "ma50", "max_hold_days": 5, "hard_stop_pct": 0.15, "max_positions": 3 } } }, "required": [ "type" ], "title": "Dip", "type": "object" }, "DipParams": { "additionalProperties": false, "properties": { "drop_pct": { "default": 0.15, "description": "Buy after a fall of at least this fraction over `days`", "exclusiveMaximum": 0.9, "exclusiveMinimum": 0.01, "title": "Drop Pct", "type": "number" }, "days": { "default": 1, "maximum": 10, "minimum": 1, "title": "Days", "type": "integer" }, "trend_filter": { "default": "ma50", "enum": [ "ma50", "none" ], "title": "Trend Filter", "type": "string" }, "max_hold_days": { "default": 5, "maximum": 60, "minimum": 1, "title": "Max Hold Days", "type": "integer" }, "hard_stop_pct": { "default": 0.15, "exclusiveMaximum": 0.9, "exclusiveMinimum": 0.01, "title": "Hard Stop Pct", "type": "number" }, "max_positions": { "default": 3, "maximum": 10, "minimum": 1, "title": "Max Positions", "type": "integer" } }, "title": "DipParams", "type": "object" }, "MATrend": { "additionalProperties": false, "properties": { "type": { "const": "ma_trend", "title": "Type", "type": "string" }, "params": { "$ref": "#/$defs/MATrendParams", "default": { "coins": [ "ETH-USD" ], "ma_days": 50 } } }, "required": [ "type" ], "title": "MATrend", "type": "object" }, "MATrendParams": { "additionalProperties": false, "properties": { "coins": { "default": [ "ETH-USD" ], "description": "Coinbase product ids, e.g. ETH-USD", "items": { "type": "string" }, "maxItems": 10, "minItems": 1, "title": "Coins", "type": "array" }, "ma_days": { "default": 50, "maximum": 60, "minimum": 5, "title": "Ma Days", "type": "integer" } }, "title": "MATrendParams", "type": "object" }, "Momentum": { "additionalProperties": false, "properties": { "type": { "const": "momentum", "title": "Type", "type": "string" }, "params": { "$ref": "#/$defs/MomentumParams", "default": { "lookback": 14, "top_n": 2, "rebalance_days": 7, "gate": "btc_ma50", "trail_pct": null } } }, "required": [ "type" ], "title": "Momentum", "type": "object" }, "MomentumParams": { "additionalProperties": false, "properties": { "lookback": { "default": 14, "description": "Rank by N-day return", "maximum": 60, "minimum": 3, "title": "Lookback", "type": "integer" }, "top_n": { "default": 2, "maximum": 10, "minimum": 1, "title": "Top N", "type": "integer" }, "rebalance_days": { "default": 7, "maximum": 30, "minimum": 1, "title": "Rebalance Days", "type": "integer" }, "gate": { "default": "btc_ma50", "enum": [ "none", "btc_ma50", "breadth50" ], "title": "Gate", "type": "string" }, "trail_pct": { "anyOf": [ { "exclusiveMaximum": 0.9, "exclusiveMinimum": 0, "type": "number" }, { "type": "null" } ], "default": null, "description": "Optional % trailing stop from highest close", "title": "Trail Pct" } }, "title": "MomentumParams", "type": "object" }, "Universe": { "additionalProperties": false, "properties": { "mode": { "default": "point_in_time", "description": "point_in_time = top-N by trailing 20d $ volume AS OF each day (no survivorship bias); current_top = top-N as of the end date (biased, for comparison); fixed = your coin list", "enum": [ "point_in_time", "current_top", "fixed" ], "title": "Mode", "type": "string" }, "top_n": { "default": 30, "maximum": 200, "minimum": 5, "title": "Top N", "type": "integer" }, "min_age_days": { "default": 35, "description": "Days a coin must have traded before it is eligible", "maximum": 120, "minimum": 0, "title": "Min Age Days", "type": "integer" }, "min_avg_dollar_volume": { "default": 1000000, "description": "Min 20-day avg Coinbase $ volume", "minimum": 0, "title": "Min Avg Dollar Volume", "type": "number" }, "coins": { "anyOf": [ { "items": { "type": "string" }, "maxItems": 200, "type": "array" }, { "type": "null" } ], "default": null, "title": "Coins" } }, "title": "Universe", "type": "object" } }, "title": "backtestArguments" }
Connections
streamable-http
https://grok-backtest-api.fly.dev/mcp