コード例 #1
0
        /// <summary>
        /// Создать <see cref="SmartComSessionHolder"/>.
        /// </summary>
        /// <param name="transactionIdGenerator">Генератор идентификаторов транзакций.</param>
        public SmartComSessionHolder(IdGenerator transactionIdGenerator)
            : base(transactionIdGenerator)
        {
            Version = SmartComVersions.V3;

            IsTransactionEnabled = true;
            IsMarketDataEnabled  = true;

            SecurityClassInfo.Add("OPT", RefTuple.Create(SecurityTypes.Option, ExchangeBoard.Forts.Code));
            SecurityClassInfo.Add("OPTM", RefTuple.Create(SecurityTypes.Option, ExchangeBoard.Forts.Code));
            SecurityClassInfo.Add("FUT", RefTuple.Create(SecurityTypes.Future, ExchangeBoard.Forts.Code));
        }
コード例 #2
0
        /// <summary>
        /// Создать <see cref="AlfaDirectMessageAdapter"/>.
        /// </summary>
        /// <param name="transactionIdGenerator">Генератор идентификаторов транзакций.</param>
        public AlfaDirectMessageAdapter(IdGenerator transactionIdGenerator)
            : base(transactionIdGenerator)
        {
            Platform = Platforms.x86;

            this.AddMarketDataSupport();
            this.AddTransactionalSupport();

            SecurityClassInfo.Add("FORTS", RefTuple.Create(SecurityTypes.Stock, ExchangeBoard.Forts.Code));
            SecurityClassInfo.Add("INDEX", RefTuple.Create(SecurityTypes.Index, ExchangeBoard.Micex.Code));
            SecurityClassInfo.Add("INDEX2", RefTuple.Create(SecurityTypes.Index, "INDEX"));
            SecurityClassInfo.Add("MICEX_SHR_T", RefTuple.Create(SecurityTypes.Stock, ExchangeBoard.Micex.Code));
            SecurityClassInfo.Add("RTS_STANDARD", RefTuple.Create(SecurityTypes.Stock, ExchangeBoard.Forts.Code));
        }
コード例 #3
0
        /// <summary>
        /// Создать <see cref="SmartComMessageAdapter"/>.
        /// </summary>
        /// <param name="transactionIdGenerator">Генератор идентификаторов транзакций.</param>
        public SmartComMessageAdapter(IdGenerator transactionIdGenerator)
            : base(transactionIdGenerator)
        {
            Version = SmartComVersions.V3;

            SecurityClassInfo.Add("OPT", RefTuple.Create(SecurityTypes.Option, ExchangeBoard.Forts.Code));
            SecurityClassInfo.Add("OPTM", RefTuple.Create(SecurityTypes.Option, ExchangeBoard.Forts.Code));
            SecurityClassInfo.Add("FUT", RefTuple.Create(SecurityTypes.Future, ExchangeBoard.Forts.Code));

            PortfolioBoardCodes = new Dictionary <string, string>
            {
                { "EQ", ExchangeBoard.MicexEqbr.Code },
                { "FOB", ExchangeBoard.MicexFbcb.Code },
                { "RTS_FUT", ExchangeBoard.Forts.Code },
            };

            UpdatePlatform();

            this.AddMarketDataSupport();
            this.AddTransactionalSupport();
            this.RemoveSupportedMessage(MessageTypes.OrderStatus);
        }