BotsendOrder(Int32, String, Double, OrderSide, OrderType, Double, String) Method

Sends the order with set of parameters to session specified

Definition

Namespace: SharpTraderBot
Assembly: SharpTraderBot (in SharpTraderBot.dll) Version: 1.0.0
C#
public string sendOrder(
	int sessionIndex,
	string symbol,
	double volume,
	OrderSide side,
	OrderType type,
	double requestedPrice,
	string comment
)

Parameters

sessionIndex  Int32
Index of session in used session list
symbol  String
Common symbol name
volume  Double
Order volume
side  OrderSide
Order side
type  OrderType
Order type
requestedPrice  Double
Order price (for market orders - current market price, for Limit orders - limit price,for Stop orders - stop price)
comment  String
Comment for the order

Return Value

String
Unique client identificator for the order

See Also