Skip to content

Releases

v0.8.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 16:24
Immutable release. Only release title and notes can be modified.
3cf41fb
  • LLM trading agent leaderboard: rta-bench-1 (leaderboard, docs/leaderboard.md). A fixed benchmark for LLM trading agents on the three frozen periods: six tasks (2026, 2022 and 2020, each blind and with names) on the 56 megacap stocks, a decision after every fifth close, at most 10 positions, news replayed by publication time and realistic fill costs. riskaware research bench --llm ... runs the tasks with any model the package can call; riskaware research submit checks a run against the benchmark and writes its entry (the model's orders, data hashes, metrics, the score after the model's training cutoff, the run analysis and the memory result); riskaware research leaderboard --verify replays every entry without calling the model. Six models are on the board with 67 entries, three seeds each for GPT-5.6 Luna, Gemini 3.5 Flash and Llama 3.2, next to the five rule strategies, SPY and the equal-weight list. Scored after each model's training cutoff, Claude Haiku 4.5 leads 2026 with +7.2% (one seed), and no model beats SPY (+12.1%) or the equal-weight list (+11.4%) over the same days. New models join with a pull request that adds JSON files.
  • The research headlines are no longer distributed. The headline files of the 2020, 2022 and 2026 periods are licensed, so they are gone from the package, the repository and the Hugging Face dataset; every result and number made with them stays published, and each period's manifest keeps their SHA-256. The code reads your own copy from RISKAWARE_NEWS_DIR or ~/.riskaware/data/news (and from the package folder of an older install). riskaware research data reports a missing headline file as not distributed instead of changed, and an experiment with news on but no headline file says so in its notes and manifest. To replay news, build an archive under the same rules from the free SEC 8-K filings, a news API key of your own or any CSV (riskaware news-history). A benchmark run stops before it calls a model when the files are missing; replaying leaderboard entries needs none.
  • Two more frozen periods: the 2022 bear market and the 2020 crash. Next to 2026, the research kit has 2022 (SPY -18.2%) and 2020 (SPY -34% in 23 days), each with daily bars from two years before it and the VIX term structure, and headlines replayed by publication time from your own copy. Every research command, MCP tool and trading session takes --period. LLM runs and trading sessions get a look-ahead check too: the model's replies are replayed on a random future, and what it was shown before each cut must not change.
  • Realistic transaction costs (docs/costs.md): --costs realistic on riskaware backtest, riskaware research run and riskaware research baselines (and costs="realistic" in Experiment and run_experiment) charges each fill at the open 5 bps, plus a tenth of the overnight gap, plus square-root market impact, and fills no order for more than 1% of the stock's 20-day average volume. The default stays a flat 5 bps, so every published number is unchanged; trades record what each fill paid in cost_bps.
  • What a strategy or an LLM agent made its money on (docs/analysis.md): riskaware research analyze <run> (MCP: experiment_analysis, the server's 22nd tool) reads a saved record and reports the excess return after every buy and sell with t-statistics that allow for same-day decisions and overlapping windows, market, size, growth and momentum exposures with the alpha left after them, and P&L by holding period, sector, regime, news trigger and stock. It follows short positions from the short sale to the cover and reconciles fees and margin interest to the cent.
  • News factors (docs/news-factors.md): riskaware research factors tests ten daily headline factors and a language model's headline sentiment point in time, from the next open, in 2020, 2022 and 2026. None survives as a trading signal. Joined by calendar date and tested close to close, the same factors look much better: the lexicon sentiment's rank IC goes from 0.005 to 0.032 and the language model's from 0.021 to 0.050, mostly from news published after the close.
  • Short selling and margin (docs/short-margin.md): mode="long_short" and mode="margin" (Reg T, up to 2x gross, margin calls at the next open) for plain execution, Experiment, riskaware research run/trade --mode and the MCP tools; long_only stays the default and its numbers do not change. In 54 blind LLM runs no model used the leverage it was given; shorting helped in the 2022 bear market and hurt in the 2020 rebound, and it changed the agents' exposure more than their stock selection.
  • Memory probe (docs/memory.md): riskaware research memory --llm <model> --period 2022 --cutoff <training cutoff> asks the same points named and blind and from memory, and says whether a model remembers a period. Claude Sonnet 4.6 recalls how stocks moved in 2020 and 2022 but not in 2026, GPT-5.6 Luna recalls 2022, and Llama 3.2 3B shows no sign of recall, so 2026 is the fair test for these models.
  • Prompt tests (docs/prompts.md): riskaware research prompts compares 21 versioned system-prompt variants with the package's prompt on the same period and seed, with bootstrap intervals, an exact sign-flip test and a Holm correction, and splits each return difference into how much stock was held and which stocks. In the pilot, risk rules in the prompt cut the 2022 losses, nearly all of it from holding less stock rather than from better picks.
  • Blind mode masks dates and price levels inside headlines: the companies' best-known people and products, every date and year, and per-share dollar amounts such as price targets are masked or rebased, so a headline no longer tells a blind model the date. Compare blind runs within one version.
  • Leaderboard entries publish each reply's orders and nothing else (no text reason, no other key a model wrote); record.replies_sha256 is recomputed, and every entry still replays to the same numbers.
  • Website: a leaderboard page in English and Chinese, a page comparing rta-bench-1 with other trading-agent benchmarks, the data page for all three periods, structured data for search, llms-full.txt, an example of how much a calendar-date news join gains, and links to the public Hugging Face dataset (prices, every leaderboard entry and the anchors) and the leaderboard Space. The README now leads with the benchmark.
  • Releases are no longer archived on Zenodo. Cite the repository for now, and the benchmark paper once it is out.

Full changelog: v0.7.2...v0.8.0

Install this version: pip install risk-aware-trading-agents==0.8.0 · Docker: docker pull ghcr.io/jackson-cmd/risk-aware-trading-agents:0.8.0

中文更新记录:docs/zh/CHANGELOG.md

v0.7.2

Choose a tag to compare

@github-actions github-actions released this 13 Nov 16:48
Immutable release. Only release title and notes can be modified.
0dbb6eb
  • On the official MCP Registry as io.github.jackson-cmd/risk-aware-trading-agents: after the upload to PyPI, each release publishes server.json there, so MCP clients and directories that read the registry can find and install the server.
  • A Claude Desktop extension with every release: open risk-aware-trading-agents-<version>.mcpb in Claude Desktop and it installs the matching version from PyPI with uv (scripts/build_mcpb.py builds it).
  • uvx risk-aware-trading-agents mcp starts the MCP server with nothing installed first: the MCP SDK is now part of the base install (the mcp extra still works and adds nothing), and the command also answers to the package name, risk-aware-trading-agents.
  • The Docker image carries the io.modelcontextprotocol.server.name label that the registry checks.

Full changelog: v0.7.1...v0.7.2

Install this version: pip install risk-aware-trading-agents==0.7.2 · Docker: docker pull ghcr.io/jackson-cmd/risk-aware-trading-agents:0.7.2

中文更新记录:docs/zh/CHANGELOG.md

v0.7.1

Choose a tag to compare

@github-actions github-actions released this 13 Nov 05:35
Immutable release. Only release title and notes can be modified.
7b6263c
  • A Docker image for every release, for x86-64 and ARM (Apple silicon): docker run --rm -p 8501:8501 ghcr.io/jackson-cmd/risk-aware-trading-agents dashboard opens the dashboard on http://localhost:8501, and docker run -i --rm ghcr.io/jackson-cmd/risk-aware-trading-agents mcp serves the MCP tools over stdio (the image now includes the mcp extra). Tags: the version, the minor version and latest.
  • Releases are automatic: when a new version reaches main and CI passes, the commit is tagged, and the GitHub release gets this changelog's notes, the wheel and the source archive; then the image is pushed.
  • GitHub Codespaces: a dev container with Python 3.12 and the dashboard, MCP, LLM and test extras installed. Port 8501 opens in the browser when you run riskaware dashboard.
  • Fix: the daily agents job records the trading day it checked rather than the computer's date, so scheduled_run(now=...) runs each agent once per day and stops after three failures whatever the clock says (the tests failed after midnight New York time).
  • A tidier repository root: the Docker files moved to docker/ (docker compose -f docker/docker-compose.yml up -d, or make docker), .env.example to examples/, and the contributing, security and conduct notes to .github/.

Full changelog: v0.7.0...v0.7.1

Install this version: pip install "risk-aware-trading-agents @ git+https://github.com/jackson-cmd/risk-aware-trading-agents@v0.7.1"

中文更新记录:docs/zh/CHANGELOG.md

v0.7.0

Choose a tag to compare

@jackson-cmd jackson-cmd released this 13 Nov 04:21
8f268d0
  • Research kit (riskaware.research, riskaware research, docs/research.md): a frozen copy of the 2026 market ships with the package, so experiments give the same numbers on any machine: daily bars from 2024-01-02 to 2026-11-11 for the 64 watchlist stocks, 25 ETFs, the VIX term structure (VIX9D, VIX, VIX3M, VVIX) and four cross-asset ETFs (research/data/market_2026.csv.gz, 1.4 MB, with a manifest of SHA-256 hashes; scripts/build_market_bundle.py rebuilds it), next to the bundled 2026 news.
  • riskaware research day DATE (MCP market_day): everything known at a day's close: the regime, the VIX term structure, fear & greed, breadth, credit stress and scheduled macro events; per stock its prices, indicators, technical setups, the verified news published before the close and the last earnings release.
  • riskaware research run (MCP run_experiment): backtests a built-in strategy, a file, or code an AI wrote (checked and run in a separate process) on the frozen market, with signals at the close and orders at the next open. Plain execution trades exactly what the strategy says (equal positions, at most N, long only); --execution risk_aware adds the risk manager. It reports SPY and the equal-weight universe, beta, alpha, a t-statistic, moving-block bootstrap intervals and an in-sample and out-of-sample split, and saves a record: manifest (data hashes, version, commit, settings, strategy source), metrics, equity, trades, every decision, report.md and a chart.
  • A look-ahead check on every experiment: the run is repeated with every price and headline after three cut days replaced by random ones, and the decisions before each cut must be identical. Verdicts: pass, fail (with the first day and decision that changed) or not repeatable.
  • LLM agents: riskaware research trade --llm ... and run_policy let a model trade the period step by step, and MCP trading_session_start / trading_session_step let Claude do it. Blind mode hides tickers, company names and dates. extra_news adds headlines to one experiment for counterfactual tests.
  • Five common swing strategies with a news switch: swing_trend, swing_rsi2, swing_breakout, swing_pullback and swing_news, also usable in riskaware backtest. riskaware research baselines runs them with and without news: in 2026 trend following made +21.1% (Sharpe 1.44) against SPY's +12.1% (0.77), and the news filter made every strategy slightly worse.
  • The backtester takes another order planner and reuses indicators across runs on the same data.

Install this version: pip install "risk-aware-trading-agents @ git+https://github.com/jackson-cmd/risk-aware-trading-agents@v0.7.0"

中文更新记录:docs/zh/CHANGELOG.md

v0.6.3

Choose a tag to compare

@jackson-cmd jackson-cmd released this 13 Nov 04:21
42467f0
  • Long dashboard tasks run in the background: a scan on the Signals page, a backtest, an agents run (Run now, Run all now) and a news fetch keep running when you open another page or reload the browser, and the result waits on its page. While a task runs, its page shows the progress and the time so far, and a backtest has a Stop button. Every other page shows a bar with the tasks that are still running or have finished, and clicking it takes you to the result. One task of each kind runs at a time. The dashboard process keeps the tasks, so every open tab sees the same ones.

Install this version: pip install "risk-aware-trading-agents @ git+https://github.com/jackson-cmd/risk-aware-trading-agents@v0.6.3"

中文更新记录:docs/zh/CHANGELOG.md

v0.6.2

Choose a tag to compare

@jackson-cmd jackson-cmd released this 13 Nov 04:21
52e1d79
  • Every number on the dashboard explains itself: a ? next to each card, section, table column and form field opens a popup (the browser's popover: click to open, click outside or Esc to close) with what it is, how it is calculated and how to use it, in English and Chinese. The texts follow the code and the balanced profile's defaults: the regime rules, the fear & greed and risk-score parts, the macro calendar's weights and windows, the technical (TA) score and setups, conviction and its parts, the earnings check, the risk manager's rules, the risk profiles, the news score, statuses, sentiment and red flags, and the backtest metrics. They live in riskaware/dashboard/glossary.py.
  • The Signals page shows conviction's parts as columns: technical (TA), earnings, news and macro.
  • The All metrics table has a column that explains each metric.
  • Fix: the Agents page's SPY card said "since the first agent started" but used the leading agent's start date; it now uses the oldest agent's.
  • The breadth card is labeled Breadth so it fits on one line.

Install this version: pip install "risk-aware-trading-agents @ git+https://github.com/jackson-cmd/risk-aware-trading-agents@v0.6.2"

中文更新记录:docs/zh/CHANGELOG.md

v0.6.1

Choose a tag to compare

@jackson-cmd jackson-cmd released this 13 Nov 04:21
2a64961
  • The dashboard's Backtest page has a News the backtest saw panel. After a run with Replay news on, pick a trade (each one shows how many news items the backtest had seen when it decided), or any stock and day, to see the close at which it was decided, the order the strategy placed the next day, the news score with its confirmed and single-source stories and red flags, and every story with its New York time, status, sentiment and sources. It opens at the latest trade that had news.
  • The News page's summary cards and the new panel share one component.

Install this version: pip install "risk-aware-trading-agents @ git+https://github.com/jackson-cmd/risk-aware-trading-agents@v0.6.1"

中文更新记录:docs/zh/CHANGELOG.md

v0.6.0

Choose a tag to compare

@jackson-cmd jackson-cmd released this 13 Nov 04:21
3389bac
  • 2026 news ships with the package: 16,945 items for the 64 stocks of the built-in lists, January 1 to November 11, 2026 (16,249 Benzinga headlines with only the title, time and ticker, and 696 SEC 8-K filings), in riskaware/news/data/news_2026.jsonl.gz (0.7 MB). Backtests with --news read it together with your own archive; news.bundled: false leaves it out. A headline counts for a stock only when Benzinga tagged the stock and the headline names the company or its ticker; automated price recaps are left out. scripts/build_news_bundle.py rebuilds the file.
  • Strategy lab: the MCP tools strategy_guide and backtest_code let Claude, Codex or Gemini write a strategy as code from a plain-words request and backtest it. The code is checked first (no dates or stock tickers in the code, imports from a short list, no files, network, eval, getattr or private attributes) and runs in a separate process with no API keys, a time limit, a CPU limit where available, and an audit hook that refuses network, subprocesses and file access while strategy code runs. Errors come back with the line in the strategy. save_as keeps a strategy in ~/.riskaware/strategies/ai/; it then appears in list_strategies, on the dashboard and for agents_create. riskaware lab FILE does the same from the command line.
  • No look-ahead: a backtest day sees only news published strictly before its close, and the close is 13:00 on early-close days; a date without a time counts as the end of that day; times without a zone are read as New York time (the CSV import default was UTC); items dated in the future are dropped. Indicator rows now hold a copy of that day's values and ctx.history() returns a copy, so a strategy can no longer reach later prices through the arrays behind them. New tests cover each rule, and a test recomputes the indicators on data cut at each day to show they use no later data.
  • The dashboard's Backtest page has a Replay news switch, and saved AI strategies appear in its strategy lists and in the create-agent form.
  • The MCP backtest tool takes news=True; backtests load news only for the symbols they trade.
  • news-history status counts bundled items in their own column and prints what the bundle holds.
  • The READMEs and the website show the 2026 backtest with news (January 2 to November 11, megacap): +15.9% against SPY's +12.1%, max drawdown -5.3% against -8.9%.

Install this version: pip install "risk-aware-trading-agents @ git+https://github.com/jackson-cmd/risk-aware-trading-agents@v0.6.0"

中文更新记录:docs/zh/CHANGELOG.md

v0.5.0

Choose a tag to compare

@jackson-cmd jackson-cmd released this 13 Nov 04:21
522dd14
  • No API key needed: --llm claude-cli[:MODEL], codex-cli[:MODEL] and gemini-cli[:MODEL] run each review through Claude Code, OpenAI Codex, Google's Gemini CLI or Antigravity, on the plan you are logged in to. The tool runs in an empty temporary folder with its tools off and the same strict JSON schema; --llm-command / RISKAWARE_*_CLI choose a different executable or wrapper. Also in the dashboard's LLM picker and riskaware llm-check.
  • riskaware mcp-setup claude-desktop | claude-code | codex | gemini | antigravity [--apply] prints or runs the one step that connects the MCP server to that app (Claude Desktop's config is edited in place with a backup).
  • News in backtests: riskaware news-history builds a local, point-in-time news archive (~/.riskaware/news) from SEC EDGAR 8-K filings, your own Benzinga API key, or any CSV, and riskaware backtest --news replays it through the same clustering and two-source verification used live. Items stamped after the 16:00 New York close become visible the next day.
  • news-history show SYMBOL --date DAY prints exactly what a backtest saw at that close.
  • New core universe preset (SPY, QQQ and the seven largest US stocks) and an example news strategy (examples/strategies/news_earnings_drift.py).
  • NewsItem.sentiment: a sentiment score supplied by the data source (for example an imported CSV) overrides the headline lexicon.
  • The thesis_break emergency exit now also works in backtests that use an archive, under the same rule as live trading: the company's own 8-K or press release must carry the severe flag.

Install this version: pip install "risk-aware-trading-agents @ git+https://github.com/jackson-cmd/risk-aware-trading-agents@v0.5.0"

中文更新记录:docs/zh/CHANGELOG.md

v0.4.0

Choose a tag to compare

@jackson-cmd jackson-cmd released this 13 Nov 04:21
2b598b8
  • Behavior change: emergency sells on news need the company itself. A severe red flag now triggers the thesis_break exit only when the company's own SEC 8-K carries the item, or when its own press release confirms what at least two independent outlets reported an hour or more earlier, and no denial disputes it. Red flags confirmed by two independent outlets still block new buys and pull the news score down, but no longer force a sale. Allegations made by others (fraud, SEC charges, short-seller reports) never force a sale on their own; the profile's hard stop is the backstop.
  • An LLM for each agent: riskaware agents add NAME --llm openai:gpt-5.6-luna | ollama:qwen2.5:3b | anthropic:MODEL | compat:MODEL, riskaware agents llm NAME CHOICE, and the same choice in the dashboard's create form and agent page. Local models run through Ollama for free.
  • Every LLM review is stored in the agent's journal (prompt, raw reply, bull case, bear case, verdict, conviction before and after, latency, tokens). The dashboard's Decisions tab, riskaware agents why NAME [SYMBOL] [--prompt] and the new agent_decisions MCP tool show how each decision was made.
  • riskaware llm-check CHOICE sends one sample review to check a key or a local model.
  • OpenAI-compatible replies use strict JSON schema output (falling back to JSON mode, then plain text, where an endpoint has no schema support), and the parser reads only the first JSON object; gpt-5.x and o-series models get max_completion_tokens and reasoning_effort instead of a temperature, and a timed-out request is retried once.
  • The daily new-position and buy limits now count positions opened earlier the same day, so several runs on one day cannot exceed them (backtests are unchanged).
  • News: a story only counts toward a stock when its headline or summary names the company or its ticker; SEC filings always count. Before, a search for "COST stock" pulled in every article about costs, and another company's news could pin a confirmed red flag (for example an executive departure) on the wrong stock. Built-in names for every stock in the bundled lists, Yahoo's company name for the rest (cached). news.relevance_filter: false turns it off.
  • Dashboard: the backtest charts keep one color per strategy; screenshot gallery in the READMEs and on the website.
  • Press-release wires (Business Wire, PR Newswire, GlobeNewswire, Internet Wire, Accesswire, Newsfile and others) count as the company's own channel. Their stories get the new ISSUER status; outlets that repeat a release, and several wires carrying it, no longer count as independent confirmation. A fake press release and the outlets that rebroadcast it can block buys but cannot force a sale.
  • Denials and negation: headlines that deny or reject a report, call it false, fake, baseless or a hoax, or say the company is not filing or has no plans to file, no longer raise the red flag they mention. A denial forms its own story, is never counted as a publisher of the story it denies, and clears that story's red flags when it is at least as well sourced (never an 8-K, never allegations by others). NewsReport.red_flags_denied lists the cleared flags and NewsReport.red_flags_backed the flags behind an emergency sell; the CLI, dashboard and MCP stock_news tool show them.
  • "Ch. 11" and "Chap. 11" count as bankruptcy, and "restates" or "restated" now count against the news score like "restatement".

Install this version: pip install "risk-aware-trading-agents @ git+https://github.com/jackson-cmd/risk-aware-trading-agents@v0.4.0"

中文更新记录:docs/zh/CHANGELOG.md