C# Example Console App, not behaving as expected ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • geoffw123
    Senior Member
    • Mar 2014
    • 250

    #1

    C# Example Console App, not behaving as expected ?

    Hi

    I just downloaded the C# latest console App example from Github. With a bit of tinkering I got it running OK, however something is puzzling me that hopefully someone can explain. I have an Appkey and I generated a working session token, this connected and executed the example code where it tries to place a £0.10 bet at odds of 1000. As the console prints out this should be rejected with an error of "below the minimum bet size" (set at £1.00 these days I believe)

    However, it did not generate an error, it placed the bet successfully. To double check I looked on the website and found the bet placed as unmatched. I cancelled it from the website. I tried some other prices and odds, e.g. 0.05 @400 and again it placed without error. I checked the JSON coming back from the Server, both intstructionReports.status and instruction.status = "OK"

    Have Betfair abolished the minimum bet size condition recently ?

    Any thoughts appreciated.

    Geoff

  • Sansa
    Member
    • Jan 2019
    • 35

    #2
    Bets below minimum stake have been allowed for some time. I think 8th August 2016 Release:
    "bets below this value are valid if the payout of the bet would be equal to or greater than the value of ‘Min Bet Payout’ - £10 for GBP. For example, a bet of £1 @ 10, or 10p @ 100 or 1p @ 1000 are all valid as they all target a payout of £10 or more."

    Comment

    • geoffw123
      Senior Member
      • Mar 2014
      • 250

      #3
      Aha thanks Sansa, yes that is the explanation, I vaguely remember that modification they made, but had only recalled the other aspect of it where it broke everyone's trick of placing sub minimum bets. I just double checked and confirmed your post, with a bet of 0.05 @19 and that was rejected.

      So thats 2 things that are broken in Betfair's own example code.

      1) The code doesnt work as is, due to the wrong TLS version now.

      2) The server doesnt reject the sample bet like the console prints out it is doing.

      I hope newbies dont run that example code too often then as it could be costing them 10 pence a run without them even realising it !

      Thanks for the reponse

      Geoff
      Last edited by geoffw123; 16-05-2022, 11:33 AM.

      Comment

      Working...
      X