大家好!
之前分享了 finshare(免费 A 股数据库),最近用它做了几个小工具,今天分享下。
pip install finshare streamlit plotly
import streamlit as st
import finshare as fs
st.title("📈 实时行情")
stocks = ['000001.SZ', '600519.SH', '300750.SZ']
for code in stocks:
snap = fs.get_snapshot_data(code)
st.metric(code, snap.last_price, f"{snap.change_pct:.2f}%")
运行 streamlit run app.py,搞定!
| 项目 | 功能 |
|---|---|
| finboard | 实时行情看板 |
| finscreener | 选股器 |
基于 finshare 可以做:
fork 项目,自己改改就能用!
优秀项目我会推荐、帮你宣传~
GitHub: https://github.com/finvfamily/finshare
Discord: https://discord.gg/XT5f8ZGB
欢迎来玩!