Mohammad Mahdi HosseinZadeh
Mohammad Mahdi HosseinZadeh
You just need to remove spaces and encode the string. Do this: from urllib.parse import quote from json import dumps order_id_str = dumps(order_id).replace(" ", "") order_id_str = quote(order_id_str) self.client.cancel_order(symbol=pare, orderIdList=order_id_str)
You just need to remove spaces and encode the string. Do this: from urllib.parse import quote from json import dumps order_id_str = dumps(order_id).replace(" ", "") order_id_str = quote(order_id_str) self.client.cancel_order(symbol=pare, orderIdList=order_id_str)