The write-up
How Quipu is built
an options tool, from chart to trade
backend · finance
What
An options tool: pick a strike and a budget and it writes out what the trade means, in sentences.
Why
An options chain is a wall of numbers. Quipu says $51.75 for every dollar AMD moves, $121 a day lost to time, and the price it has to clear inside seven days.
How
Behind the sentences are its own pricing engines, Black-Scholes-Merton, an American binomial tree and an implied-volatility solver, served by FastAPI. It reads twenty free sources at once and marks the facts only one outlet reported.
Built with
- Python 3.12
- FastAPI
- uvicorn
- pandas
- NumPy
- yfinance
- trafilatura
- Vanilla JS
- Hand-drawn SVG
- Electron 33
- PyInstaller
By the numbers
- lines of source
- 31,737
- commits in 8 days
- 75
- test assertions
- 276
- REST endpoints
- 19
- data sources
- 20
- UI panels
- 83
- strategies recognised
- 26
- ready-made setups
- 17
- glossary terms
- 58
Languages
| Python | 15,928 | 50.2% |
| JavaScript | 12,425 | 39.1% |
| CSS | 3,204 | 10.1% |
| Shell / PowerShell | 180 | 0.6% |
On the wire
- HTTP / TCP
- FastAPI on 127.0.0.1:8848, polled every 15 s
- HTTPS
- 20 data hosts, fanned out over 16 threads
- Tunnel
- Cloudflare, to quipu.wearechintu.com
- Guard
- origin allowlist, cross-site refused
Models
- Black-Scholes-Merton
- CRR binomial, American
- Bisection IV solver
- 5 greeks
- IV Rank
- Max pain
- SMA
- EMA
- RSI
- MACD
- Bollinger
APIs
- Yahoo Finance
- SEC EDGAR
- SEC XBRL
- Alpaca
- Federal Reserve
- BLS
- BEA
- Google News
- MarketWatch
- CNBC
- Seeking Alpha
- Nasdaq
- Bing News
- Investing.com
- StockTwits
- Finnhub
- ForexFactory
- Nasdaq Trader
- SSGA
- Firecrawl
Also
Named for the Incan knotted-cord ledger.