market order #xxx cannot be deleted
Mathias Halen:
Hi.
I'm trying to delete an order but I only get:
Hi.
I'm trying to delete an order but I only get:
market order #58321089 cannot be deleted.
I know that the ID is correct. I also know that the order is still live.
Why can this be?
I know that the ID is correct. I also know that the order is still live.
Why can this be?
You cannot delete a market order.
You don't check in your code whether the order is a pending order or not.
Mathias Halen: I'm trying to delete an order but I only get: market order #58321089 cannot be deleted. I know that the ID is correct. I also know that the order is still live. Why can this be?
You Delete Pending Orders and you Close Market Orders and not the other way round.
Keith Watford:
You cannot delete a market order.
You don't check in your code whether the order is a pending order or not.
Thank you. I just changed the code so it only delets pending orders and modifys open orders
I'm trying to delete an order but I only get:
I know that the ID is correct. I also know that the order is still live.
Why can this be?