toomore / grs

📈 台灣上市上櫃股票價格擷取(Fetch Taiwan Stock Exchange data)含即時盤、台灣時間轉換、開休市判斷。
http://pypi.python.org/pypi/grs
MIT License
430 stars 164 forks source link

stock.price error #32

Closed mannyhsu closed 7 years ago

mannyhsu commented 8 years ago

ticker = '2317' month =12 stock = Stock(ticker, month) print stock.price

會出現 error message

Traceback (most recent call last): File "<pyshell#21>", line 1, in print stock.price File "C:\Python27\lib\site-packages\grs\fetch_data.py", line 391, in price return self.serial_price() File "C:\Python27\lib\site-packages\grs\fetch_data.py", line 291, in serial_price return list(result) File "C:\Python27\lib\site-packages\grs\fetch_data.py", line 290, in result = (float(i[rows]) for i in self.__raw_data) ValueError: could not convert string to float: --

toomore commented 7 years ago

@mannyhsu 這個問題修復了,請使用 v0.7.0 版本,感謝!