name 'Timeframe' is not defined
AlexKorwin opened this issue · 0 comments
AlexKorwin commented
When I try to use this library, the following error appears:
from finam import Exporter, Market, LookupComparator
exporter = Exporter()
ticker = 'USDRUB_TOD'
rub = exporter.lookup(name = ticker, market = Market.CURRENCIES)
data = exporter.download(rub.index[0],
market = Market.CURRENCIES,
timeframe=Timeframe.MINUTES1,
start_date=datetime.date(2020, 1, 31),
end_date=datetime.date(2020, 2, 1))
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
C:\Users\8523~1\AppData\Local\Temp/ipykernel_67512/432054812.py in <module>
11 data = exporter.download(rub.index[0],
12 market = Market.CURRENCIES,
---> 13 timeframe=Timeframe.MINUTES1,
14 start_date=datetime.date(2020, 1, 31),
15 end_date=datetime.date(2020, 2, 1))
NameError: name 'Timeframe' is not defined