test
2474f7ad58
feat: update CLI for Polymarket event input and display
...
- Replace AnalystType enum: MARKET/FUNDAMENTALS → ODDS/EVENT
- Replace get_ticker() with get_event_input() supporting manual URL/ID entry and scan mode
- Update ANALYST_ORDER and ANALYST_MAPPING throughout for odds/event analysts
- Update MessageBuffer FIXED_AGENTS: Bull/Bear Researcher → YES/NO/Timing Advocate
- Update REPORT_SECTIONS: market_report/fundamentals_report → odds_report/event_report, trader_investment_plan → trader_plan, final_trade_decision → final_decision
- Update get_user_selections(): event-based flow replacing ticker/date steps
- Update run_analysis(): graph.propagate with event_id/event_question, chunk processing for yes/no/timing debate history
- Update display_complete_report() and save_report_to_disk() with new field names and folder structure (5_risk_manager instead of 5_portfolio)
- Update welcome message and progress display to reflect Polymarket workflow
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 21:27:37 +09:00
test
7e45020dbb
feat: update graph workflow for Polymarket 3-way debate
2026-03-21 21:21:19 +09:00
test
26657acab5
feat: update agent exports for Polymarket agents
2026-03-21 21:19:10 +09:00
test
2753b6438b
feat: add Polymarket agent prompts (analysts, researchers, trader, risk)
...
- Odds Analyst + Event Analyst (new)
- News/Social Analyst updated for Polymarket tools
- YES/NO/Timing 3-way debate advocates (new)
- Research Manager updated for 3-way evaluation
- Trader + Risk team updated for prediction market context
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 21:17:27 +09:00
test
39cce0fb9b
feat: update AgentState and conditional logic for Polymarket 3-way debate
...
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 21:13:38 +09:00
test
12051c1570
feat: add Polymarket API tool functions with tests
...
Implements 11 @tool-decorated functions for Polymarket prediction market
data access (Gamma, CLOB, Data APIs), social sentiment, and news search,
plus 48 unit tests covering success paths, edge cases, and error handling.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 21:11:38 +09:00
test
50a705dc12
chore: add Polymarket dependencies and update config
...
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 21:06:16 +09:00
test
aec0dbcf0d
docs: add Polymarket agent implementation plan (14 tasks)
...
Incremental plan: deps → tools → states → routing → agents →
graph → signal processing → CLI → cleanup → integration tests.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 21:03:08 +09:00
test
d9b752f4bf
docs: add Polymarket prediction agent design spec
...
Design spec for converting TradingAgents stock analysis framework
to Polymarket prediction market analysis. Covers data layer, 3-way
YES/NO/Timing debate structure, structured JSON output, and CLI changes.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 20:44:31 +09:00
Yijia Xiao
f362a160c3
Merge pull request #379 from yang1002378395-cmyk/fix-ssl-http-client-support
...
fix: add http_client support for SSL certificate customization
2026-03-15 16:53:04 -07:00
阳虎
64f07671b9
fix: add http_client support for SSL certificate customization
...
- Add http_client and http_async_client parameters to all LLM clients
- OpenAIClient, GoogleClient, AnthropicClient now support custom httpx clients
- Fixes SSL certificate verification errors on Windows Conda environments
- Users can now pass custom httpx.Client with verify=False or custom certs
Fixes #369
2026-03-16 07:41:20 +08:00
Yijia-Xiao
b19c5c18fb
docs: add v0.2.1 release note to README
2026-03-15 23:39:05 +00:00
Yijia-Xiao
551fd7f074
chore: update model lists, bump to v0.2.1, fix package build
...
- OpenAI: add GPT-5.4, GPT-5.4 Pro; remove o-series and legacy GPT-4o
- Anthropic: add Claude Opus 4.6, Sonnet 4.6; remove legacy 4.1/4.0/3.x
- Google: add Gemini 3.1 Pro, 3.1 Flash Lite; remove deprecated
gemini-3-pro-preview and Gemini 2.0 series
- xAI: clean up model list to match current API
- Simplify UnifiedChatOpenAI GPT-5 temperature handling
- Add missing tradingagents/__init__.py (fixes pip install building)
2026-03-15 23:34:50 +00:00
Yijia-Xiao
b0f9d180f9
fix: harden stock data parsing against malformed CSV and NaN values
...
Add _clean_dataframe() to normalize stock DataFrames before stockstats:
coerce invalid dates/prices, drop rows missing Close, fill price gaps.
Also add on_bad_lines="skip" to all cached CSV reads.
2026-03-15 18:29:43 +00:00
Yijia-Xiao
9cc283ac22
fix: add missing console import to cli/utils.py
...
Seven error-handling paths used console.print() but console was never
imported, causing NameError on invalid user input.
2026-03-15 18:21:05 +00:00
Yijia-Xiao
fe9c8d5d31
fix: handle comma-separated indicators in get_indicators tool
...
LLMs (especially smaller models) sometimes pass multiple indicator
names as a single comma-separated string instead of making separate
tool calls. Split and process each individually at the tool boundary.
2026-03-15 18:05:36 +00:00
Yijia-Xiao
eec6ca4b53
fix: initialize all debate state fields in propagation.py
...
InvestDebateState was missing bull_history, bear_history, judge_decision.
RiskDebateState was missing aggressive_history, conservative_history,
neutral_history, latest_speaker, judge_decision. This caused KeyError
in _log_state() and reflection, especially with edge-case config values.
2026-03-15 17:54:32 +00:00
Yijia-Xiao
3642f5917c
fix: add explicit UTF-8 encoding to all file open() calls
...
Prevents UnicodeEncodeError on Windows where the default encoding
(cp1252/gbk) cannot handle Unicode characters in LLM output.
Closes #77 , closes #114 , closes #126 , closes #215 , closes #332
2026-03-15 16:44:23 +00:00
makk9
907bc8022a
fix: pass debate round config to ConditionalLogic ( #361 )
...
* fix: pass max_debate_rounds and max_risk_discuss_rounds config to ConditionalLogic
* use config values
2026-03-15 09:31:59 -07:00
Yijia-Xiao
8a60662070
chore: remove unused chainlit dependency (CVE-2026-22218)
2026-03-15 16:16:42 +00:00
Yijia Xiao
f047f26df0
Merge pull request #341 from Ljx-007/fix/risk-manager-fundamental-report
...
fix(risk_manager): use correct state key for fundamentals report
2026-02-24 16:28:56 -08:00
Ljx-007
35856ff33e
fix(risk_manager): 修复基本面报告数据源错误
...
- 修正了fundamentals_report从news_report获取数据的问题
- 确保fundamentals_report正确使用fundamentals_report数据源
2026-02-09 18:21:21 +08:00
Yijia Xiao
5fec171a1e
chore: add build-system config and update version to 0.2.0
2026-02-07 08:26:51 +00:00
Yijia Xiao
50c82a25b5
chore: consolidate dependencies to pyproject.toml, remove setup.py
2026-02-07 08:18:46 +00:00
Yijia Xiao
8b3068d091
Merge pull request #335 from RinZ27/security/patch-langchain-core-vulnerability
...
security: Patch LangGrinch vulnerability (CVE-2025-68664) (#335 )
2026-02-07 00:04:44 -08:00
RinZ27
66a02b3193
security: patch LangGrinch vulnerability in langchain-core
2026-02-05 11:01:53 +07:00
Yijia Xiao
e9470b69c4
TradingAgents v0.2.0: Multi-Provider LLM Support & Optimizations ( #331 )
...
Release v0.2.0: Multi-Provider LLM Support
2026-02-03 23:13:43 -08:00
Yijia Xiao
b4b133eb2d
fix: add typer dependency
2026-02-04 00:39:15 +00:00
Yijia Xiao
80aab35119
docs: update README for v0.2.0 release
...
- TradingAgents v0.2.0 release
- Trading-R1 announcement
- Multi-provider LLM documentation
2026-02-04 00:13:10 +00:00
Yijia Xiao
393d4c6a1b
chore: add data_cache to .gitignore
2026-02-03 23:30:55 +00:00
Yijia Xiao
aba1880c8c
chore: update .gitignore to official Python template
2026-02-03 23:16:38 +00:00
Yijia Xiao
6cd35179fa
chore: clean up dependencies and fix Ollama auth
...
- Remove unused packages: praw, feedparser, eodhd, akshare, tushare, finnhub
- Fix Ollama requiring API key
2026-02-03 23:08:12 +00:00
Yijia Xiao
102b026d23
refactor: clean up codebase and streamline documentation
...
- Remove debug prints from vendor routing (interface.py)
- Simplify vendor fallback to only handle rate limits
- Reorder CLI provider menu: OpenAI, Google, Anthropic, xAI, OpenRouter, Ollama
- Remove dead files: local.py, reddit_utils.py, openai.py, google.py, googlenews_utils.py, yfin_utils.py
2026-02-03 22:27:20 +00:00
Yijia Xiao
224941d8c2
feat: add post-analysis report saving and fix display truncation
...
- Add save prompt after analysis with organized subfolder structure
- Fix report truncation by using sequential panels instead of Columns
- Add optional full report display prompt
2026-02-03 22:27:20 +00:00
Yijia Xiao
93b87d5119
fix: analyst status tracking and message deduplication
...
- Add update_analyst_statuses() for unified status logic (pending/in_progress/completed)
- Normalize analyst selection to predefined ANALYST_ORDER for consistent execution
- Add message deduplication to prevent duplicates from stream_mode=values
- Restructure streaming loop so state handlers run on every chunk
2026-02-03 22:27:20 +00:00
Yijia Xiao
54cdb146d0
feat: add footer statistics tracking with LangChain callbacks
...
- Add StatsCallbackHandler for tracking LLM calls, tool calls, and tokens
- Integrate callbacks into TradingAgentsGraph and all LLM clients
- Dynamic agent/report counts based on selected analysts
- Fix report completion counting (tied to agent completion)
2026-02-03 22:27:20 +00:00
Yijia Xiao
b06936f420
fix: improve data vendor implementations and tool signatures
...
- Add get_global_news for Alpha Vantage
- Fix get_insider_transactions signature (remove unused curr_date param)
- Remove unnecessary default params from API calls (sort, limit, tab)
2026-02-03 22:27:20 +00:00
Yijia Xiao
b75940e901
feat: add announcements panel fetching from api.tauric.ai/v1/announcements
2026-02-03 22:27:20 +00:00
Yijia Xiao
3d040f8da4
feat: add yfinance support to accommodate community request for stability and quota
2026-02-03 22:27:20 +00:00
Yijia Xiao
50961b2477
refactor: rename risky/safe agents to aggressive/conservative
2026-02-03 22:27:20 +00:00
Yijia Xiao
a3761bdd66
feat: update Ollama and OpenRouter model options
...
- Ollama: Add Qwen3 (8B), GPT-OSS (20B), GLM-4.7-Flash (30B)
- OpenRouter: Add NVIDIA Nemotron 3 Nano, Z.AI GLM 4.5 Air
- Add explicit Ollama provider handling in OpenAI client for consistency
2026-02-03 22:27:20 +00:00
Yijia Xiao
d4dadb82fc
feat: add multi-provider LLM support with thinking configurations
...
Models added:
- OpenAI: GPT-5.2, GPT-5.1, GPT-5, GPT-5 Mini, GPT-5 Nano, GPT-4.1
- Anthropic: Claude Opus 4.5/4.1, Claude Sonnet 4.5/4, Claude Haiku 4.5
- Google: Gemini 3 Pro/Flash, Gemini 2.5 Flash/Flash Lite
- xAI: Grok 4, Grok 4.1 Fast (Reasoning/Non-Reasoning)
Configs updated:
- Add unified thinking_level for Gemini (maps to thinking_level for Gemini 3,
thinking_budget for Gemini 2.5; handles Pro's lack of "minimal" support)
- Add OpenAI reasoning_effort configuration
- Add NormalizedChatGoogleGenerativeAI for consistent response handling
Fixes:
- Fix Bull/Bear researcher display truncation
- Replace ChromaDB with BM25 for memory retrieval
2026-02-03 22:27:20 +00:00
Yijia Xiao
79051580b8
feat: add multi-provider LLM support with factory pattern
...
- Add tradingagents/llm_clients/ with unified factory pattern
- Support OpenAI, Anthropic, Google, xAI, OpenRouter, Ollama, vLLM
- Replace direct LLM imports in trading_graph.py with create_llm_client()
- Handle provider-specific params (reasoning_effort, thinking_config)
2026-02-03 22:27:20 +00:00
Edward Sun
13b826a31d
Merge pull request #245 from TauricResearch/feat/tooloptim
...
Y Finance Tools Optimizations
2025-10-09 00:34:10 -07:00
Edward Sun
b2ef960da7
updated readme
2025-10-09 00:32:04 -07:00
Edward Sun
a5dcc7da45
update readme
2025-10-06 20:33:12 -07:00
Edward Sun
7bb2941b07
optimized yfin fetching to be much faster
2025-10-06 19:58:01 -07:00
Yijia Xiao
32be17c606
Merge pull request #235 from luohy15/data_vendor
...
Add Alpha Vantage API Integration and Refactor Data Provider Architecture
2025-10-05 16:01:30 -07:00
Edward Sun
c07dcf026b
added fallbacks for tools
2025-10-03 22:40:09 -07:00
luohy15
d23fb539e9
minor fix
2025-09-30 13:27:48 +08:00