示例#1
0
        private void Update()
        {
            UpdatePortfolio(PositionMonitorUtilities.GetCurrentPositionsForAccount(AccountName));

#if DEBUG
            PositionMonitorUtilities.Debug(String.Format("{0} refreshed portfolio: {1} positions", Name, m_portfolio.Count));
#endif
            if (m_refreshEventHandler != null)
            {
                m_refreshEventHandler(this, new EventArgs());
            }
        }
示例#2
0
 private void m_messageUtilities_OnDebug(object sender, LoggingEventArgs e)
 {
     PositionMonitorUtilities.Debug(e.Message);
 }