I am trying to test making a bet with the API, but i always get an INVALID_RUNNER error. i have tried changing the selection criteria for selecting a selectionId and bet prices. I have even tried inspecting the element in website to hard code, selectionID and price (to confirm the runners were valid, especially with my delayed feed from betfair) but i always get the below error.
The selectionId is an instance of a int and price is float.
{'instructions': [{'limitOrder': {'size': 4, 'persistenceType': 'PERSIST', 'price': 1.23}, 'side': 'BACK', 'selectionId': 5067518, 'orderType': 'LIMIT'}], 'marketId': '1.154594984'}
({'jsonrpc': '2.0', 'result': {'status': 'FAILURE', 'errorCode': 'BET_ACTION_ERROR', 'marketId': '1.154594984', 'instructionReports': [{'status': 'FAILURE', 'errorCode': 'INVALID_RUNNER', 'instruction': {'selectionId': 5067518, 'limitOrder': {'size': 4.0, 'price': 1.23, 'persistenceType': 'PERSIST'}, 'orderType': 'LIMIT', 'side': 'BACK'}}]}, 'id': 1}, 1.98132)
Any suggestions? I assume the error is returned for other reasons other than because the bet contained an INVALID_RUNNER.
kiwicricket
The selectionId is an instance of a int and price is float.
{'instructions': [{'limitOrder': {'size': 4, 'persistenceType': 'PERSIST', 'price': 1.23}, 'side': 'BACK', 'selectionId': 5067518, 'orderType': 'LIMIT'}], 'marketId': '1.154594984'}
({'jsonrpc': '2.0', 'result': {'status': 'FAILURE', 'errorCode': 'BET_ACTION_ERROR', 'marketId': '1.154594984', 'instructionReports': [{'status': 'FAILURE', 'errorCode': 'INVALID_RUNNER', 'instruction': {'selectionId': 5067518, 'limitOrder': {'size': 4.0, 'price': 1.23, 'persistenceType': 'PERSIST'}, 'orderType': 'LIMIT', 'side': 'BACK'}}]}, 'id': 1}, 1.98132)
Any suggestions? I assume the error is returned for other reasons other than because the bet contained an INVALID_RUNNER.
kiwicricket


Comment