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

name 'Timeframe' is not defined #30

Open
AlexKorwin opened this issue Jan 18, 2022 · 0 comments
Open

name 'Timeframe' is not defined #30

AlexKorwin opened this issue Jan 18, 2022 · 0 comments

Comments

@AlexKorwin
Copy link

AlexKorwin commented Jan 18, 2022

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant