Skip to content

Position.Swap

property · Position · cAlgo.API

DesktopCLICloud

Swap is the overnight interest rate if any, accrued on the position.

Definition

double Swap {get;}
position.Swap: float

Returns double

Examples

var position = Positions.Find("myLabel");
if (position != null)
    Print("Swap: {0}", position.Swap);
position = api.Positions.Find("myLabel")
if position is not None:
    api.Print(f"Swap: {position.Swap}")