Table of Contents

Constructor OrderRequest

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

OrderRequest(OrderType, string?, SymbolPair, OrderSide, decimal, bool)

Creates a new instance of the object.

protected OrderRequest(OrderType orderType, string? clientOrderId, SymbolPair symbolPair, OrderSide side, decimal size, bool sizeInBaseSymbol = true)

Parameters

orderType OrderType

Order type.

clientOrderId string

Unique client order ID. See ClientOrderId for details.

symbolPair SymbolPair

Market on the exchange.

side OrderSide

Whether to buy or sell the base symbol.

size decimal

Amount of symbolPair base symbol to buy or sell.

sizeInBaseSymbol bool

true if the size is specified in terms of the base symbol, false if the order size is specified in terms of the quote symbol.

Exceptions

InvalidArgumentException

Thrown if: