SendOrder

Path: Binary

DataTypes Namespace: using static FinovoDataTypes.BinaryTypes;

Sends order with duration.

public OrderResult SendOrder(
                  ISymbol Symbol,
                  OrderTypes OrderType,
                  Basis Basis,
                  double Amount,
                  int Duration,
                  DurationUnits DurationUnit,
                  string Barrier = null,
                  string Barrier2 = null,
                  long Identifier = 0
                  );

Parameters

Symbol ISymbol

Order symbol to trade.

Binary Symbols Path: Symbols

OrderType OrderTypes

Order type to trade.

Basis Basis

Order amount type.

Amount double

Order amount to trade.

Duration int

Order duration.

DurationUnit DurationUnits

Order duration unit.

Barrier string

Order barrier.

Barrier2 string

Order barrier2.

Identifier long

Order identifier to uniquely identify.

Returns

OrderResult OrderResult

Returns OrderResult.

Remarks

Will send order to binary.com broker.

Barrier required for Touch, DoesNotTouch, EndsBetween, EndsOutside, StaysBetween, GoesOutside.

Barrier2 required for EndsBetween, EndsOutside, StaysBetween, GoesOutside.

Example

  var res = Binary.SendOrder(Symbol, OrderTypes.Lower, Basis.Stake, 1, 1, DurationUnits.Minutes);
  if (res.IsSuccess)
  {
     Print("Order opened successfully");        
  } 
  else
  {
     Print("Failed to open order error# "+res.ErrorMessage);
  } 

SendOrder

Path: Binary

DataTypes Namespace: using static FinovoDataTypes.BinaryTypes;

Sends order with open time and duration.

public OrderResult SendOrder(
                  ISymbol Symbol,
                  OrderTypes OrderType,
                  Basis Basis,
                  double Amount,
                  long OpenTime,
                  int Duration,
                  DurationUnits DurationUnit,
                  string Barrier = null,
                  string Barrier2 = null,
                  long Identifier = 0
                  );

Parameters

Symbol ISymbol

Order symbol to trade.

Binary Symbols Path: Symbols

OrderType OrderTypes

Order type to trade.

Basis Basis

Order amount type.

Amount double

Order amount to trade.

OpenTime long

Order open time.

Duration int

Order duration.

DurationUnit DurationUnits

Order duration unit.

Barrier string

Order barrier.

Barrier2 string

Order barrier2.

Identifier long

Order identifier to uniquely identify.

Returns

OrderResult OrderResult

Returns OrderResult.

Remarks

Will send order to binary.com broker.

Barrier required for Touch, DoesNotTouch, EndsBetween, EndsOutside, StaysBetween, GoesOutside.

Barrier2 required for EndsBetween, EndsOutside, StaysBetween, GoesOutside.

Example

  var res = Binary.SendOrder(Symbol, OrderTypes.Lower, Basis.Stake, 1, DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()+600 , 1, DurationUnits.Minutes);
  if (res.IsSuccess)
  {
     Print("Order opened successfully");        
  } 
  else
  {
     Print("Failed to open order error# "+res.ErrorMessage);
  } 

SendOrder

Path: Binary

DataTypes Namespace: using static FinovoDataTypes.BinaryTypes;

Sends order with expiry time.

public OrderResult SendOrder(
                  ISymbol Symbol,
                  OrderTypes OrderType,
                  Basis Basis,
                  double Amount,
                  long ExpiryTime,
                  string Barrier = null,
                  string Barrier2 = null,
                  long Identifier = 0
                  );

Parameters

Symbol ISymbol

Order symbol to trade.

Binary Symbols Path: Symbols

OrderType OrderTypes

Order type to trade.

Basis Basis

Order amount type.

Amount double

Order amount to trade.

ExpiryTime long

Order expiry time.

Barrier string

Order barrier.

Barrier2 string

Order barrier2.

Identifier long

Order identifier to uniquely identify.

Returns

OrderResult OrderResult

Returns OrderResult.

Remarks

Will send order to binary.com broker.

Barrier required for Touch, DoesNotTouch, EndsBetween, EndsOutside, StaysBetween, GoesOutside.

Barrier2 required for EndsBetween, EndsOutside, StaysBetween, GoesOutside.

Example

  var res = Binary.SendOrder(Symbol, OrderTypes.Lower, Basis.Stake, 1, DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()+600);
  if (res.IsSuccess)
  {
     Print("Order opened successfully");        
  } 
  else
  {
     Print("Failed to open order error# "+res.ErrorMessage);
  } 

SendOrder

Path: Binary

DataTypes Namespace: using static FinovoDataTypes.BinaryTypes;

Sends order with open time and expiry time.

public OrderResult SendOrder(
                  ISymbol Symbol,
                  OrderTypes OrderType,
                  Basis Basis,
                  double Amount,
                  long OpenTime,
                  long ExpiryTime,
                  string Barrier = null,
                  string Barrier2 = null,
                  long Identifier = 0
                  );

Parameters

Symbol ISymbol

Order symbol to trade.

Binary Symbols Path: Symbols

OrderType OrderTypes

Order type to trade.

Basis Basis

Order amount type.

Amount double

Order amount to trade.

OpenTime long

Order open time.

ExpiryTime long

Order expiry time.

Barrier string

Order barrier.

Barrier2 string

Order barrier2.

Identifier long

Order identifier to uniquely identify.

Returns

OrderResult OrderResult

Returns OrderResult.

Remarks

Will send order to binary.com broker.

Barrier required for Touch, DoesNotTouch, EndsBetween, EndsOutside, StaysBetween, GoesOutside.

Barrier2 required for EndsBetween, EndsOutside, StaysBetween, GoesOutside.

Example

  var res = Binary.SendOrder(Symbol, OrderTypes.Lower, Basis.Stake, 1, DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()+600 , DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()+1200);
  if (res.IsSuccess)
  {
     Print("Order opened successfully");        
  } 
  else
  {
     Print("Failed to open order error# "+res.ErrorMessage);
  }