powered by
Futures: Cancel Order
cb_close_order(client_order_id = cb_get_order_id(), product_id, size = NULL)
Cancel response data.frame status for a futures order
data.frame
= defaults to random id via cb_get_order_id()
= futures contract to close
= number of contracts to close, defaults to closing all available
if (FALSE) { cb_close_order(product_id = "BIT-28JUL23-CDE") }
Run the code above in your browser using DataLab