Exemplo n.º 1
0
        public void GetTrades()
        {
            var account = o2g.GetAccount();

            Debug.WriteLine("StopAmount:{0}", account.StopAmount);
            var aID          = account.ID;
            var pair         = "USD/JPY";
            var baseUnitSize = o2g.GetBaseUnitSize(pair);
            var pipCost      = o2g.GetPipCost(pair);
            var lots         = 10000;
            var pips         = 10;

            MessageBox.Show(pips + " pips cost for " + lots + " of " + pair + " = " + FXW.PipsAndLotToMoney(pips, lots, pipCost, baseUnitSize));
            o2g.GetTrades("").Where(t => t.Stop > 0).ToList()
            .ForEach(t => Debug.WriteLine("Id:{0},Stop:{1}", t.Id, t.Stop));
        }