// 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); }
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); }