Exemplo n.º 1
0
        private void ProcessPositionInstrTotal(byte[] arrMsgBody)
        {
            CListPositionInstrTotal posInstr = CUtilProto.DeserializeProto <CListPositionInstrTotal>(arrMsgBody);

            Log("[CPositionInstrumentTotal]");

            _client.DataUser.UpdatePositionInstrTotal(posInstr);
        }
Exemplo n.º 2
0
        public bool IsAllPosClosed()
        {
            CListPositionInstrTotal lstPos = ListPos.GetCopy();

            foreach (var el in lstPos.Lst)
            {
                if (el.Pos != 0)
                {
                    return(false);
                }
            }

            return(true);
        }
Exemplo n.º 3
0
        public void CreateListPos(int stockExchId, CListInstruments listInstruments)
        {
            ListPos = new CListPositionInstrTotal(stockExchId);
            //changed 2018-05-22

            foreach (var inst in listInstruments)
            {
                if (inst.IsViewOnly == 0)
                {
                    ListPos.Lst.Add(new CPositionInstrTotal()
                    {
                        StockExchId = stockExchId,
                        Instrument  = inst.instrument,
                        Pos         = 0
                    });
                }
            }
        }
Exemplo n.º 4
0
 public void UpdatePositionInstrTotal(CListPositionInstrTotal listPosInstrTotal)
 {
 }
 public void EnqueueUpdateTotalInstrumentPosition(CListPositionInstrTotal lstPosInstrTotal)
 {
     Enqueue(lstPosInstrTotal, enmTradingEvent.PositionInstrTotal);
 }
Exemplo n.º 6
0
 public void UpdatePositionInstrTotal(CListPositionInstrTotal listPosInstrTotal)
 {
     _dataSynchPosInstrTotal.Update(listPosInstrTotal.StockExchId, listPosInstrTotal.Lst);
 }