Ejemplo n.º 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);
            }
        }
Ejemplo n.º 2
0
 // Constructeur sans le parametre FixingPeriod
 public Market(string tICKER, DateTime marketInitDate, int max_Quantity, int min_Quantity, Quantity description, float price_delta, Price_delta_range p_d_r, Dictionary <string, Buytable> _buyTable, Dictionary <string, Selltable> _sellTable, Dictionary <string, SettlementTable> _settlementTable, Dictionary <string, Tradetable> _tradeTable)
 {
     TICKER          = tICKER;
     MarketInitDate  = marketInitDate;
     Max_Quantity    = max_Quantity;
     Min_Quantity    = min_Quantity;
     Description     = description;
     Price_delta     = price_delta;
     P_d_r           = p_d_r;
     buyTable        = _buyTable;
     sellTable       = _sellTable;
     SettlementTable = _settlementTable;
     Tradetable      = _tradeTable;
 }