Beispiel #1
0
        internal OptionDeskRow(OptionDesk desk, Security call, Security put)
        {
            if (desk == null)
            {
                throw new ArgumentNullException("desk");
            }

            if (call == null && put == null)
            {
                throw new ArgumentException(LocalizedStrings.Str1530);
            }

            if (call != null)
            {
                Call = new OptionDeskRowSide(desk, call);
            }

            if (put != null)
            {
                Put = new OptionDeskRowSide(desk, put);
            }

            _desk           = desk;
            Strike          = (call ?? put).Strike;
            UnderlyingAsset = (call ?? put).GetUnderlyingAsset(desk.SecurityProvider);
        }
Beispiel #2
0
			internal OptionDeskRowSide(OptionDesk desk, Security option)
			{
				if (desk == null)
					throw new ArgumentNullException(nameof(desk));

				if (option == null)
					throw new ArgumentNullException(nameof(option));

				_desk = desk;
				Option = option;
				
				ApplyModel();
			}
Beispiel #3
0
            internal OptionDeskRowSide(OptionDesk desk, Security option)
            {
                if (desk == null)
                {
                    throw new ArgumentNullException("desk");
                }

                if (option == null)
                {
                    throw new ArgumentNullException("option");
                }

                _desk  = desk;
                Option = option;

                ApplyModel();
            }
Beispiel #4
0
		internal OptionDeskRow(OptionDesk desk, Security call, Security put)
		{
			if (desk == null)
				throw new ArgumentNullException(nameof(desk));

			if (call == null && put == null)
				throw new ArgumentException(LocalizedStrings.Str1530);

			if (call != null)
				Call = new OptionDeskRowSide(desk, call);

			if (put != null)
				Put = new OptionDeskRowSide(desk, put);

			_desk = desk;
			Strike = (call ?? put).Strike;
			UnderlyingAsset = (call ?? put).GetUnderlyingAsset(desk.SecurityProvider);
		}