回答

收藏

量化学习

数据获取 数据获取 136 人阅读 | 0 人回复 | 2025-06-24

数据获取资源学习:https://github.com/charliedream1/ai_quant_trade.git
量化工具:https://github.com/LLMQuant/quant-wiki.git

暂时无法在飞书文档外展示此内容
Yfinance 获取美股的信息(容易被限流)
import yfinance as yfdat =yf.Ticker("MSFT")print(dat.info)print(dat.history(period="1mo"))Efinance 获取国内股票
import efinance as efstock_code = '600519'# print(ef.stock.get_quote_history(stock_code))# print(ef.stock.get_history_bill(stock_code))print(ef.stock.get_realtime_quotes)CCXT  数字货币,不太稳定
import ccxt# print(ccxt.exchanges) # 初始化一个币安交易所的实例exchange = ccxt.binance()print(exchange.load_markets())

分享到:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

148 积分
26 主题
热门推荐