Exemplo n.º 1
0
        public void Update(POS.position pos)
        {
            mxListRowsPositions.WaitOne();

            //  m_ListRawPos.Add(new CRawPosition(pos));



            string isin = m_Plaza2Connector.Instruments.DictIsinId_Instrument  [pos.isin_id];

            //for Data binding work correct
            if (!DictPos.ContainsKey(isin))
            {
                DictPos[isin] = new CRawPosition(pos);
            }
            else
            {
                DictPos[isin].Update(pos);
            }

            foreach (CBotBase bt in m_Plaza2Connector.ListBots)
            {
                bt.Recalc(isin, EnmBotEventCode.OnPostionUpdate, null);
            }



            UpdateTrdMgrTotalPos();



            mxListRowsPositions.ReleaseMutex();
        }
Exemplo n.º 2
0
        public void Update(POS.position pos)
        {
            pos.replID  = pos.replID;
            pos.replRev = pos.replRev;

            Buys_qty  = pos.buys_qty;
            Sells_qty = pos.sells_qty;
            waprice   = pos.waprice;
            Pos       = pos.pos;
            PosGUI    = Pos;

            Net_volume_rur = pos.net_volume_rur;
            Last_Deal_id   = pos.last_deal_id;

            Open_qty = pos.open_qty;
        }
Exemplo n.º 3
0
        public CRawPosition(POS.position pos)
        {
            /*  pos.replID = pos.replID;
             * pos.replRev = pos.replRev;
             *
             * Buys_qty=pos.buys_qty;
             * Sells_qty=pos.sells_qty;
             * waprice=pos.waprice;
             * Pos =pos.pos;
             *
             * _pos = Pos;
             * Net_volume_rur=pos.net_volume_rur;
             * Last_Deal_id = pos.last_deal_id;
             *
             * Open_qty = pos.open_qty;
             */

            Update(pos);
        }