toomore / grs

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

ImportError: cannot import name Stock #37

Closed snowuyl closed 7 years ago

snowuyl commented 7 years ago

Dear Toomore,

   My startup.py is as follows.

from grs import Stock stock = Stock('6278')
print stock.moving_average(5)
print stock.moving_average_value(5)
print stock.moving_average_bias_ratio(5, 10)

  I run startup.py as follows.

python startup.py

  But the following error occurred

Traceback (most recent call last): File "startup.py", line 3, in from grs import Stock ImportError: cannot import name Stock

Do you have any suggestion?

Thanks in advance!

snowuyl