예제 #1
0
        public DemoDotNetClientForm() 
        {
            InitializeComponent();                      

            _accountIds = new Dictionary<string, string>();
            _accountsStk = new SubscribedTableKey();
           
            EnableCommandButtons(false);

            _watchlists     = new List<Watchlist>();
            _watchlistMarkets    = new List<WatchlistMarket>();
            _orders         = new List<WorkingOrder>();
            _positions      = new List<OpenPosition>();

            cbPositions.Enabled         = false;
            cbOrders.Enabled            = false;
            cbWatchlistItems.Enabled    = false;

            _igRestApiClient = new IgRestApiClient();
            _igStreamApiClient = new IGStreamingApiClient();

            _APIKey = "8d341413c2eae2c35bb5b47a594ef08ae18cb3b7";                 // *** TODO ENTER YOUR API KEY HERE ***
            passwordTextbox.Text = "Kotik0483";    // *** TODO Enter your password here ***
            identifierTextbox.Text = "ksbitlsoftdemo";  // *** TODO Enter your user name here ***            
        }
예제 #2
0
 public void InitialiseViewModel()
 {          
     igRestApiClient = new IgRestApiClient();           
     igStreamApiClient = new IGStreamingApiClient();            
 }