コード例 #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);
        }