Example #1
0
 public void ChangeAccount(Account account)
 {
     this.Account.Update(account);
     MdAdapter.ChangeAccount();
     TradeAdapter.ChangeAccount();
     ConfigHelper.SaveConfig(MD_CONFIG_KEY, this.Account);
 }
Example #2
0
File: Account.cs Project: botvs/QTS
 public void Update(Account account)
 {
     this.BrokerID = account.BrokerID;
     this.InvestorID = account.InvestorID;
     this.Password = account.Password;
     this.MDAddress = account.MDAddress;
     this.TDAddress = account.TDAddress;
 }
Example #3
0
 public void Init()
 {
     this.Account = ConfigHelper.GetConfig<Account>(MD_CONFIG_KEY);
     if (this.Account != null)
     {
         MdAdapter.ChangeAccount();
         TradeAdapter.ChangeAccount();
     }
 }