Exemplo n.º 1
0
 void OnAccountInfo(object sender, AccountInfoEventArgs e)
 {
     var trade = (DataTrade)sender;
     trade.AccountInfo -= this.OnAccountInfo;
     this.eventArgs = e;
     this.syncEvent.Set();
 }
Exemplo n.º 2
0
 void OnAccountInfo(object sender, AccountInfoEventArgs e)
 {
     lock (this.SyncRoot)
     {
         this.updateCallback(null, e.Information, null);
         this.processor.WakeUp();
     }
 }
Exemplo n.º 3
0
 void RaiseAccountInfo(FxMessage message)
 {
     var eh = this.AccountInfo;
     if (eh != null)
     {
         var e = new AccountInfoEventArgs(message);
         eh(this, e);
     }
 }
Exemplo n.º 4
0
Arquivo: Snapshot.cs Projeto: ifzz/FDK
 void OnAccountInfo(object sender, AccountInfoEventArgs e)
 {
     lock (this.synchronizer)
     {
         this.AccountInfo = e.Information;
     }
     this.syncEvent.Set();
 }
Exemplo n.º 5
0
 void DataTrade_AccountInfo(object sender, AccountInfoEventArgs e)
 {
     this.accountInfoEvent.Set();
 }
Exemplo n.º 6
0
Arquivo: Example.cs Projeto: ifzz/FDK
 void OnAccountInfo(object sender, AccountInfoEventArgs e)
 {
     Console.WriteLine("OnAccountInfo(): {0}", e);
 }
Exemplo n.º 7
0
 private void OnAccountInfo(object sender, AccountInfoEventArgs e)
 {
     TradeResults = new AccountTradeResults(e.Information.AccountId, _ordersPerSec);
     TradeIsReady.Set();
 }
Exemplo n.º 8
0
Arquivo: Program.cs Projeto: ifzz/FDK
 static void OnAccountInfo(object sender, AccountInfoEventArgs e)
 {
     Console.WriteLine("OnAccountInfo(): {0}", e.Information);
     Console.WriteLine("Press any key to exit...");
 }