openclaw - 💡(How to fix) Fix [Feature]: Real-time Stock Data Access for Trading Assistant [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#73494Fetched 2026-04-29 06:19:12
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Timeline (top)
closed ×1commented ×1labeled ×1

我用 OpenClaw 作為 WhatsApp 上嘅股票交易助手,但助手(小勇)完全無法從任何財經網站獲取實時或延遲股價數據。所有主流財經網站都返回動態 JavaScript 內容或直接被封鎖。

Root Cause

我用 OpenClaw 作為 WhatsApp 上嘅股票交易助手,但助手(小勇)完全無法從任何財經網站獲取實時或延遲股價數據。所有主流財經網站都返回動態 JavaScript 內容或直接被封鎖。

Code Example

openclaw stock price <CODE>
→ 返回 { symbol: "00981", price: 68.30, change: +6.1%, volume: 119.71B }

---

plugins:
  entries:
    stock-data:
      sources:
        - https://api.aastocks.com/quote/{code}
        - https://push2.eastmoney.com/api/qt/stock/get

---

plugins:
  entries:
    stock-data:
      sources:
        - https://api.aastocks.com/quote/{code}
        - https://push2.eastmoney.com/api/qt/stock/get
RAW_BUFFERClick to expand / collapse

Summary

我用 OpenClaw 作為 WhatsApp 上嘅股票交易助手,但助手(小勇)完全無法從任何財經網站獲取實時或延遲股價數據。所有主流財經網站都返回動態 JavaScript 內容或直接被封鎖。

Problem to solve

已測試網站(全部失敗)

網站結果
AASTOCKS (aastocks.com)動態內容,無法解析
E
TNet (etnet.com.hk)只能載入版面,冇股價
Google Finance無法獲取報價
Yahoo Finance被封鎖
TradingView404
Investing.com403 - 被封鎖
富途牛牛 (futunn.com)404
同花順 (10jqka.com.cn)主頁載入到,但冇個股報價
東方財富 (eastmoney.com)只有基本面數據
雪球 (xueqiu.com)需要登入
HKEX動態內容

Proposed solution

建議解決方案

Option A: 允許特定財經網站

放寬 web_fetch 對以下域名嘅安全限制:

  • *.aastocks.com
  • *.etnet.com.hk
  • *.eastmoney.com
  • *.10jqka.com.cn
  • finance.google.com
  • *.finance.yahoo.com

Option B: 內置股價API插件

開發官方插件/API:

openclaw stock price <CODE>
→ 返回 { symbol: "00981", price: 68.30, change: +6.1%, volume: 119.71B }

Option C: 可配置數據源

允許用戶設定一個或多個數據源URL,由系統在後端抓取數據:

plugins:
  entries:
    stock-data:
      sources:
        - https://api.aastocks.com/quote/{code}
        - https://push2.eastmoney.com/api/qt/stock/get

Alternatives considered

Option C: 可配置數據源

允許用戶設定一個或多個數據源URL,由系統在後端抓取數據:

plugins:
  entries:
    stock-data:
      sources:
        - https://api.aastocks.com/quote/{code}
        - https://push2.eastmoney.com/api/qt/stock/get

Impact

影響

用戶影響

  • 無法自動監控持倉股票價格
  • 需要用戶手動輸入股價(即時但唔方便)
  • 無法設置自動價格警報
  • 交易日需要持續人手報價

Evidence/examples

用戶場景

場景1:自動監控
  用戶:「981中芯今日點?」
  助手:[自動 fetch 最新價] 「中芯現價 $68.3,比昨日升6.1%」

場景2:價格警報
  用戶:「中芯到$75話我知」
  助手:系統監控,到價自動通知

場景3:每日收市總結
  助手:[自動 fetch 所有持倉收市價]
  「今日持倉總結:981 $68.3 (+6.1%) ...」


### Additional information

## 補充資料

- OpenClaw 版本:v24.14.1
- 平台:Windows 10
- 使用場景:WhatsApp 股票交易助手
- 用戶地區:香港(港股為主)

extent analysis

TL;DR

Implementing a configurable data source feature, as proposed in Option C, is likely the most effective fix to allow the OpenClaw assistant to fetch real-time or delayed stock price data from various financial websites.

Guidance

  • Verify the proposed solutions: Test each proposed solution (Option A, B, and C) to determine which one works best for fetching stock price data from the listed financial websites.
  • Evaluate the feasibility of Option C: Assess the technical requirements and potential challenges of implementing a configurable data source feature, such as handling different API formats and potential rate limits.
  • Consider user experience: Think about how the chosen solution will impact the user experience, including the ability to set up automatic price alerts and monitor stock prices.
  • Test with multiple data sources: Once a solution is implemented, test it with multiple data sources to ensure it can handle different formats and potential errors.

Example

plugins:
  entries:
    stock-data:
      sources:
        - https://api.aastocks.com/quote/{code}
        - https://push2.eastmoney.com/api/qt/stock/get

This example shows how the configurable data source feature could be implemented using YAML configuration files.

Notes

The proposed solutions may have varying degrees of complexity and feasibility, and the chosen solution should be thoroughly tested to ensure it works as expected.

Recommendation

Apply workaround: Implementing Option C, the configurable data source feature, is likely the most effective fix, as it allows for flexibility and adaptability to different data sources and formats.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Feature]: Real-time Stock Data Access for Trading Assistant [1 comments, 2 participants]