Are Market ID's created in order?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jelmer
    Junior Member
    • Oct 2018
    • 6

    #1

    Are Market ID's created in order?

    Hi,

    Is there a way to check which date and time a market was published?

    I'm building a script that detects new published markets, but sometimes if it detects a new market the MarketID's are in the right order:
    (for example: yesterday evening it detected markets 1.150144908 and 1.150145774 as new: and there was hardly unmatched money in the queue... perfect)

    and sometimes it's not the in the right order:
    (for example: yesterday 20 minutes later it detected market 1.150131228 to be new - but you see the MarketID is lower than the ones 20 minutes earlier... AND there was a lot of unmatched money in the queue)

    So the market most have been opened before? But in the whole 30 days before it never detected market 1.150131228 as published... so I don't think the script missed it...

    So is there a way in the betting exchange API where I can find when a market was published?

  • only1jake
    Junior Member
    • Nov 2016
    • 29

    #2
    I wonder if it's something to do with when Betfair imports scheduled games or races. Ie. They might've created the market but not made it public a lot earlier than when it was scheduled to start. Thus the earlier market Id. But who knows, I'm just taking a guess.

    Comment

    • Jelmer
      Junior Member
      • Oct 2018
      • 6

      #3
      Hi Jake, thanks for your answer... I have thought the same thing and it does makes sense... but what doesn't make sense is that there is a lot of unmatched money waiting to be matched for those matches. Could happen, but I think it's isn't a coincidence that when the MarketIDs do come in order, that hardly isn't any money unmatched (with bigger games: Premier League games)

      Comment

      • LiamP
        Junior Member
        • Oct 2015
        • 284

        #4
        I have always assumed streaming is the best/quickest way to get new markets, are you polling for this?

        Comment

        • Jelmer
          Junior Member
          • Oct 2018
          • 6

          #5
          Hi Liam, Thanks for your answer... What do you mean with streaming? Do you mean the stream API? Haven't heard of it before you mentioned it, I'm a super newbie is this API programming...

          What I do now to find new markets is this code:

          Code:
             $params = '{"filter":{"eventTypeIds":["1"],
                        "turnInPlayEnabled": true,
                        "marketTypeCodes":["MATCH_ODDS"],
                    "marketStartTime":{"from":"'.date("Y-m-d").'T00:00:00Z","to": "'.$stop_date.'T00:00:00Z"}},
                        "sort":"LAST_TO_START",
                        "maxResults":"600",
                        "marketProjection":["EVENT","RUNNER_DESCRIPTION","MARKET_START_TIME"]}';
              $jsonResponse = sportsApingRequest($appKey, $sessionToken, 'listMarketCatalogue', $params);
              return $jsonResponse;
          And if there is a market that I haven't bet on in this 600 results, a bet is placed.

          But I assume there is a better way?

          Comment

          • Jelmer
            Junior Member
            • Oct 2018
            • 6

            #6
            Is it also possible that a delayed application key is the cause? Will new markets show up earlier if you have a live application key or doesn't it work like that?

            Comment

            • ztmztm
              Junior Member
              • Nov 2015
              • 2

              #7
              I guess people with information about this topic are not willing to share it.
              BF support might though, them being neutral.

              Comment

              Working...
              X