Symbol.SwapShort
property · Symbol · cAlgo.API.Internals
DesktopCLICloud
Gets the SWAP charge for short positions of the symbol.
Definition
double SwapShort {get;}
api.Symbol.SwapShort: float
Returns double
Examples
var cheaperSide = Symbol.SwapLong > Symbol.SwapShort ? TradeType.Buy : TradeType.Sell;
Print("Swap short: {0}, side with the better swap: {1}", Symbol.SwapShort, cheaperSide);
cheaperSide = TradeType.Buy if api.Symbol.SwapLong > api.Symbol.SwapShort else TradeType.Sell
api.Print(f"Swap short: {api.Symbol.SwapShort}, side with the better swap: {cheaperSide}")