Micro-sheep / efinance

efinance 是一个可以快速获取基金、股票、债券、期货数据的 Python 库,回测以及量化交易的好帮手!🚀🚀🚀
MIT License
1.83k stars 463 forks source link

Session isn't closed #184

Open yanxurui opened 15 hours ago

yanxurui commented 15 hours ago

I got the following error:

sys:1: ResourceWarning: unclosed <socket object, fd=3, family=2, type=1, proto=6>
yanxurui commented 15 hours ago

I have to close it manually at the end of my code:

ef.shared.session.close()