SendOrder

Path: IQOption.Binary

DataTypes Namespace: using static EdgDataTypes.IQOptionTypes;

Sends order to iqoption.

public OrderResult SendOrder(
                  ISymbol Symbol,
                  OrderTypes OrderType,
                  double Amount,
                  ExpiryBinary ExpiryBinary,
                  long Identifier = 0
                  );

Parameters

Symbol ISymbol

Order symbol to trade.

IQOption Symbols Path: Symbols

OrderType OrderTypes

Order type to trade.

Amount double

Order amount to trade.

ExpiryBinary ExpiryBinary

Order expiry time.

IQOption ExpiriesBinary Path: ExpiriesBinary

Identifier long

Order identifier to uniquely identify.

Returns

OrderResult OrderResult

Returns OrderResult.

Remarks

Will send IQOption Binary Order type.

Example

  var res = IQOption.Binary.SendOrder(Symbol, OrderTypes.Higher, 1, ExpiriesBinary.Minute1);
  if (res.IsSuccess)
  {
     Print("Order opened successfully");        
  } 
  else
  {
     Print("Failed to open order error# "+res.ErrorMessage);
  }