Hi all,
I just built a tool in python that scrapes tips from a horse racing platform in which I'm subscribed, and then I place orders for these tips on betfair.
I've been testing and I noticed that some bets, although the place order was successful but the bets are actually not placed(or should I say 'bets are not filled').
Here's a snippet of my placeOrder instruction:
"instructions": [{"selectionId": "'+str(selectionId)+'","handicap": "0","side": "BACK","orderType": "LIMIT","limitOrder": {"size": "'+str(stake)+'",' '"price": "'+str(odds)+'","persistenceType": "LAPSE"}}]
Please how can I ensure that my orders are always filled no matter what? Do I have to add/change some parameter in my json instruction?
Note: I get my price('odds') by calling the listRunnerBook method and fetching the lastTradedPrice as my input price in my placeOrder.
Any help or pointers would be greatly appreciated.
I just built a tool in python that scrapes tips from a horse racing platform in which I'm subscribed, and then I place orders for these tips on betfair.
I've been testing and I noticed that some bets, although the place order was successful but the bets are actually not placed(or should I say 'bets are not filled').
Here's a snippet of my placeOrder instruction:
"instructions": [{"selectionId": "'+str(selectionId)+'","handicap": "0","side": "BACK","orderType": "LIMIT","limitOrder": {"size": "'+str(stake)+'",' '"price": "'+str(odds)+'","persistenceType": "LAPSE"}}]
Please how can I ensure that my orders are always filled no matter what? Do I have to add/change some parameter in my json instruction?
Note: I get my price('odds') by calling the listRunnerBook method and fetching the lastTradedPrice as my input price in my placeOrder.
Any help or pointers would be greatly appreciated.
Comment