Skip to content

[Errno 22] Invalid argument #4

Closed
@dgarciagud

Description

Trying to obtain intraday data I obtain the following error:

data = hub.candle('AMZN', resolution='60', end="2020-05-22")
Traceback (most recent call last):

File "", line 1, in
data = hub.candle('AMZN', resolution='60', end="2020-05-22")

File "C:\Users\casa\Anaconda3\lib\site-packages\fhub\utils.py", line 143, in helper
return func(clase, *args, **kwargs)

File "C:\Users\casa\Anaconda3\lib\site-packages\fhub\utils.py", line 134, in helper
return func(clase, *args, **kwargs)

File "C:\Users\casa\Anaconda3\lib\site-packages\fhub\core.py", line 566, in candle
'from': _unixtime(start),

File "C:\Users\casa\Anaconda3\lib\site-packages\fhub\utils.py", line 169, in _unixtime
return int(datetime.strptime(_normalize_date(date), "%Y-%m-%d").timestamp())

OSError: [Errno 22] Invalid argument

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions