Download
download Kwants library
Kwants plugs into any LLM — Claude, GPT, Gemini, Cursor — and gives it clean, point-in-time market data with lookahead bias blocked at the architecture level. No data engineering. No hallucinated results.
$ $
How it works
Install, add your Polygon key, define your strategy in config, and run. No backtest engine to write.
download Kwants library
Add your Polygon API key and download the data
Tell your LLM what you want to test
kwants run — done
Export results, move to live trading
LLMs are great at describing strategies. They're terrible at enforcing data discipline. Left unconstrained, they'll peek at future data, ignore delistings, and hand you results that look great and perform terribly. Kwants blocks all of it at the data layer — not by convention, but by architecture.
Assumptions, removed
Survivorship bias, lookahead leakage, bad splits, late prints — most LLM runs ignore these. Every item below is live and running on every backtest you run.
> ls -la ./fixes/
Before you talk yourself out of it
No. You describe your strategy in plain English to any LLM. Kwants handles the data layer. Python access is available for customization, but never required.
The real comparison isn't $497 vs. free. It's $497 vs. deploying a strategy with a lookahead bug in a live account. No recurring fees. Ever.
Kwants is strategy-agnostic — momentum, mean reversion, intraday, daily. If you can describe it in plain language, you can test it. Reach out before purchasing if unsure.
Quick Answers
A Python library that handles data downloading, processing, and backtesting — built to work with any LLM. You describe the strategy; Kwants handles the data integrity layer.
Any — ChatGPT, Claude, Gemini, Cursor, local models via Ollama. Kwants doesn't require a specific model.
No. One-time $497, no monthly fees, no seat licenses, no usage limits. You buy it once and own it permanently. You do need a massive.com subscription.
Data access is enforced at the infrastructure level. When a signal is generated for a given date, only data published before that date's market open is accessible. Gated by architecture, not convention.
No. Everything runs locally. No external requests are made by the library beyond massive.com API calls.
Your strategy deserves a backtest that reflects what would have actually happened.
Get Kwants for $700$497