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

Not returning markets in the same order as eventIds #59

Closed
almenjonatan opened this issue Apr 22, 2017 · 1 comment
Closed

Not returning markets in the same order as eventIds #59

almenjonatan opened this issue Apr 22, 2017 · 1 comment

Comments

@almenjonatan
Copy link

almenjonatan commented Apr 22, 2017

market_ids does not get returned in the same way as in the betfair API

event_ids = [28200940, 28200941, 28200939, 28200937, 28202622, 28188158, 28202623, 28188159, 28202621, 28188157, 28202619, 28202616, 28202617, 28202614, 28202615, 28196677, 28202626, 28188160, 28202625, 28188176, 28188177]

markets = betfairclient.trading.betting.list_market_catalogue(
            max_results=100,
            filter=filters.market_filter(
                 event_ids=event_ids,
                 market_type_codes = ["MATCH_ODDS"]
            ))

yields mismatch between market_id and eventId

I looked briefly at the code but could not see any reordering, I could've missed something to. :)

@liampauling
Copy link
Member

What order are you expecting? I don't think betfair will return the same order as the request.

I just tested between the visualiser and lightweight and its exactly the same.

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