Order(IExecutionProvider, Portfolio, Instrument, OrderType, OrderSide, Double, Double, Double, TimeInForce, Byte, String) Constructor

Initializes a new instance of the Order class.
public Order( 
IExecutionProvider provider
Portfolio portfolio
Instrument instrument
OrderType type
OrderSide side
double qty
double price = 0, 
double stopPx = 0, 
TimeInForce timeInForce = TimeInForce.Day, 
byte routeId = 0, 
string text = "" 
)
This language is not supported or no code example is available.
public:  
Order( 
IExecutionProvider^ provider
Portfolio^ portfolio
Instrument^ instrument
OrderType type
OrderSide side
double qty
double price
double stopPx
TimeInForce timeInForce
Byte routeId
String^ text 
)
This language is not supported or no code example is available.
public function Order( 
provider : IExecutionProvider
portfolio : Portfolio
instrument : Instrument
type : OrderType
side : OrderSide
qty : double
price : double
stopPx : double
timeInForce : TimeInForce
routeId : byte
text : String 
);
This language is not supported or no code example is available.

Parameters

provider
IExecutionProvider

The provider.

portfolio
Portfolio

The portfolio.

instrument
Instrument

The instrument.

type
OrderType

The type.

side
OrderSide

The side.

qty
double

The qty.

price
double

The price.

stopPx
double

The stop px.

timeInForce
TimeInForce

The time in force.

routeId
byte

text
string

The text.

In this article

Definition