So, for the final part of your post, I start my program by getting a list of Events (these are particular football matches). For each, I get the MarketCatalogue data that I'm interested in. All of this is stored in a (one of many) football match object. After that, when I want to get odds, I use a list of MarketIds (a string) from the MarketCatalogue in my listMarketBook call, allowing me to get several markets at once. I don't know whether I can get multiple markets from different events in a single call.
Originally posted by jabe
View Post
Not sure whether or not all this JSON seriliazation stuff was about at the time or what it is but the VBA samples in the betfair developers section don't use it. Instead they use their own parsing routines to loop through the JSON return string and strip out the non alpha numeric characters (such as ], }, ", etc) and insert the vital data into collections.
Searching for a worked example of JSON Serialization using Excel VBA, I cam across this simple worked example ( http://ramblings.mcpher.com/Home/exc...son-conversion ) - so hopefully I can get my head round it to integrate it into my routines and replace all the manual parsing clarting on that I have - which works fine like but seems unnecessary and redundant. Hopefully it isnt too much even for a someone new to this JSON business like me!
Thanks again for this Jabe!
Seems like I've got the basic programmatic algorithm correct navigating BF data structures with my JSON requests in the right places, just could do with optimizing the serilization process.
By the way seems like your program is doing the same as mine fetching multiple football markets for multiple events.
Simon




Comment