Invalid Bet Size error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bascoe
    Member
    • Sep 2018
    • 42

    #1

    Invalid Bet Size error

    Hi all,

    From time to time get an Invalid Bet size error... I am nominating a price I would like to lay, with an instruction to take BSP at market close. Usually works fine..

    (0) = {Status=FAILURE : ErrorCode=INVALID_BET_SIZE : Instruction={OrderType=LIMIT : SelectionId=40198723 : Handicap= : Side=LAY : LimitOrder=Size= : Price=17 : PersistenceType=MARKET_ON_CLOSE} : BetId= : PlacedDate= : AveragePriceMatched= : SizeMatched=}

    My instruction:

    {OrderType=LIMIT : SelectionId=40198723 : Handicap= : Side=LAY : LimitOrder=Price=17 : PersistenceType=MARKET_ON_CLOSE : betTargetType=PAYOUT : betTargetSize=30}

    Looks fine to me - $30 liability is the min payout in Australia, and 17 is a valid price.

    --------------------------------------------------

    The very next bet worked fine:

    {Status=SUCCESS : ErrorCode=OK : Instruction={OrderType=LIMIT : SelectionId=41198931 : Handicap= : Side=LAY : LimitOrder=Size= : Price=19 : PersistenceType=MARKET_ON_CLOSE} : BetId=263819328902 : PlacedDate=06/04/22 08:07:07 : AveragePriceMatched=0 : SizeMatched=0}

    (0) = {OrderType=LIMIT : SelectionId=41198931 : Handicap= : Side=LAY : LimitOrder=Price=19 : PersistenceType=MARKET_ON_CLOSE : betTargetType=PAYOUT : betTargetSize=30}

    Here are the json request and responses to the successful call, I lost the failed ones (but nothing has been changed)

    {"jsonrpc": "2.0", "method":"SportsAPING/v1.2/placeOrders","params": {"marketId":"1.197237611","instructions":[{"orderType":"LIMIT","selectionId":41198931,"si de" :"LAY","limitOrder":{"target":true,"price":19.0 ,"p ersistenceType":"MARKET_ON_CLOSE","betTargetType": "PAYOUT","betTargetSize":30.0}}],"customerRef":"AAAA"}, "id": 1}

    {"jsonrpc":"2.0","result":{"customerRef":"AAAA" ,"s tatus":"SUCCESS","marketId":"1.197237611","instruc tionReports":[{"status":"SUCCESS","instruction":{"selectionId ":4 1198931,"limitOrder":{"price":19.0,"betTargetSize" :30.0,"persistenceType":"MARKET_ON_CLOSE","betTarg etType":"PAYOUT"},"orderType":"LIMIT","side":"LAY" },"betId":"263819328902","placedDate":"2022-04-06T08:07:07.000Z","averagePriceMatched":0.0,"sizeM atched":0.0,"orderStatus":"EXECUTABLE"}]},"id":1}


    Any clues would be appreciated

    bascoe
    Last edited by Bascoe; 06-04-2022, 09:41 AM.
  • BetfairDeveloperProgram
    Administrator
    • Oct 2008
    • 680

    #2
    Hi Bascoe

    If you contact Developer Support via https://support.developer.betfair.co...s/requests/new we can investigate this issue further for you.

    Kind Regards

    Neil

    Comment

    Working...
    X