首页 > 其他分享 >efinance

efinance

时间:2022-10-21 09:24:39浏览次数:41  
标签:code get ef klt efinance stock

1、安装库

pip install efinance

2、查看已安装库的清单

pip list

3、查看数据

3.1 分钟、15分钟、小时、2小时数据(不能超过120分钟,即2小时)

import efinance as ef

frequency  = 5 (频率5分钟)

ef.stock.get_quote_history(stock_code, klt=frequency)  (stock_code 为股票代码,klt 为获取频率)

3.2 龙虎榜

ef.stock.get_daily_billboard()

3.3 每日数据

ef.stock.get_quote_history(stock_code)  不给klt频率参数即返回每天的数据

 

 

标签:code,get,ef,klt,efinance,stock
From: https://www.cnblogs.com/gyshushu/p/16812307.html

相关文章