Spot Account Orders
CancelOrder
Path: Binance.Spot
Cancels an active order.
public OrderResult CancelOrder(
ISymbol Symbol,
long OrderId
);
Parameters
Symbol ISymbol
Order symbol to trade.
Binance Symbols Path: Symbols
OrderId long
Order Id.
Returns
OrderResult OrderResult
Returns OrderResult.
Remarks
It will cancel active order. You can get order id from OpenOrder Collection.
Example
var res = Binance.Spot.CancelOrder(Symbol, 1234);
if (res.IsSuccess)
{
Print("Order cancelled successfully");
}
else
{
Print("Failed to cancel order error# "+res.ErrorMessage);
}