You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
這篇文章中列出了五種抓取股票資訊的方式,從最陽春的證交所網站 REST API 到各種 Python 套件如 Yahoo Finance API 及 FinMind API 等。我們會比較推薦使用 API 去取得股票資訊,而不用自己去爬取、解析網頁。
如果只是臨時要用或 demo,可以快速呼叫證交所網站背後的 REST API
將 date 及 stockNo 的值換成相應的日期與股票代碼,即可取得個股成交歷史資訊
若是長期、正式環境使用,推薦使用以下套件/API
Beta Was this translation helpful? Give feedback.
All reactions