zeus-options-terminal 0.7.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. zeus_options_terminal-0.7.0/.gitignore +83 -0
  2. zeus_options_terminal-0.7.0/CHANGELOG.md +200 -0
  3. zeus_options_terminal-0.7.0/CHANGELOG_zh.md +200 -0
  4. zeus_options_terminal-0.7.0/LICENSE +75 -0
  5. zeus_options_terminal-0.7.0/PKG-INFO +452 -0
  6. zeus_options_terminal-0.7.0/README.md +396 -0
  7. zeus_options_terminal-0.7.0/README_zh.md +396 -0
  8. zeus_options_terminal-0.7.0/pyproject.toml +106 -0
  9. zeus_options_terminal-0.7.0/requirements-optional.txt +7 -0
  10. zeus_options_terminal-0.7.0/requirements.txt +22 -0
  11. zeus_options_terminal-0.7.0/zeus/Dockerfile +59 -0
  12. zeus_options_terminal-0.7.0/zeus/Dockerfile.dockerignore +60 -0
  13. zeus_options_terminal-0.7.0/zeus/ai_picks/__init__.py +1 -0
  14. zeus_options_terminal-0.7.0/zeus/ai_picks/features.py +302 -0
  15. zeus_options_terminal-0.7.0/zeus/ai_picks/haiku_picks.py +122 -0
  16. zeus_options_terminal-0.7.0/zeus/ai_picks/notify.py +29 -0
  17. zeus_options_terminal-0.7.0/zeus/ai_picks/prompt.py +159 -0
  18. zeus_options_terminal-0.7.0/zeus/ai_picks/routes.py +67 -0
  19. zeus_options_terminal-0.7.0/zeus/ai_picks/runner.py +112 -0
  20. zeus_options_terminal-0.7.0/zeus/ai_picks/store.py +59 -0
  21. zeus_options_terminal-0.7.0/zeus/barchart/consolidate.py +206 -0
  22. zeus_options_terminal-0.7.0/zeus/barchart/core.py +188 -0
  23. zeus_options_terminal-0.7.0/zeus/barchart/pages.py +74 -0
  24. zeus_options_terminal-0.7.0/zeus/barchart/registry.py +183 -0
  25. zeus_options_terminal-0.7.0/zeus/barchart/scrape_pages.py +187 -0
  26. zeus_options_terminal-0.7.0/zeus/barchart/scrape_screener.py +378 -0
  27. zeus_options_terminal-0.7.0/zeus/benzinga/fetcher.py +358 -0
  28. zeus_options_terminal-0.7.0/zeus/benzinga/splitter.py +174 -0
  29. zeus_options_terminal-0.7.0/zeus/benzinga/store.py +189 -0
  30. zeus_options_terminal-0.7.0/zeus/benzinga_api/__init__.py +16 -0
  31. zeus_options_terminal-0.7.0/zeus/benzinga_api/_http.py +93 -0
  32. zeus_options_terminal-0.7.0/zeus/benzinga_api/account.py +19 -0
  33. zeus_options_terminal-0.7.0/zeus/benzinga_api/calendar.py +126 -0
  34. zeus_options_terminal-0.7.0/zeus/benzinga_api/scanner.py +43 -0
  35. zeus_options_terminal-0.7.0/zeus/benzinga_api/signals.py +94 -0
  36. zeus_options_terminal-0.7.0/zeus/benzinga_digest/argos_worker.py +79 -0
  37. zeus_options_terminal-0.7.0/zeus/benzinga_digest/backfill_bodies.py +419 -0
  38. zeus_options_terminal-0.7.0/zeus/benzinga_digest/src/benzinga_mcp/__init__.py +2 -0
  39. zeus_options_terminal-0.7.0/zeus/benzinga_digest/src/benzinga_mcp/client.py +579 -0
  40. zeus_options_terminal-0.7.0/zeus/benzinga_digest/src/benzinga_mcp/cookies.py +151 -0
  41. zeus_options_terminal-0.7.0/zeus/benzinga_digest/src/benzinga_mcp/digest.py +1409 -0
  42. zeus_options_terminal-0.7.0/zeus/benzinga_digest/src/benzinga_mcp/digest_store.py +178 -0
  43. zeus_options_terminal-0.7.0/zeus/benzinga_digest/src/benzinga_mcp/finviz_ai_store.py +135 -0
  44. zeus_options_terminal-0.7.0/zeus/benzinga_digest/src/benzinga_mcp/seen_store.py +142 -0
  45. zeus_options_terminal-0.7.0/zeus/benzinga_market_events/__init__.py +6 -0
  46. zeus_options_terminal-0.7.0/zeus/benzinga_market_events/archive_oa.py +122 -0
  47. zeus_options_terminal-0.7.0/zeus/benzinga_market_events/market_events.py +628 -0
  48. zeus_options_terminal-0.7.0/zeus/benzinga_market_events/market_events_api.py +412 -0
  49. zeus_options_terminal-0.7.0/zeus/benzinga_signals/__init__.py +9 -0
  50. zeus_options_terminal-0.7.0/zeus/benzinga_signals/signals_api.py +46 -0
  51. zeus_options_terminal-0.7.0/zeus/benzinga_signals/signals_feed.py +141 -0
  52. zeus_options_terminal-0.7.0/zeus/benzinga_signals/signals_view.py +138 -0
  53. zeus_options_terminal-0.7.0/zeus/defaults/etf_trends.txt +52 -0
  54. zeus_options_terminal-0.7.0/zeus/defaults/heatmap_universe.txt +16 -0
  55. zeus_options_terminal-0.7.0/zeus/defaults/industry_universe.txt +1 -0
  56. zeus_options_terminal-0.7.0/zeus/ema_pop_backtest/__init__.py +13 -0
  57. zeus_options_terminal-0.7.0/zeus/ema_pop_backtest/config.py +44 -0
  58. zeus_options_terminal-0.7.0/zeus/eod_crawler/api_client.py +67 -0
  59. zeus_options_terminal-0.7.0/zeus/eod_crawler/auth.py +104 -0
  60. zeus_options_terminal-0.7.0/zeus/eod_crawler/config.py +63 -0
  61. zeus_options_terminal-0.7.0/zeus/eod_crawler/crawl_server.py +286 -0
  62. zeus_options_terminal-0.7.0/zeus/eod_crawler/crawler.py +374 -0
  63. zeus_options_terminal-0.7.0/zeus/eod_crawler/market_calendar.py +87 -0
  64. zeus_options_terminal-0.7.0/zeus/heatmap/__init__.py +6 -0
  65. zeus_options_terminal-0.7.0/zeus/heatmap/backfill_daily.py +56 -0
  66. zeus_options_terminal-0.7.0/zeus/heatmap/cards.py +180 -0
  67. zeus_options_terminal-0.7.0/zeus/heatmap/daily_candles.py +257 -0
  68. zeus_options_terminal-0.7.0/zeus/heatmap/daily_store.py +170 -0
  69. zeus_options_terminal-0.7.0/zeus/heatmap/dxlink_stream.py +238 -0
  70. zeus_options_terminal-0.7.0/zeus/heatmap/earnings.py +390 -0
  71. zeus_options_terminal-0.7.0/zeus/heatmap/etf_trends.py +122 -0
  72. zeus_options_terminal-0.7.0/zeus/heatmap/heatmap.py +5771 -0
  73. zeus_options_terminal-0.7.0/zeus/heatmap/heatmap_api.py +1018 -0
  74. zeus_options_terminal-0.7.0/zeus/heatmap/metadata.py +323 -0
  75. zeus_options_terminal-0.7.0/zeus/heatmap/momentum.py +130 -0
  76. zeus_options_terminal-0.7.0/zeus/heatmap/risk_stats.py +214 -0
  77. zeus_options_terminal-0.7.0/zeus/heatmap/session.py +157 -0
  78. zeus_options_terminal-0.7.0/zeus/heatmap/stock_perf.py +103 -0
  79. zeus_options_terminal-0.7.0/zeus/journal_expiry_whatif/__init__.py +24 -0
  80. zeus_options_terminal-0.7.0/zeus/journal_expiry_whatif/engine.py +214 -0
  81. zeus_options_terminal-0.7.0/zeus/journal_review/__init__.py +11 -0
  82. zeus_options_terminal-0.7.0/zeus/journal_review/closed_yesterday.py +80 -0
  83. zeus_options_terminal-0.7.0/zeus/journal_review/engine.py +152 -0
  84. zeus_options_terminal-0.7.0/zeus/journal_review/insight.py +112 -0
  85. zeus_options_terminal-0.7.0/zeus/journal_review/kpi.py +114 -0
  86. zeus_options_terminal-0.7.0/zeus/journal_review/opened_yesterday.py +77 -0
  87. zeus_options_terminal-0.7.0/zeus/journal_review/rule_check.py +231 -0
  88. zeus_options_terminal-0.7.0/zeus/journal_review/watchlist_today.py +101 -0
  89. zeus_options_terminal-0.7.0/zeus/local_broker.py +1471 -0
  90. zeus_options_terminal-0.7.0/zeus/market_brief/__init__.py +0 -0
  91. zeus_options_terminal-0.7.0/zeus/market_brief/articles.py +111 -0
  92. zeus_options_terminal-0.7.0/zeus/market_brief/audit.py +166 -0
  93. zeus_options_terminal-0.7.0/zeus/market_brief/brief.py +331 -0
  94. zeus_options_terminal-0.7.0/zeus/market_brief/context.py +284 -0
  95. zeus_options_terminal-0.7.0/zeus/market_brief/groups.py +226 -0
  96. zeus_options_terminal-0.7.0/zeus/market_brief/groups_store.py +159 -0
  97. zeus_options_terminal-0.7.0/zeus/market_brief/options_pulse.py +352 -0
  98. zeus_options_terminal-0.7.0/zeus/market_brief/options_pulse_store.py +243 -0
  99. zeus_options_terminal-0.7.0/zeus/market_brief/premarket.py +73 -0
  100. zeus_options_terminal-0.7.0/zeus/market_brief/runner.py +324 -0
  101. zeus_options_terminal-0.7.0/zeus/market_brief/technicals.py +108 -0
  102. zeus_options_terminal-0.7.0/zeus/narratives/build.py +134 -0
  103. zeus_options_terminal-0.7.0/zeus/narratives/claude_login.py +121 -0
  104. zeus_options_terminal-0.7.0/zeus/narratives/company_profile.py +376 -0
  105. zeus_options_terminal-0.7.0/zeus/narratives/digest_summary.py +470 -0
  106. zeus_options_terminal-0.7.0/zeus/narratives/haiku.py +142 -0
  107. zeus_options_terminal-0.7.0/zeus/narratives/pool.py +171 -0
  108. zeus_options_terminal-0.7.0/zeus/narratives/search_pool.py +115 -0
  109. zeus_options_terminal-0.7.0/zeus/narratives/store.py +89 -0
  110. zeus_options_terminal-0.7.0/zeus/narratives/universe.py +59 -0
  111. zeus_options_terminal-0.7.0/zeus/news_radar/benzinga_client/__init__.py +20 -0
  112. zeus_options_terminal-0.7.0/zeus/news_radar/benzinga_client/client.py +584 -0
  113. zeus_options_terminal-0.7.0/zeus/news_radar/benzinga_client/cookies.py +154 -0
  114. zeus_options_terminal-0.7.0/zeus/news_radar/store.py +387 -0
  115. zeus_options_terminal-0.7.0/zeus/options_analyzer/aisum_schedule.py +55 -0
  116. zeus_options_terminal-0.7.0/zeus/options_analyzer/backtest_runner.py +1083 -0
  117. zeus_options_terminal-0.7.0/zeus/options_analyzer/bilingual_merge.py +50 -0
  118. zeus_options_terminal-0.7.0/zeus/options_analyzer/checkup/__init__.py +6 -0
  119. zeus_options_terminal-0.7.0/zeus/options_analyzer/checkup/concentration.py +44 -0
  120. zeus_options_terminal-0.7.0/zeus/options_analyzer/checkup/correlation.py +128 -0
  121. zeus_options_terminal-0.7.0/zeus/options_analyzer/checkup/engine.py +181 -0
  122. zeus_options_terminal-0.7.0/zeus/options_analyzer/checkup/exit_advisor.py +68 -0
  123. zeus_options_terminal-0.7.0/zeus/options_analyzer/checkup/liquidity.py +232 -0
  124. zeus_options_terminal-0.7.0/zeus/options_analyzer/checkup/mirror.py +181 -0
  125. zeus_options_terminal-0.7.0/zeus/options_analyzer/checkup/price_check.py +97 -0
  126. zeus_options_terminal-0.7.0/zeus/options_analyzer/checkup/prices.py +87 -0
  127. zeus_options_terminal-0.7.0/zeus/options_analyzer/checkup/rally_reference.json +451 -0
  128. zeus_options_terminal-0.7.0/zeus/options_analyzer/checkup/recommend.py +171 -0
  129. zeus_options_terminal-0.7.0/zeus/options_analyzer/checkup/regime.py +151 -0
  130. zeus_options_terminal-0.7.0/zeus/options_analyzer/checkup/risk_radar.py +302 -0
  131. zeus_options_terminal-0.7.0/zeus/options_analyzer/checkup/risk_radar_data.json +187 -0
  132. zeus_options_terminal-0.7.0/zeus/options_analyzer/checkup/risk_radar_reference.json +56 -0
  133. zeus_options_terminal-0.7.0/zeus/options_analyzer/checkup/rules.py +81 -0
  134. zeus_options_terminal-0.7.0/zeus/options_analyzer/checkup/trend.py +64 -0
  135. zeus_options_terminal-0.7.0/zeus/options_analyzer/credit_spread_alert.py +185 -0
  136. zeus_options_terminal-0.7.0/zeus/options_analyzer/digest_liked.py +84 -0
  137. zeus_options_terminal-0.7.0/zeus/options_analyzer/exit_alert_push.py +230 -0
  138. zeus_options_terminal-0.7.0/zeus/options_analyzer/history_news.py +215 -0
  139. zeus_options_terminal-0.7.0/zeus/options_analyzer/history_news_api.py +311 -0
  140. zeus_options_terminal-0.7.0/zeus/options_analyzer/journal_review_page.py +481 -0
  141. zeus_options_terminal-0.7.0/zeus/options_analyzer/missing_gtc.py +138 -0
  142. zeus_options_terminal-0.7.0/zeus/options_analyzer/mustread.py +310 -0
  143. zeus_options_terminal-0.7.0/zeus/options_analyzer/options_vol/__init__.py +7 -0
  144. zeus_options_terminal-0.7.0/zeus/options_analyzer/options_vol/adr.py +72 -0
  145. zeus_options_terminal-0.7.0/zeus/options_analyzer/options_vol/api.py +274 -0
  146. zeus_options_terminal-0.7.0/zeus/options_analyzer/options_vol/build_summary.py +121 -0
  147. zeus_options_terminal-0.7.0/zeus/options_analyzer/options_vol/classify.py +138 -0
  148. zeus_options_terminal-0.7.0/zeus/options_analyzer/options_vol/core_universe.py +56 -0
  149. zeus_options_terminal-0.7.0/zeus/options_analyzer/options_vol/eod_pc.py +283 -0
  150. zeus_options_terminal-0.7.0/zeus/options_analyzer/options_vol/page.py +496 -0
  151. zeus_options_terminal-0.7.0/zeus/options_analyzer/options_vol/refresh.py +200 -0
  152. zeus_options_terminal-0.7.0/zeus/options_analyzer/options_vol/run_optvol.sh +33 -0
  153. zeus_options_terminal-0.7.0/zeus/options_analyzer/options_vol/scrape_history.py +244 -0
  154. zeus_options_terminal-0.7.0/zeus/options_analyzer/options_vol/screener_base.py +151 -0
  155. zeus_options_terminal-0.7.0/zeus/options_analyzer/options_vol/sync_consumers.py +293 -0
  156. zeus_options_terminal-0.7.0/zeus/options_analyzer/options_vol/universe.py +84 -0
  157. zeus_options_terminal-0.7.0/zeus/options_analyzer/optionstrat_analyzer.py +7806 -0
  158. zeus_options_terminal-0.7.0/zeus/options_analyzer/optionstrat_server.py +19296 -0
  159. zeus_options_terminal-0.7.0/zeus/options_analyzer/paper_trade.py +1305 -0
  160. zeus_options_terminal-0.7.0/zeus/options_analyzer/paper_trade_api.py +518 -0
  161. zeus_options_terminal-0.7.0/zeus/options_analyzer/paper_trade_routes.py +256 -0
  162. zeus_options_terminal-0.7.0/zeus/options_analyzer/positions_ai.py +278 -0
  163. zeus_options_terminal-0.7.0/zeus/options_analyzer/power_mode.py +46 -0
  164. zeus_options_terminal-0.7.0/zeus/options_analyzer/pretrade_checkup_page.py +435 -0
  165. zeus_options_terminal-0.7.0/zeus/options_analyzer/static/dl_time_fmt.js +77 -0
  166. zeus_options_terminal-0.7.0/zeus/options_analyzer/static/i18n_en.json +1 -0
  167. zeus_options_terminal-0.7.0/zeus/options_analyzer/static/icon-192.png +0 -0
  168. zeus_options_terminal-0.7.0/zeus/options_analyzer/static/icon-512.png +0 -0
  169. zeus_options_terminal-0.7.0/zeus/options_analyzer/static/manifest.json +21 -0
  170. zeus_options_terminal-0.7.0/zeus/options_analyzer/static/market_chart.js +678 -0
  171. zeus_options_terminal-0.7.0/zeus/options_analyzer/static/settings.html +501 -0
  172. zeus_options_terminal-0.7.0/zeus/options_analyzer/static/sw.js +21 -0
  173. zeus_options_terminal-0.7.0/zeus/options_analyzer/static/ta_filters.js +265 -0
  174. zeus_options_terminal-0.7.0/zeus/options_analyzer/static/zeus.css +90 -0
  175. zeus_options_terminal-0.7.0/zeus/options_analyzer/static/zeus.js +557 -0
  176. zeus_options_terminal-0.7.0/zeus/options_analyzer/static/zeus_help.js +891 -0
  177. zeus_options_terminal-0.7.0/zeus/options_analyzer/static/zeus_lang.js +25 -0
  178. zeus_options_terminal-0.7.0/zeus/options_analyzer/strategy_builder_api.py +1138 -0
  179. zeus_options_terminal-0.7.0/zeus/pre_trade_checkup/__init__.py +14 -0
  180. zeus_options_terminal-0.7.0/zeus/pre_trade_checkup/cli.py +136 -0
  181. zeus_options_terminal-0.7.0/zeus/pre_trade_checkup/config.py +39 -0
  182. zeus_options_terminal-0.7.0/zeus/pre_trade_checkup/data_sources.py +126 -0
  183. zeus_options_terminal-0.7.0/zeus/pre_trade_checkup/engine.py +90 -0
  184. zeus_options_terminal-0.7.0/zeus/pre_trade_checkup/layer1_trend.py +106 -0
  185. zeus_options_terminal-0.7.0/zeus/pre_trade_checkup/layer2_touch.py +100 -0
  186. zeus_options_terminal-0.7.0/zeus/pre_trade_checkup/layer3_iv_earnings.py +76 -0
  187. zeus_options_terminal-0.7.0/zeus/pre_trade_checkup/layer4_macro.py +132 -0
  188. zeus_options_terminal-0.7.0/zeus/premarket/fetch.mjs +283 -0
  189. zeus_options_terminal-0.7.0/zeus/premarket/login.mjs +165 -0
  190. zeus_options_terminal-0.7.0/zeus/premarket/package-lock.json +1574 -0
  191. zeus_options_terminal-0.7.0/zeus/premarket/package.json +24 -0
  192. zeus_options_terminal-0.7.0/zeus/sec_filings/__init__.py +6 -0
  193. zeus_options_terminal-0.7.0/zeus/sec_filings/sec_api.py +413 -0
  194. zeus_options_terminal-0.7.0/zeus/sec_filings/sec_filings.py +774 -0
  195. zeus_options_terminal-0.7.0/zeus/sec_filings/transcript.py +189 -0
  196. zeus_options_terminal-0.7.0/zeus/sr_alert/__init__.py +16 -0
  197. zeus_options_terminal-0.7.0/zeus/sr_alert/detect.py +78 -0
  198. zeus_options_terminal-0.7.0/zeus/sr_alert/enrich.py +190 -0
  199. zeus_options_terminal-0.7.0/zeus/sr_alert/log.py +112 -0
  200. zeus_options_terminal-0.7.0/zeus/sr_alert/message.py +28 -0
  201. zeus_options_terminal-0.7.0/zeus/sr_alert/zones.py +50 -0
  202. zeus_options_terminal-0.7.0/zeus/stock_picker/__init__.py +22 -0
  203. zeus_options_terminal-0.7.0/zeus/stock_picker/config.py +88 -0
  204. zeus_options_terminal-0.7.0/zeus/stock_picker/filters.py +203 -0
  205. zeus_options_terminal-0.7.0/zeus/stock_picker/loader.py +180 -0
  206. zeus_options_terminal-0.7.0/zeus/stock_picker/strike_engine.py +200 -0
  207. zeus_options_terminal-0.7.0/zeus/stock_selector/__init__.py +26 -0
  208. zeus_options_terminal-0.7.0/zeus/stock_selector/config.py +65 -0
  209. zeus_options_terminal-0.7.0/zeus/stock_selector/engine.py +446 -0
  210. zeus_options_terminal-0.7.0/zeus/stock_selector/ranker.py +67 -0
  211. zeus_options_terminal-0.7.0/zeus/stock_selector/sonnet_analyzer.py +305 -0
  212. zeus_options_terminal-0.7.0/zeus/stock_selector/strategies.py +123 -0
  213. zeus_options_terminal-0.7.0/zeus/stock_selector/tt_strikes.py +190 -0
  214. zeus_options_terminal-0.7.0/zeus/ta_screener/__init__.py +0 -0
  215. zeus_options_terminal-0.7.0/zeus/ta_screener/api.py +524 -0
  216. zeus_options_terminal-0.7.0/zeus/ta_screener/backtest.py +357 -0
  217. zeus_options_terminal-0.7.0/zeus/ta_screener/build_pool.py +165 -0
  218. zeus_options_terminal-0.7.0/zeus/ta_screener/data.py +311 -0
  219. zeus_options_terminal-0.7.0/zeus/ta_screener/engine.py +992 -0
  220. zeus_options_terminal-0.7.0/zeus/ta_screener/external.py +179 -0
  221. zeus_options_terminal-0.7.0/zeus/ta_screener/oaflow.py +84 -0
  222. zeus_options_terminal-0.7.0/zeus/ta_screener/optmetrics.py +310 -0
  223. zeus_options_terminal-0.7.0/zeus/ta_screener/page.py +1189 -0
  224. zeus_options_terminal-0.7.0/zeus/ta_screener/scanner.py +302 -0
  225. zeus_options_terminal-0.7.0/zeus/ta_screener/scheduler.py +75 -0
  226. zeus_options_terminal-0.7.0/zeus/ta_screener/spreads.py +366 -0
  227. zeus_options_terminal-0.7.0/zeus/trade_journal/ai_review.py +143 -0
  228. zeus_options_terminal-0.7.0/zeus/trade_journal/api_client.py +142 -0
  229. zeus_options_terminal-0.7.0/zeus/trade_journal/auth.py +144 -0
  230. zeus_options_terminal-0.7.0/zeus/trade_journal/calendar_events.py +385 -0
  231. zeus_options_terminal-0.7.0/zeus/trade_journal/config.py +14 -0
  232. zeus_options_terminal-0.7.0/zeus/trade_journal/dashboard.html +5660 -0
  233. zeus_options_terminal-0.7.0/zeus/trade_journal/fetch_trades.py +206 -0
  234. zeus_options_terminal-0.7.0/zeus/trade_journal/journal_entries.py +1525 -0
  235. zeus_options_terminal-0.7.0/zeus/trade_journal/journal_greeks.py +514 -0
  236. zeus_options_terminal-0.7.0/zeus/trade_journal/journal_stats.py +1269 -0
  237. zeus_options_terminal-0.7.0/zeus/trade_journal/price_tracker.py +517 -0
  238. zeus_options_terminal-0.7.0/zeus/trade_journal/trade_economics.py +100 -0
  239. zeus_options_terminal-0.7.0/zeus/trade_journal/weekly_review_push.py +113 -0
  240. zeus_options_terminal-0.7.0/zeus/trade_journal/weekly_reviews.py +160 -0
  241. zeus_options_terminal-0.7.0/zeus/trade_journal/whatif_engine.py +602 -0
  242. zeus_options_terminal-0.7.0/zeus/trading_assistant/api_client.py +165 -0
  243. zeus_options_terminal-0.7.0/zeus/trading_assistant/auth.py +75 -0
  244. zeus_options_terminal-0.7.0/zeus/trading_assistant/config.py +108 -0
  245. zeus_options_terminal-0.7.0/zeus/trading_assistant/investing_com_news.py +118 -0
  246. zeus_options_terminal-0.7.0/zeus/trading_assistant/news_collector.py +330 -0
  247. zeus_options_terminal-0.7.0/zeus/trading_assistant/scanner.py +391 -0
  248. zeus_options_terminal-0.7.0/zeus/trading_assistant/screener_runner.py +501 -0
  249. zeus_options_terminal-0.7.0/zeus/trading_assistant/ticker_metrics.py +138 -0
  250. zeus_options_terminal-0.7.0/zeus/trading_assistant/yahoo_api.py +96 -0
  251. zeus_options_terminal-0.7.0/zeus/zeus_ai.py +193 -0
  252. zeus_options_terminal-0.7.0/zeus/zeus_ai_cli.py +66 -0
  253. zeus_options_terminal-0.7.0/zeus/zeus_brokers.py +833 -0
  254. zeus_options_terminal-0.7.0/zeus/zeus_cli.py +83 -0
  255. zeus_options_terminal-0.7.0/zeus/zeus_config.py +663 -0
  256. zeus_options_terminal-0.7.0/zeus/zeus_finviz.py +142 -0
  257. zeus_options_terminal-0.7.0/zeus/zeus_mail.py +208 -0
  258. zeus_options_terminal-0.7.0/zeus/zeus_mcp.py +1626 -0
  259. zeus_options_terminal-0.7.0/zeus/zeus_mcp_stdio.py +218 -0
  260. zeus_options_terminal-0.7.0/zeus/zeus_news.py +276 -0
  261. zeus_options_terminal-0.7.0/zeus/zeus_payoff.py +329 -0
  262. zeus_options_terminal-0.7.0/zeus/zeus_routes.py +295 -0
