Esempio n. 1
0
 public InvestorDepot Login(InvestorRegistration r, string exchangeId)
 {
     email = r.Email;
     client.SubscribeOnNewShareInformationAvailable(exchangeId);
     client.SubscribeOnNewOrderAvailable(exchangeId);
     client.SubscribeOnNewTransactionAvailable(exchangeId);
     client.SubscribeOnNewInvestorDepotAvailable(exchangeId);
     return(client.LoginInvestor(r, exchangeId));
 }
Esempio n. 2
0
 public void Login(FundRegistration r, string exchangeId)
 {
     fundid = r.Id;
     client.SubscribeOnNewShareInformationAvailable(exchangeId);
     client.SubscribeOnNewOrderAvailable(exchangeId);
     client.SubscribeOnNewTransactionAvailable(exchangeId);
     client.SubscribeOnNewInvestorDepotAvailable(exchangeId);
     client.SubscribeOnNewFundDepotAvailable(exchangeId);
     client.LoginFund(r, exchangeId);
 }
 public WcfDataService()
 {
     client    = new WallstreetDataServiceClient(new InstanceContext(this));
     exchanges = client.GetExchanges();
     foreach (string e in exchanges)
     {
         client.SubscribeOnNewShareInformationAvailable(e);
         client.SubscribeOnNewOrderAvailable(e);
         client.SubscribeOnNewTransactionAvailable(e);
     }
     marketCallbacks           = new List <Action <ShareInformation> >();
     orderAddedCallbacks       = new List <Action <Order> >();
     orderRemovedCallbacks     = new List <Action <Order> >();
     transactionAddedCallbacks = new List <Action <Transaction> >();
 }