Releases
What's new.
All notable changes to SwiftTrade. Versions follow Semantic Versioning; the single source of the version is the VERSION file (python scripts/set_version.py stamps every package).
Unreleased
Sign-in and security center (13 November 2026)
- No phone? Still in. Owner accounts on the server's list can choose "I don't have my authenticator" after the password and get a one-time code by email (valid 10 minutes, once).
- Recovery codes, new style: ten codes of 12 characters (letters and digits, no look-alikes), shown once, each usable once; using one emails you and the security center asks you to review your protection.
- Security center (
/security): protection overview with plain reasons, two-factor, recovery codes, devices, sessions (sign out one, the others or everywhere), sign-in history with risk and reasons, alerts, API keys. Owners also get lockdown, the admin access log and privileged sessions - each confirmed with a fresh second factor. - Safer platform: two orders at once can no longer break a position limit together; a double click in the web terminal sends one order; FRIDAY keeps each person's documents, reports and memory to that person.
FRIDAY 2.0: talk, research with sources, its own knowledge (11-12 November 2026)
- FRIDAY page at
/friday/- phone, tablet and desktop, dark and light: conversations in workspaces, projects (with their own instructions) and folders; answers appear as they are written; sources, knowledge, canvas, code, tasks, agents, models, memory and a system monitor beside the conversation. The terminal's FRIDAY panel opens it with the instrument you are looking at. - Voice (with an ElevenLabs key on the server): FRIDAY speaks sentence by sentence, listens, and stops the moment you talk over it. Without a key FRIDAY answers in text, and your device's voice can read answers aloud.
- Research with sources: FRIDAY searches official, scholarly, encyclopaedia and news sources and SwiftTrade's own data (central-bank decisions, the data hub's series), counts copies of one news story once, and marks every finding verified, unverified, disputed or outdated - with its sources and dates.
- FRIDAY's own knowledge: what it found is kept as notes with their sources and versions; contradictions keep both sides; documents you give it (PDF, Word, Excel, PowerPoint, text, code) become searchable knowledge. Answers cite it.
- Agents and models: 16 specialised agents with only the tools they need; FRIDAY picks a local model per task, falls back when one is missing, and measures them on this computer. Resource profiles keep the computer usable.
- Safety: no FRIDAY path can trade; keys stay on the server; web pages and documents are treated as data, never as instructions; code runs only after you confirm it.
- Known limits: docs/KNOWN_ISSUES.md.
SwiftTrade Terminal: help, safer ticket, keyboard and polish (29 October 2026)
- Help (F1): what every panel does, its codes and the keyboard shortcuts, searchable; open a panel from there.
- The ticket no longer assumes a paper account while the platform has not said which account an order goes to: it shows ACCOUNT UNKNOWN and confirming waits for the answer. The same for algo orders.
- Clearer states: panels show a placeholder while they load and say plainly when the platform did not answer.
- Keyboard: the choice buttons (buy/sell, order type, time in force and others) and chips work with Tab, arrows, Space and Enter. Menus, tooltips and scroll bars follow the dark and light theme.
- Fixes: links in intelligence reports open only as web pages; the synthetic options chain is labelled SYNTHETIC; a decimal comma in the engineers desk is refused instead of read as a thousands separator.
SwiftTrade Terminal: linked charts, intelligence map, engineers desk (29 October 2026)
- Linked charts: two or four charts side by side with one style, interval and zoom, and one crosshair time across all of them. A chart follows your selection or keeps its own instrument.
- Intelligence map: where the platform's located events happen, on a world map drawn in the terminal - clusters at world view, single events when you zoom in, countries with conflict reporting shaded. Click an event to see how well it is verified, where the location came from and its sources.
- Engineers desk: run the platform's option, volatility and risk models from a form, see the result with its tables and charts, and open or reproduce earlier runs.
SwiftTrade Terminal: chart trading, volatility lab, measured speed (29 October 2026)
- Your trades on the chart: the average price of your position with its profit or loss, the bot's protective stop and target, and every fill. A level outside the visible prices sits at the edge with an arrow.
- Right-click the chart to set an alert at that price, prepare a buy or sell limit order in the ticket (it is sent only after you review and confirm it), start a trade plan or draw a level.
- Three more chart types: hollow candles, Heikin-Ashi (marked as averaged prices) and an area chart.
- Volatility lab for BTC and ETH: the term structure with the IV rank, the smile with the fitted curve, open interest by strike with put/call ratios and max pain, and option structures with their cost, Greeks, breakevens and payoff. Live Deribit data through the platform, labelled with its age. Analysis only: nothing sends an order.
- Faster prices: a price change now reaches the screen in about 5 ms typically and under 9 ms in 95 % of cases on this machine (before: up to 86 ms). The terminal can measure itself (
--bench) against the performance budgets.
SwiftTrade Terminal: trading and research panels (28 October 2026)
- The terminal now trades and researches through the SwiftTrade platform. New panels: an order ticket with a review step and an explicit confirm, positions (close with confirmation), orders (cancel one or all), screener, news, price alerts, the bot (halt, off/paper with a reason) and risk. The platform checks every order and every bot change itself; the terminal shows its answer as it came. Live trading is never switched on from the terminal.
- Panels dock, tab and tear off into their own windows; four desks (Trading, Research, Monitor, Focus) set up a layout in one click, and the layout is saved with the workspace.
- Order book and Time & Sales for the selected instrument; a click on a price in the book prepares a limit order.
- The market gateway can stream the platform's own market data (
--provider platform), so the terminal shows the same prices as the rest of SwiftTrade. Simulated instruments stay labelled as simulated. - More panels: markets (gainers, losers, most traded), statistics of the selected instrument, a correlation matrix, the equity curve with its drawdown, and the trade journal with notes.
- A better chart: a time axis in local time, candles, bars or a line, and SMA 20, EMA 50, Bollinger bands and the session VWAP with a legend; the choice is saved with the workspace.
- Order flow: who is buying and selling over the last seconds to minutes, the cumulative delta, the session volume profile, a footprint chart and a scanner of unusual order-flow patterns across all markets (labelled as a model, not a signal).
- Algo orders: TWAP, VWAP, POV, iceberg, stop, stop-limit and bracket orders, reviewed and confirmed like a normal order, with their progress and a cancel. Every child order passes the platform's risk checks.
- Condition alerts: moves, volume spikes, volatility, RSI, average crosses, order-flow delta, large prints, order-flow patterns and news; edit, arm, disarm, copy to another instrument.
- Strategy lab: backtest any strategy on the selected instrument with a Monte-Carlo of its returns, and add it to the paper bot.
- Markets at a glance: a market map by sector, the Treasury curve with its spreads, an economic calendar, world clocks with exchange hours, Jarvis (plain-language notes on an instrument, each with its source) and a volatility model. Two new desks: Order flow and Macro.
- Type an order or a function code:
buy 100 alpha @ 181.5in the command palette pre-fills the order ticket (you still review and confirm it there); codes such asALPHA GP,FLOWorMOSTopen their panel. - Draw on the chart: levels, trend lines and zones that stay put through zoom, pan, intervals and restarts, a measure tool, and any drawing can become an alert on the platform.
- Chart intervals: 5-minute, 15-minute and 1-hour bars built from the live 1-minute bars.
- Order-book heatmap: where the resting orders sat over the last minutes, with the trades on top.
- Fixed: a choice control on the order ticket could show a side other than the one the ticket would trade after the ticket was filled in from the order book.
- Trade plans and replay on the chart: entry, stop and target from the bot's settings with the reward-to-risk ratio and a one-sigma cone; a plan fills in the ticket or arms alerts. Replay steps through the bars.
- Compare instruments on the chart in percent.
- Option chain: the BTC and ETH market chain, and a clearly labelled model chain for everything else.
- Research: a research brief that separates facts from analysis and speculation, market memory with its own skill record, GARCH and Markov models, market intelligence with the news-driven risk mode.
- Monitoring: a risk overview of every limit, the bot's signal board, performance by period, the engine's alert stream, and a notice when one of your alerts fires.
- Colour-blind mode (blue and orange instead of green and red), and torn-off windows that reopen where they were, on any monitor.
SwiftTrade Terminal (Qt Quick) and the Rust market gateway (27 October 2026)
- New desktop terminal built with Qt Quick (Master Prompt v4): a live watchlist, an instrument panel, a live candlestick chart with volume, a command palette (Ctrl+K), a workspace that is saved and restored, and the connection and data freshness always in view. It reconnects on its own when the data source goes away.
- Rust market gateway serving a deterministic mock market over a versioned protobuf stream. All of its data is simulated and labelled SIMULATED everywhere; the instruments are fictional.
- Built and tested on Windows so far; the workflow for Linux, macOS and Windows (MSVC) is in place but has not run.
Regime probabilities without look-ahead (27 October 2026)
- The HMM regime model is causal again. Its state probabilities were smoothed with information from up to 62 later days, so a backtest with
regime.use_hmm: truecould reduce exposure before stress arrived. They are now filtered: a probability on a day uses that day and earlier only. The shipped configurations had the HMM switched off. A new test checks the model against the simulated universe's known regimes: it finds stress reliably, but does not separate calm from normal markets.
Backtest and market data: three results that were quietly wrong (27 October 2026)
- Portfolio backtest: a trade stopped out on the bar it was entered was never booked. Its risk stayed open, so every later trade in that instrument was refused. The multi-timeframe study's portfolio figures (Sharpe, CAGR, drawdown, Monte Carlo) predate this fix and need a rerun; its per-trade figures and verdicts are unaffected.
- Binance trade history: fetching more than 1000 trades skipped trades that shared a millisecond with the end of a page, so the market canvas footprint showed too little volume. Pages now follow the trade id.
- Economic calendar: a JSON calendar given by URL was read as CSV and produced no entries, and each refresh loaded the file twice.
- Python platform line coverage measured for the first time: 84 %.
Outbound requests pinned to the checked address; core tests (27 October 2026)
- No DNS rebinding: the news fetcher, Teams messages and alert webhooks now connect to the very address they checked as public. A DNS answer that changes between the check and the connection can no longer reach the internal network.
- Money arithmetic on Windows is tested: MSVC has no
__int128, so the Windows desktop build multiplies and divides money through a portable 128-bit path that no test had run. A differential test now checks it against the__int128path on 200,000 random cases and every rounding mode. - New core tests cover trading costs (commissions, US regulatory fees, slippage), instruments, bar series, and paper trading on live quotes and trades. Core line coverage is 86 %.
Security and reproducible builds (27 October 2026)
- Second factor and password guessing are limited per account. Before, a wrong authentication code was not counted, and a correct password reset the failure count before the code step. Anyone who knew a password could sign in again and again and try codes, limited only per IP address. Now only a completed sign-in resets the count, a wrong code counts like a wrong password, and a locked account is refused at the code step as well. Password change and turning two-factor off also count wrong attempts and are rate-limited per address.
- OWASP Top 10 check of the platform:
docs/security/OWASP_CHECK.md, with evidence for each category, the two findings above, and three open points. - No silently swallowed exceptions: a failing search source, a model that fails on a fold, and an installed but unusable boosting library are now logged (and noted in the model study). Ruff rules S110/S112 keep it that way.
- The server image installs locked dependencies.
requirements.lockpins versions and hashes, pip runs with--require-hashes, and the node, python and caddy base images are pinned by digest. CONTRIBUTING.md.
Design tokens and core coverage (27 October 2026)
- `design/tokens.json` is the single source for colours, type, spacing, radius, elevation, motion, icons and z-index (dark, light and a colour-blind palette).
scripts/check_design_tokens.pyenforces the clean-design rules: the 4-px grid, two font families and five sizes, colour roles, WCAG AA contrast on every background, colour-blind separation and motion of at most 300 ms.scripts/gen_design_tokens.pywrites CSS variables and a C++ header todesign/generated/. The surfaces adopt them after the design-reference decision. - Coverage of the C++ core: a
-DST_COVERAGE=ONbuild and acoveragejob incore.ymlwith the targets of core ≥ 80 % and pricing, risk checks and kill switch at 100 %. New tests cover the message sequencer, staleness monitor, market hub and bar aggregation, which no core test had exercised, and check option pricing against textbook values. Core line coverage went from 76.8 % to 81.9 %.
C++ core: order books, provider failover, tick store (27 October 2026)
- Order-book engine (
st::md::L2Book,L3Book,DepthSyncinworkstation/core/market-data): aggregated and order-by-order books with integer-tick prices, microprice, depth, imbalance and fill estimates, and the diff-stream rules (stale updates dropped, a gap stops the book until the next snapshot). L2 update 33 ns. - Provider failover (
st::md::FeedFailover): ranked providers per route, failover on disconnect, silence, latency or sequence gaps, with cool-down and failback hold. It never mixes licence classes or delays. - Tick store, part 1 (new module
st::storage): per-stream rings with time queries and a spill interface that writes only what the stream's licence allows; a wait-freest::SpscRingfor the feed-thread hand-off. The Parquet/DuckDB sink follows with vcpkg. - A test binary counts allocations: book updates and tick hand-off do not allocate once warmed up.
The C++ module in CI, optional extras, Playwright output (27 October 2026)
- New workflow `.github/workflows/cpp-module.yml`: builds
cpp/on Linux (GCC 14) - its C++ tests, the benchmark and theswifttrade._coremodule - and runs the Python tests that use the module. Before, the module was never built in CI andtests/test_cpp_core.pyalways skipped. - `pip install -e ".[llm]"` installs something now: the
llmextra (anthropic>=0.120, needed foroutput_configandfallbacks="default"inintel/llm.py) was named in the code andconfigs/intel.yamlbut did not exist. Newboostingextra (xgboost,lightgbm) for the model comparison inmodels/ml.py. terminal/test-results/(Playwright's run output) is ignored and no longer tracked.
Demo mode as an explicit switch (26 October 2026)
- `demo.enabled` (
configs/default.yaml, envSWIFTTRADE__DEMO__ENABLED): synthetic data - the SIM market and its universe - exists only while it is on. On by default, so existing servers keep their paper market; off, the SIM simulator does not start whateverfeeds.sim_enabledsays,swifttrade initrefuses (exit 2, nothing written) and the container entrypoint skips seeding. /api/systemreportsdemo_mode, so every surface can show it. The permanent DEMO badge in the terminal, console and workstation is still to do.- Tests:
tests/test_demo_mode.py.
Developer tooling: one set of commands, hooks, C++ style (26 October 2026)
Makefile(Linux/macOS) andscripts/dev.ps1(Windows) with the same verbs:setup,dev,lint,test,core,bench(andsanitizein make)..pre-commit-config.yamlwith local hooks only (nothing downloaded at commit time): no.env/key/certificate files, no private key blocks, ruff, feature registry and API reference checks..clang-format(from the existing style),.clang-tidy(defect-finding checks only),.editorconfig; a non-blockinglintjob incore.ymlandworkstation/docs/STATIC_ANALYSIS.md. The tree is not reformatted.
Core CI: sanitizers, benchmarks, Linux/macOS, secret scan (26 October 2026)
- Sanitizers for the C++ core:
-DST_SANITIZE=address;undefinedorthread(GCC/Clang),addresson MSVC, and-DST_SANITIZE_TRAP=ONfor UBSan without a runtime (works with MinGW).workstation/cmake/Sanitizers.cmake. - Benchmarks:
-DST_BUILD_BENCHMARKS=ONbuildsswifttrade_core_bench(Google Benchmark 1.9.1): instrument search, SMA/EMA/RSI over a million bars, tick-to-bar aggregation, Black-Scholes and implied volatility.workstation/scripts/check_bench_budget.pyenforces the SPEC budget for the command-bar search (< 50 ms). - New workflow `.github/workflows/core.yml`: core build and tests on Linux (GCC 14: release, ASan + UBSan, TSan) and macOS (Apple Clang, non-blocking until its first green run), benchmarks with the budget check, and a gitleaks scan of the commits of each push or pull request (version and checksum pinned).
- Tests:
tests/test_bench_budget.py; locally (Windows, GCC 15.2): core 174/174 also with UBSan in trap mode.
Security fixes from the v3 audit (26 October 2026)
- Desk audit log for administrators only:
GET /api/audit(every account's sign-ins, the desk's orders, mode changes and kill-switch actions) needed only a session; it now needs theadminpermission, like/api/admin/audit. The local single-user operator is unaffected. Test:tests/test_access.py::test_the_desk_audit_log_is_for_administrators_only. - Live gate, switch 1 of 3 enforced: arming LIVE checked the environment flag, the typed phrase, the broker and the strategies' approval, but not
live_trading.enabledinconfigs/default.yaml, although the README describes all three unlocks as checked independently. Arming now refuses with a 403 before any broker is built while the configuration switch is off. Test:tests/test_bot.py::test_arming_live_needs_the_configuration_switch. - No silently lost audit entries: bot mode changes (including to LIVE), halts, algo and bracket starts, closes and cancels, and every sign-in event swallowed a failed audit write without a trace. They now go through one helper (
src/swifttrade/core/audit.py) that still never blocks the action but logs every failed write as an error naming the action and the actor; the bot also raises a CRITICALAUDIT_FAILEDevent. Tests:tests/test_audit_record.py,tests/test_bot.py::test_the_bot_halts_and_switches_mode_but_reports_a_lost_audit_entry. - Treasury feed parsed safely: the US Treasury yield-curve XML was the only remote XML parsed with
xml.etree(entity expansion allowed). It now goes throughdefusedxml, and a broken or unsafe document is aProviderError, so/api/yield-curveserves its cache instead of failing. Test:tests/test_data.py::test_treasury_parser_refuses_unsafe_or_broken_xml.
Website: the design canvas V2 (29 October 2026)
- Headings in Inter Tight (one weight, 500); EB Garamond speaks only in quotations, in italic.
configs/brand/tokens.jsonnames the facesdisplay,text,quoteanddata. The Garamond italic is no longer preloaded. - Hero: the words on the left, the terminal's overview desk on the right, four plain facts along the stage's foot (status, market data, trading, surfaces). The desk is the real capture; on a wide screen with motion allowed its six panels rise off the screen in Three.js (after the page has loaded), stand further off as you scroll and lean toward the pointer. On phones a toggle draws it in depth; reduced motion keeps the capture. The product film moved under the stage and opens on the trading desk.
- Header: graphite while it sits over a graphite stage (the start page's hero, every page header), paper after it.
- Company: a band on the start page with the founders, the founding date and a globe of the two cities in the mark (Vaduz to Pristina, drawn once on a 2D canvas), then the founder's thesis and the four principles.
/about/follows the canvas's company page: the statement and facts beside the globe, the story in three steps, the thesis, the team, the principles, the brand scenery (moved here from the start page), five milestones and what SwiftTrade is not. Every fact comes from the site content, the changelog, the feature register or the launch rules; no portraits, no family details, no promised dates. - Aurora and circuit traces stay, quietly. Checks: typecheck, 87 unit tests, contrast, translations, accessibility audit, overflow, keyboard, reduced motion, Lighthouse; screenshots in
docs/redesign/screenshots/retaken.
Website: verification (WP10, 25 October 2026)
- Release build, export links, accessibility (36 pages, both themes), layout at five widths, keyboard paths, reduced motion and Lighthouse checked; e2e could not run here (no Python). Fixed on the way: Tab no longer leaves the phone menu after the theme switch; footer links, workflow stage links and linked status marks are 44 px tall on touch screens; the language and region buttons say what they show first ("EN, Language: English"); the arrow after a quiet link has its own space. New review screenshots in
docs/redesign/screenshots/.
Website: a fintech experience on the start page (25 October 2026, evening)
- Hero: what SwiftTrade does, for whom and why, over a quiet turquoise aurora and a few circuit traces; the product film rises out of it onto the page. There is no film yet: the frame says "Film in production" and offers the same tour as stills (eight real captures, chapters, arrow keys, a caption read out).
web-next/lib/product-film.tsis the slot for a render; with one, Play uses the browser's controls and the stills stay as the reduced-motion alternative. - New sections: the four product areas as tabs; "How data and orders move" beside a circuit board, drawn in depth with Three.js where motion is allowed (a lazy chunk, never in a first load) and as a flat diagram everywhere else; who it is for (teams honestly "not available yet"); and security, integrations, getting started and support. Every claim comes from the product pages, the technology and security pages or the feature register.
- Motion: Framer Motion (lazy features, follows reduced motion) for the header highlight, the tab marker, the tour and card lifts. Heading reveals work again (they never fired in Chrome).
- Type: headings in Inter; EB Garamond stays in the wordmark. The platform, technology and security headers carry the aurora too. Text on the aurora is measured at its brightest point.
Website: Graphite Ledger brand tokens (25 October 2026)
- The approved direction (
docs/design/website-phase1/PROPOSAL.md): product moments and the frame on graphite, reading pages on warm paper. SwiftTrade Amber#FF9F1Cis reserved for the one main action, and SwiftTrade Turquoise#2EC4C3marks focus and the current place. Gains, losses and warnings keep their own colours. - One source:
configs/brand/tokens.json(W3C design-tokens format, also meant for the native workstation).web-next/scripts/gen-site-tokens.mjswrites the primitives toweb-next/app/site-tokens.css, andapp/site.cssmaps the roles per theme without a colour of its own.--navyremains as an alias while the page sheets move over. - Checks:
web-next/scripts/contrast-check.mjsmeasures the 64 colour pairs the roles combine (all WCAG 2.2 AA).web-next/tests/tokens.test.mtsfails on generation drift, a failing pair, an unknown--st-*name, or a colour written into the token layer. - Visible now: paper and graphite grounds in place of off-white and navy, square cards and captures, amber-ink marks and turquoise focus.
- Components: the main action is amber everywhere, with an amber-ink edge on paper and none on graphite, and never white text on amber. Links, outlines and active marks use the strong ink. Focus is a 2 px turquoise ring, the bright turquoise on graphite. One rule gives every component its graphite colours inside the page header, the closing band, the scenery and the footer, so the white overrides there are gone. Status marks gained an hourglass for "needs licensed data" (platform and pricing tables).
- New components: limit notes under the claim they qualify, numbered footnotes with a way back, PAPER, SIM and LIVE mode pills, a capture figure with a source line, a workflow strip (current stage in turquoise, a locked stage with its reason) and a graphite band. A component sheet at
/design-system/exists only innext devor withSWIFTTRADE_DESIGN_SHEET=1; it is never part of the public export. - Header and footer: Platform ▾ · Trust · Pricing · Company · Contact. The Platform menu lists the four product areas, each with how many of its functions are available today (from the feature register), beside a real capture, the overview and the desktop workstation (in preparation). A Sign-in panel names each surface: web terminal, account, desktop app. Both panels close on Escape (focus returns), on a click or focus outside and on navigation. The current page carries a turquoise line. On phones, Platform opens in place inside the menu. Until the product pages and the Trust page exist, their links lead to the matching sections of
/platform/(lib/site-nav.ts). The full header starts at 1200 px, where it fits on one line in all six languages. All new words are in de, fr, it, es and pt, and in the region pages' own dictionary. - Start page: the hero is on graphite with the dark capture, eager and the largest paint. Under it, the four product areas link to their pages with how much of each is available. A strip shows how work flows: watch, analyse, research, paper trade, with live trading shown locked and the reason given. The Places band keeps the painting but moves the text into its own column beside it, with the caption and the Pause button under the picture. The team moved to About (
#storynow leads to/about/#team). - New pages: Markets and order flow, News and intelligence, Research and backtesting, and Paper trading and risk (
/platform/…/, one template). Each has its stages with real captures, every function of the area from the feature register with plan, state and limit, and what to keep in mind. Also new: Security and infrastructure (/trust/) and Technology (/technology/). No certification, audit or licence is claimed. - Motion: short entrance reveals below the fold, a fade between pages, menus that drop in, a few pixels of parallax on pictures, smooth anchor scrolling and a cross-fade when the theme changes. All of it is off under reduced motion. There is no scroll hijacking and no new dependency. Section spacing is tighter.
- Everything else on the new roles: the cookie banner (paper or graphite, three equal choices), the account, changelog, download, legal, license, pricing, research, setup, status and support pages, and the console and academy: amber for the one main action, turquoise for the current tab and focus, gains and losses unchanged. The
--navyalias is gone, and a test keeps the old navy out. On phones the menu now opens above the cookie banner. The static console page has a navigation and a footer landmark with the risk note.
Redesign joined with main: the brand scenery returns (24 October 2026)
- The redesign branch (
claude/swifttrade-website-redesign-xhy2p7, including the Next.js 16.4.1 security update) is the base; main had nothing the branch lacked. From main comes back, in moderation, the one thing the redesign had removed that the brand brief asks for: the painted landscapes of the two cities in the mark (components/site/landscape.tsx, trimmed: no price-series ridge, only the five scenes in use, a camera drift that glides instead of stepping, and seamless brush and canvas textures — main showed a faint vertical seam every 320 px). - Start page: a full-width band between the product state and the team, "Between the Balkans and the Alps" (
components/site/home/places.tsx,components/site/scenery.tsx). Its painting travels Vaduz → Pristina at dusk → the Kosovo hills → the road at night → the Alps at first light → Vaduz: 6 s per scene, 3.5 s dissolves, at most 800 px wide and 20 frames a second, nothing off screen or in a hidden tab, a visible Pause button, one still scene under reduced motion or Data Saver. The caption always says "Painting: …". A navy veil tied to the text column keeps the text at 9:1 or better over every scene (measured over a whole cycle at 1000, 1440 and 2200 px). The old anchor#placesis on the start page again. - About: "Two cities in one mark", Vaduz and Pristina as still paintings with neutral texts (where SwiftTrade is based; the other city of the mark). No personal details of the founders.
- Brand film slot:
web-next/lib/brand-media.tstakes licensed footage later (muted, inline, poster, phone cut, never under reduced motion or Data Saver). It is empty: no footage exists and no film was rendered.docs/redesign/VIDEO_PRODUCTION_PLAN.mdholds the storyboards, shot list, delivery specifications, rights and drone checks for the brand film and for a product motion sequence from real captures. /credits/anddocs/BRAND.mdsay what the pictures now are (terminal captures and the paintings; no photographs or footage). All new texts in de, fr, it, es and pt.
Website redesign (20 October 2026)
- One calm design system for the website, the account pages and the console (
web-next/app/site.css): light ground, navy frame and buttons, one bronze accent, EB Garamond for marketing headings and Inter for everything else, a 1200 px container, visible focus, 44 px touch targets, light and dark themes. Status marks pair colour with a shape (filled, half, empty), so "available", "in development" and "planned" never rely on colour alone. - Navigation: Platform, Pricing, About, Contact, "Sign in" (straight to the terminal afterwards) and one main button chosen from the server's access settings (
lib/access-cta.ts): request early access, create an account, sign in or open the terminal. Language and region stay two separate pickers; the theme has its own menu. - Start page and a new `/platform/` page with real terminal captures, the functions and their state from the feature register, how to start, and costs: nothing is on sale, planned prices come from
configs/plans.yaml. The oldpricingblock inconfigs/site/content.json(other tiers and prices) is gone;/solutions/now leads to/platform/. - Every other page in the same system: pricing, about, contact, early access, download, guide, support, status, changelog, research, credits, sign-in, registration, email confirmation, password reset, licence, account, security, legal documents and the 404 and maintenance pages. Texts say what is true today (licence key needed during the closed test, desktop app not yet published, real money switched off on the public service).
- Console: the website's header, typography, buttons and fields; tables, data density, profit/loss/warning colours, F-keys and the command bar unchanged. Border tones of badges and banners now show (the default border colour moved into the base layer).
- The static copy hands over to the engine: on
swifttrade.orgthe engine serves every page on one origin. In the optional static build (vercel.json, no engine) links into app paths now carry the visitor's own language, region and theme choices toapp.swifttrade.org, which Caddy redirects toswifttrade.orgwith the query (lib/handoff.ts,i18n/boot.ts); detection is never handed over. There/news/,/directory/and/academy/now redirect like the other console paths. DEPLOYMENT.md §12–13 describe the hosts, the one combination that would loop (the root on Vercel whileappis an alias of the root) and how to check the live hosts;tests/test_release_hygiene.pykeepsvercel.jsonoff the canonical domain. - Swiss spelling: German shows "ss" instead of "ß" for Switzerland and Liechtenstein; Germany and Austria keep "ß".
- Quant Academy in the console's system too: console tokens instead of the old warm palette, Inter, 44 px controls, console-style tabs; form classes the library and workspace always used are now defined (their forms overflowed the page before). The console's language and country panel matches the console.
- Fixes: React hydration error #418 on
/verify-email/and/reset-password/after another page had loaded the language (a late-hydrating<Suspense>read the live language instead of the server snapshot;lib/i18n-react.tsxnow renders English while hydrating, and the two pages lost the needless<Suspense>; guard intests/hydration.test.mts). The console's settings and bot pages no longer crash for client accounts, whose bot view carries no configuration. - Public data:
/api/public/siteand the website's bundled copy ofconfigs/site/content.jsonleave out every_key at any depth (public_site_content); the founder's personal details stay in the operator's file only, and the about page's story carries no ages. Research-note sign-ups are closed on the server (POST /api/public/subscribeanswers 410subscriptions_closed); earlier sign-ups are kept and links already sent still confirm. - Honest states: unpublished legal documents say they are drafts that have not been legally reviewed and bind nothing, and registration asks for an acknowledgement instead of an acceptance while none is published; every price shown is marked as planned while nothing is on sale.
- All new texts in de, fr, it, es and pt. Tests:
tests/i18n-core.test.mts(Swiss spelling, handoff boot),tests/site.test.mts(handoff paths equal vercel.json),tests/hydration.test.mts,tests/test_public.py(closed sign-ups, nothing personal shipped),tests/test_release_hygiene.py(no redirect loop by configuration).
Product videos (12 October 2026)
- Five motion-graphics videos from real captures of SwiftTrade with demo data (
video/, video/README.md): the product intro (55 s, also 1080×1920), terminal and market analysis, portfolio and risk, news and Quant AI, and learning SwiftTrade. Every caption describes what the product does today; prices are the simulator's and labelled so; no returns, partners or customers are shown. Silent; own fonts (SIL OFL) and logo only. - Built with Playwright (frame-exact seeking of a Web Animations timeline) and ffmpeg; renders and captures stay out of git (
video/out/,video/captures/).
Themes across devices, security review, fixes (12 October 2026)
- Colour theme with the account: the choice (light, dark or the device's setting) is saved as the account setting
appearance.themeand taken by any browser that never chose; a browser's own choice still wins there. Works the same in the website, the console, the account pages (new theme control on "Time zone and formats") and the terminal. An explicit "system" choice is now stored too, so it is told apart from "never chose". - Website Content-Security-Policy: every page is served with
script-src 'self'plus the SHA-256 of exactly its own inline scripts — no'unsafe-inline'for scripts;object-src 'none',frame-ancestors 'none',base-uri 'self'. - Accessibility: the pricing page's heading levels and a low-contrast tag, two light-theme labels in the terminal.
web-next/scripts/a11y-audit.mjscan now sign in (A11Y_LOGIN) and finds no problem on 21 website and console pages and the terminal, in both themes. - Fixes: a PDF export whose browser cannot run answers 503 with the reason; CI installs the research extras so their tests run; npm lockfile updates in the terminal and the desktop app for two high advisories.
- docs/SECURITY.md "Review 2026-10-12": what was fixed, what was checked, what remains.
- Tests:
tests/test_site_csp.py,tests/test_account_settings.py(theme),terminal/e2e/theme.spec.mjs,terminal/e2e/security-headers.spec.mjs.
Quant AI analysis layer (12 October 2026)
- Analysis on the console's Quant AI page (docs/QUANTAI.md, "Analysis"): instruments, benchmark, horizon, return frequency, allocation model, rebalancing, risk budget (cash, never leverage), largest weight, drawdown limit, costs and slippage, scenarios and an own forecasting model — all explicit. Walk-forward without look-ahead, costs counted in the returns, limits reported as kept or breached, historical and simulated scenarios, data labelled HISTORICAL or SIMULATED with its source and dates.
- Own model: ridge regression on lagged returns with a chronological train / test split; out-of-sample hit rate against the naive baseline (binomial test) and information coefficient; "no reliable edge" said plainly. Not a foundation model.
- Explanations by Claude, OpenAI or the local model get only the computed figures (no tools, no data access, no orders); every number in the text is checked and numbers that are not computed figures are listed.
- API:
GET /api/quant/analysis/options,POST /api/quant/analysis(20 a minute),POST /api/quant/analysis/{id}/explain. - Tests:
tests/test_analysis.py(5),terminal/e2e/analysis.spec.mjs.
Connections: Outlook, Teams, Claude and OpenAI (12 October 2026)
- Settings → Connections (docs/CONNECTIONS.md). Each provider says *connected*, *setup required* (with the exact steps), *choose a model* or *error* — nothing is shown as connected before it is.
- Claude (Anthropic API) and OpenAI models for the platform, managed by staff: the API key is verified with the provider (its model list) before it is stored; the model is chosen from that list; a monthly token budget stops calls when used up; usage per day and model (calls, failures, tokens; a cost only when staff entered the prices — none is assumed). *Use for explanations* lets the research assistant use it before the local models. Consumer subscriptions (Claude Pro / Max, ChatGPT Plus / Pro) are not API access and the page says so.
- Outlook per account through Microsoft Graph (authorisation code + PKCE, state bound to the account, used once, ten minutes): permissions per feature — message list
Mail.ReadBasic(subject, sender, date; not the text), calendarCalendars.Read, draftsMail.ReadWrite. NoMail.Send: SwiftTrade creates drafts, a person sends them from Outlook. Nothing is read in the background or stored. Needs the operator's Entra app (MS_GRAPH_CLIENT_ID,MS_GRAPH_CLIENT_SECRET,MS_GRAPH_TENANT, or entered by staff). - Teams per account, one or more channels by their Workflows webhook URL (Microsoft hosts only, public addresses only): *Send to Teams* on a story of the news page; automatic news alerts only for channels where their owner switched that on; the same story once a day per channel; 20 messages an hour per channel.
- Secrets (keys, tokens, client secret, webhook URLs) are AES-256-GCM encrypted, bound to provider, connection and owner, never returned or logged; every connect, change, test, send and disconnect is in the audit log. New tables
integration_*(023_integrations.sql, schema version 25). Rate limits on connecting keys, channels and Outlook, and on research questions to the AI (/api/ai/research, 10 a minute). - Tests:
tests/test_integrations.py(6, mock transports only),terminal/e2e/connections.spec.mjs.
Research directory: companies, partners and contacts (12 October 2026)
- `/directory/` in the console (docs/DIRECTORY.md) for everyone with the research permission: companies, partners and business contacts, entered by the team — nothing is collected from the web, a mailbox or a contact list.
- What is known is kept in three kinds that are never mixed: facts (each with its source — a link or a document), model notes (naming the model; unverified until a colleague confirms them) and internal assessments (a named colleague's view). An allegation of wrongdoing is accepted only as a fact with a link to its published source.
- A contact needs a legal basis and how it reached us; only the business channels it gave are stored.
- Visibility per record (research team, only me, staff only); a record you cannot see answers 404. Four eyes: a record is marked *reviewed* by a colleague, an entry confirmed by someone other than its author. The review status is not a KYC, AML or sanctions check, and the page says so.
- Corrections keep the earlier versions; deletion removes the text; the audit trail (hash-chained) records who created, viewed, changed, reviewed, exported or deleted what — field names, never values. Export per record (JSON).
- Retention: contacts 2 years, organisations 5 years unless shortened; the hourly retention job deletes what is past its date. New tables
dir_records,dir_entries(022_directory.sql, schema version 24; PostgreSQL schema regenerated). - Tests:
tests/test_directory.py(6),terminal/e2e/directory.spec.mjs(access suite).
News & research page (12 October 2026)
- `/news/` in the console (docs/NEWS.md): one searchable feed of the stories the market intelligence engine collects, with sections (top stories, all, markets, macro, companies, my watchlist, calendar, reading list, favourites, alerts), filters kept in the address (search, company or person, asset class, topic, region, source, language, period, instruments), merged duplicates ("N similar reports merged"), verification and impact, first reported and updated times, and the reason a story is in *My watchlist* or ranked at the top.
- A story in detail: what is reported, the rules' classification, quoted expectations and open questions kept apart; the original sources with links and reliability; contradictions, timeline, related stories; the instruments it concerns with their market data status (real-time, delayed, simulated, historical, unavailable — with time and origin) and measured price moves labelled as an association in time, not a cause.
- Favourites, reading list and saved views are kept with the account (every device) or, without one, in the browser. A saved view with its bell on raises in-app alerts (at most 5 per view and check, 20 an hour, never twice for the same story; watchlist views follow the account's current watchlists). Nothing is sent outside the app.
- Keyboard (
/,J/K,Enter,S,R,Esc), phone layout (the story replaces the list), empty and error states (intelligence off, collection stopped, no account, no watchlist, pruned story), six languages. - API:
GET /api/news,GET /api/news/{event_id},GET /api/news/alerts/status; account documents of kindnews. - Security: the news / OSINT fetcher now calls public addresses only — loopback, private, link-local (cloud metadata) and reserved ranges are refused before the first request and before every redirect (docs/SECURITY.md). Links from feeds are opened only when they are
http(s). - The console footer no longer runs wider than the window at tablet widths (about 768–1,000 px).
- Tests:
tests/test_news.py(12), a new SSRF test intests/test_intel.py,terminal/e2e/news.spec.mjs(3, access suite); the e2e fixture stores its stories' articles so their sources show.
Languages and countries (12 October 2026)
- Six languages on the website, the console, the account and license pages and the terminal: English, German, French, Italian, Spanish and Portuguese, complete (about 2,800 website and 4,400 terminal texts), with each language's own plural rules. Two controls at the top right choose the language (by its own name) and the country or region (the 249 ISO codes plus Kosovo, searchable by local, English or accent-free name and code, keyboard-operable, a sheet on phones).
- The first view follows the browser's languages (English when none is available); a choice is stored in this browser (
st-locale) and wins; language and country are independent; the country changes only how numbers and dates are written and is never sent to the server or treated as a place of residence. A country from a trusted proxy header (analytics.country_header) can be the default (GET /api/public/locale-hint, nothing stored); the browser's own region is only a suggestion. - The website and the terminal share the choice on one origin, after a reload and across tabs.
<html lang dir>are set before the first paint and a visitor in another language never sees the English static HTML (no hydration errors). Server errors are translated by their code. Right-to-left languages are prepared. - The website's header moves its links into the menu where they no longer fit (it overflowed between 760 and 1,230 px before, already in English).
- Text the engine writes at run time (co-pilot notes, decision logs, news) stays in English; see docs/INTERNATIONAL.md.
- Tests:
web-next/tests/i18n*.test.mts,terminal/tests/i18n-boot.test.mjs,tests/test_international.py, and in a browserterminal/e2e/i18n.spec.mjs(25) andterminal/e2e/i18n-site.spec.mjs(14).
Activation flow for accounts without a license (11 October 2026)
- Console: an account without a usable license is sent to
/license/before any protected page or request is made (the console layout is the gate), and comes back to the page it asked for after activating a key. Signed-out visitors go to the sign-in as before; the sign-in itself goes to/license/for an account that needs one. The console no longer reports "The SwiftTrade API is not responding" or "Request failed" for what is only a missing license: those messages are for a server that cannot be reached. The account page no longer asks for the plan (/api/billing/me, which the engine refuses without a license) before there is a license. - `/license/` (German): explains the closed test phase, shows the account's address and that the key must match it, and offers Lizenzschlüssel eingeben (the existing activation) or Zugang anfragen (a
mailto:link to info@swifttrade.org, sent from the person's own mail program and read by hand; nothing is approved automatically). Expired, suspended, revoked and device-limit licenses are explained, with the matching mail. Only plain paths of this site are accepted as the way back (next), never the sign-in or license pages. - Terminal: the engine's redirect to
/license/carries the page that was asked for (next); a license that ends while the terminal is open sends the person to the license page with the way back, and "Cannot reach the SwiftTrade API" is shown only when the server did not answer. - Tests:
web-next/tests/license-flow.test.mts,terminal/tests/license-redirect.test.mjs,tests/test_access.py(the redirect),terminal/e2e/license-flow.spec.mjs(the whole flow in a browser, 12 tests againstscripts/e2e_server.py --access:npm run e2e:accessinterminal/).
The terminal on every screen (10 October 2026)
- Windows are tiled to the real workspace. The layouts are drawn for 1916 x 970 px; they used to be scaled in proportion, which left 190 px strips on a laptop (and, with the 300 px blotter under them, a workspace half the screen high). The arrangement is now split along the gaps of the design (
design/tile-fit.js): every cut keeps the design's proportions, no window goes under 300 x 180, nothing overlaps, and when a screen is too small for all of them the least important step aside to the dock ("n hidden to fit this screen", the chart is the last to go) and come back when the window grows. A layout the user arranged by hand is only scaled, never re-tiled; a layout saved by the old fit (strips) is rebuilt from its preset. The blotter under the dock is a share of the screen height and starts collapsed on short screens; the workspace follows its own size (ResizeObserver), browser zoom and Windows scaling included. - Phones get their own layout below 768 px (or a phone held sideways): one panel at a time using the whole height, a bottom navigation (chart, watchlist, book, positions) and a searchable sheet with every other panel (
design/mobile.jsx). Safe areas, finger-sized targets, no sideways page scroll; the saved desktop layout is never read or changed there. Panels whose head carries tabs or buttons keep them on a narrow screen (they used to be hidden below 420 px), tables with fixed columns and the order-flow toolbars scroll inside their panel, the order ticket fits. - Tablets keep the floating desk: the top bar fits from 768 px (search as a button), windows are moved and resized with a finger (pointer events), and the resize handles along the top, which caught the title bar, are off on touch.
- Fixes on the way: the chart-type menu hung under the window instead of under its button; the command palette and menus stay on short screens; the Intelligence Desk's head buttons no longer start a window drag.
- Dev server:
npm run devinterminal/works again (the design modules read the global React, so the dev server uses the classic JSX runtime; the production build is unchanged). - Tests:
tests/tile-fit.test.mjs(the tiling),e2e/responsive.spec.mjs(laptops to 1440p, tablet, touch, phone, every panel at phone width, the saved layout across a resize).
Engineers Desk (10 October 2026)
- A research workbench at
/terminal/desk/(the DESK switch, for accounts with the research permission): option pricing and implied volatility, realised volatility, GARCH / GJR-GARCH, VaR and expected shortfall with a Kupiec backtest, and the SVI smile of one Deribit expiry. Forms are built from each model's declared parameters; the server checks every value. - Runs on the record: each run keeps its parameters, the hash of the model's code and a fingerprint of the data it read. Reproduce says whether code, data or result changed; compare puts two runs side by side.
- Strategy builder over the approved strategies only (no code is uploaded), backtested in the Strategy Lab; configurations with versions and private / team / approved visibility; workspace files checked as untrusted input; every model and strategy listed as an extension that the owner can switch off. See
docs/ENGINEERS_DESK.md.
SwiftTrade Lite (10 October 2026)
- A second interface at
/terminal/lite/: watchlist, one chart and a side panel (book, tape, news, options, info) on one screen, keyboard first. Same account, same permissions, same data as the full terminal. - Measured against the full terminal (seven runs, Edge): JavaScript 1 216 → 298 KB, first paint 336 → 164 ms, candles on screen 568 → 260 ms, heap 6.8 → 3.1 MB. Simulated instruments carry a SIM label. See
docs/LITE.md.
Volatility surface lab (10 October 2026)
- VOL SURFACE LAB window and
/api/vol/*: implied volatility from real Deribit option chains (Black-76 on the forward), every quote checked and the rejected ones listed with the reason, one raw SVI smile per expiry, butterfly and calendar arbitrage checks, term structure, 25-delta risk reversal and butterfly, constant-maturity volatility and saved snapshots to compare. Seedocs/VOL_SURFACE.md.
Private pre-release access and email (9 October 2026)
- Licences and early access: invitation-only access with licence keys, an early-access request page, an owner and at most two administrators with two-factor sign-in, and SwiftTrade Control, a separate administration app at
/control/. Seedocs/ACCESS.md. - Email: verification links built from the server's configured public address (never a local one), one institutional email design for every message, a named sender. See
docs/EMAIL.md.
Charts (9 October 2026)
- The chart fits small windows (one-line toolbar, canvas and panes inside the window), and an instrument list that arrives late no longer reloads the bars and resets the zoom.
Main chart: price scales, Kagi, Point & Figure (3 October 2026)
- SCALE LIN / LOG / % / 100 (
terminal/src/design/chart-scale.js): one projection for everything the price pane draws; logarithmic needs positive prices and falls back to linear otherwise; percent and indexed label the axis relative to the first bar on screen. Axis drags, wheel zoom and panning work in the scale's own space. - Kagi and Point & Figure chart types (
chart-series.jskagi,pointFigure) with their own renderers, built from bar closes with an ATR-sized step; neither looks ahead. Tests:terminal/tests/chart-scale.test.mjs, browser tests interminal/e2e/workspace.spec.mjs.
The website on Vercel (3 October 2026)
- `vercel.json`: the public website can be served alone, as static files, from Vercel (framework "Other", output
web-next/out). A push tomaindeploys it. See DEPLOYMENT.md §11. - Static mode (
SWIFTTRADE_STATIC_SITE=1, automatic on Vercel): no request goes to/apior/ws; the console, the contact forms and the download page say that they need a SwiftTrade engine instead of showing 404 errors;/terminal/leads to that notice; legal pages are read fromconfigs/legal/at build time; canonical URLs use the Vercel production address whenNEXT_PUBLIC_SITE_URLis not set; Vercel Web Analytics loads only with the visitor's analytics opt-in. - Fixed for every build: Next 16's static export wrote the per-segment prefetch files into nested folders while the router requests them by a flat name, so every link prefetch ended in a 404 (on the engine's static mount too).
web-next/scripts/flatten-prefetch.mjsruns afternext buildand adds the flat names. - Git:
.gitignorenow also excludes installers insidereleases/<version>/, the bundled desktop engine (desktop/engine/), the paper bot's data folder and TypeScript's build cache.
Market Canvas: one zoomable market view with semantic zoom (2 October 2026)
- Market Canvas (window MARKET CANVAS,
terminal/src/canvas/,terminal/src/design/market-canvas.jsx): one time × price surface whose content follows the zoom. Five levels chosen from the time one pixel covers: structure (regimes, support / resistance, volume zones, swing structure, events), candles (volume, VWAP, averages, profile), inside the candle (bid × ask clusters, delta / volume / count rows, cumulative delta), single trades, and the L2 book frame by frame. The bar length follows the zoom from one year to one second and can be locked. Seedocs/MARKET_CANVAS.md. - Interaction: drag to pan, wheel to zoom around the cursor, drag the price or time axis to scale, region zoom, ruler, double-click to go one level deeper, keyboard map, context menu, inspection tooltip (market › candle › price row › trade › book), follow / jump to live, split view with a shared crosshair and linked time range, layer dialog with AUTO / ON / OFF per layer and saved templates, drawings (level, trend line, rectangle).
- Server (
services/market_canvas.py,analytics/structure.py,GET /api/canvas/{id}/capabilities | bars | trades | frames | footprint | events | structure): bars of every resolution on one time axis, venue candles fetched once and cached, Binance trade history for older windows (bounded, the unread part reported), recorded L2 frames, footprint per bar with incomplete bars marked partial, order-flow events by time range, market structure. - Rendering: the liquidity heatmap is coloured on the GPU (WebGL 2, CPU path without it); trades merge into one dot per screen cell; requests go through an aligned chunk cache. Frame composition measured at 3.5 to 11.3 ms on a 1574 × 768 canvas. Layers without a connected data source (open interest, funding, options, earnings) are listed and not drawn.
- Bookmap window now opens this engine on the order book: pan and zoom in time and price, colour schemes, two contrast cut-offs, COB and SVP columns, volume dots, the figures strip, and a trading column (size presets, market and join orders, cancel buys / all / sells, flatten, reverse, bracket exits, time in force). The column is disarmed when it opens; orders go through the execution service and its risk engine.
- Footprint window opens the engine inside the candle; the classic footprint is one click away (CANVAS / CLASSIC).
- Main chart: drag the price axis and the time axis to scale, drag vertically once scaled, double-click the price axis for auto-fit; the wheel keeps the bar under the cursor when looking back.
- Workspaces: DAY TRADING, SCALPING, FUTURES · ORDER FLOW, OPTIONS, RESEARCH (24 layout presets).
- Fixed: a window that was opened after the page had loaded could not be dragged by its title bar.
- Paper week:
scripts/ensure-bitget-paper.ps1registers a scheduled task that restarts the paper bot when the machine wakes into a new session (it runs while the owner is signed in). - Not built: order-book history across restarts and replay controls, WebGPU, AI annotations, the indicator library on the canvas (it has VWAP and two averages; the 66 indicators stay on the main chart).
Open items closed on 2 and 3 October 2026
- Alerts to a webhook (
monitoring/webhooks.py,GET /api/alerts/delivery,POST /api/alerts/delivery/test): off by default. The URL comes from the environment (SWIFTTRADE_ALERT_WEBHOOKS) and its host must be listed inalerts.webhook_hosts; https and public addresses only, no redirects, optional HMAC signature, bounded queue and rate limit. Logs and the status route name the host, never the URL. Seedocs/OPERATIONS.md. - The assistant can describe the book (
ai/book_view.py, toolsget_portfolio_stateandget_risk_state): read from the records the trading engine wrote; fixedSELECTstatements; theaipackage imports nothing of the trading plane (tested). It cannot change anything. - Deflated Sharpe against effective trials (
analytics/effective_trials.py): reported next to the strict figure in the robustness report and on a pipeline candidate. The gate is unchanged. - Dependency audit (
scripts/audit_deps.py,docs/DEPENDENCY_AUDIT.md): 85 Python packages and four JavaScript package folders, no findings after updating Next.js from 16.3.5 to 16.3.6 (a critical advisory innext/og, a code path the static site does not use). - Browser tests (
terminal/e2e/,npm run e2e,scripts/e2e_server.py): 15 tests in the installed Microsoft Edge against a throwaway server with simulator data and without the project's.env. - `.env`: 17 lines of explanatory text without a leading
#were turned into comments; the nine variables are unchanged.
Feature registry, originals and a round of closed gaps (2 October 2026)
- Feature registry (
docs/registry/*.reg,scripts/feature_registry.py,scripts/registry_set.py): 969 atomic features in 45 categories, each with source platform, status, layers, implementation, tests, documentation and dependencies. A row is DONE only when its code and its test exist; BLOCKED only with a named missing capability. The generator writesdocs/SWIFTTRADE_FEATURE_REGISTRY.md,docs/FEATURE_DEPENDENCIES.mdanddocs/SWIFTTRADE_EXHAUSTIVE_COMPLETENESS_REPORT.md. Today: 427 done, 199 implemented without an automated test (almost all terminal-only), 96 partial, 177 missing, 58 blocked by data, 12 not applicable. - Market Memory (
research/market_memory.py,GET /api/research/memory/{id}, window MARKET MEMORY): the past days whose state was nearest to today's, what followed them against the base rate, and a walk-forward record of whether the method ever had skill. On BTC, ETH and SOL it reports no measured skill at 5, 20 and 60 bars, and says so above the analogs. Seedocs/ORIGINALS.md. - Risk Brain (
risk/brain.py,GET /api/risk/brain, window RISK BRAIN): account, strategy and execution constraints in one list, most binding first, with separate verdicts for manual orders and automated strategies and an EXPOSURE view by asset class, sector, currency, country and origin. Read-only: the risk engine stays the judge. - Scanner (
microstructure/scanner.py,GET /api/orderflow/scan, window SCANNER): the model detections of every live market in one list, ranked by how far each went beyond its own trigger, faded by age. MODEL, not a signal. - Condition alerts: optional expiry, edit in place (the kind and the instrument stay) and clone (
PUT /api/terminal/condition-alerts/{id},POST .../clone). Schema 12 rebuilds the alert table and keeps its rows. Sound and desktop delivery with a minimum severity. - Chart: 66 indicators with a source choice and a search box (new: ribbon, cross markers, rolling regression channel, anchored VWAP with bands, swing levels from confirmed pivots, and 37 more since the first batch); chart types step, line with markers, baseline, HLC area, columns, high-low; legend at the crosshair; bar-close countdown; keyboard navigation; CSV export.
- Drawings: select, move, reshape by a handle, duplicate and delete a single drawing (
drawing-geom.js). A line or a point is picked before the area it lies in. - Watchlist: sort by column, traded value (volume × VWAP, comparable across instruments) and spread, CSV export.
- Workspaces: export to a file and import with validation; an imported file cannot bring unknown windows, bad numbers or reserved object names.
- Analytics: Treasury curve spreads and butterflies in basis points with history percentile and inversion date (
analytics/curve.py); longest winning and losing run in trade metrics and the journal; exposure by currency and country. - Tests for code that had none: VWAP and POV algos, monthly bars, movers, the yield-curve route, CSV / Parquet bar import, risk metrics and stress, the Markdown renderer behind the PDF export. New guards: the suite fails when
docs/API.mdand the routes differ, when SQL is assembled in a place that was not reviewed, and when a route that changes trading state needs only a session. - Fixed: stress-window contributions used the wrong rows; a
;in an SQL comment broke the schema rebuild; a pipe inside inline code split table cells in the PDF renderer; the scanner measured liquidity events against the wrong trigger; a workspace file could name a windowconstructor. - Not built: Kagi, Point & Figure, logarithmic scale, drawing styles and locking, order-book replay, webhook delivery, trading hotkeys. Not run: dependency audit and dynamic scan (both need an install).
Workstation: order-flow detections, indicator registry, new chart types, more alert kinds
- Order-flow model detections (
microstructure/detections.py,GET /api/orderflow/{id}/detections, terminal ORDER FLOW → PULSE): iceberg-like refills, large near-touch levels pulled within seconds almost untraded (spoof-like), liquidity pull / stacking, stop-run candidates (break of the recent extreme on a volume burst that comes straight back), persistent liquidity zones and the largest level's share of visible size. Every event is labelled MODEL and carries the numbers that produced it: aggregated L2 and the tape show a pattern, never a participant's intent. - The defaults were set against live Binance books, not synthetic ones. Three false-alarm sources were removed on the way: "x times the median level" (a crypto book is full of dust; the yardstick is now the typical largest level), per-level bookkeeping (a quote following the price is not a pull plus a stack; depth is netted) and flicker (a change must hold for three seconds). On ten minutes of BTC/ETH/SOL the stream now carries a handful of events, not hundreds.
- Activity bars (
GET /api/orderflow/{id}/bars?kind=range|tick|volume, chart timeframes RANGE / TICK / VOLUME): bars that close on a price range, a number of prints or a traded volume, built from every recorded print, with buy / sell volume and delta. Without a size one is chosen for about 150 bars and stated. - Chart indicator registry (
terminal/src/design/indicators.js, chart → ƒx INDICATORS): 24 indicators behind one interface - SMA, EMA, WMA, VWMA, HMA, Bollinger, Keltner, Donchian, Ichimoku, Parabolic SAR, Supertrend, session VWAP, RSI, Stochastic RSI, CCI, Williams %R, ROC, ADX / DI, Aroon, ATR, standard deviation, OBV, MFI, Chaikin Money Flow - each with bounded parameters, on the price pane or in a pane of its own. A new indicator is oneregister()call; the renderer draws series and knows no single indicator. The JavaScript reproduces the Python definitions used by the strategies and the alerts (tested against a Python-generated reference), so RSI, ATR and ADX agree everywhere. - Chart types Renko and Line Break (
chart-series.js): series transforms in front of the unchanged renderer, built from bar closes (stated in the chart header), each brick keeping the time and volume of the bars behind it. - Alert kinds
RSI,MA_CROSS(completed bars only),DELTA(order-flow imbalance),LARGE_PRINTandDETECTION(the model detections above and sweeps). Print and detection alerts keep a cursor: one event never fires the same alert twice. Schema 11 rebuilds the alert table with the longer kind list and keeps existing alerts. - Kagi, Point & Figure, logarithmic scale and order-book replay are not built yet; a deeper heatmap needs the venue's diff-depth stream. See
docs/obsidian/03 Quant Research/SwiftTrade Feature Matrix.md.
Quant engine: factors, pods and the central allocator
- Factor engine (
quant/factors.py,GET /api/lab/factors, terminal STRATEGIES → FACTORS): cross-sectional z-scores for momentum (12-1), value (minus the 5-year return), trend, low volatility and short-term reversal; each factor's record (rank IC against the next month, t on non-overlapping months), every asset's score today, the adaptive mix and the factor book's exposure. Quality, carry and liquidity need data that does not exist for the universe: they are reported as not available, not approximated. - Factor strategies
multi_factor(equal factor weights) andadaptive_multi_factor(weights from each factor's walk-forward rank IC with a 21-day embargo, shrunk half-way to equal;model: gbmfor a monthly refitted boosted model). Long only, monthly, never levered, scaled down to a 10 % volatility ceiling. - Research universe `CRYPTO_2019`: the eleven large coins of September 2019 including the delisted EOS, so that long strategies are not flattered by today's winners. A delisted market stays in a universe up to its last day.
- Pods (
quant/pods.py,swifttrade pods,GET /api/lab/pods,POST /api/lab/pods/rebuild, terminal STRATEGIES → PODS): twelve strategy pods (momentum, mean reversion, statistical arbitrage, trend, factor, macro, event, volatility, cross asset, intraday, swing, position), each with its own stream after costs, statistics, performance per regime, correlation and validation status. - Central allocator: capital only for pods that passed every validation gate and that a spot account can execute; equal risk contributions, half budget at −7.5 % drawdown and none at −15 %, half budget for a pod that lost in the current regime, 35 % cap, scaled down to a 10 % volatility target. Capital deployed today: 0 %.
- Stress regimes
CORRELATION_BREAKDOWNandLIQUIDITY_STRESS(regimes/market_state.py): top 5 % of the measure's own last two years and at least twice its normal level. Shown and alerted only; they neither create nor block a trade. - Measured (BACKTEST, default parameters fixed in advance, 2020-2026): no strategy passes validation. On the 2019 coins: adaptive multi-factor Sharpe 0.93, hold-out 0.17, deflated Sharpe 0.047; its boosted variant Sharpe 1.53, hold-out 0.00, deflated Sharpe 0.229; mean reversion, pairs trading and PCA statistical arbitrage lose after costs (Sharpe −1.89, −0.30, −0.43). The pods momentum, trend, volatility and cross asset correlate 0.70 to 0.85: four ways of holding the same six markets. Details:
docs/QUANT_ENGINE.md. - Fixed: a validation pass that depended on the order of evaluation.
adaptive_multi_factorpassed with a deflated Sharpe of 0.967 while three trials were on record and scores 0.047 against the complete list (0.888 even when the long/short strategies are left out). The trial pool no longer counts a re-run twice. - Fixed: the boosted factor model failed while a factor had no record yet (an empty value column).
- Candidates of older code versions were retired (28, by the pipeline's own rule: evidence belongs to the code that produced it). Among them was the low-volatility risk parity candidate validated on 30 September on the research proxies. Re-registered unchanged, it fails the deflated Sharpe (0.011 at 109 trials) under the rule, introduced on 1 October, that counts every strategy tried on a universe. No candidate is at VALIDATED or beyond.
Day, swing and two-week position engine
- Multi-timeframe engine (
services/mtf.py,configs/mtf.yaml, terminal window STRATEGIES): eight setups on three horizons (day on 15-minute bars, swing and position on daily bars), market state per instrument and universe, evidence per setup, direction, market state and asset class, a news view that can veto but never trigger, an independent risk manager and trade management to the exit. Accepted ideas are shadow trades; no order is sent. - Evidence hurdle: at least 30 closed trades, a positive lower confidence bound, t ≥ 3 with trades clustered by entry week, expected value ≥ +0.10 R. Otherwise the answer is NO TRADE.
- Study (
swifttrade mtf study [--final]): walk-forward in six-month steps from July 2021, a hold-out year never loaded during development, cost sensitivity, parameter sensitivity, Monte Carlo on the trades. - Measured (BACKTEST, 13 bp per side, 2019-09 → 2026-10): every day setup loses after costs (−0.36 to −0.66 R per trade); swing breakout long is positive in the walk-forward (+0.34 R on 28 selected trades) with t = 2.9, below the hurdle; in the hold-out year the engine selected no trade, and swing breakout long would have made −0.04 R. No horizon has a proven edge. Details:
docs/STRATEGIES.md. - Endpoints
GET /api/mtf,POST /api/mtf/cycle,GET /api/mtf/trades,/api/mtf/decisions,/api/mtf/study,/api/mtf/evidence; schema version 10 (mtf_trades,mtf_decisions).
Spot strategies and stricter multiple-testing control
- New Quant Lab strategies for spot accounts (long-only, never above 100 % invested, parameters fixed in advance from the literature): trend risk parity (Clare et al. 2016: inverse-volatility shares times a 1/3/6/12-month trend score, the rest in cash) and dual momentum (Antonacci; Keller's 13612W score, top 3 with a positive score). Both are scaled down - never up - to a 10 % volatility ceiling and trade only on their schedule.
- Measured on the Bitget universe (BACKTEST, 2020-2026, spot execution): trend risk parity Sharpe 1.09, max drawdown −18 %, hold-out Sharpe 1.27; dual momentum Sharpe 0.89, max drawdown −15 %. Both fail the deflated Sharpe (0.85 and 0.64 < 0.95) and are not validated.
- The deflated Sharpe now counts the trials of every strategy tried on the same universe, not only those of the strategy itself - trying many strategies on the same data is multiple testing too.
- Backtests and candidates can use a spot execution model (
max_gross: 1,long_only: true): console *Account* selector and a *bitget spot* universe preset (Backtest and Pipeline tabs;GET /api/lab/universe→presets). - Research log: neither perpetual funding nor the volatility risk premium predicts next-week BTC / ETH / SOL returns (|t| < 1.5, signs changing between halves); no strategy built on them.
Bitget: data, broker and the paper week
- Bitget market data (public, no key): instruments, daily and intraday candles and a polled top-of-book feed for spot crypto (BTC, ETH, SOL), gold tokens (PAXG, XAUT) and the Reality stock tokens RQQQ (Nasdaq-100 ETF) and RSPY (S&P 500 ETF).
swifttrade serve --bitget/swifttrade bot run --bitget. - Bitget broker (
broker.name: bitget): Unified Trading Account API v3, signed requests, idempotent client order ids, orders with an unknown result looked up instead of re-sent, fees booked exactly once. Demo trading (virtual funds) is the default; production needsbroker.live: trueand the three live switches. Arming live refuses an API key that can withdraw funds or cannot trade. Connections: *Bitget (demo)* and *Bitget* with the passphrase field. - Quant Lab ↔ bot: the new bot strategy
lab_portfolioruns a Quant Lab portfolio strategy on the bot's bars and hands over its target weights;sizing.method: strategy_weightskeeps them (per-asset cap and gross limit only). The pipeline status travels in every signal's rationale. - Paper week:
configs/bot.bitget.yaml(equal risk contribution on BTC, ETH, SOL, PAXG, RQQQ, RSPY; paper broker filled against Bitget's live book) andscripts/start-bitget-paper.ps1(own data folder, live trading impossible in that process).paper.resume_book: truecontinues the paper book across restarts by replaying the stored fills, so a test that runs for days survives a sleeping laptop.paths.bot_configselects a bot profile. - Quant Lab assets SOL, GOLD (PAXG), QQQ (RQQQ) and SPY (RSPY) - the Bitget-tradeable universe.
- Measured (BACKTEST, UTC-day data 2020-08-31 → 2026-09-29): equal risk contribution Sharpe 1.20, CAGR 11.4 %, volatility 9.4 %, max drawdown −16.4 %; it passes every validation gate except PBO (0.74, limit 0.5) and is therefore not validated. No strategy on this universe passes all gates (on the misaligned 16:00-UTC data PBO read 0.53 - the alignment fix made the verdict clearer, not better).
- Fixed: markets that trade on weekends lost their weekend in the lab's business-day returns (crypto: 2 of 7 days); the level is now sampled on business days first. The stock tokens, which trade thinly on some weekend days, are sampled the same way (
calendar: extended). - Fixed: Bitget's own daily candles run 16:00 → 16:00 UTC (midnight UTC+8): crypto was sampled eight hours away from the research data (Binance, UTC days) and the stock tokens' US session was cut in half at noon New York time. Daily bars from Bitget are now UTC days built from 4-hour candles (BTC closes match Binance within 0.4 bp median, 2.2 bp max). The research series carry the new convention in their name (
…:1d@utc), so a refresh never appends it to the old history; the old series stay for audit. - Fixed: Bitget history pages dropped the candle on every 90-day boundary (found in real data); windows now overlap.
- Fixed:
swifttrade bot run --binance/--bitgetset the feed switch after the settings were loaded, so it never took effect;--oncealso started the bot loop and ran two cycles;bot rungained--no-sim. - Fixed: with an order still working, the bot could send a tiny top-up order (0.23 USDT in the first Bitget run) - below the venue's minimum order value. Changes below the no-trade band (working orders included) or below the venue minimum are no longer sent.
execution.stop_loss_atr: 0turns protective stops off for portfolio strategies - only together withrequire_stop_loss: false; otherwise entries are skipped (fail closed).
Quant Lab strategy pipeline
- Strategies now move BACKTEST → VALIDATED → PAPER → MONITORED → APPROVED → LIVE CANDIDATE and never skip a stage. Validation gates (walk-forward, positive folds, PBO, deflated Sharpe, final-30 % hold-out, 3× cost + 2-day delay stress, drawdown, history length) are frozen per candidate and fail closed when a metric is missing.
- Forward shadow track: starts after the newest observation of any asset, records a day only once every series has published it and never rewrites it; checked against the stationary-bootstrap band of the candidate's own backtest. Leaving the band withdraws an approval. Updated daily while a candidate is being tracked.
- 4-eyes approval by a signed-in person other than the creator and the paper operator; LIVE CANDIDATE is documentation only (no order path). A code change retires the candidate automatically. Every stage change is logged with actor, reason and evidence, and journaled. New console tab *Quant Lab → Pipeline*; API
/api/lab/pipeline*. - Terminal window STRATEGY LAB (command palette or the wheel,
S-LAB): the pipeline with gates, forward track and stage history, portfolio backtests with stress and Monte Carlo, and the research log - the same/api/lab/*data as the web console, inside the desktop app's main interface. - Fixed: each robustness run re-recorded all earlier trials, so the deflated Sharpe's trial pool grew with every run. Runs now record only their own trials and identical re-runs count once.
Options ↔ price
- New analysis of the options market's implied volatility (Deribit DVOL) against BTC / ETH, point in time: same-day spot-vol correlation with its stability, the volatility risk premium against the volatility that followed (Newey-West), and implied volatility as a forecast versus the naive trailing volatility. Discovery tab card,
GET /api/lab/options/{BTC|ETH}, an OPTIONS → asset edge in the intelligence graph and in the AI toolget_options_data. Measured: BTC implied volatility rises when the price falls (r −0.27) and averaged 8.5 points above the realised volatility of the next 30 days (HISTORICAL, 2021-2026). - Quant Lab tabs are addressable (
/lab/#pipeline,#discovery, …) - deep links, and every tab passes the accessibility audit in both themes. - The terminal's STRATEGY LAB has a RESEARCH tab: options ↔ price (BTC / ETH) and the event study with its CAR path and placebo band.
Event-study and Monte Carlo charts
- The event study (
GET /api/lab/event-study) also returns the day-by-day path of the mean cumulative abnormal return with its 95 % interval and the 5-95 % band random dates produce (placebo); the Quant Lab draws it, so "is this unusual compared with ordinary days?" is visible at a glance. - Monte Carlo shows the fan of simulated paths (median, 25-75 %, 5-95 %) in the web console and in the terminal's STRATEGY LAB, next to the distribution of the horizon return.
Quant Lab optimisers and strategy versions
- Fixed: the minimum-variance optimiser ignored its per-asset cap in effect (it shrank the book to 50 % and then renormalised, so a 40 % cap became 80 %). Results change honestly: Sharpe 0.38 → 0.35, volatility 1.9 % → 3.4 %, max drawdown −10.6 % → −16.7 % (BACKTEST 1999-2026); regime switching, which uses it, changes too.
- Minimum variance and maximum diversification solve the long-only problem with exact gradients: 45 s → 2.3 s and 10 s → 2.9 s per 27-year backtest; regime switching 43 s → 2.3 s. Maximum diversification's weights are unchanged.
- A strategy's version now covers what its numbers depend on (the strategies it calls, the shared maths modules), not only its own class; comments and docstrings do not count. The first new versions retire older pipeline candidates.
Quantitative edges in the intelligence graph
- The INTEL GRAPH draws STATISTICAL edges: topic → asset event studies (t-test and placebo must agree, Benjamini-Hochberg, at least 20 event days over 3 months) and the asset relations the relationship scan validated. Each edge carries its sample, estimate, interval, q-value, period and Quant Lab experiment; only passing edges are drawn, the rest are counted in the graph footer. API
GET /api/lab/edges,POST /api/lab/edges/rebuild; rebuilt weekly. With today's short news history every event-study edge is honestly "insufficient data".
Order-flow heatmap and Bookmap
- The liquidity heatmaps now use a time axis: columns are as wide as the time a book snapshot was current, trades and candles sit at their own time, and gaps without data stay empty. Before, columns were placed by snapshot count while trades were placed by time, so the two drifted apart whenever snapshots arrived irregularly.
- The price window follows the whole visible path plus the current book. Before, it was taken from the newest book only, so after a move most of the history (and the price line) was cut off and the panel looked empty on the left.
- Price labels on "nice" steps without a leading tick that read like a minus sign, a time axis (−30 s … now), legends above the axis; geometry in
terminal/src/design/heatmap-geom.jswith tests (npm --prefix terminal test).
Quant Lab and the AI gateway (docs/QUANTLAB.md)
- Cross-asset research data: FRED (Nasdaq, S&P 500, Nikkei, Treasury yields, 3-month bills, Brent, Henry Hub, EUR/GBP/JPY/CHF) and Binance (BTC, ETH), point-in-time with per-series publication delays, versioned datasets, and a quality gate that excludes unusable series with the reason. Treasury returns are ESTIMATED excess returns over bills.
- Mathematics engine (
swifttrade.quant): linear algebra (covariance estimators, PSD repair, eigen, PCA, factor models), calculus (derivatives, gradients, Hessians, integration, parameter sensitivity), probability (fat-tail fits, Bayesian updating), statistics (HAC regression, stationarity, autocorrelation, bootstrap, FDR), time series (AR/ARIMA checked against a naive forecast, cointegration, half-life, Hurst, variance ratio, causal and Markov regimes), portfolio mathematics (risk contributions, optimisers, volatility targeting, neutrality), event studies, scenarios. - 18 modular strategies with a common interface and code-hash versions - including a low-volatility cross-asset risk parity engine studied from QuantConnect strategy 233 (own implementation) - and a test that proves none of them can see the future.
- Portfolio backtester: publication-lagged inputs, drifting weights, per-asset costs, delays, liquidity caps, missing-price handling, leverage limits; walk-forward, CPCV, PBO, deflated Sharpe, IS/OOS rank, cost/delay stress.
- Validated discovery: relationship, cointegration, seasonality and persistence scans with FDR control, out-of-sample confirmation, cost-aware trading tests and market-close timing (asynchronous "leads" are not called tradeable).
- Stress & Monte Carlo for backtest portfolios; research memory with strategy versions and every experiment.
- AI gateway: local Qwen (llama.cpp, Qwen3.8-27B 3-bit with Qwen3-8B fallback), optional remote provider, 17 schema-validated research tools (none can trade), and a check that flags every number in an answer that no tool calculated. Research questions run in the research worker.
- Console: Quant Lab (
/lab/): backtest, robustness, risk & correlation (heatmap, PCA, optimisers, regimes), discovery, AI assistant, research log, data quality. - One environment configuration:
swifttrade/env.pyregistry +.env.examplein the SwiftTrade groups;.envloading (never the live-trading switch), aliases, off-only feature flags, validation indoctorand at start.
Release hardening (docs/OPERATIONS.md)
- Order safety: idempotent order submission (
Idempotency-Key; a retry never places a second order, a reused key for a different order is refused, a concurrent duplicate gets 409); order-flow controls before the risk engine - orders per minute (global and per origin), trading sessions per asset class (time-zone and DST aware), maximum open positions, per-strategy daily volume on the risk-approved quantity (configs/risk.yaml → orders). The risk engine's own reducing orders are exempt. - Kill switch survives restarts: the last level of each mode is restored from the risk-event log at start - a crash or reboot never re-enables trading.
- Emergency stop (
POST /api/risk/emergency-stop, console Risk page with confirmation): HALT, cancel working orders and algos, bot OFF, CRITICAL alert, notification to administrators and traders, audit entry; positions are not closed and the response says so. - Watchdog for API, database, market data, live broker, trading engine, intelligence, housekeeping, research worker and resources (
GET /api/health/watchdog); the LIVE preflight fails closed on critical infrastructure, and in LIVE only real, fresh market data counts as healthy. Self-healing only for the research worker and the intelligence task; the trading bot is never restarted automatically. - Security monitoring: brute force, credential stuffing, privilege escalation, authorization probing, scanning, malformed requests, error bursts, traffic spikes, order floods and repeated broker-credential failures are recorded (
security_events), alerted to administrators, and - for the sign-in endpoints only - blocked for 15 minutes. - Logging: one rotating JSON-lines file per category (APPLICATION, SECURITY, AUDIT, TRADING, SYSTEM, ANALYTICS) under
data/logs/, a request id (X-Request-ID) and user id on every line, and a redaction filter so passwords, tokens, keys and private keys never reach any log. Admin log search (GET /api/admin/logs). - Retention job (hourly): security events, idempotency keys, rotated log files; portfolio snapshots are thinned. The audit log, orders, fills, accounts, consent and legal records are never touched.
- Portfolio history: one snapshot per minute per mode; performance for today / week / month / year / all / custom (equity curve, drawdown, return, realized/unrealized, Sharpe/Sortino from daily returns) and exposure by asset class, sector and origin. Console page *Performance*.
- Cookie & storage consent: banner with equal-weight *Reject optional* / *Accept all*, settings and withdrawal on
/cookies/, choices recorded inconsent_records. Website analytics are now opt-in (the server stores nothing withoutconsent: true); functional storage (the dashboard's equity trail) follows the functional category; marketing is not used. - Legal records: document versions (content hash), acceptances recorded at registration and on the account page, outdated versions refused (
/api/public/legal,/api/me/legal). The software still ships no legal text of its own. - Admin console: watchdog, security, trading operations (orders by status, rejections by reason, kill-switch history, broker), log search, retention and consent sections.
- Database schema 9 (
009_release.sql:order_idempotency,security_events,consent_records,legal_acceptances,portfolio_snapshots).
Quant AI - the research plane (docs/QUANTAI.md)
- A research system with governance: data → validation → point-in-time features → frozen hypothesis cards → one validation protocol → verdict → model registry. It never places orders; its strongest action is VALIDATION.
- Its own research store (
data/research.sqlite) with a hash-chained journal, a persistent job queue that survives restarts, and a research worker that the API server starts as a separate process without broker credentials. - Public, keyless research data with licences and point-in-time stamps: Binance spot klines (daily and 30-minute), USD-M funding, premium index and open interest (read only), Deribit DVOL; Coin Metrics community data off by default (non-commercial licence). Content-addressed dataset versions with a validation report; invalid versions are never used.
- 22 causal features and seven strategy templates grounded in the literature (volatility-targeted trend, regime trend, intraday momentum, order-flow filter, funding crowding, funding carry as research only, MVRV cap).
- The protocol: vectorised screening with costs, walk-forward, CPCV, PBO, deflated Sharpe over all trials of a family, Hansen's SPA test, doubled/tripled costs, seven real crypto stress windows, parameter stability, Monte-Carlo drawdown, regime split - and 11 gates fixed before any result. The first 16 hypotheses on 2020-2026 data all failed at least one gate.
- arXiv literature scan (metadata and abstracts) with optional local-model summaries that must quote the abstract verbatim.
- The QUANT AI terminal window, a Quant AI page in the web console (
/quant/, commandQAI),/api/qai/*,swifttrade qai …andswifttrade qai-worker; isolation and known-answer tests (noise must fail, a planted edge must be found, no feature may see the future). - The bridge to the paper bot: templates F1, F2 and F4 as platform strategies (
qai_*) that compute the same vote as research on the bot's bars (tested bar by bar) and are sized by the platform allocator; deploying one needs its card in VALIDATION - a rejected candidate never trades, not even on paper.
Information → market
- Intelligence events on the price chart: a marker at the time the market could first know each event (colour by direction, square for official sources, a guide line for HIGH impact), a tooltip with source count, confidence and the measured reaction on that instrument, and a click opens the event's relationship graph.
GET /api/intel/chart-events/{instrument_id}; toggle and minimum impact in the chart settings. - Intel Analytics: price, bucket return and realised volatility of any instrument on the same time grid as news volume, sentiment and new events (PRICE vs NEWS, REALISED VOLATILITY vs SENTIMENT, BUCKET RETURN vs NEW EVENTS), from Binance klines, the recorded tape or daily bars - the source is named on the card.
GET /api/intel/market-overlay/{id}.
Research brief
- Three more sections on every instrument page, each item labelled with its basis: the Quant AI's hypotheses and verdicts for the instrument, the market reactions measured after its recent events (with the direction hit rate and a "reaction is not proof of cause" note), and its place in the book (position, weight against the limit, risk level, VaR/CVaR, drawdown). The summary states how many hypotheses survived the protocol.
Alerts
- Condition alerts next to price alerts: price move over a window, volume spike against the recent average, realised volatility, and new intelligence events above an impact level. Checked every 5 s on the recorded tape (never on a partial window), fire once or repeat after a cooldown, and go through the same alert stream and audit trail.
Search
- Ctrl+K also finds countries, cities, seas and regions (opens the intelligence map there), Quant AI hypotheses (opens their report) and condition alerts.
SwiftTrade Workstation - the native desktop product
- Decision recorded: the desktop product is the native C++23/Qt 6 workstation (ADR 0001); the Electron app continues for 1.x with fixes only.
- A docking workspace: 21 panel types that open, close, tab, split and tear off into their own windows; several charts, order books and tapes at once; six presets and named workspaces that restore what every panel showed.
- Light, dark and follow-system themes from the SwiftTrade brand palettes, switchable live; chart colours stay readable in both.
- Order book (the venue's top-20 depth every 100 ms, grouping, spread, imbalance, stale detection) and time & sales.
- Global search (
Ctrl+K): instruments, panels, commands, strategies, indicators, and from the platform countries, places, topics and news. - Connection to the platform: desktop sign-in with PKCE in the browser (the password never enters the workstation), refresh token in the OS credential store; the installer ships the platform engine and the workstation starts it on 127.0.0.1 (or attaches to one already running) and stops it on exit.
- Native intelligence desk (facts, analysis and speculation kept apart, every source listed), conflict monitor, economic calendar, a Natural Earth world map with located events, clusters and conflict zones, and local price alerts with desktop notifications.
- Six new strategies: z-score reversion, VWAP deviation reversion, VWAP trend confirmation, opening-range breakout, volatility-regime trend (volatility-targeted) and beta-hedged residual momentum; SMA and ADX options for the moving-average crossover. Twelve strategies in total, each with a transparency sheet and tests.
- Risk: a correlated-exposure limit (positions whose returns correlate above a threshold count together; hedges net out).
- Windows installer: per-user, no administrator rights, Qt and MSVC runtimes included, the platform engine as a component; silent install, installed self-check and silent uninstall verified.
--smoke-testand--screenshotself-checks (--chart,--timeframe,--theme,--preset); a Qt test suite including an end-to-end desktop sign-in.- Charts: drag the price axis to scale prices (the wheel over it too) and the time axis to scale time; A (auto-scale) and L (log) buttons; a hand-scaled axis pans vertically; double-click fits the chart, the price axis returns to auto-scale, a note opens for editing; Alt+R / Alt+A / Alt+L, PgUp/PgDn, Ctrl+arrows. Chart templates: save the type, scale, volume, grid and indicators under a name, apply them to any chart, pick one as the default for new charts. Candles and volume are drawn in a few batched calls and aggregated per pixel column when zoomed out (100 000 bars in a few milliseconds per frame).
- Market regime: trend (up, down, range, transition, with a 3-bar confirmation) and volatility regime per bar, from ADX/DI, SMA, the efficiency ratio and the rank of realised volatility - causal and explained with the numbers that decided it; as the Market Regime chart indicator and
swifttrade-cli regime, which also reports what followed each regime in the history (not a forecast). - Settings: where the SwiftTrade platform is - the engine on this computer (with its port), a SwiftTrade server (https) or off - without editing config.json.
- News on the chart: events the intelligence desk linked to the instrument appear on the bar during which the market could first know them - verification, the desk's directional reading, surprise versus expectation, the market reaction the platform measured and the move on the chart; busy bars group into "+N"; a click opens the dossier.
Quant lab
- Volatility models: GARCH(1,1) and GJR-GARCH(1,1) by quasi-maximum likelihood with a leverage test (likelihood ratio and BIC), forecast term structure, news-impact curve and conditional volatility (
GET /api/quant/garch/{id}). - Hierarchical risk parity as an allocator (sizing, walk-forward allocator comparison) and a portfolio view comparing HRP, risk parity, minimum variance and inverse volatility with risk contributions, the cluster-ordered correlation matrix and the out-of-sample comparison (
GET /api/quant/portfolio). - Probability of backtest overfitting (CSCV) in every walk-forward over a parameter grid, and a lab job that runs a walk-forward over a grid around a strategy's defaults in the background with progress (
POST /api/quant/overfitting). - Order-flow toxicity: VPIN over equal-volume buckets and the Hawkes branching ratio of trade arrivals, with a likelihood-ratio test against Poisson (
GET /api/orderflow/{id}/toxicity; TOXICITY tab in ORDER FLOW). - Terminal panel QUANT LAB (volatility, portfolio, overfitting). Every model is tested against data with a known answer.
Market data
- Google Finance (quote, key statistics, company profile, news, price graph) through the Apify actor
johnvc/google-finance-api- there is no official Google Finance API. Fetched only on demand, cached, and capped per day (fails closed at the cap); the token is read fromAPIFY_API_TOKENand sent only in a header; simulated instruments are never mapped to real listings. Terminal panel GOOGLE FINANCE. Labelled as third-party, delayed and informational.
Intelligence: OSINT sources, graph, timeline and analytics
- New public sources, each checked against its robots.txt: US Treasury OFAC and UK OFSI sanctions notices, Bank of Canada, Reserve Bank of Australia and Bank of Japan releases, US EIA (Today in Energy, press), UN press, ReliefWeb disasters, UK NCSC advisories, US NGA maritime navigational warnings, DefiLlama crypto exploits, ransomware.live group claims (victim names only; leak sites are never fetched or linked), and GDELT queries for protests, elections, sanctions, commodities, shipping, aviation, company events and cyber incidents. Media and social feeds ship switched off until the operator has checked their terms; sources whose robots.txt disallows automated access are listed and not used.
- Data feeds that publish records instead of articles (
json_apiwithtemplates,sort,records: true) give every record its own link, and records are never merged into one event however alike their templated headlines are. - The intelligence graph (
GET /api/intel/graph; terminal panel INTEL GRAPH, workstation panel Intel graph,Ctrl+Shift+G): Event -> Source -> Entity -> Asset / sector -> Market reaction, for the top events of a window or one event with its chronology. Places and companies the reporting names, the topic rule that fired, a country's currency, the reviewed topic -> market reference mapping (dashed, "not a forecast") and the reactions the platform measured; every edge says why it exists. Wheel zoom and drag in graph and timeline. - Intelligence analytics (
GET /api/intel/analytics; terminal panel INTEL ANALYTICS, workstation panel Intel analytics; both side by side in the new Intel analysis workspace of the workstation and the terminal): news volume, sentiment, event frequency by topic, impact, measured market reaction, volatility before and after events, reaction by event type, impact score against abnormal return, and the most active sources, per time bucket and filterable by topic or asset.
Terminal
- Footprint chart zoom: the wheel sets how many bars are in view (zooming out loads up to 500 bars of history), the price axis or Ctrl/Alt+wheel the price range, Shift+wheel scrolls back, dragging pans, double-click resets. Zooming the price in on AUTO rows asks for finer rows (down to one tick) - real traded volume at each finer price. Row size can be fixed (1-100 ticks); far out, each row becomes one net-flow cell. The server coarsens a request that would exceed the footprint's cell budget and says so.
Signed releases
- One command on the release machine,
scripts\release\release.ps1: prerequisites and certificate check, version, platform tests, front ends, engine, workstation build and ctest, signed packaging, signature verification, a secret scan of the package, silent install with installed signatures and self-check, silent uninstall, and publication with--require-signed. A report and a log per step stay inworkstation\build\release-out\<version>. - Code signing (docs/CODE_SIGNING.md): SwiftTrade's own binaries, the uninstaller and the installer are Authenticode-signed (SHA-256, RFC 3161 timestamp) with a certificate from the Windows certificate store (USB token, cloud HSM), a
.pfxkept outside the repository (password DPAPI-encrypted for the Windows user) or a signtool/dlibservice. The certificate never reaches the repository, CMake or the logs. - The installer carries version and publisher information; the ZIP now holds exactly the installer's components (it used to include QtKeychain's development files), and the example plugin is in both.
- The download page lists the workstation and the 1.x app side by side; publishing one keeps the other.
Platform
GET /api/intel/events?reactions=trueadds the market reactions measured after each event.
Fixed
- After an update the browser (and the desktop app's window) could keep showing the previous terminal: the pages were served without a Cache-Control header, so an old index.html pointing at the previous build was reused. HTML is now revalidated on every load (
no-cache+ ETag) and hashed asset files are cached as immutable. - The paper bot sent orders for instruments without a live quote right after start (the risk engine rejected each one and raised an alert per order); it now waits for the first quote and logs one WAITING_FOR_QUOTES event per cycle.
- The ADF test in pairs/stat-arb strategies asks statsmodels for its tuple result explicitly (statsmodels 0.16 changes the default return type).
- Charts: the volume pane followed the logarithmic price scale; the toolbar's Log and chart-type controls did not follow the chart's own menu; drawing-tool buttons stayed pressed after the drawing was placed; a text note always read "note"; the Fit tooltip promised a double-click that did nothing.
- Charts of long ranges ended in the past: Binance history now pages through the venue's 1000-bar limit.
- The bar that is still forming was marked closed (backtests and stored history could use it); it is now incomplete until its period ends, for Binance and Alpaca.
- The data-status badge showed DISCONNECTED while data was streaming (reference sources and unconfigured providers were counted as streams, and every message marked every provider fresh).
- Geotagging: a US state or other province is no longer placed at a small town of the same name ("Florida" went to Uruguay); big cities still win ("New York").
- The platform engine no longer creates a folder inside its read-only installation.
- Terminal: after the window had been narrower than 900 px (stacked layout), windows reopened as flat strips; the stacked column is no longer measured as the workspace, and a window whose saved box no longer fits opens at its default size.
- Intelligence: a past event named as background ("the largest penalty since Russia's 2022 invasion") is no longer read as a new military escalation; a "sanctions breach" is no longer a hack, and houses collapsing in a flood are no longer a bankruptcy.
Platform
- Broker adapters answer to one interface -
connect,disconnect,get_account,get_positions,get_orders,place_order,cancel_order,modify_order; paper trading modifies by cancel/replace, a venue without the capability says so.
Documentation
- New: ARCHITECTURE.md (product level), ALGORITHMS.md and API.md (their catalogues generated from the code), and a developer SETUP.md from installation to production; the platform's design moved to PLATFORM_DESIGN.md and the setup wizard guide to FIRST_RUN.md.
1.0.0 — 2026-09-27
The first release: the website, the web terminal, the server and the desktop app — which runs SwiftTrade on your computer without anything else installed.
Desktop — SwiftTrade on your computer
- The installer contains the engine and its own private Python: no Python, Node.js, terminal or server needed. With no server chosen, the app starts it on 127.0.0.1, prepares the local database on the first launch, keeps the data in
%APPDATA%\SwiftTradeand stops it cleanly on quit (also if the app is ended abruptly). - Windows downloads: the installer and a
.zip(no installation). No single-file portable.exe— with the engine inside it would unpack ~700 MB to a temporary folder on every start. - A starting screen with live status; a first-launch setup wizard (Welcome, Account, Theme, Market data, Broker, Trading preferences, Market intelligence, Complete — every step skippable) and a setup guide (
/guide/, Help menu). - View → Theme (Light / Dark / System); the window and title bar follow the page's theme with no flash on start.
- Help: setup guide, run the wizard again, open the data folder; About shows the engine and Python version.
- "Connect to a server instead…" / "Run on this computer" on the connect screen.
Themes
- Light, Dark and System everywhere — website, console, terminal, desktop app — from one stored choice, applied before the first paint. Two designed themes (a research workstation in light, a long-session workstation in dark) on one set of semantic colour tokens; charts, canvases, order books, the globe and the 3D terminal on the home page follow the theme, with light-theme product captures of the real terminal.
Intelligence map and Intelligence Desk
- A vector map of Natural Earth that zooms from the world to a city: wheel and trackpad-pinch zoom toward the pointer, touch pinch, drag with inertia, double-click, + − ⌂ ◎ ⤢ controls and keyboard; smooth fly-to camera; search for countries, provinces, cities, seas and straits, ports, airports, topics and events.
- Server-side clustering by zoom, category-shaped markers (filled = reported/confirmed, hollow = single source, dashed ring = country-level location), conflict zones by reporting volume, 36 layers in four groups; reference layers from real datasets only, the rest say "no dataset" and accept an operator dataset with a stated source.
- The Intelligence Desk: Live, Geopolitics, Conflicts, Markets, Economy, Military, Energy, Infrastructure, Natural events and Watchlist; every item with time, place, category, verification, sources, impact and confidence; FACT / ANALYSIS / SPECULATION kept apart with their basis; all sources with publication, time, link, category and reliability; timeline, related events, potential market relevance (labelled as a reference mapping) and measured reactions; a conflict monitor; an intelligence watchlist; configurable, rate-limited alerts. LIVE only while sources answer.
- New open and official sources: USGS earthquakes, NASA EONET, GDACS, UN News, ReliefWeb and GDELT queries; major media feeds listed but off until their terms are checked. Hazard feeds' own coordinates locate their events.
- Optional Google base maps with an operator-configured, referrer-restricted key (not tested without a key).
Brand and terminal
- One brand source (
web-next/lib/brand-mark.mjs): the crowned W on its tile, legible at 16 px, used for the terminal, website, favicon, app icons, installer icon and the desktop app's own screens. - Terminal top bar: brand · workspace · search · status · alerts · settings · account.
- A "CONNECTION LOST" banner says the screen is frozen and blocks new orders until the stream is back; orders ask for confirmation by default (can be turned off).
Website
- The story of SwiftTrade and its founder, from the first idea to the terminal, with dark and light themes.
- The terminal shown in 3D and as real product captures; a live window onto this server's data, labelled by source (live venue data or the built-in simulator).
- Security & connectivity section; download page listing only builds that exist, with size, date and SHA-256.
- Accounts: registration with e-mail verification, sign-in, two-factor sign-in, password reset, sessions, API tokens.
- Settings: broker connections (Binance Spot — testnet or live), verified with the exchange before they are saved.
- Accessibility: WCAG AA text contrast in dark and light, one heading outline per page, landmarks and labelled fields (checked by
web-next/scripts/a11y-audit.mjs). - Faster first load: the 3D scene's code loads only near its section, fonts trimmed to the Latin subset, the home page asks the server for a count instead of 200 records (phone profile: LCP 3.8 s → 2.0 s, 2.0 MB → 1.1 MB).
Terminal
- Floating-window workstation with charting, order flow, trading desk, research, intelligence and markets panels — 47 panels and 18 desk layouts.
- Research brief: type an instrument or a topic ("AAPL", "Bitcoin", "EUR/USD", "US inflation", "NVDA earnings") and get market data, measured history, technical context, the co-pilot's notes, options (model), related events and the economic calendar — every line labelled FACT, ANALYSIS or SPECULATION with its basis. No language model writes it.
- Saved workspaces: name the current arrangement and reopen it; synced to your account when signed in (web and desktop), otherwise kept on the device.
- Bracket orders: attach a stop-loss and/or take-profit to a market or limit entry. Both exits are reduce-only, sized to what actually fills, and one cancels the other; cancelling a bracket never closes a position by itself.
- Command bar: "Research brief" for any text, a Research action on every symbol, saved workspaces in the results.
- Windows fit any screen size; panel headers no longer clip their metadata; a stacked layout on phones and narrow tablets.
- AA contrast for secondary text, the heatmap and source tags; landmarks and labelled controls for screen readers.
Server
- Accounts and sessions with CSRF protection, rotating refresh tokens, lockout, roles and per-IP rate limits.
- Broker connections: keys encrypted with AES-256-GCM, bound to their owner, never returned to the browser; keys that can withdraw are refused for live accounts; every change audited. Planned brokers (Interactive Brokers, Alpaca, Kraken, Coinbase Advanced, OANDA) are listed as "coming soon" and cannot be connected.
- Research brief API (
/api/research/brief), experiment count endpoint. - Risk engine: the fat-finger price band now applies to marketable limits only; a passive limit far from the market (for example a take-profit) is no longer refused.
- Production mode refuses to start without its secrets; API docs are off in production.
/downloads/serves releases published while the server runs.
Desktop
- Windows installer (
SwiftTrade-Setup-1.0.0-x64.exe: per-user, Start-menu and desktop shortcuts, sign-in link, uninstaller), portableSwiftTrade-Portable-1.0.0-x64.exeand a.zip. Tested end to end: install, run, restart, uninstall. - Connects to your SwiftTrade server, sign-in through the browser, tray with the bot state and an emergency stop, update checks against your server's feed (
latest.ymlpublished with every release). - The portable build leaves the system's
swifttrade://link alone and signs in through a loopback callback. - Hardened: developer tools off in packaged builds, Electron fuses (including no extra
file://privileges), https-only server and update addresses;--smoke-testlaunch check.
Operations
- Docker image, Docker Compose with Caddy (automatic HTTPS), backups, restore and monitoring documented in DEPLOYMENT.md; CI and tag-based release workflows.
Fixed
- The engine used
defusedxmlwithout declaring it (a clean install would fail to start); it is declared now. - Window buttons overlapped panel titles in the expanded density; the layout menu could open behind the windows; emoji-style glyphs rendered as coloured emoji on Windows; the website menu is a ⋮ button.
- The 3D terminal on the home page could show a white screen; panel headers in the terminal clipped their text.
/downloads/did not serve releases published after the server started; a macOS.zipwould have been listed as Linux;pip installfailed on case-sensitive file systems (README name);swifttrade doctorcrashed on a piped Windows console; development e-mails could sort out of order.- The command bar could throw when closed within 30 ms of opening.
- A portable run pointed the system's
swifttrade://link at a temporary folder.
Known limitations
- Builds are not code-signed yet (Windows SmartScreen / macOS Gatekeeper warn); no MSIX without a certificate.
- The Google Maps integration has not been tested against Google (no key available).
- Map geography is Natural Earth 1:10m (region and city level); street level needs Google Maps.
- English only; market timestamps in UTC.
- macOS and Linux builds are configured (CI) but not built or tested for this release.
- No listed-options market data: option chains and Greeks are a model on realised volatility.
- The Binance connector is tested against a mock transport; try it on the testnet first.
- Live trading is off by default and requires three separate switches.