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
stringUnique client order ID, or
null
to let the system generate the ID.symbolPair
SymbolPairMarket on the exchange.
side
OrderSideWhether to buy or sell the base symbol.
price
decimalThe highest (the lowest) price for which to buy (sell) base symbol of
symbolPair
.size
decimalAmount of
symbolPair
base symbol to buy or sell.timeInForce
TimeInForceSpecifies how long an order is supposed to be active.
maker
boolFlag 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, orprice
is not strictly positive number.