public static PositionModel ToModel(double openPosFee, MainWindowController wndCtrl) { var model = new PositionModel(); model.InitModel(null, wndCtrl); return(model); }
public static PositionModel ToModel(BitmexPositionData pos, MainWindowController wndCtrl) { var model = new PositionModel { Symbol = pos.Symbol }; model.InitModel(pos, wndCtrl); return(model); }