# 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 ('exact' scheme, USDC on Base mainnet). Call the endpoint; you get HTTP 402 with a base64 PAYMENT-REQUIRED header; sign the USDC authorization and retry with a PAYMENT-SIGNATURE header. Settlement only happens after a 2xx result: a 4xx/5xx (bad input, upstream outage) is NOT charged. Validate inputs for free first: POST /validate (backtest), POST /validate/optimize, POST /validate/token-check, GET /validate/universe. GET /schema returns request schemas and examples for every endpoint. Prices: backtest $0.05, signals $0.01, token-check $0.02, optimize $0.50, universe $0.05. Data: Coinbase Exchange daily candles (completed UTC days only) for ~400 USD pairs; refreshed daily. Use /signals for today's regime, /token-check before touching an unknown token, /backtest to test a rule set, /optimize to pick robust (not best-fit) parameters, /universe to avoid survivorship bias in your own backtests. Outputs are informational, not financial advice. ## Paid endpoints - [POST /backtest](https://grok-backtest-api.fly.dev/backtest) - $0.05 USDC - Backtest 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. Free pre-check: POST /validate. - [GET /signals](https://grok-backtest-api.fly.dev/signals) - $0.01 USDC - Daily 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](https://grok-backtest-api.fly.dev/token-check) - $0.02 USDC - Token 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. Free pre-check: POST /validate/token-check. - [POST /optimize](https://grok-backtest-api.fly.dev/optimize) - $0.50 USDC - Find 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. Free pre-check: POST /validate/optimize. - [GET /universe](https://grok-backtest-api.fly.dev/universe) - $0.05 USDC - Survivorship-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). Free pre-check: GET /validate/universe. ## Free endpoints - GET /health - GET /schema - GET /openapi.json - GET /llms.txt - GET /.well-known/x402 - GET /.well-known/agent-card.json - POST /validate - POST /validate/optimize - POST /validate/token-check - GET /validate/universe - POST /mcp (MCP Streamable HTTP: tools/list, free tools; paid tools need x402) - GET /.well-known/agent-registration.json ## Docs - [OpenAPI](https://grok-backtest-api.fly.dev/openapi.json) - [Schemas and examples](https://grok-backtest-api.fly.dev/schema) - [x402 manifest](https://grok-backtest-api.fly.dev/.well-known/x402) - [A2A agent card](https://grok-backtest-api.fly.dev/.well-known/agent-card.json) - [MCP server (Streamable HTTP)](https://grok-backtest-api.fly.dev/mcp) - same tools as MCP tools; paid tools use x402 over MCP (_meta['x402/payment']); free tools: health, get_schema, validate_* - [ERC-8004 registration](https://grok-backtest-api.fly.dev/.well-known/agent-registration.json) ## Token-check data sources and limits - public_rpc: eth_getCode/eth_call/eth_getStorageAt on mainnet.base.org, base.drpc.org, base-rpc.publicnode.com, ethereum-rpc.publicnode.com, eth.drpc.org; Solana api.mainnet-beta.solana.com (rate-limited public endpoints) - goplus: api.gopluslabs.io token_security (free, no key, 30 calls/min) - honeypot_is: api.honeypot.is/v2/IsHoneypot buy/sell simulation (free, no key currently; Ethereum, BSC, Base; Uniswap V2/V3-style pools) - dexscreener: api.dexscreener.com/tokens/v1 (free, no key, 300 req/min): liquidity, volume, first pool date - blockscout: base/eth.blockscout.com API v2 (keyless): verification + creation tx; may be Cloudflare-blocked, fallback = archive eth_getCode binary search for deployment time