powered by
Cancel an order that has been placed using the testnet API.
tn_cancel_order(orderID = NULL, clOrdID = NULL, text = NULL)
Returns a data.frame with details about the order that was cancelled. See https://www.bitmex.com/api/explorer/#!/Order/Order_cancel for more information.
data.frame
string. Order ID.
string. Optional client ID set when placing an order.
string. Optional cancellation annotation. e.g. 'Spread Exceeded'.
if (FALSE) { # Cancel an order tn_cancel_order(clOrdID = "myorderid") }
Run the code above in your browser using DataLab