API Text Query limitation ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • geoffw123
    Senior Member
    • Mar 2014
    • 250

    #1

    API Text Query limitation ?

    Hi

    I have written a generic function that calls the text query API function. Today I was testing it by trying to pull down the English "League one" football matches. The result gives more games than I wanted as it also pulls down the "Scottish League One" games. I cant see anyway I can adjust the text query call params to give me the English League one games only.
    Have I missed something ? Has anyone got any ideas if this is possible ? If not this could do with a tweak from Betfair somehow to remove this hole.

    Regards Geoff
  • betdynamics
    Junior Member
    • Sep 2010
    • 534

    #2
    I think that a better way to do that would be to use the competitionId in the marketFilter so you can pull back data for English League One matches only.

    Comment

    • geoffw123
      Senior Member
      • Mar 2014
      • 250

      #3
      Hi

      Thanks for the reply and the suggestion. As I was writing a generic text search function I couldn't really have a competitionId as a parameter as it would defeat the purpose of the function.

      Here is the solution I went with. It could be described as an elegant workaround or a nasty hack, depending on your point of view

      If the caller of the function wants it to be a "loose" text search, pass in the search text as before I.e "League One" This returns all the English and Scottish League One markets.

      If the caller wants to get the English league markets only pass in "@League One". The @ tells the function to do a "tight" search and return only markets where the competition name matches "League One" exactly. I.e same length strings.

      Internally, the request to the server is the same and I get both leagues back, but the function now filters the results and for the tight search just throws aways the Scottish results from the list it returns.

      Geoff

      Comment

      Working...
      X