예제 #1
0
 public BfxPositionsElement(BfPosition pos)
 {
     ChildOrderAcceptanceId = string.Empty;
     Open                = pos.OpenDate;
     Price               = pos.Price;
     CurrentSize         = OpenSize = pos.Side == BfTradeSide.Buy ? pos.Size : -pos.Size;
     SwapPointAccumulate = pos.SwapPointAccumulate;
     _commission         = pos.Commission;
     _sfd                = pos.SwapForDifference;
 }
예제 #2
0
 public DbPosition(BfPosition pos)
 {
 }
예제 #3
0
 // Called when position is added or removed.
 static void OnPositionChanged(BfPosition pos, bool addedOrRemoved)
 {
 }