Пример #1
0
 public static void Add(int SL, int Algo, double Price, double SpeedLimit, Pool PoolInfo)
 {
     OrderContainer OC = new OrderContainer(SL, Algo, Price, SpeedLimit, PoolInfo);
     OC.Launch();
     OrderList.Add(OC);
     Commit();
 }
Пример #2
0
 public static void Add(int SL, int Algo, double Price, double SpeedLimit, Pool PoolInfo, int OrderID, double StartPrice, double StartAmount, string HandlerFile)
 {
     OrderContainer OC = new OrderContainer(SL, Algo, Price, SpeedLimit, PoolInfo, OrderID, StartPrice, StartAmount, HandlerFile);
     OC.Launch();
     OrderList.Add(OC);
     Commit();
 }
Пример #3
0
        public static void Add(int SL, int Algo, double Price, double SpeedLimit, Pool PoolInfo)
        {
            OrderContainer OC = new OrderContainer(SL, Algo, Price, SpeedLimit, PoolInfo);

            OC.Launch();
            OrderList.Add(OC);
            Commit();
        }
Пример #4
0
        public static void Add(int SL, int Algo, double Price, double SpeedLimit, Pool PoolInfo, int OrderID, double StartPrice, double StartAmount, string HandlerFile)
        {
            OrderContainer OC = new OrderContainer(SL, Algo, Price, SpeedLimit, PoolInfo, OrderID, StartPrice, StartAmount, HandlerFile);

            OC.Launch();
            OrderList.Add(OC);
            Commit();
        }
Пример #5
0
        public static bool Add(int SL, int Algo, double Price, double SpeedLimit, Pool PoolInfo, int OrderID, double StartPrice, double StartAmount, string HandlerFile)
        {
            foreach (OrderContainer OC_ in OrderList)
            {
                if (OC_.ID == OrderID)
                {
                    return(false);
                }
            }

            OrderContainer OC = new OrderContainer(SL, Algo, Price, SpeedLimit, PoolInfo, OrderID, StartPrice, StartAmount, HandlerFile);

            OC.Launch();
            OrderList.Add(OC);
            Commit();

            return(true);
        }