Problem with parameters for MOC and LOC bets

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • monkeymagix
    Junior Member
    • Jul 2010
    • 105

    #1

    Problem with parameters for MOC and LOC bets

    Hi

    I am having issues with an "Invalid Size Parameter Supplied" error every time I try and set an Market On Close bet.

    It's a LAY bet so I am just setting the BSPLiability to the amount I want in this case it was £14.94.

    I am then setting Price and Size to 0 but this doesn't help.

    I have also tried NOT setting the Price/Size (e.g NULL) but that doesn't help either.

    Is it due to the size of the BSPLiability bet e.g £14.94 IS NOT A VALID amount?

    I think I may have just run into Techies Law here!!

    Thanks for your help (letting me talk out the problem) if this is the answer!
  • monkeymagix
    Junior Member
    • Jul 2010
    • 105

    #2
    Although...

    although I have just checked the history of these errors and I have had liabilities of 10.00 and 8.00 which are valid values.

    I have tried setting Size to 0 and not setting it all.

    Price is currently set to 0.

    From the table it says

    Bet Category Price Size BspLiability BetPersistenceType
    Exchange Yes Yes No Yes
    Market on Close No No Yes No
    Limit on Close Yes No Yes No

    So I should just be setting the bspLiability to the amount I want to risk e.g 10.00 or 14.00 and then that's it.

    So what is causing these errors?

    Comment

    • betdynamics
      Junior Member
      • Sep 2010
      • 534

      #3
      When I had this, I found that I needed to round the size before I placed it in the json string.

      In c# terms, Math.Round(value, 2);

      Comment

      Working...
      X