Open mjwvb opened 3 years ago
I'm trying to cancel my order with the custom client order id using rest.Trade.Orders.cancelOrderByClientOid(), but it doesn't do anything.
I was looking in the code, and it seems the function arguments are incorrect:
exports.cancelOrderByClientOid = async function cancelOrderByClientOid({ symbol, tradeType } = {}) { return await Http().DEL(`/api/v1/order/client-order/${clientOid}`); };
Should be something like:
exports.cancelOrderByClientOid = async function cancelOrderByClientOid(clientOid) { return await Http().DEL(`/api/v1/order/client-order/${clientOid}`); };
For now I have to use the unique order id with cancelOrder() as returned by postOrder(), but it's not ideal.
I'm trying to cancel my order with the custom client order id using rest.Trade.Orders.cancelOrderByClientOid(), but it doesn't do anything.
I was looking in the code, and it seems the function arguments are incorrect:
Should be something like:
For now I have to use the unique order id with cancelOrder() as returned by postOrder(), but it's not ideal.