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

best_ask_* 可能會有list index out of range的問題 #22

Open
vaalgit opened this issue Mar 3, 2015 · 1 comment
Open

best_ask_* 可能會有list index out of range的問題 #22

vaalgit opened this issue Mar 3, 2015 · 1 comment
Labels

Comments

@vaalgit
Copy link

vaalgit commented Mar 3, 2015

Hi toomore,

這個module很好用!
但是我在抓一些股的時候,當他在漲停(跌停)時,沒有委賣/買,亦沒有量。
所以在realtime2.py中, 93行開始best_ask_pirce 等等,因抓不到值的問題,導致在Assign過程中,list index out of range.

我自己是加了一些簡單的判斷避開(len(best_ask_*) is not 0才做assign...),不知道toomore大是否要做一些修改XD

感謝!!

vaal

@toomore
Copy link
Owner

toomore commented Mar 3, 2015

@vaalgit 哀優威啊!感謝你的回報,最近有點忙,但我會找時間修正的!

@toomore toomore added the bug label Sep 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants