コード例 #1
0
 public override void onMessage(QuickFix42.SecurityDefinition message, SessionID sessionID)
 {
     QuickFix42.SecurityDefinition echo = message;
     try
     {
         Session.sendToTarget(echo, sessionID);
     }
     catch (SessionNotFound) { }
 }
コード例 #2
0
 public virtual void onMessage( SecurityDefinition message, QuickFix.SessionID session ) 
   { throw new QuickFix.UnsupportedMessageType(); }
コード例 #3
0
ファイル: SpreadMatrixData.cs プロジェクト: benofben/implier
 void InsertSubContract(uint index, SecurityDefinition.NoRelatedSym group)
 {
     subcontracts[index] = new SecurityEntry(group, this);
 }
コード例 #4
0
ファイル: SpreadMatrixData.cs プロジェクト: benofben/implier
        internal SecurityEntry(SecurityDefinition.NoRelatedSym noRelatedSym, SecurityEntry owner)
        {
            IsMDUpdated = false;
            OwnerEntry = owner;

            SecurityID = noRelatedSym.getUnderlyingSecurityID().getValue();
            Symbol = noRelatedSym.getUnderlyingSymbol().getValue();
            SecurityExchange = noRelatedSym.getUnderlyingSecurityExchange().getValue();
            SecurityType = noRelatedSym.getUnderlyingSecurityType().getValue();

            if (noRelatedSym.isSetUnderlyingMaturityMonthYear())
                MaturityMonthYear = noRelatedSym.getUnderlyingMaturityMonthYear().getValue();

            Side = noRelatedSym.getSide().getValue();
            SubContractCount = 0;
            subcontracts = new SecurityEntry[SubContractCount];
        }
コード例 #5
0
ファイル: SpreadMatrixData.cs プロジェクト: benofben/implier
        internal SecurityEntry(SecurityDefinition securityDefinition)
        {
            IsMDUpdated = false;

            SecurityID = securityDefinition.getSecurityID().getValue();
            Symbol = securityDefinition.getSymbol().getValue();
            SecurityExchange = securityDefinition.getSecurityExchange().getValue();
            SecurityType = securityDefinition.getSecurityType().getValue();

            if (securityDefinition.isSetMaturityMonthYear())
                MaturityMonthYear = securityDefinition.getMaturityMonthYear().getValue();

            NoRelatedSym noRelatedSym = securityDefinition.getNoRelatedSym();
            SubContractCount = noRelatedSym.getValue();
            subcontracts = new SecurityEntry[SubContractCount];
            SecurityDefinition.NoRelatedSym group = new SecurityDefinition.NoRelatedSym();
            for (uint i = 0; i < SubContractCount; i++)
            {
                securityDefinition.getGroup(i + 1, group);
                InsertSubContract(i, group);
            }

            // whether reverse contract
            if (HasFutureContract() && SubContractCount == 2)
            {
                IsInverted = GetSubContract((uint) GetNearSubContractIndex()).Side == QuickFix.Side.SELL;
            }
        }
コード例 #6
0
 public virtual void onMessage(SecurityDefinition message, QuickFix.SessionID session)
 {
     throw new QuickFix.UnsupportedMessageType();
 }