예제 #1
0
        // TODO Needs testing in open market
        public static void Buy(IgBuyModel igBuy)
        {
            IgPositions igPosition = new IgPositions();
            string      response   = igPosition.Post(session, igBuy);

            Console.WriteLine(response);
            response = new IgConfirms().GetConfirms(session, igBuy.dealReference);
            Console.WriteLine(response);
        }
예제 #2
0
        public static void PlaceOrder(IgOrderModel igOrder)
        {
            IgWorkingOrder igWorkingOrder = new IgWorkingOrder();
            var            response       = igWorkingOrder.Post(session, igOrder);

            Console.WriteLine(response);
            response = new IgConfirms().GetConfirms(session, igOrder.dealReference);
            Console.WriteLine(response);
        }