BotcancelOrderByID Method

Cancels the order by order id on session specified

Definition

Namespace: SharpTraderBot
Assembly: SharpTraderBot (in SharpTraderBot.dll) Version: 1.0.0
C#
public bool cancelOrderByID(
	int sessionIndex,
	string exchangeOrderId,
	string clientOrderId = ""
)

Parameters

sessionIndex  Int32
Index of session in used session list
exchangeOrderId  String
Ticket of the order on broker/exchange
clientOrderId  String  (Optional)
Unique client identificator for the order

Return Value

Boolean
Result of cancelation

See Also