public OrdersViewModel()
        {
            InitialiseViewModel();

            Orders = new ObservableCollection <IgPublicApiData.OrderModel>();

            WireCommands();

            // Initialise LS subscriptions
            _l1OrderPricesSubscription         = new MarketDetailsTableListerner();
            _l1OrderPricesSubscription.Update += OnMarketUpdate;
        }
        public BrowseViewModel()
        {
            InitialiseViewModel();

            BrowseNodes   = new ObservableCollection <HierarchyNode>();
            BrowseMarkets = new ObservableCollection <IgPublicApiData.BrowseModel>();

            NodeIndex = 0;

            // Initialise LS subscriptions
            _l1BrowsePricesSubscription         = new MarketDetailsTableListerner();
            _l1BrowsePricesSubscription.Update += OnMarketUpdate;
            // initialise the LS SubscriptionTableKeys
            _browseSubscriptionTableKey = new SubscribedTableKey();
            _browseSubscriptionTableKey = null;

            WireCommands();
        }
Exemple #3
0
        public WatchlistsViewModel()
        {
            Watchlists       = new ObservableCollection <IgPublicApiData.WatchlistModel>();
            WatchlistMarkets = new ObservableCollection <IgPublicApiData.WatchlistMarketModel>();
            ChartMarketData  = new ObservableCollection <IgPublicApiData.ChartModel>();

            WatchlistIndex       = 0;
            WatchlistMarketIndex = 0;
            ChartIndex           = 0;

            WireCommands();

            _l1PricesSubscription         = new MarketDetailsTableListerner();
            _l1PricesSubscription.Update += OnMarketUpdate;

            _chartSubscription         = new ChartCandleTableListerner();
            _chartSubscription.Update += OnChartCandleDataUpdate;
        }