예제 #1
0
        /// <summary>
        /// Outdated. Use SendOrderRZ instead.
        /// </summary>
        public virtual int SendRezefOrder(int sessionId, ref RezefBasicOrder Order, string Location, string Trade_Type, ref string VBMsg, ref int ErrNO,
                                          out OrdersErrorTypes ErrorType, ref int OrderID, string AuthUserName, string AuthPassword, string ReEnteredValue)
        {
            ErrorType = OrdersErrorTypes.NoError;
            // i need an accurate cleanup - market simulation is far from trivial
            if (marketSimulationRezef == default(JQuant.MarketSimulationRezef))
            {
                return(-1);
            }

            // place order in the MarketSimulation, get OrderId
            // return Ok
            return(0);
        }
예제 #2
0
        /// <summary>
        /// Outdated. Use SendOrderRZ instead.
        /// </summary>
        public virtual int SendRezefOrder(int sessionId, ref RezefBasicOrder Order, string Location, string Trade_Type, ref string VBMsg, ref int ErrNO,
            out OrdersErrorTypes ErrorType, ref int OrderID, string AuthUserName, string AuthPassword, string ReEnteredValue)
        {
            ErrorType = OrdersErrorTypes.NoError;
            // i need an accurate cleanup - market simulation is far from trivial
            if (marketSimulationRezef == default(JQuant.MarketSimulationRezef))
            {
                return -1;
            }

            // place order in the MarketSimulation, get OrderId
            // return Ok
            return 0;
        }