Very strange "place bet" delay.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • scrarass
    Junior Member
    • Oct 2015
    • 2

    #1

    Very strange "place bet" delay.

    Hello fellow botmakers and api diggers.
    I have very strange and unsatisfying "place bet" command delays. Despite the fact that my bot deployed very close to betfair, delay ranges from 50ms to 150-170ms, so it's nowhere near expected 15-20ms. But if i wittingly change some "place bet" parameters (for ex. set price to error value 2.01 or 777, whatever), and call this erroneous "place bet" command right after delayed "place bet" command (with right parameters), erroneous "place bet" command delay is 15-20 as it should be. So i have a few questions:

    1. What delays do you, guys, have?
    2. Is it happening because of "place bet" command is sent to another destination (for ex. somwhere faraway from Ireland) and calculated there?
    3. And if some of users have right delays (15-20 or better), is it some sort of discrimination for other users?
    We are the champions!
  • jptrader
    Junior Member
    • Nov 2009
    • 82

    #2
    Placing orders takes more time than the other commands. The reason is probably that placing orders requires changing the data while other commands only reads the data. I do not believe orders anymore are sent outside Ireland (previously some orders were sent via Malta), and I do not think there is any discrimination in place.

    Comment

    • Mr Magoo
      Junior Member
      • Jan 2011
      • 86

      #3
      Could it be that your application is making a new HTTPS connection for the first bet placement (perhaps because you hadn't made any other API calls for a few seconds), and the second bet placement is reusing the established connection?

      Comment

      • zoltanthemage
        Junior Member
        • May 2015
        • 17

        #4
        Originally posted by scrarass View Post
        Hello fellow botmakers and api diggers.
        I have very strange and unsatisfying "place bet" command delays. Despite the fact that my bot deployed very close to betfair, delay ranges from 50ms to 150-170ms, so it's nowhere near expected 15-20ms. But if i wittingly change some "place bet" parameters (for ex. set price to error value 2.01 or 777, whatever), and call this erroneous "place bet" command right after delayed "place bet" command (with right parameters), erroneous "place bet" command delay is 15-20 as it should be. So i have a few questions:

        1. What delays do you, guys, have?
        2. Is it happening because of "place bet" command is sent to another destination (for ex. somwhere faraway from Ireland) and calculated there?
        3. And if some of users have right delays (15-20 or better), is it some sort of discrimination for other users?
        A validation error is clearly much quicker than saving a set of data.
        The response to your wrong price request can be immediate, as soon as data is validated and without any data write, commit, etc.

        Comment

        Working...
        X