Example #1
0
        public static PositionModel ToModel(double openPosFee, MainWindowController wndCtrl)
        {
            var model = new PositionModel();

            model.InitModel(null, wndCtrl);
            return(model);
        }
Example #2
0
        public static PositionModel ToModel(BitmexPositionData pos, MainWindowController wndCtrl)
        {
            var model = new PositionModel {
                Symbol = pos.Symbol
            };

            model.InitModel(pos, wndCtrl);
            return(model);
        }