Пример #1
0
 void _bf_gotFill(Trade t)
 {
     if (RewriteSecuritySymbols)
     {
         Security sec;
         if (allbaskets.TryGetSecurityAnySymbol(t.symbol, out sec))
         {
             t.symbol = sec.FullName;
         }
     }
     debug(t.symbol + " fill: " + t.ToString());
     if (actfill != null)
     {
         actfill.GotFill(t);
     }
     if (rfill != null)
     {
         try
         {
             rfill.GotFill(t);
         }
         catch (Exception ex)
         {
             debug(rname + " got fill error: " + ex.Message + ex.StackTrace + " on fill : " + t.ToString());
             status(rname + " fill  error, see debug for details.");
         }
     }
 }