Commit Graph
487 Commits
Author SHA1 Message Date
Yijia-Xiao 69042d6d33 feat(llm): sign in with a ChatGPT plan (#1475)
- chatgpt_auth signs in through OpenAI's flow for open-source apps (PKCE, loopback or pasted redirect, verified ID token, plan scope) and keeps the sign-in in ~/.tradingagents/chatgpt-auth.json, readable only by its owner
- access tokens renew under a lock shared across threads and processes, from the refresh token on disk
- `tradingagents login chatgpt` and `tradingagents logout chatgpt`; logout revokes the sign-in at OpenAI
2026-10-16 21:12:14 +00:00
Yijia-Xiao 071a6cea2a refactor(llm): let a provider sign in with its own credential at a pinned endpoint
- a provider entry can supply a credential, a token callable per request, and pin its base URL
- such a provider never sends an API key, and refuses another backend_url or an explicit api_key
2026-10-16 21:12:05 +00:00
Yijia-Xiao c3cdaeb4eb feat(cli): tell people at a terminal about a newer release and Tauric's notices
- once a day a background thread records the latest GitHub release and the notices for each version; the welcome screen shows them from that cache, so no run waits on the network
- the release notice names the upgrade command for how TradingAgents was installed
- TRADINGAGENTS_NO_UPDATE_CHECK=1 turns the check off; unattended and CI runs never make it
- notices are read from a new `notices` key, so earlier versions keep reading `announcements`
2026-10-16 21:11:55 +00:00
Yijia-Xiao c9be8b6047 ci: attach the source archive and wheel to each GitHub release
- on a published release, or by hand for an earlier tag, build both from the tag, install the wheel in a clean environment, and upload them to the release
2026-10-16 21:11:45 +00:00
Yijia-Xiao 609c8e80a1 chore: start 0.7.0 development (0.7.0.dev0) 2026-10-16 21:11:35 +00:00
Tauric-Research 1394a3f72a Merge pull request #1478 from TauricResearch/v0.6.0
TradingAgents v0.6.0 release
v0.6.0
2026-10-03 16:30:07 -05:00
Yijia-Xiao ff0d0b1b4d release: 0.6.0 2026-10-03 21:27:43 +00:00
Yijia-Xiao dca93d5290 docs: show the Tauric Research logo from the SVG the report uses 2026-10-03 21:27:43 +00:00
Yijia-Xiao f72382414c fix(tools): send a start date that is not a date back to the model (#1476)
- get_news and get_stock_data answer an unreadable start_date with the form to use, instead of passing it to a vendor
2026-10-03 21:27:43 +00:00
Yijia-Xiao b3ca569c4c feat(fred): name the euro-area macro series (#1465)
- get_macro_indicators accepts ecb_deposit_rate, ecb_main_refi_rate, euro_hicp, euro_core_hicp, euro_real_gdp, germany_10y, france_10y and eur_usd
2026-10-03 21:27:43 +00:00
Yijia-Xiao c925f60328 feat(sentiment): search crypto communities on Reddit for a crypto ticker (#1461)
- a crypto pair is searched in r/CryptoCurrency and r/CryptoMarkets, plus r/Bitcoin, r/ethereum or r/solana for those coins, still in one request
- the Sentiment Analyst's prompt names the subreddits actually searched
2026-10-03 21:27:43 +00:00
Yijia-Xiao df630b9aea fix(rating): read a rating another party gave as evidence, not as the decision (#1466)
- a decision that opens with its rating line, plain or as the list item the prompt asks for, is read from that line
- only words naming the decision itself ("final", "our", "overall") may qualify its rating line; "Consensus rating: Buy" or "Trader's rating: Buy" is another party's
- otherwise the decision's own rating lines, or failing those all rating labels, must agree; ratings that differ need review
2026-10-03 21:27:43 +00:00
Yijia-Xiao 442907897e fix(yahoo): read a symbol's news from Yahoo search when its quote feed is empty (#1467, #1469)
- an empty quote feed falls back to the search articles tagged with the symbol
- when search has no article tagged with the symbol, or neither source answers, Yahoo news is unavailable, so a configured next vendor serves the call
- articles from search never make an empty window read as no news
2026-10-03 21:27:43 +00:00
Yijia-Xiao 11dab3b0fe fix(memory): settle each decision once, and keep each outcome as soon as it is known
- a settlement pass holds the log's settlement lock, so runs sharing a log never pay for the same reflection twice; only outcomes actually written count as settled, and a run's Memory Log step does not wait for another run's pass
- each outcome is written when its reflection is done, so an interrupted pass keeps what it finished
- any failure to price a decision is reported as a failed settlement, not taken for a window that has yet to trade
2026-10-03 21:27:43 +00:00
Yijia-Xiao 460b82e20d fix(reports): name the sentiment analyst in the report header as users select it
- the header lists "sentiment", the name the CLI and flags use, where it printed the internal key "social"
2026-10-03 21:27:43 +00:00
Yijia-Xiao 56a98d9df7 feat(reports): save the report as one HTML page as well (#1419)
- a saved report also includes complete_report.html: the report as one self-contained page with its sections listed beside the text, readable in a browser, on a phone and in print
- answering the save question at the prompt also asks about the page and offers to open it in a local browser window; --no-html and save_reports(..., html=False) skip it
- the Tauric Research logo leads the header at the top left, and a line at the foot credits TradingAgents and Tauric Research
- the page loads nothing and runs nothing (inline styles, a content-security policy); report text is rendered without raw HTML or images
- markdown-it-py is declared as a dependency
2026-10-03 21:27:43 +00:00
Yijia-Xiao d53b076b7a feat(reports): name the rating in the report header
- the header lists the run's rating, REVIEW when the decision has none
2026-10-03 21:27:43 +00:00
Yijia-Xiao cc39a35c42 feat(llm): let each model tier run on its own provider (#1440)
- quick_think_provider / deep_think_provider and their backend URLs (with TRADINGAGENTS_* variables) choose a tier's provider; unset, a tier uses llm_provider and backend_url
- a tier on another provider gets that provider's own settings and endpoint, and the run settings and report header name each tier's provider
- the CLI checks each tier provider's model variable and key before the run
2026-10-03 21:27:43 +00:00
Yijia-Xiao f65fcabb60 feat(graph): settle past decisions alongside the analysts (#1428)
- a Memory Log step runs beside the analysts, settles every ticker's due decisions and loads the lessons known by the trade date for the Portfolio Manager; the run no longer settles before it starts
- a settlement failure is logged and noted in the report's header instead of ending the run
- the checkpoint signature records the new layout
2026-10-03 21:27:43 +00:00
Yijia-Xiao 5d8de36f6d feat(memory): settle the pending decisions of every ticker on request (#1445)
- TradingAgentsGraph.settle_all_pending() settles each ticker with a due decision; settle_pending and it return the decisions settled and those that failed
2026-10-03 21:27:43 +00:00
Yijia-Xiao 97b79e08c3 fix(alpha_vantage): keep the API key out of every error an Alpha Vantage answer raises
- rate-limit and invalid-key notices are scrubbed of the key as the rejection message is
2026-10-03 21:27:43 +00:00
Yijia-Xiao b838e257ee fix(sentiment): send Jev requests to the endpoint TYPESAFE_BASE_URL names (#1416)
- post screening reads TypeSafe's own TYPESAFE_BASE_URL and appends /v1/systemone, as the TypeSafe SDKs do, so Jev can be reached through OpenRouter; the key still turns screening on
2026-10-03 21:27:43 +00:00
Yijia-Xiao 9df071b25b fix(google): give a Gemini call the same 600-second timeout as the other providers (#1417)
- GoogleClient sets timeout=600 unless one is passed, as the OpenAI and Anthropic SDKs do by default, so a stalled call no longer hangs the run
2026-10-03 21:27:43 +00:00
Yijia-Xiao 810b4cc48d fix(yahoo): print each fundamentals money figure with the currency it is in (#1456)
- price levels carry the quote currency (GBp for London), market cap and per-share figures its main unit (GBP), and income figures the reporting currency (TWD for TSMC's ADR)
2026-10-03 21:27:43 +00:00
Yijia-Xiao 5ca37b5088 fix(alpha_vantage): report a request Alpha Vantage rejects as unavailable (#1442)
- an {"Error Message": ...} answer raises VendorUnavailableError, with the key scrubbed, instead of being served as data or as "no data"
2026-10-03 21:27:43 +00:00
Yijia-Xiao 8af6eefb18 docs: say in requirements.txt where the dependencies are declared 2026-10-03 21:27:43 +00:00
Yijia-Xiao 9dceea6e9d fix(yahoo): read a news article whose fields are null (#1458)
- each article field falls back to its default on a null as well as on a missing key, so one malformed article no longer loses a ticker's news
2026-10-03 21:27:43 +00:00
Yijia-Xiao 99c79e6fb1 chore: start 0.6.0 development (0.6.0.dev0) 2026-10-03 21:27:43 +00:00
Tauric-Research 8b22d43d01 Merge pull request docs: TradingAgents v0.5.2 release #1450
docs: TradingAgents v0.5.2 release
2026-09-29 01:15:09 -05:00
Yijia-Xiao 4b7d39856b docs: TradingAgents v0.5.2 release 2026-09-29 06:10:24 +00:00
Yijia Xiao 5eb50854da TradingAgents v0.5.2 release v0.5.2 2026-09-28 22:59:16 -07:00
Yijia-Xiao 23536f545a release: 0.5.2 2026-09-29 05:57:18 +00:00
Yijia-Xiao 7d38885e81 build: require Python 3.11 and pandas 3
- requires-python 3.11 and pandas 3.0.6; the CI matrix runs Python 3.11 to 3.14 and ruff targets 3.11
- datetime.UTC in place of timezone.utc, and the rating, action, band, analyst and asset enums are StrEnum, which formats a member as its value
2026-09-29 05:57:18 +00:00
Yijia-Xiao da6b35f22f fix(dataflows): withhold insider trades with no filing date from a past run
- Yahoo and Alpha Vantage date a trade by when it happened, not by its Form 4 filing, so a run dated in the past is told they are withheld instead of served trades that may not yet have been public
2026-09-29 05:57:18 +00:00
Yijia-Xiao 1cf16bd0e4 fix(sec_edgar): serve a quarterly figure filed only year to date, naming its span
- each row takes the quarter where filed, else its 6- or 9-month figure to date, in a column labelled with the span; a filer that tags 10-Q cash flows only year to date no longer stops at each first quarter
2026-09-29 05:57:18 +00:00
Yijia-Xiao 2486470495 fix(yahoo): read Yahoo's answer that a window has no prices as no data
- a chart with no prices, or Yahoo saying the data does not exist, is an empty answer; yfinance's same error for an error status or a service failure, and a missing time zone, stay unavailable
2026-09-29 05:57:18 +00:00
Yijia-Xiao bd9693f8ba docs: write the provider key notes without em-dashes 2026-09-29 05:57:18 +00:00
Yijia-Xiao b21f8ce1c9 refactor(cli): write the saved selections through the shared file writer
- save_last_run uses files.replace_file, with a temp file of its own, in place of a fixed .tmp name
2026-09-29 05:57:18 +00:00
Yijia-Xiao e1a19fd78e refactor(cli): save a run's reports through the graph, as a script does
- TradingAgentsGraph.default_report_path names the results_dir/reports/TICKER_stamp folder; save_reports and the CLI both use it
2026-09-29 05:57:18 +00:00
Yijia-Xiao ad39133569 refactor(yahoo): keep what every Yahoo request shares in yahoo.common
- yf_retry, raise_for_empty and YAHOO_HOST move from yahoo.ohlcv, which the news, fundamentals and market modules imported them from
2026-09-29 05:57:18 +00:00
Yijia-Xiao d7ac9461da fix(dataflows): serve a past run financial statements only with a known filing date
- Yahoo and Alpha Vantage statements, dated by the period they cover, are withheld from a run dated in the past, with a notice saying why
- statements come from SEC EDGAR by default (fundamental_data "sec_edgar,yfinance"), so a past run reads US filers as filed
2026-09-29 05:57:18 +00:00
Yijia-Xiao 1d92269d35 fix(rating): read a decision's rating only from its label
- a decision without a rating label is REVIEW; a lone rating word in its prose may be one it argues against ("not a Sell"), so it is no longer read as the call
2026-09-29 05:57:18 +00:00
Yijia-Xiao 1bf67e35b6 fix(yahoo): report the failed requests yfinance would answer as empty
- yfinance raises its failures instead of answering them with an empty result, so a statement request that timed out is unavailable, not "no data"
- Yahoo answering that it has no such symbol (HTTP 404) stays an answer: no data
2026-09-29 05:57:18 +00:00
Yijia-Xiao 0f05689334 docs: show a current Claude model ID in the Bedrock example 2026-09-29 05:57:18 +00:00
Yijia-Xiao 76a93480dd build: run the Docker image on Python 3.13, and set up with it in the README 2026-09-29 05:57:18 +00:00
Yijia-Xiao 23bed8dace ci: test Python 3.14 and run the current checkout and setup-python actions
- the test matrix adds Python 3.14
- actions/checkout and actions/setup-python v7; the lint job installs ruff 0.16
2026-09-29 05:57:18 +00:00
Yijia-Xiao f65eab7b80 build(deps): require the current yfinance, LangChain and LangGraph releases
- yfinance 1.7.0, langchain-core 1.6.5, langchain-openai 1.6.6, langchain-anthropic 1.7.4, langchain-google-genai 4.4.0, langgraph 1.2.12, langgraph-checkpoint-sqlite 3.1.1
- langchain-aws 1.7.9 for the bedrock extra, and ruff 0.16 for development
2026-09-29 05:57:18 +00:00
Yijia-Xiao 660966d168 refactor(dataflows): decide in one place whether a run is dated in the past
- date_window.is_historical replaces the four copies of the rule in the profile guard, Polymarket, the instrument context and the memory cutoff, which read the clock on its own
2026-09-29 05:57:18 +00:00
Yijia-Xiao 06bf82569d docs: drop comments that describe code no longer there
- agents.context no longer holds a message reset between analysts
- main.py no longer ends on a reflection step it does not take
2026-09-29 05:57:18 +00:00
Yijia-Xiao 0d2cfa32e0 docs(changelog): complete the 0.5.1 import moves (#1437)
- get_scrubbed and vendor_reachable moved to dataflows.net, and symbol_utils.is_yahoo_safe was removed
2026-09-29 05:57:18 +00:00