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

key error on get_available_events #2

Open
Cally99 opened this issue Dec 11, 2019 · 1 comment
Open

key error on get_available_events #2

Cally99 opened this issue Dec 11, 2019 · 1 comment

Comments

@Cally99
Copy link

Cally99 commented Dec 11, 2019

Hi there,

I'm trying to use this client.py file with the basic functions for getting event data from smarkets api.

I have a key error on events += current_page['events'] KeyError: 'events'

Do these functions still work with the api?

Thanks

@monkeini
Copy link

(BTW, I can recreate the issue you're seeing. If you inspect your current_page you will likely see the request returned an error. This is related to the date format this client used for the url. If you want to use datetime filters, you can use something like start_datetime_max.strftime("%Y-%m-%dT%H:%M:%SZ") to format appropriately.)

@smarkets smarkets deleted a comment from monkeini Oct 19, 2020
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

2 participants