Table of Contents

Method SetSizeInBaseSymbol

Namespace
WhalesSecret.TradeScriptLib.Utils.Orders
Assembly
WhalesSecret.TradeScriptLib.dll

SetSizeInBaseSymbol(bool)

Sets if order size is specified in terms of order's base symbol or quote symbol.

public OrderRequestBuilder<TOrderRequest> SetSizeInBaseSymbol(bool sizeInBaseSymbol)

Parameters

sizeInBaseSymbol bool

true if the size is specified based on the base symbol, false if specified based on the quote symbol.

Returns

OrderRequestBuilder<TOrderRequest>

Builder to use in fluent syntax.

Exceptions

InvalidArgumentException

Thrown if the method is called for any other type than Market, StopLoss, or TakeProfit with sizeInBaseSymbol set to false. An exception is BinanceSpot that supports sizeInBaseSymbol set to false only for Market.