Speed of api-ng

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Intrepid
    Junior Member
    • Sep 2012
    • 11

    #1

    Speed of api-ng

    using ap16 the getprices is 0.1second
    using api-ng the listMarketBook round trip averages 0.3 second

    have others found this be the case?
  • AlgoTrader
    Junior Member
    • Mar 2012
    • 243

    #2
    Originally posted by Intrepid View Post
    using ap16 the getprices is 0.1second
    using api-ng the listMarketBook round trip averages 0.3 second

    have others found this be the case?
    Both results are bad. I have 20ms-25ms of listMarketBook. You need two things to be checked

    1) Persistent connections. If every request establishes a new HTTPS connection to server for each call, then your time is * 3

    2) Gzip compression. If you do not use gzip compression, then call time is * 2 for large responses

    PS I have VPS in London, home PC has bad Internet connection and has no reserve power supply (and makes some noise)
    Betfair Bots Made Easy

    Comment

    • mja
      Junior Member
      • Aug 2013
      • 4

      #3
      I had consistent listMarketBook responses of about 30ms until yesterday at about 2pm GMT. It now seems to take between 150ms and 200ms either from my VPS or home PC so I suspect there is a server or database performance issue at Betfair's end.

      I'm not sure if Betfair has servers in Gibraltar but there was a big fire and power outage there yesterday.

      Comment

      • AlgoTrader
        Junior Member
        • Mar 2012
        • 243

        #4
        Originally posted by mja View Post
        I had consistent listMarketBook responses of about 30ms until yesterday at about 2pm GMT. It now seems to take between 150ms and 200ms either from my VPS or home PC so I suspect there is a server or database performance issue at Betfair's end.

        I'm not sure if Betfair has servers in Gibraltar but there was a big fire and power outage there yesterday.
        Yes, right now things are bad. Some calls are 40ms, some are 400ms. The stuff is very unstable, hopefully I have any betting off for now
        Betfair Bots Made Easy

        Comment

        • Tipmanager1
          Junior Member
          • Sep 2013
          • 34

          #5
          @BDP please take the performance of the API-NG serious.
          No real betting is possible at the moment (in fact since yesterday).
          Or do we have to stop betting until the next working day.

          Comment

          • Ipposnif
            Member
            • Mar 2014
            • 36

            #6
            listMarketBook sice yesterday returns randomically OPEN and SUSPENDED status for a suspended market. It's the first time i notice that, it not seems a my cache or code problem. Have you noticed that?

            Comment

            • Tipmanager1
              Junior Member
              • Sep 2013
              • 34

              #7
              Maybe related but I see that the value of the inplay boolean in listMarketBook is 'randomly' set on True or False, anyone else witnessing the same?

              Comment

              • betdynamics
                Junior Member
                • Sep 2010
                • 534

                #8
                Yes - there is another thread on here that talks about it. It appears to have been going on since yesterday afternoon.

                I keep being told that the API team are looking into it, but nothing gets reported back.

                I'm pretty sure they need to bounce the servers to resync them but so far nothing.

                Comment

                • AlgoTrader
                  Junior Member
                  • Mar 2012
                  • 243

                  #9
                  Yesteday I saw lots of

                  Code:
                  {
                      code: -32099,
                      message: 'SANGX-0010',
                      data: {
                          exceptionname: 'APINGException',
                          APINGException: {
                              errorDetails: 'Servicecurrentlyunavailable',
                              errorCode: 'SERVICE_UNAVAILABLE',
                              requestUUID: 'prdsan-288259-03191049-000099292b'
                          }
                      }
                  }
                  Betfair Bots Made Easy

                  Comment

                  • Ipposnif
                    Member
                    • Mar 2014
                    • 36

                    #10
                    Now listMarketBook responses for status and inplay variables seems ok.

                    Comment

                    • rickoneeleven
                      Junior Member
                      • Feb 2014
                      • 15

                      #11
                      How do you guys benchmark the response times?

                      Thans
                      R

                      Comment

                      • AlgoTrader
                        Junior Member
                        • Mar 2012
                        • 243

                        #12
                        Originally posted by rickoneeleven View Post
                        How do you guys benchmark the response times?
                        That's rather a complicated process. First, at an invocation start, we have to remember time. When invocation is finished, we also get time. Now a complex part - we need to subtract from end time the start time and find out the difference. The difference is a duration.
                        Betfair Bots Made Easy

                        Comment

                        Working...
                        X