Ejemplo n.º 1
0
        /// <summary>
        /// Default Contract Constructor
        /// </summary>
        /// <param name="contractId">The unique contract identifier.</param>
        /// <param name="symbol">This is the symbol of the underlying asset.</param>
        /// <param name="securityType">This is the security type.</param>
        /// <param name="expiry">The expiration date. Use the format YYYYMM.</param>
        /// <param name="strike">The strike price.</param>
        /// <param name="right">Specifies a Put or Call.</param>
        /// <param name="multiplier">Allows you to specify a future or option contract multiplier.
        /// This is only necessary when multiple possibilities exist.</param>
        /// <param name="exchange">The order destination, such as Smart.</param>
        /// <param name="currency">Specifies the currency.</param>
        /// <param name="localSymbol">This is the local exchange symbol of the underlying asset.</param>
        /// <param name="primaryExchange">Identifies the listing exchange for the contract (do not list SMART).</param>
        /// <param name="secIdType">Security identifier, when querying contract details or when placing orders.</param>
        /// <param name="secId">Unique identifier for the secIdType.</param>
        public Contract(int contractId, String symbol, SecurityType securityType, String expiry, double strike, RightType right,
                        String multiplier, string exchange, string currency, string localSymbol, string primaryExchange,
                        SecurityIdType secIdType, string secId)
        {
            this.contractId   = contractId;
            this.symbol       = symbol;
            this.securityType = securityType;
            this.expiry       = expiry;
            this.strike       = strike;
            this.right        = right;
            this.multiplier   = multiplier;
            this.exchange     = exchange;

            this.currency        = currency;
            this.localSymbol     = localSymbol;
            this.primaryExchange = primaryExchange;
            this.secIdType       = secIdType;
            this.secId           = secId;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Default Contract Constructor
        /// </summary>
        /// <param name="contractId">The unique contract identifier.</param>
        /// <param name="symbol">This is the symbol of the underlying asset.</param>
        /// <param name="securityType">This is the security type.</param>
        /// <param name="expiry">The expiration date. Use the format YYYYMM.</param>
        /// <param name="strike">The strike price.</param>
        /// <param name="right">Specifies a Put or Call.</param>
        /// <param name="multiplier">Allows you to specify a future or option contract multiplier.
        /// This is only necessary when multiple possibilities exist.</param>
        /// <param name="exchange">The order destination, such as Smart.</param>
        /// <param name="currency">Specifies the currency.</param>
        /// <param name="localSymbol">This is the local exchange symbol of the underlying asset.</param>
        /// <param name="primaryExchange">Identifies the listing exchange for the contract (do not list SMART).</param>
        /// <param name="secIdType">Security identifier, when querying contract details or when placing orders.</param>
        /// <param name="secId">Unique identifier for the secIdType.</param>
        public Contract(int contractId, String symbol, SecurityType securityType, String expiry, double strike, RightType right,
                        String multiplier, string exchange, string currency, string localSymbol, string primaryExchange,
                        SecurityIdType secIdType, string secId)
        {
            this.contractId = contractId;
            this.symbol = symbol;
            this.securityType = securityType;
            this.expiry = expiry;
            this.strike = strike;
            this.right = right;
            this.multiplier = multiplier;
            this.exchange = exchange;

            this.currency = currency;
            this.localSymbol = localSymbol;
            this.primaryExchange = primaryExchange;
            this.secIdType = secIdType;
            this.secId = secId;
        }