Restricting market countries problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sports4cast-2
    Junior Member
    • Nov 2013
    • 1

    #1

    Restricting market countries problem

    Hi,

    I'm currently using the Api-ng-sample-code as a base for an application which I'm creating using using the Betfair API with C#.

    When running the default program with the appropriate arguments the program seems to retrieve data from Betfair fine.

    However when changing the source code to restrict markets from:
    marketFilter.MarketCountries = new HashSet<string>() { "GB" };

    to:
    marketFilter.MarketCountries = new HashSet<string>() { "AU" };

    The program is unable to retrieve data. It gets the response:
    Got Response: {"jsonrpc":"2.0","result":[],"id":1}

    Also with an error message:
    "Unknown exception from application: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index"


    Is anyone else having this problem when trying to restrict the market countries to something else other than GB?
Working...
X