private void RaiseAccountStateChanged(IUserInfo user, AccountInfo account) { if (user != null) { AccountStateChanged?.Invoke(this, new EventArgs <IUserInfo, AccountInfo>(user, account)); } }
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);