by Happy Harry » Thu Mar 24, 2022 12:40 pm
Hello you guys.
BA has been solid and reliable for quite a while. But today there was one bet not placed. Not a big bet and not a big price although it did win which is a bit annoying. Here is the log information.
What I would like to know is was that a Betfair API issue - it seems that there was a period on this Ipswich Race less than a minute to the jump where the Market was Suspended or is this an Australian Internet Outage? Or something else?
It looks to me as though the bet was correctly offered up but due to some suspension of the market it was not placed. So does BA in this case keep retrying? or is the solution to place the bets earlier - same issues though. If a market has been suspended and the bet was put into the market at say 5 minutes out and errored will BA try at 4 mins. And then 3 mins and so on.
Or asking perhaps the entire question a different way what is the code situation for BA when the result is
"Bet place error json:{"status":"FAILURE","errorCode":"MARKET_SUSPENDED","marketId":"1.196535822","instructionReports":[{"status":"FAILURE","errorCode":"ERROR_IN_ORDER","instruction":{"selectionId":40210506,"handicap":0.0,"limitOnCloseOrder":{"liability":91.0,"price":1.3},"customerOrderRef":"637837235968092555","orderType":"LIMIT_ON_CLOSE","side":"BACK"}}]}"
So valid bet. Valid runner. Valid error return. How is BA coded to deal with that situation and how do I make sure that, assuming what I am seeing here is correct, BA keeps trying until the race is reopened and the bet goes through?
Here is the log information.
Many Thanks.
HH.
24032022 17:36:07:733T9: Market id:196535822 selected, error:
24032022 17:36:08:061T10: Excel bet triggered:BACKSP, Odds:1.3, Stake:91, Selection:1. Conglomerate
24032022 17:36:08:368: Bet place error json:{"status":"FAILURE","errorCode":"MARKET_SUSPENDED","marketId":"1.196535822","instructionReports":[{"status":"FAILURE","errorCode":"ERROR_IN_ORDER","instruction":{"selectionId":40210506,"handicap":0.0,"limitOnCloseOrder":{"liability":91.0,"price":1.3},"customerOrderRef":"637837235968092555","orderType":"LIMIT_ON_CLOSE","side":"BACK"}}]}
24032022 17:36:08:368: order 0
Object type:PlaceExchBets,Members: handicap:0;betType:0;betCategoryType:2;betPersistenceType:0;marketId:196535822;price:1.3;selectionId:40210506;size:91;bspLiability:91;pendingId:49;
Object type:PlaceExchBets,Properties:
24032022 17:36:08:384: Request json: {"marketId":"1.196535822","instructions":[{"orderType":"LIMIT_ON_CLOSE","selectionId":40210506,"customerOrderRef":"637837235968092555","handicap":0,"side":"BACK","limitOnCloseOrder":{"liability":91,"price":1.3}}]}
24032022 17:36:08:384: placeBets EVENT_SUSPENDED
24032022 17:36:08:384: placeBets error: EVENT_SUSPENDED
24032022 17:36:11:610T9: Excel first update after market changed. Id:196535822, Name:Ipswich (AUS) 24th Mar - 17:37 R6 800m CL1
24032022 17:36:11:610T9: Logging results after market changed.
24032022 17:36:11:610T9: Logging Excel bet results for:Ipswich (AUS) 24th Mar - 17:37 R6 800m CL1, refs:262538565244;262539586826;262539586827;262539586828;262539992211;262539992212;262539993343;262541159132;262541351849;262541788880;262541788881;262542184164;262542462052;262542752843;262543261144;262543261145;262543711704;262543923864;262543923865;262543924152;262544139380
24032022 17:36:11:951: {"currentOrders":[],"moreAvailable":false}
24032022 17:36:12:258: {"clearedOrders":[],"moreAvailable":false}
24032022 17:36:12:292T9: Logging bet results took 682ms
24032022 17:36:13:659T9: Excel bet triggered:BACKSP, Odds:11.50, Stake:7.5, Selection:1. Conglomerate
24032022 17:36:29:196T12: Adding market To Be Placed to auto select queue. Quick pick index:31
24032022 17:36:29:196T0: Adding market R6 800m CL1 to auto select queue. Quick pick index:31
24032022 17:36:29:196T12: Getting market details for auto selected market To Be Placed. Quick pick index:31
24032022 17:36:29:196T0: Getting market details for auto selected market R6 800m CL1. Quick pick index:31
24032022 17:36:29:196T5: Adding market R6 800m CL1 to auto select queue. Quick pick index:31
24032022 17:36:29:196T5: Getting market details for auto selected market R6 800m CL1. Quick pick index:31
24032022 17:36:29:862T12: Auto selecting quick pick list item 32 out of 47
24032022 17:36:29:862T12: Excel sheet:Market. Getting market details: To Be Placed 17:37, result:OK
24032022 17:36:29:994: 196537331 unsubbed.
24032022 17:36:29:994: Subscribing market id:196535823
24032022 17:36:29:994: Subscribing all markets
24032022 17:36:29:994: Subscribing to 4 markets. Full market depth:False, Ladder levels:3, Traded volume:False
24032022 17:36:29:994T12: Market id:196535823 selected, error:
24032022 17:36:30:116T0: Auto selecting quick pick list item 32 out of 47
24032022 17:36:30:116T0: Excel sheet:Market. Getting market details: R6 800m CL1 17:37, result:OK
24032022 17:36:30:221: Request to:https://api.betfair.com/exchange/betting/rest/v1.0/listMarketBook/ timed out after 218 ms
24032022 17:36:30:221T12: getPricesBetfair (streaming enabled) error:System.NullReferenceException: Object reference not set to an instance of an object.
at Betting_Assistant.exchAPI.getPricesBetfair(Int32 marketId, Boolean ausMarket, Boolean includeFullDepth, Boolean includeTradedVol, betfairTabPage tb, Int32 timeout, String& resultCode, Int32 ladderDepth)
24032022 17:36:30:221T12: Stream data:
24032022 17:36:30:236T0: Market id:196535822 selected, error:
24032022 17:36:30:332: Request to:https://api.betfair.com/exchange/betting/rest/v1.0/listMarketBook/ timed out after 218 ms
24032022 17:36:30:332T10: getPricesBetfair (streaming enabled) error:System.NullReferenceException: Object reference not set to an instance of an object.
at Betting_Assistant.exchAPI.getPricesBetfair(Int32 marketId, Boolean ausMarket, Boolean includeFullDepth, Boolean includeTradedVol, betfairTabPage tb, Int32 timeout, String& resultCode, Int32 ladderDepth)
24032022 17:36:30:332T10: Stream data:
24032022 17:36:30:503: Request to:https://api.betfair.com/exchange/betting/rest/v1.0/listMarketBook/ timed out after 268 ms
24032022 17:36:30:503T12: getPricesBetfair (streaming enabled) error:System.NullReferenceException: Object reference not set to an instance of an object.
at Betting_Assistant.exchAPI.getPricesBetfair(Int32 marketId, Boolean ausMarket, Boolean includeFullDepth, Boolean includeTradedVol, betfairTabPage tb, Int32 timeout, String& resultCode, Int32 ladderDepth)
24032022 17:36:30:503T12: Stream data:
24032022 17:36:30:614: Request to:https://api.betfair.com/exchange/betting/rest/v1.0/listMarketBook/ timed out after 268 ms
24032022 17:36:30:615T0: getPricesBetfair (streaming enabled) error:System.NullReferenceException: Object reference not set to an instance of an object.
at Betting_Assistant.exchAPI.getPricesBetfair(Int32 marketId, Boolean ausMarket, Boolean includeFullDepth, Boolean includeTradedVol, betfairTabPage tb, Int32 timeout, String& resultCode, Int32 ladderDepth)
24032022 17:36:30:615T0: Stream data:
24032022 17:36:30:682: New market image, id:1.196535823
24032022 17:36:30:698: New market image, id:1.196535822
24032022 17:36:30:714: Request to:https://api.betfair.com/exchange/betting/rest/v1.0/listMarketBook/ timed out after 268 ms
24032022 17:36:30:714T4: getPricesBetfair (streaming enabled) error:System.NullReferenceException: Object reference not set to an instance of an object.
at Betting_Assistant.exchAPI.getPricesBetfair(Int32 marketId, Boolean ausMarket, Boolean includeFullDepth, Boolean includeTradedVol, betfairTabPage tb, Int32 timeout, String& resultCode, Int32 ladderDepth)
24032022 17:36:30:714T4: Stream data:
24032022 17:36:30:714: New market image, id:1.196540953
24032022 17:36:30:714: New market image, id:1.196537332
24032022 17:36:30:859T5: Auto selecting quick pick list item 32 out of 47
24032022 17:36:30:859T5: Excel sheet:Market. Getting market details: R6 800m CL1 17:37, result:OK
24032022 17:36:31:019T5: Market id:196535822 selected, error: