Beispiel #1
0
 private void RaiseAccountStateChanged(IUserInfo user, AccountInfo account)
 {
     if (user != null)
     {
         AccountStateChanged?.Invoke(this, new EventArgs <IUserInfo, AccountInfo>(user, account));
     }
 }
Beispiel #2
0
        Math.Abs(quantity) * price * contractSize * currencyBase * symbolMargin * 0.01M;      //0.01M - convert margin from percent

        #endregion

        #region Event Invokators

        protected void OnAccountStateChanged() =>
        AccountStateChanged?.Invoke(this, EventArgs.Empty);