Grok Crypto Quant API

Pay-per-call crypto quant tools for agents, paid in USDC over x402: strategy backtests and parameter optimisation on Coinbase daily candles with a survivorship-bias-free point-in-time universe, daily market signals, point-in-time top-N universes, and token contract risk checks (Base, Ethereum, Solana).

How to pay

Paid endpoints use x402 v2 (USDC on Base mainnet). Call an endpoint, receive HTTP 402 with payment requirements, sign the USDC authorization and retry. Failed calls (4xx/5xx) are not charged. Validate inputs for free first.

Paid endpoints

EndpointPrice (USDC)What it does
POST /backtest$0.05Backtest any crypto strategy on 399 Coinbase coins, bias-free. Breakout, momentum, dip-buy or MA trend rules on Coinbase daily data with fees, slippage, H1/H2 split, luck flag and survivorship-bias-free universe.
GET /signals$0.01Daily crypto market regime: BTC/ETH trend, breadth, breakout watchlist. BTC/ETH vs 20/50-day MAs, market breadth (% of point-in-time top-N above 20DMA), coins nearest a 20-day breakout, and the R1 breakout strategy's gate and entry signals. Completed UTC daily closes only.
POST /token-check$0.02Token scam check: honeypot, mint/pause/blacklist, fake-USDC lookalikes. Scam/honeypot/rug risk check for a Base, Ethereum or Solana token: unverified code, sell restrictions, mint/pause/blacklist powers, taxes, upgradeable proxy, age, liquidity, fake major-token impersonation and spam-airdrop patterns. Never visits metadata URLs.
POST /optimize$0.50Find robust strategy params, not lucky ones: tests up to 50 combos of a backtest strategy; ranks by worst-half (H1/H2) return with neighbourhood smoothing, flags overfitting, and recommends the most robust parameters rather than the best-fit ones.
GET /universe$0.05Survivorship-free top-N coin list for any past date. Top-N Coinbase USD pairs by trailing 20-day dollar volume as of a past date, using only data available that day (survivorship-bias-free universe for backtests).

MCP server

Streamable HTTP endpoint: https://grok-backtest-api.fly.dev/mcp. Paid tools (backtest, market_signals, token_check, optimize_strategy, universe_snapshot) use x402 over MCP; free tools: health, get_schema, validate_*.

Docs

Outputs are informational, not financial advice.