SQL over crypto + prediction markets, built for LLM quant agents.
One API key → unified SQL access to Binance perpetuals, Polymarket L2 orderbook (live + 185 days history), funding rates, open interest, and cross-venue joins. Designed so LLM agents (ChatGPT, Claude, Gemini) can query it natively.
GET /v1/agent-brief — mandatory LLM system promptGET /v1/catalog — dataset directory + row countsGET /v1/schema/{dataset} — columns + platform gotchasGET /v1/examples — 15 pre-tested strategy SQL templatesPOST /v1/sql — AST-sandboxed query with antipattern warningsPOST /v1/backtest — structured DSL with Wilson CI + bootstrap + walk-forward + Bonferronicurl -H "X-API-Key: YOUR_KEY" https://api.midbook.dev/v1/health curl -H "X-API-Key: YOUR_KEY" https://api.midbook.dev/v1/catalog curl -H "X-API-Key: YOUR_KEY" https://api.midbook.dev/v1/agent-brief
Closed beta now. Email salimovsf@gmail.com for an API key.