@@ -0,0 +1,83 @@
1
+ # ── ZEUS Terminal: nothing personal ever goes into git ─────────────────────────
2
+ # Settings, tokens, cookies, passwords and uploaded trades live in ~/.zeus-terminal/
3
+ # and all runtime data lives in ~/.zeus-terminal/runtime/ — both outside this folder.
4
+ # The runtime directories below are links to that place (or plain folders where links
5
+ # are not allowed). Patterns have NO trailing slash so links are ignored too.
6
+ # all code lives in zeus/, so its runtime links do too:
7
+ data
8
+ zeus/options_analyzer/data
9
+ zeus/trade_journal/data
10
+ zeus/pre_trade_checkup/data
11
+ zeus/stock_picker/data
12
+ zeus/eod_crawler/data_eod
13
+ zeus/eod_crawler/logs
14
+ zeus/barchart/downloads
15
+ zeus/barchart/snapshots
16
+ zeus/benzinga_digest/digests
17
+ zeus/benzinga_digest/ai_summary
18
+ zeus/benzinga_digest/pivot_summary
19
+ zeus/benzinga_digest/finviz_ai
20
+ zeus/trading_assistant/data
21
+ zeus/trading_assistant/reports
22
+ zeus/winrate_scanner/data
23
+ zeus/benzinga/data
24
+ # the same links at the old place, left behind by versions before 0.5.1 (removed at start):
25
+ options_analyzer/data
26
+ trade_journal/data
27
+ pre_trade_checkup/data
28
+ stock_picker/data
29
+ eod_crawler/data_eod
30
+ eod_crawler/logs
31
+ barchart/downloads
32
+ barchart/snapshots
33
+ benzinga_digest/digests
34
+ benzinga_digest/ai_summary
35
+ benzinga_digest/pivot_summary
36
+ benzinga_digest/finviz_ai
37
+ trading_assistant/data
38
+ trading_assistant/reports
39
+ winrate_scanner/data
40
+ benzinga/data
41
+
42
+ # any trade / journal dumps that end up here by habit
43
+ trades_raw.json
44
+ *.parquet
45
+ *.zst
46
+ *.jsonl
47
+ *.sqlite
48
+ *.db
49
+ *.log
50
+ logs/
51
+
52
+ # credentials, in case someone drops a file here
53
+ .env
54
+ .env.*
55
+ *.env
56
+ keys.env
57
+ *credentials*
58
+ *cookies*.json
59
+ *cookie*.txt
60
+ *token*.json
61
+ *token*.txt
62
+ *secret*
63
+ password*
64
+ client_id.txt
65
+ client_secret.txt
66
+ refresh_token.txt
67
+ data_apikey.txt
68
+ *.pem
69
+ *.key
70
+ *.p12
71
+
72
+ # python / node / editors / OS
73
+ __pycache__/
74
+ *.pyc
75
+ .venv/
76
+ venv/
77
+ .pytest_cache/
78
+ node_modules/
79
+ .idea/
80
+ .vscode/
81
+ .DS_Store
82
+ Thumbs.db
83
+ .ruff_cache/
@@ -0,0 +1,200 @@
1
+ # Changelog
2
+
3
+ [中文 → CHANGELOG_zh.md](CHANGELOG_zh.md) · [User manual](docs/USER_GUIDE.md) · [Back to README](README.md)
4
+
5
+ What changed in each version of ZEUS Terminal. New features carry the <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> badge. Numbers in parentheses are the pull requests.
6
+
7
+ ## 0.7.0 — 2026-11-12
8
+
9
+ ### New features
10
+
11
+ | | Feature | Read more |
12
+ |---|---|---|
13
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **📦 pip and pipx**: `pipx install zeus-options-terminal`, then `zeus`, installs and starts ZEUS without cloning the code. `zeus --port 8790`, `--no-browser` and `--version` work as you would expect, and `zeus-terminal` is the same command. Settings and data stay in `~/.zeus-terminal`, so `pipx upgrade` keeps them. (#61) | [Install with pipx →](docs/USER_GUIDE.md#18-install-with-pipx) |
14
+
15
+ ### Project
16
+
17
+ - `pyproject.toml` builds the wheel from the `zeus/` folder as it is, with the version from `APP_VERSION` and the dependencies of `requirements.txt`; a test keeps them equal. Every pull request builds the wheel, installs it in a clean environment and starts `zeus` from it (`tools/package_smoke.sh`). (#61)
18
+ - Each release is uploaded to PyPI by the Release workflow through trusted publishing, so no token is stored, and only after the same check has passed. (#61)
19
+
20
+ ## 0.6.0 — 2026-11-12
21
+
22
+ ### New features
23
+
24
+ | | Feature | Read more |
25
+ |---|---|---|
26
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **🐳 Run with Docker**: `docker run -d --name zeus --restart unless-stopped -p 127.0.0.1:8765:8765 -v zeus-data:/data ghcr.io/jackson-cmd/zeus-options-terminal:latest` starts ZEUS without Python, on Intel, AMD and ARM. Your settings, trades and caches live in the `zeus-data` volume and survive updates; ZEUS runs as an ordinary user that cannot change its code; the port stays on 127.0.0.1. The image runs on New York time; `-e TZ=` sets your own. (#59) | [Manual §1.7](docs/USER_GUIDE.md#17-run-with-docker) |
27
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **AI agents and Docker**: agents on your computer start ZEUS's MCP bridge inside the container with `docker exec`, and ⚙ Settings → AI agents shows those commands when ZEUS runs in Docker. Over HTTP, MCP in the container answers your computer only when you start it with `-e ZEUS_MCP_FROM_HOST=1`. (#59) | [Manual §18.2](docs/USER_GUIDE.md#182-connect-your-agent) |
28
+
29
+ ### Fixed
30
+
31
+ - A model server on this computer at `127.0.0.1`, or at `host.docker.internal` from the container, is now used without an API key, as `localhost` already was. (#59)
32
+ - When the code folder is read-only and a runtime link under `zeus/` cannot be changed, ZEUS now names the folder at start instead of stopping with an error. (#59)
33
+
34
+ ### Project
35
+
36
+ - Each release builds the image for amd64 and arm64, starts it and checks the page, the status API, the localhost checks, the sample portfolio, MCP and a restart (`tools/docker_smoke.sh`), then pushes it to GitHub Packages as `0.6.0`, `0.6` and `latest` with a signed build provenance. Pull requests that change the image get the same check without pushing. (#59)
37
+ - The Dockerfile sits in `zeus/` with its ignore file, so the top of the repository stays at 20 entries. (#59)
38
+
39
+ ## 0.5.2 — 2026-11-12
40
+
41
+ ### Security
42
+
43
+ - A page on another website could make your browser call `/api/stock_selector?today=…` on the local ZEUS server, and ZEUS wrote the screener result to the path given in `today`. Such a page could create or overwrite `.json` files outside ZEUS's folders and start a screener run. `today` must now be a date; anything else gets an error, and nothing is read or written. (#56)
44
+ - Every cache file named after a date, a ticker or a scope now checks that value itself: AI summaries, pivot summaries, news translations, must-read marks, AI picks, the news and Finviz archives, and the market-event archives. Dates are rebuilt from the day they name and path characters are replaced, so no value from a request can lead outside its folder, on Windows either. (#56)
45
+ - News links lose their tracking parameters only when the host really is wsj.com or marketwatch.com, not whenever the text appears somewhere in the link. (#56)
46
+ - The optional Benzinga helper in `zeus/premarket` takes the fixed releases of ws, tar-fs, basic-ftp, ip-address, js-yaml and brace-expansion and drops csv-parse, which it never used. `npm run scrape` now runs `fetch.mjs`, the script that exists. If you use the helper, run `npm install` in `zeus/premarket` again. (#56)
47
+
48
+ ## 0.5.1 — 2026-11-12
49
+
50
+ ### Project
51
+
52
+ - All code now lives in one folder, `zeus/`. The top of the repository keeps the README, license, changelogs, docs, website, tests and start scripts, so the README shows up near the top of the GitHub page: the root went from 57 entries to 20. (#45)
53
+ - Starting is unchanged (`./start.sh`, `start.command`, `start.bat`), and settings and data in `~/.zeus-terminal` are not touched. After `git pull`, the next start makes the runtime links under `zeus/` and removes the old ones at the top. It only removes links that point into `~/.zeus-terminal/runtime`; folders and other links are never touched. (#45)
54
+ - If you connected Claude Desktop through the stdio bridge, copy the snippet from Settings → AI agents again: the bridge is now `zeus/zeus_mcp_stdio.py`. (#45)
55
+ - The README opens with a banner, a 14-second tour of the pages, the quick start and who ZEUS is for, in English and Chinese. The README and CONTRIBUTING draw the new folder layout. (#47)
56
+
57
+ ### Fixed
58
+
59
+ - **Remove the sample** said it failed and left the sample in place: its request was taken by the route that deletes one trade by id. (#45)
60
+ - When Cboe's free quotes answered "too many requests", the sample portfolio came out with only some of its positions. A failed Cboe request also stayed failed for 2 minutes. Cboe is now asked again after 15 s, and the sample prices from Yahoo Finance's option chains when Cboe is busy, using the last price when Yahoo has no bid or ask at night. (#45)
61
+
62
+ ## 0.5.0 — 2026-11-12
63
+
64
+ ### New features
65
+
66
+ | | Feature | Read more |
67
+ |---|---|---|
68
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **🔌 Alpaca and Public**: connect an Alpaca account (free, paper trading included; keys starting PK are paper, AK live) or a Public account. Positions, balances, fills (for the journal) and working orders (for the missing take-profit alarm) are read from it; ZEUS never places, changes or cancels an order there. Alpaca's free data gives IEX stock prices in real time and options at indicative prices with Greeks and IV; Public gives its customers real-time quotes, chains and Greeks. (#39) | [Manual §2.2](docs/USER_GUIDE.md#22-connect-a-broker) |
69
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **Positions and quotes are separate choices**: *Positions come from* (auto, tastytrade, alpaca, public, manual) and *Quotes come from* (auto, free, alpaca, public). Index levels such as SPX and VIX, anything a broker leaves out (prior close, IV, Greeks) and everything during a broker error (rate limit, expired key) come from the free sources. Settings shows a card for each source and says so when a broker was picked but its keys are missing. Switching needs no restart. (#39) | [Manual §2.1](docs/USER_GUIDE.md#21-choose-how-your-positions-get-in) |
70
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **Settings → Broker & data**: a comparison table, then one block per broker with what it gives, a link to get keys and its own **Test connection** (the account, paper or live, the options level, positions, a live AAPL price, SPY option quotes with Greeks); the manual block has **Test free quotes**. (#39) | [Manual §2.7](docs/USER_GUIDE.md#27-every-setting) |
71
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **🧪 Sample portfolio and a welcome card**: with no positions, the Positions page offers three ways in: load the sample, connect a broker, upload your trades. The sample is six positions (AAPL shares, SPY bull put spread, NVDA bull call spread, QQQ iron condor, MSFT call, TSLA short put) and one closed AMD trade, with strikes, expirations and prices from that moment's real option quotes. A bar marks it; **Remove the sample** deletes only those trades. (#39) | [Manual §2.1](docs/USER_GUIDE.md#21-choose-how-your-positions-get-in) |
72
+
73
+ ### Fixed
74
+
75
+ - Esc now closes the topmost pop-up everywhere. The checkup ignored it because the cursor sits in its ticker box. The AI position review, AI picks, news AI summary and earnings pop-ups were not on Esc's list. (#39)
76
+ - The 🌐 translation panel stayed open over every page until clicked again, covering the Positions toolbar and column headers. It now closes on Esc, a click outside it and a tab switch, and its notes wrap inside the panel. (#39)
77
+ - A first visit opened the daily movers pop-up about 2 s in and switched to the Picker, so a new user never saw how to start. It no longer pops on a first visit or while the welcome card is waiting. (#39)
78
+ - The Trade Journal without data showed the stand-alone tool's instructions (trades_raw.json, `python -m http.server`). It now explains how the journal fills up and checks again every 10 s. (#39)
79
+ - Uploaded trades' times were converted to UTC as EDT all year, an hour off in winter; they now use New York time. (#39)
80
+
81
+ ## 0.4.2 — 2026-11-12
82
+
83
+ ### Fixed
84
+
85
+ - Top bar: about 2 s after a page loads, the 🌐 button fills in the translation engine’s name. From then on the last tab, 🧪 Paper Trade, could still be cut off: in English at about 1100 px, and in bilingual mode up to about 1240 px, where the name also got an English gloss. The name now shows only on windows wider than 1240 px; the 🌐 tooltip and pop-up always show it. Bilingual mode no longer glosses it. All six tabs fit from 1024 px up in every language, measured after the name has loaded. (#36)
86
+
87
+ ## 0.4.1 — 2026-11-12
88
+
89
+ ### New features
90
+
91
+ | | Feature | Read more |
92
+ |---|---|---|
93
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **More ? cards**: the ⚠ risk view (stress columns and totals, upside, Captured and → Max profit, portfolio Greeks, expiration ladder, Theta runway, Monte Carlo), the 🌊 liquidity scan (the 🟢 🟡 🔴 rules and ★, the cross-week table), the 📡 risk radar (today's news risk, the 30-day event density, the landmine lifts), and on the TA screener the earnings column and the key-levels panel. Each card quotes the formulas and thresholds of the code that computes the number. While the risk view, the radar or the liquidity scan is open, the top bar's ? lists its cards. (#34) | [Manual §3.1](docs/USER_GUIDE.md#31-help-on-every-page) |
94
+
95
+ ### Fixed
96
+
97
+ - Bilingual mode: a column header with a ? icon lost part of its English label, so "Signal win rate (SSP/MACD/RSI/Vol)" read "Signal win rate". The label now leaves the icon out. (#34)
98
+ - The manual and the feature list said the TA screener suggests a bear put spread for bearish signals. It suggests bull call spreads only and shows the direction for bearish tickers; both now say so. (#34)
99
+
100
+ ### Project
101
+
102
+ - `tests/test_help_numbers.py` compares the numbers the new cards quote with the analyzer, `checkup/risk_radar.py`, `checkup/liquidity.py` and `ta_screener/engine.py`, checks which page the guide lists while an overlay is open, and checks a bilingual header label with an icon inside. (#34)
103
+
104
+ ## 0.4.0 — 2026-11-12
105
+
106
+ ### New features
107
+
108
+ | | Feature | Read more |
109
+ |---|---|---|
110
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **❓ Help on every page**: a small ? beside the columns, scores and cards opens a card that says what the item is, how it is calculated and how to use it, written in Chinese and English. The ? in the top bar (a round ? on the TA screener, the pre-trade checkup and the journal review) lists every button and number on the page you are on, with search and **Show me on the page**. Press ? to open it. (#32) | [Manual §3.1](docs/USER_GUIDE.md#31-help-on-every-page) |
111
+
112
+ ### Fixed
113
+
114
+ - TA screener: the help behind its ? icons was in Chinese only and partly out of date; it still described option and order-flow points that the score no longer counts. Its ? icons now open the new cards in the interface language, checked against the scoring code, and the score column has a ? of its own. (#32)
115
+ - Top bar: in bilingual mode the tabs sit a little closer below 1240 px, so all six still fit next to the new ? button. (#32)
116
+
117
+ ## 0.3.1 — 2026-11-12
118
+
119
+ ### Fixed
120
+
121
+ - Top bar: the ◐ Manual badge covered 🧪 Paper Trade in narrower windows. It is gone from the top bar; the mode and the number of manual trades are on the first card in ⚙ Settings and in the ⚙ tooltip. Below 1240 px the tabs sit closer together, so all six fit from 1024 px up in every language. (#26)
122
+ - Picker → 🧭 Market Brief: the empty brief pointed to a 🔄 Re-analyze button that was not there. The brief's header (🔄 Re-analyze and the date) and its sub-tabs 🧭 Market brief · 🔄 Sector rotation · 🎲 Options sentiment now show in the Picker, as the [manual](docs/USER_GUIDE.md#65-market-brief) describes. (#26)
123
+ - Sector rotation chart: labels no longer print over each other in a narrow window (every second or third bar is labelled instead), English group names are shortened to fit instead of running off the chart, the first labels stay inside it, and the ±% scale moved to the left margin, where the bars cannot cover it. (#26)
124
+ - The movers notice in the top right corner no longer blocks clicks on the buttons under it while it is on screen. (#26)
125
+ - The movers notice moved from the top right corner, where it covered the Market Brief's 🔄 Re-analyze button for a few seconds, to the bottom of the window. When it opened the chart wall while 🧭 Market Brief was showing, the two were stacked on one page; the Picker now switches over to the chart wall completely. (#28)
126
+ - English interface: many sentences came out as word salad, such as "future30-day event density", "Chip leader's earnings report=Sector level landmine:bad earnings report day…" or "Recently≥2%down". They now read as whole English sentences in the 📡 risk radar and its data panels, the 🩺 checkup, the liquidity scan, the positions risk view (portfolio Greeks, Monte Carlo, Theta runway), exit advice and take-profit alerts, the 🔔 alert settings, the digest status lines, sector rotation, the picker's controls, risk map and ETF trends, the trade journal's analysis cards and chart notes, the daily review page, the pre-trade checkup page and the TA page. (#30)
127
+ - Bilingual mode: labels keep their numbers and Latin words ("7 days", "Hide ETF groups") instead of dropping them, and labels such as "💹 Option volume stability · Not crawled yet" keep their separators. (#30)
128
+ - Tickers and names inside translated text are no longer split ("SOXX", "MarketWatch"). (#30)
129
+
130
+ ### Project
131
+
132
+ - `static/zeus_lang.js` gives page scripts `zt(zh, en)` and `ztt(zh, en)` before they run, so a sentence built with numbers carries its English where it is built; the server sends English next to Chinese where it builds such sentences (`label_en`, `reasons_en`, `insight_en`, `headline_en`…). The dictionary lookup in `zeus.js` finds a sentence through line breaks, emoji and colons around it, and translates the parts of a line joined by " · " or " — " one by one. About 350 sentences were added to `i18n_en.json` and 24 wrong ones corrected ("流动性体检" read "Mobile medical check-up", "出场" read "Appearance"). (#30)
133
+ - `tests/test_english_text.py` keeps the page text, the dictionary and the English templates in step, and runs the lookup code of `zeus.js` under node. (#30)
134
+
135
+ ## 0.3.0 — 2026-11-12
136
+
137
+ ### New features
138
+
139
+ | | Feature | Read more |
140
+ |---|---|---|
141
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **🔌 AI agents (MCP)**: ZEUS is an MCP server at `http://127.0.0.1:8765/mcp`. Claude Code, Claude Desktop, Codex CLI (GPT), Gemini CLI and agents you build get 18 tools: positions with ZEUS's own P/L, max profit and loss, breakevens, chance of profit, Greeks, stress and exit advice; what-if analysis of any strategy priced from the live chain; the pre-trade checkup; spread suggestions; liquidity; quotes and option chains; market overview; events; news; sector rotation; trade ideas; ticker reports; the trade journal; and Paper Trade, where opening and closing need your permission. There are also four prompts: portfolio review, pre-trade check, morning brief and journal coach. It speaks the current stateless protocol (2026-07-28) and the earlier handshake-based revisions, answers only programs on this computer, and can never place a real order. (#24) | [Manual §18](docs/USER_GUIDE.md#18-ai-agents-mcp) |
142
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **⚙ Settings → AI agents (MCP)**: switch the server on or off, allow paper trading by agents, copy the setup for each agent, and test the connection. (#24) | [Manual §18.2](docs/USER_GUIDE.md#182-connect-your-agent) |
143
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **`zeus_mcp_stdio.py`**: a bridge for clients that launch a command (Claude Desktop). It needs only the Python standard library; `--check` tests the connection. (#24) | [Manual §18.2](docs/USER_GUIDE.md#182-connect-your-agent) |
144
+
145
+ ### Project
146
+
147
+ - `zeus_payoff.py` ports the page's option math to Python (max profit and loss, breakevens, chance of profit, Greeks, stress and VaR). Tests run it and the page's JavaScript on the same strategies and require the same numbers. (#24)
148
+ - 65 new tests: the MCP protocol in both eras, the security checks, every tool against a fake terminal, and the stdio bridge end to end through a real HTTP server. The official MCP TypeScript and Python SDKs were checked against a running terminal over HTTP and stdio. (#24)
149
+
150
+ ## 0.2.1 — 2026-11-12
151
+
152
+ ### New features
153
+
154
+ | | Feature | Read more |
155
+ |---|---|---|
156
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **🟩 Heatmap back in the Picker**: the universe as tiles by sector and industry, area = market cap, color = today's change; one click switches between it and the K-line chart wall. (#23) | [Manual §6.9](docs/USER_GUIDE.md#69-heatmap) |
157
+
158
+ ### Fixed
159
+
160
+ - Top bar: in English and bilingual mode the tab labels wrapped onto two or three lines and were cut off; every label now stays on one line, and in a narrow window the tabs scroll sideways. (#23)
161
+ - Positions toolbar: the 🤖 AI and 🔥/💲 buttons no longer break into two lines. (#23)
162
+ - Fonts: without Roboto (on Linux, for example) the interface fell back to a monospace font; it now falls back to the system sans-serif and Chinese fonts. (#23)
163
+ - Picker: the K-line chart wall could stay at "0 tickers" when it was drawn before the quotes arrived. (#23)
164
+ - Picker: the 📊 Barchart menu ran off the right edge of the window, and the button showed even without a Barchart login; it now appears once a login is saved. (#23)
165
+ - Events: the earnings calendar was empty. It read the watchlist as one long ticker, and Nasdaq refuses the request on many networks; it now reads the list correctly and falls back to the earnings dates the picker keeps. The pre-trade checkup's earnings gate uses the same dates and finds them again. (#23)
166
+ - Events: macro events in the calendar were cut down to "⚡ 08…"; the months now sit three, two or one to a row depending on the window, and event names come before the time. (#23)
167
+ - Pop-ups close with **Esc**, and switching to another tab closes them, instead of leaving the risk radar over the next page. (#23)
168
+ - After an update, browsers could keep the old interface scripts for a while; they are now checked on every load. (#23)
169
+ - Garbled English in a few places: the chart wall legend, the daily review headings, the checkup page subtitle. (#23)
170
+
171
+ ## 0.2.0 — 2026-11-12
172
+
173
+ ### New features
174
+
175
+ | | Feature | Read more |
176
+ |---|---|---|
177
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **🧪 Paper Trade**: an OptionStrat-style builder on the live option chain with option and stock legs and 23 strategy templates. Save simulated trades and follow their total, today's and realized P/L; close at market; groups and CSV export. The ⚡ button in the TA screener opens recommended spreads here. Nothing is ever sent to a broker. (#5) | [Manual §8](docs/USER_GUIDE.md#8-paper-trade) |
178
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **📧 E-mail alerts**: every desktop alert (take-profit, missing GTC, risk radar, support / resistance, AI picks…) can also arrive by e-mail, on macOS and on Linux. Repeats within 30 minutes are skipped, at most 20 per hour, with a test button in Settings. (#14) | [Manual §12.3](docs/USER_GUIDE.md#123-e-mail-alerts) |
179
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **🔄 Sector rotation** and **🎲 options sentiment** work out of the box: the industry universe (80 groups, 575 tickers) now ships with ZEUS, with English group names. (#13) | [Manual §6.6](docs/USER_GUIDE.md#66-sector-rotation) |
180
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **∞ Exact max profit and loss**: short puts, long puts and stock are evaluated down to a price of zero, and unlimited strategies show ∞ instead of a made-up number. (#11) | [Manual §4.7](docs/USER_GUIDE.md#47-how-positions-are-grouped-and-priced) |
181
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **🌐 English TA screener and single-ticker page**: they follow 中文 / 双语 / English like the rest of the terminal. (#13) | [Manual §13](docs/USER_GUIDE.md#13-interface-languages) |
182
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **📚 Complete user manual and feature checklist** in English and Chinese, with clickable contents. (#6, #15) | [Manual](docs/USER_GUIDE.md) · [Checklist](docs/FEATURES.md) |
183
+
184
+ ### Fixed
185
+
186
+ - Positions: the max loss of short puts and the max profit of long puts were understated, because prices were only checked down to half the lowest strike. (#11)
187
+ - Manual mode: the previous close came from a Yahoo field that can be days old, so the day change and today's P/L could be wrong. (#5)
188
+ - With tastytrade connected, the signal backtest job downloaded 264 option chains every weekday for a page that does not exist. It is no longer started. (#12)
189
+ - The trade journal iframe now shows bilingual labels. (#13)
190
+ - Positions: a 🩺 button opens the checkup panel, which used to open only from the red alert bar. (#18)
191
+ - The four-gate pre-trade checkup page and the daily review page now follow the interface language. (#18)
192
+
193
+ ### Project
194
+
195
+ - Every pull request runs the tests on Linux, macOS and Windows (7 jobs), and `main` only accepts pull requests whose checks pass. (#4)
196
+ - Contributing guide, issue templates and a pull request template. (#6)
197
+
198
+ ## 0.1.0 — 2026-11-12
199
+
200
+ First public release: positions with live P/L and Greeks, the exit advisor and pre-trade checkup, the picker with AI picks, the four-source news digest, earnings and SEC filings, the trade journal with the decision log, three interface languages, and free manual mode with Cboe, Yahoo and Finviz data.
@@ -0,0 +1,200 @@
1
+ # 更新记录
2
+
3
+ [English → CHANGELOG.md](CHANGELOG.md) · [使用手册](docs/USER_GUIDE_zh.md) · [回到 README](README_zh.md)
4
+
5
+ ZEUS Terminal 每个版本改了什么。新功能前面挂着 <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> 标记,括号里的数字是对应的 PR 编号。
6
+
7
+ ## 0.7.0 —— 2026-11-12
8
+
9
+ ### 新功能
10
+
11
+ | | 功能 | 详细说明 |
12
+ |---|---|---|
13
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **📦 pip 和 pipx**:`pipx install zeus-options-terminal` 之后运行 `zeus`,不用 clone 代码就能装好并启动 ZEUS。`zeus --port 8790`、`--no-browser`、`--version` 都能用,`zeus-terminal` 是同一个命令。设置和数据都在 `~/.zeus-terminal`,`pipx upgrade` 升级时都保留。(#61) | [用 pipx 安装 →](docs/USER_GUIDE_zh.md#18-用-pipx-安装) |
14
+
15
+ ### 项目
16
+
17
+ - `pyproject.toml` 把 `zeus/` 文件夹原样打成安装包,版本号取自 `APP_VERSION`,依赖和 `requirements.txt` 一致,有测试保证两边相同。每个 PR 都会构建安装包,在干净环境里装好,再从里面启动 `zeus`(`tools/package_smoke.sh`)。(#61)
18
+ - 每次发版,Release 工作流都会通过可信发布把这个版本上传到 PyPI,不存任何 token,而且要先通过同样的检查。(#61)
19
+
20
+ ## 0.6.0 —— 2026-11-12
21
+
22
+ ### 新功能
23
+
24
+ | | 功能 | 详见 |
25
+ |---|---|---|
26
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **🐳 用 Docker 运行**:`docker run -d --name zeus --restart unless-stopped -p 127.0.0.1:8765:8765 -v zeus-data:/data ghcr.io/jackson-cmd/zeus-options-terminal:latest` 一条命令启动 ZEUS,不用装 Python,Intel、AMD、ARM 都能跑。设置、交易和缓存存在 `zeus-data` 卷里,更新也不会丢;ZEUS 以普通用户身份运行,改不了自己的代码;端口只留在 127.0.0.1 上。镜像默认是纽约时间,用 `-e TZ=` 换成你自己的时区。(#59) | [手册 §1.7](docs/USER_GUIDE_zh.md#17-用-docker-运行) |
27
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **AI 智能体和 Docker**:本机的智能体用 `docker exec` 在容器里启动 ZEUS 的 MCP 桥接脚本;ZEUS 跑在 Docker 里时,⚙ 设置 → AI 智能体 列出的就是这些命令。容器里的 MCP HTTP 接口只有在启动时加了 `-e ZEUS_MCP_FROM_HOST=1` 才回应本机。(#59) | [手册 §18.2](docs/USER_GUIDE_zh.md#182-连接你的智能体) |
28
+
29
+ ### 修复
30
+
31
+ - 本机上地址是 `127.0.0.1` 的模型服务,以及从容器里看是 `host.docker.internal` 的模型服务,现在不填 API key 也能用,和 `localhost` 一样。(#59)
32
+ - 代码文件夹只读、`zeus/` 下的运行数据链接改不了时,ZEUS 现在会在启动时说明是哪个文件夹,不再直接报错退出。(#59)
33
+
34
+ ### 项目
35
+
36
+ - 每次发版都会构建 amd64 和 arm64 两种镜像,启动后检查页面、状态接口、本机检查、示例组合、MCP 和重启(`tools/docker_smoke.sh`),全部通过才推送到 GitHub Packages,标签是 `0.6.0`、`0.6` 和 `latest`,并附上签名的构建来源证明。改到镜像的 PR 也会做同样的检查,只是不推送。(#59)
37
+ - Dockerfile 和它的忽略文件放在 `zeus/` 里,仓库最上层仍然是 20 项。(#59)
38
+
39
+ ## 0.5.2 —— 2026-11-12
40
+
41
+ ### 安全
42
+
43
+ - 别的网站上的页面可以让你的浏览器调用本机 ZEUS 的 `/api/stock_selector?today=…`,而 ZEUS 会把选股结果写到 `today` 给出的路径上。这样的页面能在 ZEUS 的文件夹以外新建或覆盖 `.json` 文件,还会触发一次选股。现在 `today` 必须是日期,否则直接报错,什么都不读也不写。(#56)
44
+ - 所有按日期、代码或名称命名的缓存文件,现在都自己检查传进来的值:AI 总结、转折点总结、新闻翻译、必读标记、AI 选股、新闻和 Finviz 存档、市场事件存档。日期按它说的那一天重新拼出来,路径符号一律替换,请求里的任何值都出不了它的文件夹,Windows 上也一样。(#56)
45
+ - 新闻链接只有在网址的主机确实是 wsj.com 或 marketwatch.com 时才去掉跟踪参数,不再是链接里随便哪里出现这几个字就去掉。(#56)
46
+ - 可选的 Benzinga 辅助脚本 `zeus/premarket` 改用 ws、tar-fs、basic-ftp、ip-address、js-yaml、brace-expansion 的已修复版本,并去掉了从没用到的 csv-parse;`npm run scrape` 现在运行实际存在的 `fetch.mjs`。如果你在用它,请在 `zeus/premarket` 里重新运行一次 `npm install`。(#56)
47
+
48
+ ## 0.5.1 —— 2026-11-12
49
+
50
+ ### 项目
51
+
52
+ - 所有代码都挪进了一个文件夹 `zeus/`。仓库最上层只留 README、许可证、更新记录、文档、网站、测试和启动脚本,GitHub 页面上 README 一下就能看到:根目录从 57 项减到 20 项。(#45)
53
+ - 启动方式不变(`./start.sh`、`start.command`、`start.bat`),`~/.zeus-terminal` 里的设置和数据不受影响。`git pull` 之后下一次启动,会在 `zeus/` 下建好运行数据的链接,并删掉最上层留下的旧链接。只删指向 `~/.zeus-terminal/runtime` 的链接,文件夹和别的链接一概不碰。(#45)
54
+ - 如果你通过 stdio 桥接连了 Claude Desktop,请到 设置 → AI 智能体 重新复制一次配置:桥接脚本现在是 `zeus/zeus_mcp_stdio.py`。(#45)
55
+ - README 首屏改成:横幅、14 秒的页面演示动图、快速开始、适合谁,中英文都有;README 和 CONTRIBUTING 画了新的目录结构。(#47)
56
+
57
+ ### 修复
58
+
59
+ - 点 **清除示例** 会提示没成功,示例也还在:这个请求被「按编号删除一笔交易」的接口接走了。(#45)
60
+ - Cboe 免费行情回「请求太多」时,示例组合只能生成一部分持仓;而且 Cboe 一次请求失败后,2 分钟内都不再重试。现在 15 秒后就会再问 Cboe;Cboe 忙的时候,示例组合改用 Yahoo Finance 的期权链定价,夜里 Yahoo 没有买卖价时用最新成交价。(#45)
61
+
62
+ ## 0.5.0 —— 2026-11-12
63
+
64
+ ### 新功能
65
+
66
+ | | 功能 | 详见 |
67
+ |---|---|---|
68
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **🔌 Alpaca 和 Public**:可以连 Alpaca 账户(免费,自带模拟盘;PK 开头的 key 是模拟盘,AK 开头是实盘)或 Public 账户。持仓、余额、成交(给交易日记用)和在途订单(给漏挂止盈单提醒用)都从那里读;ZEUS 从不在那里下单、改单或撤单。Alpaca 的免费行情有 IEX 实时股价和带希腊值、隐波的期权参考价;Public 给自己的用户实时报价、期权链和希腊值。(#39) | [手册 §2.2](docs/USER_GUIDE_zh.md#22-连接券商) |
69
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **持仓和行情分开选**:*持仓来源*(auto、tastytrade、alpaca、public、manual)和 *行情来源*(auto、free、alpaca、public)。SPX、VIX 这类指数点位、券商缺的数据(前收、隐波、希腊值),以及券商出错时(限流、key 过期)的所有行情,都走免费源。设置页每个来源一张卡片;选了券商却没填 key 时,卡片会写出来。切换不用重启。(#39) | [手册 §2.1](docs/USER_GUIDE_zh.md#21-先选持仓从哪来) |
70
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **设置 → 券商与行情**:先是一张对比表,然后每家券商一栏:能拿到什么、去哪申请 key、自己的 **测试连接**(账户、模拟盘还是实盘、期权权限、持仓数、AAPL 实时价、带希腊值的 SPY 期权报价);手动一栏是 **测试免费行情**。(#39) | [手册 §2.7](docs/USER_GUIDE_zh.md#27-全部设置项) |
71
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **🧪 示例组合和欢迎卡片**:还没有持仓时,持仓页给出三种开局方式:载入示例、连接券商、上传交易。示例是 6 个持仓(AAPL 股票、SPY 牛市看跌价差、NVDA 牛市看涨价差、QQQ 铁鹰、MSFT 看涨、TSLA 卖出看跌)和 1 笔已平仓的 AMD 交易,行权价、到期日和价格取自那一刻的真实期权报价。顶部提示条标明是示例;**清除示例** 只删这些交易。(#39) | [手册 §2.1](docs/USER_GUIDE_zh.md#21-先选持仓从哪来) |
72
+
73
+ ### 修复
74
+
75
+ - 现在在任何地方按 Esc 都会关掉最上面那层弹窗。体检弹窗以前不响应,因为光标停在它的代码框里;AI 持仓点评、AI 选股、新闻 AI 总结和财报弹窗以前根本不在 Esc 的名单里。(#39)
76
+ - 🌐 翻译源面板打开后一直盖在各个页面上,挡住持仓页的工具栏和表头,要再点一次 🌐 才关。现在按 Esc、点面板外面、切换标签都会关掉,面板里的说明文字也会在框内换行。(#39)
77
+ - 第一次打开时,大约 2 秒后会弹出每日异动并跳到选股页,新用户看不到怎么开始。现在第一次打开、以及欢迎卡片还在的时候,都不再自动弹。(#39)
78
+ - 交易日记还没有数据时,显示的是独立工具的说明(trades_raw.json、`python -m http.server`)。现在会说明日记怎么生成,并每 10 秒再查一次。(#39)
79
+ - 上传的交易换算成 UTC 时间时全年按夏令时算,冬天差一小时;现在按纽约时间换算。(#39)
80
+
81
+ ## 0.4.2 —— 2026-11-12
82
+
83
+ ### 修复
84
+
85
+ - 顶栏:页面加载约 2 秒后,🌐 按钮会填上翻译引擎的名字。之后最后一个标签 🧪 模拟盘仍可能被挤掉:英文在 1100 px 左右,双语一直到 1240 px 左右,双语还会给这个名字加一段英文注释。现在窗口宽于 1240 px 时才显示这个名字,鼠标悬停 🌐 和点开它时一直能看到;双语也不再给它加注释。引擎名加载出来之后再量,1024 px 起三种语言六个标签都放得下。(#36)
86
+
87
+ ## 0.4.1 —— 2026-11-12
88
+
89
+ ### 新功能
90
+
91
+ | | 功能 | 详细说明 |
92
+ |---|---|---|
93
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **更多 ? 说明卡**:⚠ 风险视图(压测各列和合计、上行空间、已吃到和 →满利、组合希腊值、到期阶梯、Theta 跑道、蒙特卡洛)、🌊 流动性扫描(🟢 🟡 🔴 的规则和 ★、跨周对比表)、📡 风险雷达(今日新闻风险、未来 30 天事件密度、地雷日历的 lift),以及 TA 扫描的财报列和关键位。每张卡写的公式和阈值都照算这个数的代码。打开风险视图、雷达或流动性扫描时,顶栏的 ? 列出的就是它们的卡片。(#34) | [手册 §3.1](docs/USER_GUIDE_zh.md#31-每个页面的说明) |
94
+
95
+ ### 修复
96
+
97
+ - 双语模式:表头里放了 ? 图标后,英文副标题会少一截,「信号胜率(SSP/MACD/RSI/Vol)」只剩 "Signal win rate"。现在算副标题时不再把图标算进去。(#34)
98
+ - 手册和功能清单说 TA 扫描会给看空信号推荐熊市看跌价差。实际只推荐牛市看涨价差,看空的票只提示方向;两处都改成了实际的做法。(#34)
99
+
100
+ ### 项目
101
+
102
+ - `tests/test_help_numbers.py` 把新卡片里的数字和分析器、`checkup/risk_radar.py`、`checkup/liquidity.py`、`ta_screener/engine.py` 逐一对照,检查打开浮层时说明列出的是哪一页,并检查表头里放了图标时的双语副标题。(#34)
103
+
104
+ ## 0.4.0 —— 2026-11-12
105
+
106
+ ### 新功能
107
+
108
+ | | 功能 | 详细说明 |
109
+ |---|---|---|
110
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **❓ 每个页面都有说明**:表头、分数、卡片旁边的小 ? 打开一张说明卡,讲清这一项是什么、怎么算、怎么用,中英文都是写好的。顶栏的 ?(TA 扫描、开单前体检、日记复盘这几页是右下角的圆形 ?)列出当前页面上的每个按钮和数字,能搜索,能「在页面上指给我看」。按 ? 键也能打开。(#32) | [使用手册 §3.1](docs/USER_GUIDE_zh.md#31-每个页面的说明) |
111
+
112
+ ### 修复
113
+
114
+ - TA 扫描页:? 打开的说明原来只有中文,部分内容也过时了,还在讲评分早就不算的期权和大单流分数。现在它的 ? 打开新的说明卡,跟着界面语言走,内容按评分代码核对过;「评分」这一列也有了自己的 ?。(#32)
115
+ - 顶栏:双语模式下窗口窄于 1240 px 时标签再紧一点,加了 ? 按钮后六个标签仍然放得下。(#32)
116
+
117
+ ## 0.3.1 —— 2026-11-12
118
+
119
+ ### 修复
120
+
121
+ - 顶栏:◐ 手动标记在窗口较窄时盖住了 🧪 模拟盘。它已从顶栏拿掉;当前模式和手动交易笔数放在 ⚙ 设置页的第一张卡片上,鼠标悬停 ⚙ 也能看到。窗口窄于 1240 px 时标签排得更紧,1024 px 起三种语言下六个标签都放得下。(#26)
122
+ - 选股 → 🧭 大盘判断:空白页让你点「🔄 重新分析」,但页面上没有这个按钮。现在大盘判断的标题栏(🔄 重新分析和日期)和三个子标签 🧭 市场判断 · 🔄 行业轮动 · 🎲 期权情绪 都显示在选股页里,和[使用手册](docs/USER_GUIDE_zh.md#65-大盘判断)写的一致。(#26)
123
+ - 行业轮动图:窗口窄时标签不再叠在一起(改成每隔一两根柱子标一个),英文行业名太长时截短,不再跑出图外,最左边的标签不再被切掉,±% 刻度挪到左边空白处,不会再被柱子盖住。(#26)
124
+ - 右上角的异动提示显示期间不再挡住下面按钮的点击。(#26)
125
+ - 异动提示原来在右上角,会盖住大盘判断的「🔄 重新分析」按钮几秒钟,现在挪到窗口底部中间。它跳到 K 线图墙时如果正开着 🧭 大盘判断,两个页面会叠在一起;现在选股页会完整切到 K 线图墙。(#28)
126
+ - 英文界面:很多句子以前是逐词拼出来的,读不通,比如 "future30-day event density"、"Chip leader's earnings report=Sector level landmine:bad earnings report day…"、"Recently≥2%down"。现在都是完整的英文句子,涉及 📡 风险雷达和它的数据面板、🩺 体检、流动性扫描、持仓的风险视图(组合希腊值、蒙特卡洛、Theta 跑道)、出场建议和止盈提醒、🔔 提醒设置、Digest 的状态行、行业轮动、选股页的控件、风险地图和 ETF 趋势、交易日记的分析卡片和图表结论、每日复盘页、开单前体检页和 TA 页。(#30)
127
+ - 双语模式:标签旁的英文保留数字和英文单词("7 days"、"Hide ETF groups"),不再丢掉;"💹 期权量稳定性 · 尚未爬取" 这类标签的分隔号也保留。(#30)
128
+ - 翻译后的文字里,代码和名字不再被拆开("SOXX"、"MarketWatch")。(#30)
129
+
130
+ ### 项目
131
+
132
+ - 新增 `static/zeus_lang.js`,在页面脚本运行前提供 `zt(中文, 英文)` 和 `ztt(中文, 英文)`:带数字拼出来的句子在拼的地方就给出英文;服务器拼这类句子时在中文旁边一并发英文(`label_en`、`reasons_en`、`insight_en`、`headline_en` 等)。`zeus.js` 查词典时能越过句子前后的换行、表情和冒号,一行里用 " · " 或 " — " 隔开的几段分别整句翻译。`i18n_en.json` 新增约 350 句,改正 24 处错译("流动性体检" 原来译成 "Mobile medical check-up","出场" 译成 "Appearance")。(#30)
133
+ - `tests/test_english_text.py` 保证页面文字、词典和英文模板三者对得上,并用 node 跑 `zeus.js` 自己的查词代码。(#30)
134
+
135
+ ## 0.3.0 —— 2026-11-12
136
+
137
+ ### 新功能
138
+
139
+ | | 功能 | 详细说明 |
140
+ |---|---|---|
141
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **🔌 AI 智能体(MCP)**:ZEUS 本身就是一个 MCP 服务器,地址 `http://127.0.0.1:8765/mcp`。Claude Code、Claude Desktop、Codex CLI(GPT)、Gemini CLI 和你自己写的智能体都能用上 18 个工具:持仓(ZEUS 自己算的盈亏、最大盈亏、盈亏平衡点、获利概率、希腊值、压力测试和出场建议);按实时期权链估价的任意策略假设分析;开单前体检;价差推荐;流动性;报价和期权链;大盘概览;事件;新闻;行业轮动;交易点子;单票报告;交易日记;模拟盘(开仓平仓要你允许)。还有四个提示词:持仓复盘、开单前检查、早盘简报、交易日记教练。同时支持当前的无状态协议(2026-07-28)和更早的握手式版本;只回应本机程序;永远下不了真实订单。(#24) | [手册 §18](docs/USER_GUIDE_zh.md#18-ai-智能体mcp) |
142
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **⚙ 设置 → AI 智能体(MCP)**:开关接口,允许智能体下模拟单,复制每个智能体的接法,测试连接。(#24) | [手册 §18.2](docs/USER_GUIDE_zh.md#182-连接你的智能体) |
143
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **`zeus_mcp_stdio.py`**:给以命令方式启动工具的客户端(Claude Desktop)用的桥接脚本,只用 Python 标准库;`--check` 检查连接。(#24) | [手册 §18.2](docs/USER_GUIDE_zh.md#182-连接你的智能体) |
144
+
145
+ ### 项目
146
+
147
+ - `zeus_payoff.py` 把页面上的期权计算移植到了 Python(最大盈亏、盈亏平衡点、获利概率、希腊值、压力测试和 VaR)。测试会把同一批策略交给它和页面自己的 JavaScript 各算一遍,要求结果一致。(#24)
148
+ - 新增 65 个测试:新旧两代 MCP 协议、安全检查、每个工具对着假终端跑一遍,以及 stdio 桥接通过真实 HTTP 服务器的端到端测试。另外用官方的 MCP TypeScript 和 Python SDK 连运行中的终端,HTTP 和 stdio 两种方式都验证过。(#24)
149
+
150
+ ## 0.2.1 —— 2026-11-12
151
+
152
+ ### 新功能
153
+
154
+ | | 功能 | 详细说明 |
155
+ |---|---|---|
156
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **🟩 选股页的热力图回来了**:按板块和行业排列的方块图,面积 = 市值,颜色 = 今日涨跌;和 K 线墙一键切换。(#23) | [手册 §6.9](docs/USER_GUIDE_zh.md#69-热力图) |
157
+
158
+ ### 修复
159
+
160
+ - 顶栏:英文和双语模式下标签会折成两三行、被切掉一截;现在每个标签都在一行里,窗口太窄时标签栏左右滚动。(#23)
161
+ - 持仓工具栏:🤖 AI 和 🔥/💲 两个按钮不再折成两行。(#23)
162
+ - 字体:没装 Roboto 的电脑(比如 Linux)上界面会退回等宽字体;现在退回系统无衬线字体和中文字体。(#23)
163
+ - 选股:行情还没到时就画出来的 K 线墙会一直停在「0 票」。(#23)
164
+ - 选股:📊 Barchart 菜单会伸出窗口右边;没配 Barchart 账号时按钮也显示。现在保存了账号才显示。(#23)
165
+ - 事件:财报日历是空的。它把 watchlist 当成了一个很长的代码,而且 Nasdaq 在很多网络下拒绝请求;现在能正确读清单,Nasdaq 拿不到时改用选股页维护的财报日期。开单前体检的财报那一关用同一份日期,也重新查得到了。(#23)
166
+ - 事件:日历里的宏观事件被截成「⚡ 08…」;现在按窗口宽度一行放三个、两个或一个月,事件名放在时间前面。(#23)
167
+ - 弹窗可以按 **Esc** 关掉,切换标签时也会关掉,不会再把风险雷达留在下一页上。(#23)
168
+ - 更新之后浏览器可能还会用一阵子旧的界面脚本;现在每次打开都会确认是不是最新的。(#23)
169
+ - 几处英文乱译:K 线墙图例、每日复盘的标题、体检页的副标题。(#23)
170
+
171
+ ## 0.2.0 —— 2026-11-12
172
+
173
+ ### 新功能
174
+
175
+ | | 功能 | 详细说明 |
176
+ |---|---|---|
177
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **🧪 模拟盘**:在实时期权链上搭策略,用法和 OptionStrat 一样,期权腿和股票腿都能加,有 23 个策略模板。存成模拟单后跟踪总收益、今日收益和已实现盈亏;可以按市价平仓、分组、导出 CSV。TA 扫描里的 ⚡ 按钮能把推荐价差直接载入。任何单子都不会发到券商。(#5) | [手册 §8](docs/USER_GUIDE_zh.md#8-模拟盘) |
178
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **📧 邮件提醒**:每条桌面提醒(止盈、漏挂 GTC、风险雷达、支撑阻力、AI 选股……)都能同时发到邮箱,macOS 和 Linux 都支持。同一条提醒 30 分钟内只发一次,每小时最多 20 封,设置页有测试按钮。(#14) | [手册 §12.3](docs/USER_GUIDE_zh.md#123-邮件提醒) |
179
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **🔄 行业轮动** 和 **🎲 期权情绪** 开箱即用:行业票池(80 组、575 只)现在随仓库提供,分组名配了英文。(#13) | [手册 §6.6](docs/USER_GUIDE_zh.md#66-行业轮动) |
180
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **∞ 精确的最大盈亏**:卖出看跌、买入看跌和股票都算到价格为 0 的情况,没有上限的策略显示 ∞,不再显示一个凑出来的数。(#11) | [手册 §4.7](docs/USER_GUIDE_zh.md#47-持仓怎么归组和估值) |
181
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **🌐 TA 扫描和单票详情页英文化**:和终端其他页面一样跟着中文 / 双语 / English 切换。(#13) | [手册 §13](docs/USER_GUIDE_zh.md#13-界面语言) |
182
+ | <img src="https://img.shields.io/badge/NEW!-e5534b" alt="NEW!"> | **📚 完整使用手册和功能清单**,中英文各一份,目录可以点击跳转。(#6、#15) | [手册](docs/USER_GUIDE_zh.md) · [清单](docs/FEATURES_zh.md) |
183
+
184
+ ### 修复
185
+
186
+ - 持仓页:卖出看跌的最大亏损、买入看跌的最大盈利原来会算小,因为只算到最低行权价的一半。(#11)
187
+ - 手动模式:昨收价取自 Yahoo 一个可能是几天前的字段,导致当日涨跌和今日盈亏可能不对。(#5)
188
+ - 连了 tastytrade 时,信号回测的定时任务每个工作日都抓 264 只股票的期权链,但对应的页面根本不存在。现在不再启动它。(#12)
189
+ - 交易日记内嵌页现在能显示双语标签。(#13)
190
+ - 持仓页加了 🩺 按钮打开体检面板,原来只能点红色告警条打开。(#18)
191
+ - 四道关开单前体检页和每日复盘页现在跟着界面语言切换。(#18)
192
+
193
+ ### 项目
194
+
195
+ - 每个 PR 都在 Linux、macOS、Windows 上跑测试(7 个任务),`main` 只接受测试全部通过的 PR。(#4)
196
+ - 加了贡献指南、issue 模板和 PR 模板。(#6)
197
+
198
+ ## 0.1.0 —— 2026-11-12
199
+
200
+ 第一次公开发布:带实时盈亏和希腊值的持仓、出场顾问和开单前体检、带 AI 选股的选股页、四路新闻 Digest、财报和 SEC 文件、带决策日志的交易日记、三种界面语言,以及用 Cboe、Yahoo、Finviz 数据的免费手动模式。
@@ -0,0 +1,75 @@
1
+ Required Notice: Copyright (c) 2026 the ZEUS Terminal author. Licensed under the PolyForm Noncommercial License 1.0.0 — commercial use is not permitted.
2
+
3
+ # PolyForm Noncommercial License 1.0.0
4
+
5
+ <https://polyformproject.org/licenses/noncommercial/1.0.0>
6
+
7
+ ## Acceptance
8
+
9
+ In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
10
+
11
+ ## Copyright License
12
+
13
+ The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
14
+
15
+ ## Distribution License
16
+
17
+ The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
18
+
19
+ ## Notices
20
+
21
+ You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
22
+
23
+ > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
24
+
25
+ ## Changes and New Works License
26
+
27
+ The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
28
+
29
+ ## Patent License
30
+
31
+ The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
32
+
33
+ ## Noncommercial Purposes
34
+
35
+ Any noncommercial purpose is a permitted purpose.
36
+
37
+ ## Personal Uses
38
+
39
+ Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
40
+
41
+ ## Noncommercial Organizations
42
+
43
+ Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
44
+
45
+ ## Fair Use
46
+
47
+ You may have "fair use" rights for the software under the law. These terms do not limit them.
48
+
49
+ ## No Other Rights
50
+
51
+ These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
52
+
53
+ ## Patent Defense
54
+
55
+ If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
56
+
57
+ ## Violations
58
+
59
+ The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
60
+
61
+ ## No Liability
62
+
63
+ ***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
64
+
65
+ ## Definitions
66
+
67
+ The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
68
+
69
+ **You** refers to the individual or entity agreeing to these terms.
70
+
71
+ **Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
72
+
73
+ **Your licenses** are all the licenses granted to you for the software under these terms.
74
+
75
+ **Use** means anything you do with the software requiring one of your licenses.