Hi guys,
I've been going round in circles on this one for a while and now I'm stumped!
Following the documentation, I'm trying to get results from a bunch of markets (which closed within the last 90 days) by calling listMarketBook.
I've got a few hundred I want to pull, so I'm looping through in lists of ~40 to avoid hitting the limits. Here's an example query (only 6 markets for simplicity):
{"params": {"filter": {}, "marketIds": ["1.115391825", "1.115391826", "1.115391828", "1.115742539", "1.115473620", "1.115700421"]}, "jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketBook", "id": 1}
Some of the time this works ok. However, some combinations of market IDs don't work. In the example above, the first three market Ids seem to be 'problem' ids. Whenever I include one or more of these problem ids, the query only returns results from the problem markets. When I exclude ALL the problem ids, it returns results for all of the remaining IDs as expected. This means that for every batch of 40 that I query, any time one of these problems crops up, it only returns one result instead of 40. I've looked at the json which comes back and don't see anything unusual. Can anyone explain this behaviour?
Happy to provide more detail if necessary.
Thanks!
I've been going round in circles on this one for a while and now I'm stumped!
Following the documentation, I'm trying to get results from a bunch of markets (which closed within the last 90 days) by calling listMarketBook.
I've got a few hundred I want to pull, so I'm looping through in lists of ~40 to avoid hitting the limits. Here's an example query (only 6 markets for simplicity):
{"params": {"filter": {}, "marketIds": ["1.115391825", "1.115391826", "1.115391828", "1.115742539", "1.115473620", "1.115700421"]}, "jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketBook", "id": 1}
Some of the time this works ok. However, some combinations of market IDs don't work. In the example above, the first three market Ids seem to be 'problem' ids. Whenever I include one or more of these problem ids, the query only returns results from the problem markets. When I exclude ALL the problem ids, it returns results for all of the remaining IDs as expected. This means that for every batch of 40 that I query, any time one of these problems crops up, it only returns one result instead of 40. I've looked at the json which comes back and don't see anything unusual. Can anyone explain this behaviour?
Happy to provide more detail if necessary.
Thanks!


Comment