Example #1
0
 private void oR3uofPPWO(BinaryWriter obj0, BrokerPosition obj1)
 {
     obj0.Write(obj1.Currency);
     obj0.Write(obj1.LongQty);
     obj0.Write(obj1.MaturityDate.Ticks);
     obj0.Write(obj1.PutOrCall);
     obj0.Write(obj1.Qty);
     obj0.Write(obj1.SecurityExchange);
     obj0.Write(obj1.SecurityType);
     obj0.Write(obj1.ShortQty);
     obj0.Write(obj1.Strike);
     obj0.Write(obj1.Symbol);
     BrokerPositionField[] customFields = obj1.GetCustomFields();
     obj0.Write(customFields.Length);
     foreach (BrokerPositionField brokerPositionField in customFields)
     {
         obj0.Write(brokerPositionField.Name);
         obj0.Write(brokerPositionField.Value);
     }
 }
Example #2
0
 public void AddPosition(BrokerPosition position)
 {
     this.xHhhrp2mwI.Add(position);
 }
Example #3
0
 private BrokerPosition lrvuzgJsBI(BinaryReader obj0)
 {
     BrokerPosition brokerPosition = new BrokerPosition();
     brokerPosition.Currency = obj0.ReadString();
     brokerPosition.LongQty = obj0.ReadDouble();
     brokerPosition.MaturityDate = new DateTime(obj0.ReadInt64());
     brokerPosition.PutOrCall = obj0.ReadInt32();
     brokerPosition.Qty = obj0.ReadDouble();
     brokerPosition.SecurityExchange = obj0.ReadString();
     brokerPosition.SecurityType = obj0.ReadString();
     brokerPosition.ShortQty = obj0.ReadDouble();
     brokerPosition.Strike = obj0.ReadDouble();
     brokerPosition.Symbol = obj0.ReadString();
     int num = obj0.ReadInt32();
     for (int index = 0; index < num; ++index)
     {
         string name = obj0.ReadString();
         string str = obj0.ReadString();
         brokerPosition.AddCustomField(name, str);
     }
     return brokerPosition;
 }
Example #4
0
 public void AddPosition(BrokerPosition position)
 {
     this.xHhhrp2mwI.Add(position);
 }