Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

realtime 的 latest_trade_price 並未顯示查詢時最後的成交價 #107

Open
Kazekawa-azusa opened this issue Aug 31, 2023 · 2 comments

Comments

@Kazekawa-azusa
Copy link

能否顯示最後的成交價,而不是 [現在無人成交,顯示 - 。現在有人成交,顯示成交價]

@mlouielu
Copy link
Owner

Not sure why, but this is the result returned by the API. I tried roughly 20 times on 2330, and it only showed latest_trade_price once.

@Kazekawa-azusa
Copy link
Author

Kazekawa-azusa commented Aug 28, 2024

I find out why

I've read your code. You use 'http://mis.twse.com.tw/stock/index.jsp' to obtain real-time stock prices; however, the website does not refresh its data rapidly (整股交易的 成交價量及最佳五檔價量資訊揭示 之成交價未即時更新). And during its 'non-refreshing' time, the values are replaced with "-". Therefore, this issue is the limitation of the website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants