Issue placing bets for soccer, tennis, snooker, basketball, etc.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • andrap
    Junior Member
    • Dec 2018
    • 5

    #1

    Issue placing bets for soccer, tennis, snooker, basketball, etc.

    Hi everyone,

    I'm building my own app. I've successfully managed to do whatever I need until today when I've experienced very strange behaviour.
    I can place any size any side bet for horse racing and greyhound racing pre-race and in-play, but then it comes to ANY other sport, I can place a bet only pre-game and when I'm trying to place a bet in-play I'm getting the error message "the operation has timed out." Please see the screenshot below where you can see my code and the error message
    https://imgur.com/a/RGoYKN3

    I've tried increasing timeout, changing default connection limit and max service point idle time. none of that help.

    I am sure the event is not suspended as I've tried many times for different events, and different sports. I'm using Live key so it should not be any delays.

    Does anyone have an idea what I'm doing wrong?

    Just in case please see an example of my json request string :

    [{"jsonrpc":"2.0","method":"SportsAPING/v1.0/placeOrders","params":{"marketId":"1.154919429","i nstructions":[{"selectionId":12564948,"handicap":0.0,"side":" LAY ","orderType":"LIMIT","limitOrder":{"size":2.0 ,"pr ice":1.01,"persistanceType":"LAPSE"}}]},"id":1}]


    update 15/02/2019 16:03: Just to clarify, my bets are placed to the market successfully,
    https://imgur.com/a/NqFPjY7

    it's just I get the error above.

    update 15/02/2019 16:11. Issue solved. Apparently, the timeout is in milliseconds and 2000ms is only 2sec. and I've completely forgotten that placing bets in-play we are getting the following delay for at least 5 sec for football.
    https://imgur.com/a/ongHJ7v
    Last edited by andrap; 15-02-2019, 05:12 PM.
  • Dom
    Junior Member
    • Nov 2018
    • 2

    #2
    You can always place the bets "asynchronously" using a request flag which will return immediately with a bet stats of pending

    Comment

    Working...
    X