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)); }
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> >(); }