BotclosePositionByID Method

Closes the position with ID specified

Definition

Namespace: SharpTraderBot
Assembly: SharpTraderBot (in SharpTraderBot.dll) Version: 1.0.0
C#
public string closePositionByID(
	string positionID,
	double price = 0,
	int slippage = 0,
	OrderType oType = OrderType.MARKET
)

Parameters

positionID  String
ID of the position to be closed
price  Double  (Optional)
Price at which position shoul be closed
slippage  Int32  (Optional)
Maximum slippage allowed
oType  OrderType  (Optional)
Type of the order used for closure

Return Value

String
Unique client identificator for the order

See Also