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
booltrue
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 tofalse
. An exception is BinanceSpot that supportssizeInBaseSymbol
set tofalse
only for Market.