event id api6 vs api ng

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bnl
    Junior Member
    • Nov 2012
    • 108

    #1

    event id api6 vs api ng

    Hi!
    I wonder if there is any correlation
    between the eventid in api-ng and marketid in api-6

    It looks like marketid/10^9 = string(eventid)
    but is that just a coincidence?


    It would be nice to able to map these, at least during a transition time. I got a database with markets in the
    api-v6 sense, and I'd like to be able to cross-reference
    data entered by new bots (api-ng) with data entered by old bots (api-v6).

    /Björn
  • bnl
    Junior Member
    • Nov 2012
    • 108

    #2
    Hmm, no reply ...
    I think that I mixed apples with oranges.
    I meant, does the deciaml part of the market id in api-ng equal
    the market id in api v6 ?

    Using the app at https://api-ng.betstores.com/betting/
    i see market ids as 1.109813050

    but at http://rss.betfair.com/RSS.aspx?format=xml&sportID=7
    i see market id as 109813050


    <market id="109798878" displayName="GB / Brig 18th Jun - 17:00 TO BE PLACED">
    <name>TO BE PLACED</name>
    <country countryID="1">United Kingdom</country>
    <menuHint>GB / Brig 18th Jun</menuHint>
    <startDate date="18/06/2013" time="17:00" sort="635071716000000000">18-Jun 17:00</startDate>
    <marketType>Place</marketType>
    <betType>Odds</betType>
    <nonRunners list=" Even Bolder (26.4%%, 11:31)">
    <nonRunner reductionFactor="26.4%" settledTime="11:31" raceNumber=""> Even Bolder</nonRunner>
    </nonRunners>
    <winners count="2" list="Scommettitrice, Russian Bullet" selectionIdList="4667946, 5636878">
    <winner selectionId="4667946" raceNumber="">Scommettitrice</winner>
    <winner selectionId="5636878" raceNumber="">Russian Bullet</winner>
    </winners>
    </market>


    I use the rss quite a lot to retrieve the winners,
    and I _really_ would like a confirmation that my assumption is correct.

    thanks
    /Björn

    Comment

    • BetfairDeveloperProgram
      Administrator
      • Oct 2008
      • 679

      #3
      I meant, does the deciaml part of the market id in api-ng equal
      Hi Björn

      Yes, we can confirm that your assumption is correct.

      The value prior to the decimal part represents the exhangeId i.e. 1 = UK Exchange, 2 = AUS Exchange

      Thanks

      Neil

      Comment

      • bnl
        Junior Member
        • Nov 2012
        • 108

        #4
        Ok, thanks for the confirmation
        /Björn

        Comment

        Working...
        X