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

efinance.stock.get_realtime_quotes()只能获取到200个,疑似东方财富使用了分页 #192

Open
2824799 opened this issue Feb 15, 2025 · 19 comments

Comments

@2824799
Copy link

2824799 commented Feb 15, 2025

No description provided.

@Micro-sheep
Copy link
Owner

验证了一下,是服务端那边做了限制,现在一页最多获取200条数据,即便请求参数设置超过这个数也只能有200

@XiaoKing1998
Copy link

怎么修改大哥

@Alex92908
Copy link

我先前用akshare是正常的,结果这两天也是只有200条,更新akshare到最新版本又可以了,我是在安卓设备上用efinance,估计可以参考akshare的调用

@XH888
Copy link

XH888 commented Feb 17, 2025

是说怎么今天取得的数据少了呢 我还以为是我写的程序错误了 蹲一个进度

@NicholasQu
Copy link

影响面甚广啊,紧急求助...

@Micro-sheep
Copy link
Owner

明天开盘之前我更新个版本

@listening365
Copy link

明天开盘之前我更新个版本

感謝. 辛苦了.

@NicholasQu
Copy link

明天开盘之前我更新个版本

老板给力!

@dbwsgod
Copy link

dbwsgod commented Feb 17, 2025

给力!等更新!

@Micro-sheep
Copy link
Owner

Micro-sheep commented Feb 17, 2025

@dbwsgod @NicholasQu @XH888 @Alex92908 @2824799
已更新,最新版本是 0.5.3,通过 pip 镜像安装可能有缓存,如果未安装到 0.5.3 版本,可运行下面命令安装

pip install git+https://github.com/Micro-sheep/efinance

@NicholasQu
Copy link

@dbwsgod @NicholasQu @XH888 @Alex92908 @2824799 已更新,最新版本是 0.5.3,通过 pip 镜像安装可能有缓存,如果未安装到 0.5.3 版本,可运行下面命令安装

pip install git+https://github.com/Micro-sheep/efinance

测试通过,大赞owner的效率,辛苦您!

@dbwsgod
Copy link

dbwsgod commented Feb 18, 2025

更新成功,非常感谢!

@pretty868
Copy link

貌似又不行啦

@gucasbrg
Copy link

又不行了

@Micro-sheep
Copy link
Owner

又不行了

没复现,0.5.3 版本下当前获取到的数据条数是 5688 条

@pretty868
Copy link

pretty868 commented Feb 18, 2025 via email

@Micro-sheep
Copy link
Owner

难道我是个例?

版本是0.5.3

运行指令 print(ef.stock.get_realtime_quotes()) 后只显示200条

------------------ 原始邮件 ------------------

发件人: "Micro-sheep/efinance" @.***>;

发送时间: 2025年2月18日(星期二) 下午3:13

@.***>;

抄送: "pretty @.@.>;

主题: Re: [Micro-sheep/efinance] efinance.stock.get_realtime_quotes()只能获取到200个,疑似东方财富使用了分页 (Issue #192)

又不行了

没复现,0.5.3 版本下当前获取到的数据条数是 5688 条

Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.Message ID: @.***>

Micro-sheep left a comment (#192)

又不行了

没复现,0.5.3 版本下当前获取到的数据条数是 5688 条

Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.Message ID: @.***>

先确定一下运行的版本跟安装的版本是否都是 0.5.3 吧,加下面的代码来确定

from efinance import __version__

print(__version__.__version__)

输出应该是 0.5.3

@pretty868
Copy link

pretty868 commented Feb 18, 2025 via email

@Micro-sheep
Copy link
Owner

Micro-sheep commented Feb 18, 2025

确实如你预期,我安装的版本是0.5.3,但实际运行的是0.5.0。

请问我应该怎么切换过来?

------------------ 原始邮件 ------------------

发件人: "Micro-sheep/efinance" @.***>;

发送时间: 2025年2月18日(星期二) 下午3:30

@.***>;

抄送: "pretty @.@.>;

主题: Re: [Micro-sheep/efinance] efinance.stock.get_realtime_quotes()只能获取到200个,疑似东方财富使用了分页 (Issue #192)

难道我是个例?

版本是0.5.3

运行指令 print(ef.stock.get_realtime_quotes()) 后只显示200条

------------------ 原始邮件 ------------------

发件人: "Micro-sheep/efinance" @.***>;

发送时间: 2025年2月18日(星期二) 下午3:13

@.***>;

抄送: "pretty @.@.>;

主题: Re: [Micro-sheep/efinance] efinance.stock.get_realtime_quotes()只能获取到200个,疑似东方财富使用了分页 (Issue #192)

又不行了

没复现,0.5.3 版本下当前获取到的数据条数是 5688 条

Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.Message ID: @.***>

Micro-sheep left a comment (#192)

又不行了

没复现,0.5.3 版本下当前获取到的数据条数是 5688 条

Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.Message ID: @.***>

先确定一下运行的版本跟安装的版本是否都是 0.5.3 吧,加下面的代码来确定

from efinance import version print(version.version)

输出应该是 0.5.3

Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.Message ID: @.***>

Micro-sheep left a comment (#192)

难道我是个例?

版本是0.5.3

运行指令 print(ef.stock.get_realtime_quotes()) 后只显示200条

------------------ 原始邮件 ------------------

发件人: "Micro-sheep/efinance" @.***>;

发送时间: 2025年2月18日(星期二) 下午3:13

@.***>;

抄送: "pretty @.@.>;

主题: Re: [Micro-sheep/efinance] efinance.stock.get_realtime_quotes()只能获取到200个,疑似东方财富使用了分页 (Issue #192)

又不行了

没复现,0.5.3 版本下当前获取到的数据条数是 5688 条

Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.Message ID: @.***>

Micro-sheep left a comment (#192)

又不行了

没复现,0.5.3 版本下当前获取到的数据条数是 5688 条

Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.Message ID: @.***>

先确定一下运行的版本跟安装的版本是否都是 0.5.3 吧,加下面的代码来确定

from efinance import version print(version.version)

输出应该是 0.5.3

Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.Message ID: @.***>

如果运行代码的时候用的 python main.py 则安装的时候运行 python -m pip install efinance --upgrade

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

10 participants