I have avoided using the python function betfairlightweight.filters.cancel_instruction because seemingly it only takes a single betId. I have built my own string for the instructions field, see example below. But it typically doesn't accepted by the exchange and is rejected. Any ideas what I'm doing wrong? Instructions_String = [{'betId': '199563656722'}, {'betId': '199563649740'}, {'betId': '199563657652'}, {'betId': '199563657654'}, {'betId': '199563656423'}, {'betId': '199563656724'}, {'betId': '199563656424'}, {'betId': '199563656425'}, {'betId': '199563656426'}, {'betId': '199563649744'}, {'betId': '199563649745'}, {'betId': '199563656427'}, {'betId': '199563651106'}, {'betId': '199563651959'}, {'betId': '199563651960'}, {'betId': '199563651961'}, {'betId': '199563649739'}, {'betId': '199563656725'}, {'betId': '199563656726'}, {'betId': '199563642204'}, {'betId': '199563642205'}, {'betId': '199563656728'}]
order = trading.betting.cancel_orders( market_id = '1.23472634287', instructions = Instructions_String, )


Comment