Exemple #1
0
        public static void Main(string[] args)
        {
            Price_delta_range pdr1 = new Price_delta_range(10, 1000, Devise.EUR, 0, 5);

            Console.WriteLine(pdr1.Range1);
            Console.WriteLine(pdr1.Range2);
            Console.WriteLine(pdr1.Devise);
            Console.WriteLine(pdr1.Price_delta);
            pdr1.Range1 = 20;
            Console.WriteLine(pdr1.Range1);
            Console.WriteLine(Order_type.BPR);
            Console.WriteLine("//////////////////////////////////////////////////////");
            Order_table ot = new Order_table(Operation_type.BUY, 1000, 10, Order_type.GFD, Devise.USD, "USA", new TimeSpan(1, 0, 0), new TimeSpan(2, 0, 0), "SADERF");

            ot.Description_order();
            if (ot.Is_validate_absolute_time() == true)
            {
                Console.WriteLine("Is_validate_absolute_time");
            }
            List <string> st = Countryliste.Country_Liste();


            foreach (string k in st)
            {
                Console.WriteLine(k);
            }
        }
Exemple #2
0
        public Order_table Get_Selltable_by_TICKER(string _TICKER, Book_ordre Book_Ordre)
        {
            Order_table ot = null;

            foreach (var kpv in Book_Ordre.book_ordre)
            {
                if (kpv.Value.TICKER == _TICKER && kpv.Value.Operation_Type == Operation_type.SELL)
                {
                    ot = kpv.Value;
                }
            }
            return(ot);
        }
Exemple #3
0
        public Order_table Get_Order_by_TICKER(string _TIKER, Dictionary <string, Order_table> book_ordre)
        {
            Order_table ot = null;

            foreach (var kpv in book_ordre)
            {
                if (kpv.Value.TICKER == _TIKER)
                {
                    ot = kpv.Value;
                }
            }
            return(ot);
        }
Exemple #4
0
 public void Add_Order(string TIKER, Order_table ordertable)
 {
     book_ordre.Add(TIKER, ordertable);
 }