Table of Contents

Constructor LimitOrderRequest

Namespace
WhalesSecret.TradeScriptLib.Entities.Orders
Assembly
WhalesSecret.TradeScriptLib.dll

LimitOrderRequest(string?, SymbolPair, OrderSide, decimal, decimal, TimeInForce, bool)

Creates a new instance of the object.

public LimitOrderRequest(string? clientOrderId, SymbolPair symbolPair, OrderSide side, decimal price, decimal size, TimeInForce timeInForce = TimeInForce.GoodTillCancel, bool maker = false)

Parameters

clientOrderId string

Unique client order ID, or null to let the system generate the ID.

symbolPair SymbolPair

Market on the exchange.

side OrderSide

Whether to buy or sell the base symbol.

price decimal

The highest (the lowest) price for which to buy (sell) base symbol of symbolPair.

size decimal

Amount of symbolPair base symbol to buy or sell.

timeInForce TimeInForce

Specifies how long an order is supposed to be active.

maker bool

Flag denoting whether the order is restricted, once placed, to remove liquidity from the exchange market.

Exceptions

InvalidArgumentException

Thrown if:

  • size is not strictly positive number, or
  • price is not strictly positive number.