Can't get any odds from listMarketBook - not even via API-NG Visualiser

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cobra
    Junior Member
    • Dec 2018
    • 1

    #1

    Can't get any odds from listMarketBook - not even via API-NG Visualiser

    Hi,

    I understand I must be doing something wrong and tried to search this forum for a similair question without success.
    I want to find the odds for a premier league team having a clean sheet in one event.

    I'm using the delayed api key. I use perl but get the same response when I try with API-NG Visualiser
    https://docs.developer.betfair.com/v...ts-operations/

    Using listMarketCatalogue
    Text Query: Tottenham
    Starts After: 26-12-2018

    It successfully lists 98 MarketIDs of which one is
    1.152528837 Tottenham Clean Sheet 4975.773
    Then I use the MarketID 1.152528837 when I search via listMarketBook.

    The Market Book details almost only list runners, only on occasion the last price traded. And never any prices, or "ex" info in the json output.

    In this query only runner 110503 lists last price traded to 1.73. If I check Betfair.com the price was 2.1 so 1.73 doesn't seem to be the correct info.

    And price lists "Available to Back", "Available to Lay", "Traded Volume" are always empty.

    Like I said I get the same results using the API-NG Visualiser and my perl script based on recommended perl library.

    Thanks in advance




  • Jimbo
    Junior Member
    • Jan 2019
    • 1

    #2
    Hi Cobra, I'm having the same issue, did you manage to resolve it?

    Comment

    • BetfairDeveloperProgram
      Administrator
      • Oct 2008
      • 679

      #3
      Hi cobra & Jimbo.

      Please double check that you've selected the EX_BEST_OFFERS (& any other required parameters) when making a request via the API Visualiser.

      You can see an example via https://docs.developer.betfair.com/display/1smk3cen4v3lu3yomq5qye0ni/API+Demo+Tools#APIDemoTools-ExamplesofDemoToolsUsage


      [{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketBook", "params": {"marketIds":["1.152991101"],"priceProjection":{"priceData":["EX_BEST_OFFERS"],"virtualise":"true"}}, "id": 1}]

      Thanks

      Neil

      Comment

      • newbie99
        Junior Member
        • Dec 2018
        • 62

        #4
        Originally posted by BetfairDeveloperProgram View Post
        Hi cobra & Jimbo.

        Please double check that you've selected the EX_BEST_OFFERS (& any other required parameters) when making a request via the API Visualiser.

        You can see an example via https://docs.developer.betfair.com/display/1smk3cen4v3lu3yomq5qye0ni/API+Demo+Tools#APIDemoTools-ExamplesofDemoToolsUsage


        [{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketBook", "params": {"marketIds":["1.152991101"],"priceProjection":{"priceData":["EX_BEST_OFFERS"],"virtualise":"true"}}, "id": 1}]

        Thanks

        Neil
        The Betting API Demo Tool never seems to return any exchange prices (yet I can return some if I call the procedure via PHP code). Is this by design (as it returns other data, such as last price), or is there a problem with the Betting API Demo at the moment?

        Comment

        • BetfairDeveloperProgram
          Administrator
          • Oct 2008
          • 679

          #5
          Hi newbie99

          Please can you check the attached .pdf file and provide the same if you continue to experience problems?

          You need to select a SelectionId under the Runners table to see the prices for each runner via the API Demo tool UI.

          Thanks

          Neil

          Comment

          • newbie99
            Junior Member
            • Dec 2018
            • 62

            #6
            Originally posted by BetfairDeveloperProgram View Post
            Hi newbie99

            Please can you check the attached .pdf file and provide the same if you continue to experience problems?

            You need to select a SelectionId under the Runners table to see the prices for each runner via the API Demo tool UI.

            Thanks

            Neil
            Hi,

            Yeah, I've tried both Market and Runner book, but I get the same for both.

            Interestingly for marketId 1.152991101 I do not get the same results as you. I get different last traded prices and I don't see any of the live prices.

            Weirdly (and I'm sure its related somehow), in the API visualiser I am able to see P&L on certain markets that I get a blank array for in my code (most markets work fine, however ones I've cashed out from don't work with my code, but do show up in the API visualiser, despite using the same parameters).
            Attached Files
            Last edited by newbie99; 04-01-2019, 05:26 PM.

            Comment

            • BetfairDeveloperProgram
              Administrator
              • Oct 2008
              • 679

              #7
              Hi newbie99

              Thanks, the marketId I used is from an old (now settled) market so please can you check when using a live marketId?

              Please can you send me the screenshot directly to developer support (https://support.developer.betfair.co...s/requests/new)

              Thanks

              Neil

              Comment

              • newbie99
                Junior Member
                • Dec 2018
                • 62

                #8
                Originally posted by BetfairDeveloperProgram View Post
                Hi newbie99

                Thanks, the marketId I used is from an old (now settled) market so please can you check when using a live marketId?

                Please can you send me the screenshot directly to developer support (https://support.developer.betfair.co...s/requests/new)

                Thanks

                Neil
                The one attached is a live market (1.132099836).

                I just meant, I also tried your one :-)

                Comment

                • BetfairDeveloperProgram
                  Administrator
                  • Oct 2008
                  • 679

                  #9
                  Thanks newbie99. I can see from your screenshot that you haven't highlighted the selection 10317011.

                  Please can you try this again but highlight the selection by clicking on it within the visualiser?

                  Thanks

                  Neil

                  Comment

                  • newbie99
                    Junior Member
                    • Dec 2018
                    • 62

                    #10
                    Originally posted by newbie99 View Post

                    The one attached is a live market (1.132099836).

                    I just meant, I also tried your one :-)
                    Actually...I may have been being stupid...I didn't realise you had to click in to get the prices to display, I assumed all selection prices would show!

                    So I do see prices, which match my code for this market. However they are still not the prices shown on the exchange (i.e. for this particular market the exchange shows £3 @ 6.8, £4 @ 7.4 and £3 @ 7.8 available to lay, whereas the visualiser shows 11.64 @ 7.4, for Selection 10317012).

                    I assumed I was mis-understanding how roll-ups work....but I can't replicate the exchange pricing using any combo.
                    Last edited by newbie99; 04-01-2019, 05:55 PM.

                    Comment

                    • BetfairDeveloperProgram
                      Administrator
                      • Oct 2008
                      • 679

                      #11
                      Thanks, re the prices, I can see from your screenshot that under Market details it says "Data delayed - Yes". This indicates that you are using the Delayed App Key when making requests via the visualiser. The website prices will be live by default (if you've funded your account).

                      Neil

                      Comment

                      • newbie99
                        Junior Member
                        • Dec 2018
                        • 62

                        #12
                        Originally posted by BetfairDeveloperProgram View Post
                        Thanks, re the prices, I can see from your screenshot that under Market details it says "Data delayed - Yes". This indicates that you are using the Delayed App Key when making requests via the visualiser. The website prices will be live by default (if you've funded your account).

                        Neil
                        That I appreciate...but they're not delayed as such, they are simply summing up.

                        Are you able to confirm that is intended behaviour for the delayed app key, as from the documentation its not clear thats the case.

                        I would expect the prices to be delayed of course, but after some time I would expect to be able to see what I saw on the exchange earlier, this is never the case.

                        Comment

                        • BetfairDeveloperProgram
                          Administrator
                          • Oct 2008
                          • 679

                          #13
                          Hi newbie99,

                          The behaviour is correct. The delay itself isn't uniform and is instead a series of delayed snapshots of the market. These snapshots are served randomly.so could you could have a sequence of snapshots showing data delay by 5, 1, 30, 5, 10, 90, 5 (etc.) seconds for example.

                          Neil

                          Comment

                          • newbie99
                            Junior Member
                            • Dec 2018
                            • 62

                            #14
                            Originally posted by BetfairDeveloperProgram View Post
                            Hi newbie99,

                            The behaviour is correct. The delay itself isn't uniform and is instead a series of delayed snapshots of the market. These snapshots are served randomly.so could you could have a sequence of snapshots showing data delay by 5, 1, 30, 5, 10, 90, 5 (etc.) seconds for example.

                            Neil
                            Ok great, many thanks for confirming!

                            Comment

                            Working...
                            X