API-NG Visualiser

Collapse
This is a sticky topic.
X
X
 
  • Time
  • Show
Clear All
new posts
  • BetfairDeveloperProgram
    Administrator
    • Oct 2008
    • 680

    #1

    API-NG Visualiser

    Today we have released a visualiser tool for the new Betfair API (API-NG), which you can access at https://api-ng.betstores.com/betting/. This visualiser is used by the API developers to allow quick experimentation with the API. As new features become available in API-NG, our aim is to extend the visualiser to support these new features to help with rapid adoption of the added functionality. Please note that the visualiser is provided as-is, and is intended solely as a testing resource. There are a number of useful features to the visualiser:

    • You can login and get a session token to use with API-NG through a simple interface
    • All existing API-NG operations are available
    • You can easily experiment with the parameters for your query
    • You can build sample requests and interact with the API directly (requests and responses are output to the JavaScript debug console) see attached.
    Last edited by Mr Stokes; 08-05-2013, 02:38 PM.
  • rafals
    Junior Member
    • Nov 2013
    • 2

    #2
    listMarketBook

    Hi

    MIght I ask how to retrive market book with all current bets created by other users of betfair ??


    I tried with different options but non of them returning something in bets.
    Attached Files

    Comment

    • betdynamics
      Junior Member
      • Sep 2010
      • 534

      #3
      Did YOU have any bets on the market?

      The API is not going to return any bets that are not related to the account that you are using.

      Comment

      • clerk
        Junior Member
        • Feb 2014
        • 10

        #4
        When calling listEventTypes API-NG-Visualiser not visible events Horse Racing - Todays Card.
        This type of event in the new api is not?

        Comment

        • betdynamics
          Junior Member
          • Sep 2010
          • 534

          #5
          Because "Today's Card" is NOT an event.

          If you want to show Today's Card, just retrieve the horse racing events that have a start date equal to today's date.

          Comment

          • clerk
            Junior Member
            • Feb 2014
            • 10

            #6
            In the old API "Today's Card" open as the eventType. Thought here is that possible

            Comment

            • DrKanye
              Junior Member
              • Oct 2015
              • 12

              #7
              The link doesnt work

              Comment

              • BetfairDeveloperProgram
                Administrator
                • Oct 2008
                • 680

                #8
                Hi Drkanye.

                The Visualisers are available via the following links:

                https://docs.developer.betfair.com/v...nt-operations/

                https://docs.developer.betfair.com/v...ts-operations/


                They are also embedded into the developer website via:

                https://developer.betfair.com/en/exchange-api/accounts-api-demo

                https://developer.betfair.com/en/exchange-api/betting-api-demo/


                Thanks

                Neil

                Comment

                • newbie99
                  Junior Member
                  • Dec 2018
                  • 62

                  #9
                  I have a strange situation occurring. For the following 4 markets:

                  1.151342310
                  1.130766060
                  1.138952650
                  1.130939030

                  I can see data correctly in the visualiser, however when I call listMarketProfitAndLoss via the API it returns no data for these markets (and only these markets, I have tried plenty of others and not been able to replicate the issue with any other markets).

                  I can't figure out why this could be and its really bugging me! Any suggestions?

                  Comment

                  • Tan
                    Junior Member
                    • Apr 2020
                    • 3

                    #10
                    Hi,

                    Iv just started to develop using MS Visual Basic... Im trying to hook it up to the API-NG on the visualizer I thought i registered successfully for APP key which i have but im trying to run a operation i.e get account funds i can not retrieve this the message I get in JSON as follows:

                    Response truncated to 4,000 chars:
                    [{"jsonrpc":"2.0","error":{"code":-32099,"message":"AANGX-0004","data":{"exceptionname":"AccountAPINGExcepti on","AccountAPINGException":{"requestUUID":"null", "errorCode":"INVALID_APP_KEY","errorDetails":""}}} ,"id":1}]

                    Can anyone assist?

                    ​​​​​​

                    Thanks

                    Comment

                    • jabe
                      Senior Member
                      • Dec 2014
                      • 705

                      #11
                      I haven't used the Visualizer for years. Instead, I added a tab to my program (also VB.NET). However, I've just successfully tried it out with both keys.

                      That said, I don't understand what you mean about "trying to hook it up to the API-NG on the visualizer". Also get account funds is not an option on the visualizer.

                      So, here is the visualizer. https://docs.developer.betfair.com/v...ts-operations/

                      Could you explain step-by-step how you sent your get account funds request?

                      Also, if you placed the request in a VB.NET program, could you show us the JSON code for the request.

                      Comment

                      • Tan
                        Junior Member
                        • Apr 2020
                        • 3

                        #12
                        https://docs.developer.betfair.com/v...nt-operations/
                        ... this is where i obtained the appkey from..... next tab down from "get developer app key" is "getaccountfunds" so after i have obtained my app key I selected get accountfunds, put the app key in the box and the SSOID and pressed execute, this is the JSON code from the google chrome browser:

                        Response truncated to 4,000 chars:
                        [{"jsonrpc":"2.0","error":{"code":-32099,"message":"AANGX-0004","data":{"exceptionname":"AccountAPINGExcepti on","AccountAPINGException":{"requestUUID":"null", "errorCode":"INVALID_APP_KEY","errorDetails":""}}} ,"id":1}]

                        I havent yet been able to connect to my VB program as it seems the APPKEY is invalid

                        Comment

                        • jabe
                          Senior Member
                          • Dec 2014
                          • 705

                          #13
                          Cheers. I just put the session id in from when I tried it earlier and was able get my account funds.

                          Did you get two appkeys? I don't know how the payment works. Did you use the test appkey or the live appkey?

                          The error message does indicate that it's not happy with your appkey. I think you're going to have to go via support.

                          https://support.developer.betfair.com/hc/en-us

                          Comment

                          • Tan
                            Junior Member
                            • Apr 2020
                            • 3

                            #14
                            There are 2 app keys 1.0 Delay and 1.0............... Iv just tried 1.0 Delay and that seems to be working, but the 1.0 is the one I need to be working to develop app... what is the difference between the 2? Thanks

                            Comment

                            • jabe
                              Senior Member
                              • Dec 2014
                              • 705

                              #15
                              The delayed one is meant to be for program development. Some of the returns take longer. From the FAQs, that can mean anything up to 180 seconds.

                              Some differences here: https://docs.developer.betfair.com/d...ationKeysUsage

                              It does mention that the live one is inactive on creation. Perhaps it needs verifiying by a staff person.

                              Comment

                              Working...
                              X