diff --git a/linux/include/quickfix/Acceptor.h b/linux/include/quickfix/Acceptor.h new file mode 100644 index 000000000..5c92ea9d1 --- /dev/null +++ b/linux/include/quickfix/Acceptor.h @@ -0,0 +1,127 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_ACCEPTOR_H +#define FIX_ACCEPTOR_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "Application.h" +#include "MessageStore.h" +#include "Log.h" +#include "Responder.h" +#include "SessionSettings.h" +#include "Exceptions.h" +#include +#include + +namespace FIX +{ +class Client; +class Session; + +/** + * Base for classes which act as an acceptor for incoming connections. + * + * Most users will not need to implement one of these. The default + * SocketAcceptor implementation will be used in most cases. + */ +class Acceptor +{ +public: + Acceptor( Application&, MessageStoreFactory&, + const SessionSettings& ) throw( ConfigError ); + Acceptor( Application&, MessageStoreFactory&, + const SessionSettings&, LogFactory& ) throw( ConfigError ); + + virtual ~Acceptor(); + + Log* getLog() + { + if( m_pLog ) return m_pLog; + return &m_nullLog; + } + + /// Start acceptor. + void start() throw ( ConfigError, RuntimeError ); + /// Block on the acceptor + void block() throw ( ConfigError, RuntimeError ); + /// Poll the acceptor + bool poll( double timeout = 0.0 ) throw ( ConfigError, RuntimeError ); + + /// Stop acceptor. + void stop( bool force = false ); + + /// Check to see if any sessions are currently logged on + bool isLoggedOn(); + + Session* getSession( const std::string& msg, Responder& ); + + const std::set& getSessions() const { return m_sessionIDs; } + Session* getSession( const SessionID& sessionID ) const; + const Dictionary* const getSessionSettings( const SessionID& sessionID ) const; + + bool has( const SessionID& id ) + { return m_sessions.find( id ) != m_sessions.end(); } + + bool isStopped() { return m_stop; } + + Application& getApplication() { return m_application; } + MessageStoreFactory& getMessageStoreFactory() + { return m_messageStoreFactory; } + +private: + void initialize() throw ( ConfigError ); + + /// Implemented to configure acceptor + virtual void onConfigure( const SessionSettings& ) throw ( ConfigError ) {}; + /// Implemented to initialize acceptor + virtual void onInitialize( const SessionSettings& ) throw ( RuntimeError ) {}; + /// Implemented to start listening for connections. + virtual void onStart() = 0; + /// Implemented to connect and poll for events. + virtual bool onPoll( double second ) = 0; + /// Implemented to stop a running acceptor. + virtual void onStop() = 0; + + static THREAD_PROC startThread( void* p ); + + typedef std::set < SessionID > SessionIDs; + typedef std::map < SessionID, Session* > Sessions; + + thread_id m_threadid; + Sessions m_sessions; + SessionIDs m_sessionIDs; + Application& m_application; + MessageStoreFactory& m_messageStoreFactory; + SessionSettings m_settings; + LogFactory* m_pLogFactory; + Log* m_pLog; + NullLog m_nullLog; + bool m_firstPoll; + bool m_stop; +}; +/*! @} */ +} + +#endif // FIX_ACCEPTOR_H diff --git a/linux/include/quickfix/Allocator.h b/linux/include/quickfix/Allocator.h new file mode 100644 index 000000000..73c291b46 --- /dev/null +++ b/linux/include/quickfix/Allocator.h @@ -0,0 +1,9 @@ +/* #undef ENABLE_BITMAP_ALLOCATOR */ +/* #undef ENABLE_BOOST_FAST_POOL_ALLOCATOR */ +/* #undef ENABLE_BOOST_POOL_ALLOCATOR */ +/* #undef ENABLE_DEBUG_ALLOCATOR */ +/* #undef ENABLE_MT_ALLOCATOR */ +/* #undef ENABLE_NEW_ALLOCATOR */ +/* #undef ENABLE_POOL_ALLOCATOR */ +/* #undef ENABLE_TBB_ALLOCATOR */ +/* #undef HAVE_ALLOCATOR_CONFIG */ diff --git a/linux/include/quickfix/Application.h b/linux/include/quickfix/Application.h new file mode 100644 index 000000000..d53ab0af0 --- /dev/null +++ b/linux/include/quickfix/Application.h @@ -0,0 +1,127 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_APPLICATION_H +#define FIX_APPLICATION_H + +#include "Message.h" +#include "SessionID.h" +#include "Mutex.h" + +namespace FIX +{ +/** + * This interface must be implemented to define what your %FIX application + * does. + * + * These methods notify your application about events that happen on + * active %FIX sessions. There is no guarantee how many threads will be calling + * these functions. If the application is sharing resources among multiple sessions, + * you must synchronize those resources. You can also use the SynchronizedApplication + * class to automatically synchronize all function calls into your application. + * The various MessageCracker classes can be used to parse the generic message + * structure into specific %FIX messages. + */ +class Application +{ +public: + virtual ~Application() {}; + /// Notification of a session begin created + virtual void onCreate( const SessionID& ) = 0; + /// Notification of a session successfully logging on + virtual void onLogon( const SessionID& ) = 0; + /// Notification of a session logging off or disconnecting + virtual void onLogout( const SessionID& ) = 0; + /// Notification of admin message being sent to target + virtual void toAdmin( Message&, const SessionID& ) = 0; + /// Notification of app message being sent to target + virtual void toApp( Message&, const SessionID& ) + throw( DoNotSend ) = 0; + /// Notification of admin message being received from target + virtual void fromAdmin( const Message&, const SessionID& ) + throw( FieldNotFound, IncorrectDataFormat, IncorrectTagValue, RejectLogon ) = 0; + /// Notification of app message being received from target + virtual void fromApp( const Message&, const SessionID& ) + throw( FieldNotFound, IncorrectDataFormat, IncorrectTagValue, UnsupportedMessageType ) = 0; +}; + +/** +* This is a special implementation of the Application interface that takes +* in another Application interface and synchronizes all of its callbacks. This +* will guarantee that only one thread will access the applications code at a time. +* +* This class is a great convenience for writing applications where you +* don't want to worry about synchronization. There is of course a tradeoff +* in that you may be synchronizing more than you need to. There is also a very +* minor performance penalty due to the extra virtual table lookup. +*/ +class SynchronizedApplication : public Application +{ +public: + SynchronizedApplication( Application& app ) : m_app( app ) {} + + void onCreate( const SessionID& sessionID ) + { Locker l( m_mutex ); app().onCreate( sessionID ); } + void onLogon( const SessionID& sessionID ) + { Locker l( m_mutex ); app().onLogon( sessionID ); } + void onLogout( const SessionID& sessionID ) + { Locker l( m_mutex ); app().onLogout( sessionID ); } + void toAdmin( Message& message, const SessionID& sessionID ) + { Locker l( m_mutex ); app().toAdmin( message, sessionID ); } + void toApp( Message& message, const SessionID& sessionID ) + throw( DoNotSend ) + { Locker l( m_mutex ); app().toApp( message, sessionID ); } + void fromAdmin( const Message& message, const SessionID& sessionID ) + throw( FieldNotFound, IncorrectDataFormat, IncorrectTagValue, RejectLogon ) + { Locker l( m_mutex ); app().fromAdmin( message, sessionID ); } + void fromApp( const Message& message, const SessionID& sessionID ) + throw( FieldNotFound, IncorrectDataFormat, IncorrectTagValue, UnsupportedMessageType ) + { Locker l( m_mutex ); app().fromApp( message, sessionID ); } + + Mutex m_mutex; + + Application& app() { return m_app; } + Application& m_app; +}; + +/** +* An empty implementation of an Application. This can be used if you +* do not want to provide an implementation for all the callback methods. +* It is also useful for unit tests writing unit tests where the callback +* values of some or all methods are not of interest. +*/ +class NullApplication : public Application +{ + void onCreate( const SessionID& ) {} + void onLogon( const SessionID& ) {} + void onLogout( const SessionID& ) {} + void toAdmin( Message&, const SessionID& ) {} + void toApp( Message&, const SessionID& ) + throw( DoNotSend ) {} + void fromAdmin( const Message&, const SessionID& ) + throw( FieldNotFound, IncorrectDataFormat, IncorrectTagValue, RejectLogon ) {} + void fromApp( const Message&, const SessionID& ) + throw( FieldNotFound, IncorrectDataFormat, IncorrectTagValue, UnsupportedMessageType ) {} +}; +/*! @} */ +} + +#endif //FIX_APPLICATION_H diff --git a/linux/include/quickfix/AtomicCount.h b/linux/include/quickfix/AtomicCount.h new file mode 100644 index 000000000..648758897 --- /dev/null +++ b/linux/include/quickfix/AtomicCount.h @@ -0,0 +1,109 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef ATOMIC_COUNT +#define ATOMIC_COUNT + +#include "Mutex.h" + +namespace FIX +{ + /// Atomic count class - consider using interlocked functions + +#ifdef ENABLE_BOOST_ATOMIC_COUNT + +#include +typedef boost::detail::atomic_count atomic_count; + +#elif _MSC_VER + + //atomic counter based on interlocked functions for Win32 + class atomic_count + { + public: + explicit atomic_count( long v ): m_counter( v ) + { + } + + long operator++() + { + return ::InterlockedIncrement( &m_counter ); + } + + long operator--() + { + return ::InterlockedDecrement( &m_counter ); + } + + operator long() const + { + return static_cast( m_counter ); + } + + private: + + atomic_count( atomic_count const & ); + atomic_count & operator=( atomic_count const & ); + + long volatile m_counter; + }; + +#else + // general purpose atomic counter using mutexes + class atomic_count + { + public: + explicit atomic_count( long v ): m_counter( v ) + { + } + + long operator++() + { + Locker _lock(m_mutex); + return ++m_counter; + } + + long operator--() + { + Locker _lock(m_mutex); + return --m_counter; + } + + operator long() const + { + return static_cast( m_counter ); + } + + private: + + atomic_count( atomic_count const & ); + atomic_count & operator=( atomic_count const & ); + + Mutex m_mutex; + long m_counter; + }; + +#endif + +} + +#endif + diff --git a/linux/include/quickfix/DOMDocument.h b/linux/include/quickfix/DOMDocument.h new file mode 100644 index 000000000..8c7db87c7 --- /dev/null +++ b/linux/include/quickfix/DOMDocument.h @@ -0,0 +1,74 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_DOMDOCUMENT_H +#define FIX_DOMDOCUMENT_H + +#include +#include +#include +#include + +namespace FIX +{ + /// Interface that represents attribute from underlying XML parser. + class DOMAttributes + { + public: + typedef std::map map; + + virtual ~DOMAttributes() {} + + virtual bool get( const std::string&, std::string& ) = 0; + virtual map toMap() = 0; + }; + typedef std::auto_ptr DOMAttributesPtr; + + /// Interface that represents node from underlying XML parser. + class DOMNode + { + public: + virtual ~DOMNode() {} + + virtual std::auto_ptr getFirstChildNode() = 0; + virtual std::auto_ptr getNextSiblingNode() = 0; + virtual std::auto_ptr getAttributes() = 0; + virtual std::string getName() = 0; + virtual std::string getText() = 0; + }; + typedef std::auto_ptr DOMNodePtr; + + /// Interface that represents document of underlying XML parser. + class DOMDocument + { + public: + virtual ~DOMDocument() {} + + virtual bool load( std::istream& ) = 0; + virtual bool load( const std::string& ) = 0; + virtual bool xml( std::ostream& ) = 0; + + virtual std::auto_ptr getNode( const std::string& ) = 0; + }; + typedef std::auto_ptr DOMDocumentPtr; +} + +#endif diff --git a/linux/include/quickfix/DataDictionary.h b/linux/include/quickfix/DataDictionary.h new file mode 100644 index 000000000..b3ddb4995 --- /dev/null +++ b/linux/include/quickfix/DataDictionary.h @@ -0,0 +1,539 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_DATADICTIONARY_H +#define FIX_DATADICTIONARY_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "Fields.h" +#include "FieldMap.h" +#include "DOMDocument.h" +#include "Exceptions.h" +#include +#include +#include + +namespace FIX +{ +class FieldMap; +class Message; + +/** + * Represents a data dictionary for a version of %FIX. + * + * Generally loaded from an XML document. The DataDictionary is also + * responsible for validation beyond the basic structure of a message. + */ + +class DataDictionary +{ + typedef std::set < int > MsgFields; + typedef std::map < std::string, MsgFields > MsgTypeToField; + typedef std::set < std::string > MsgTypes; + typedef std::set < int > Fields; + typedef std::map < int, bool > NonBodyFields; + typedef std::vector< int > OrderedFields; + typedef message_order OrderedFieldsArray; + typedef std::map < int, TYPE::Type > FieldTypes; + typedef std::set < std::string > Values; + typedef std::map < int, Values > FieldToValue; + typedef std::map < int, std::string > FieldToName; + typedef std::map < std::string, int > NameToField; + typedef std::map < std::pair < int, std::string > , std::string > ValueToName; + // while FieldToGroup structure seems to be overcomplicated + // in reality it yields a lot of performance because: + // 1) avoids memory copying; + // 2) first lookup is done by comparing integers and not string objects + // TODO: use hash_map with good hashing algorithm + typedef std::map < std::string, std::pair < int, DataDictionary* > > FieldPresenceMap; + typedef std::map < int, FieldPresenceMap > FieldToGroup; + +public: + DataDictionary(); + DataDictionary( const DataDictionary& copy ); + DataDictionary( std::istream& stream ) throw( ConfigError ); + DataDictionary( const std::string& url ) throw( ConfigError ); + virtual ~DataDictionary(); + + void readFromURL( const std::string& url ) throw( ConfigError ); + void readFromDocument( DOMDocumentPtr pDoc ) throw( ConfigError ); + void readFromStream( std::istream& stream ) throw( ConfigError ); + + message_order const& getOrderedFields() const; + + // storage functions + void setVersion( const std::string& beginString ) + { + m_beginString = beginString; + m_hasVersion = true; + } + std::string getVersion() const + { + return m_beginString.getString(); + } + + void addField( int field ) + { + m_fields.insert( field ); + m_orderedFields.push_back( field ); + } + + void addFieldName( int field, const std::string& name ) + { + if( m_names.insert( std::make_pair(name, field) ).second == false ) + throw ConfigError( "Field named " + name + " defined multiple times" ); + m_fieldNames[field] = name; + } + + bool getFieldName( int field, std::string& name ) const + { + FieldToName::const_iterator i = m_fieldNames.find( field ); + if(i == m_fieldNames.end()) return false; + name = i->second; + return true; + } + + bool getFieldTag( const std::string& name, int& field ) const + { + NameToField::const_iterator i = m_names.find( name ); + if(i == m_names.end()) return false; + field = i->second; + return true; + } + + void addValueName( int field, const std::string& value, const std::string& name ) + { + m_valueNames[std::make_pair(field, value)] = name; + } + + bool getValueName( int field, const std::string& value, std::string& name ) const + { + ValueToName::const_iterator i = m_valueNames.find( std::make_pair(field, value) ); + if(i == m_valueNames.end()) return false; + name = i->second; + return true; + } + + bool isField( int field ) const + { + return m_fields.find( field ) != m_fields.end(); + } + + void addMsgType( const std::string& msgType ) + { + m_messages.insert( msgType ); + } + + bool isMsgType( const std::string& msgType ) const + { + return m_messages.find( msgType ) != m_messages.end(); + } + + void addMsgField( const std::string& msgType, int field ) + { + m_messageFields[ msgType ].insert( field ); + } + + bool isMsgField( const std::string& msgType, int field ) const + { + MsgTypeToField::const_iterator i = m_messageFields.find( msgType ); + if ( i == m_messageFields.end() ) return false; + return i->second.find( field ) != i->second.end(); + } + + void addHeaderField( int field, bool required ) + { + m_headerFields[ field ] = required; + } + + bool isHeaderField( int field ) const + { + return m_headerFields.find( field ) != m_headerFields.end(); + } + + void addTrailerField( int field, bool required ) + { + m_trailerFields[ field ] = required; + } + + bool isTrailerField( int field ) const + { + return m_trailerFields.find( field ) != m_trailerFields.end(); + } + + void addFieldType( int field, FIX::TYPE::Type type ) + { + m_fieldTypes[ field ] = type; + + if( type == FIX::TYPE::Data ) + m_dataFields.insert( field ); + } + + bool getFieldType( int field, FIX::TYPE::Type& type ) const + { + FieldTypes::const_iterator i = m_fieldTypes.find( field ); + if ( i == m_fieldTypes.end() ) return false; + type = i->second; + return true; + } + + void addRequiredField( const std::string& msgType, int field ) + { + m_requiredFields[ msgType ].insert( field ); + } + + bool isRequiredField( const std::string& msgType, int field ) const + { + MsgTypeToField::const_iterator i = m_requiredFields.find( msgType ); + if ( i == m_requiredFields.end() ) return false; + return i->second.find( field ) != i->second.end(); + } + + void addFieldValue( int field, const std::string& value ) + { + m_fieldValues[ field ].insert( value ); + } + + bool hasFieldValue( int field ) const + { + FieldToValue::const_iterator i = m_fieldValues.find( field ); + return i != m_fieldValues.end(); + } + + bool isFieldValue( int field, const std::string& value ) const + { + FieldToValue::const_iterator i = m_fieldValues.find( field ); + if ( i == m_fieldValues.end() ) + return false; + if( !isMultipleValueField( field ) ) + return i->second.find( value ) != i->second.end(); + + // MultipleValue + std::string::size_type startPos = 0; + std::string::size_type endPos = 0; + do + { + endPos = value.find_first_of(' ', startPos); + std::string singleValue = + value.substr( startPos, endPos - startPos ); + if( i->second.find( singleValue ) == i->second.end() ) + return false; + startPos = endPos + 1; + } while( endPos != std::string::npos ); + return true; + } + + void addGroup( const std::string& msg, int field, int delim, + const DataDictionary& dataDictionary ) + { + DataDictionary * pDD = new DataDictionary( dataDictionary ); + pDD->setVersion( getVersion() ); + + FieldPresenceMap& presenceMap = m_groups[ field ]; + presenceMap[ msg ] = std::make_pair( delim, pDD ); + } + + bool isGroup( const std::string& msg, int field ) const + { + FieldToGroup::const_iterator i = m_groups.find( field ); + if ( i == m_groups.end() ) return false; + + const FieldPresenceMap& presenceMap = i->second; + + FieldPresenceMap::const_iterator iter = presenceMap.find( msg ); + return ( iter != presenceMap.end() ); + } + + bool getGroup( const std::string& msg, int field, int& delim, + const DataDictionary*& pDataDictionary ) const + { + FieldToGroup::const_iterator i = m_groups.find( field ); + if ( i == m_groups.end() ) return false; + + const FieldPresenceMap& presenceMap = i->second; + + FieldPresenceMap::const_iterator iter = presenceMap.find( msg ); + if( iter == presenceMap.end() ) return false; + + std::pair < int, DataDictionary* > pair = iter->second; + delim = pair.first; + pDataDictionary = pair.second; + return true; + } + + bool isDataField( int field ) const + { + MsgFields::const_iterator iter = m_dataFields.find( field ); + return iter != m_dataFields.end(); + } + + bool isMultipleValueField( int field ) const + { + FieldTypes::const_iterator i = m_fieldTypes.find( field ); + return i != m_fieldTypes.end() + && (i->second == TYPE::MultipleValueString + || i->second == TYPE::MultipleCharValue + || i->second == TYPE::MultipleStringValue ); + } + + void checkFieldsOutOfOrder( bool value ) + { m_checkFieldsOutOfOrder = value; } + void checkFieldsHaveValues( bool value ) + { m_checkFieldsHaveValues = value; } + void checkUserDefinedFields( bool value ) + { m_checkUserDefinedFields = value; } + + /// Validate a message. + static void validate( const Message& message, + const DataDictionary* const pSessionDD, + const DataDictionary* const pAppID ) throw( FIX::Exception ); + + void validate( const Message& message ) const throw ( FIX::Exception ) + { validate( message, false ); } + void validate( const Message& message, bool bodyOnly ) const throw( FIX::Exception ) + { validate( message, bodyOnly ? (DataDictionary*)0 : this, this ); } + + DataDictionary& operator=( const DataDictionary& rhs ); + +private: + /// Iterate through fields while applying checks. + void iterate( const FieldMap& map, const MsgType& msgType ) const; + + /// Check if message type is defined in spec. + void checkMsgType( const MsgType& msgType ) const + { + if ( !isMsgType( msgType.getValue() ) ) + throw InvalidMessageType(); + } + + /// If we need to check for the tag in the dictionary + bool shouldCheckTag( const FieldBase& field ) const + { + if( !m_checkUserDefinedFields && field.getField() >= FIELD::UserMin ) + return false; + else + return true; + } + + /// Check if field tag number is defined in spec. + void checkValidTagNumber( const FieldBase& field ) const + throw( InvalidTagNumber ) + { + if( m_fields.find( field.getField() ) == m_fields.end() ) + throw InvalidTagNumber( field.getField() ); + } + + void checkValidFormat( const FieldBase& field ) const + throw( IncorrectDataFormat ) + { + try + { + TYPE::Type type = TYPE::Unknown; + getFieldType( field.getField(), type ); + switch ( type ) + { + case TYPE::String: + STRING_CONVERTOR::convert( field.getString() ); break; + case TYPE::Char: + CHAR_CONVERTOR::convert( field.getString() ); break; + case TYPE::Price: + PRICE_CONVERTOR::convert( field.getString() ); break; + case TYPE::Int: + INT_CONVERTOR::convert( field.getString() ); break; + case TYPE::Amt: + AMT_CONVERTOR::convert( field.getString() ); break; + case TYPE::Qty: + QTY_CONVERTOR::convert( field.getString() ); break; + case TYPE::Currency: + CURRENCY_CONVERTOR::convert( field.getString() ); break; + case TYPE::MultipleValueString: + MULTIPLEVALUESTRING_CONVERTOR::convert( field.getString() ); break; + case TYPE::MultipleStringValue: + MULTIPLESTRINGVALUE_CONVERTOR::convert( field.getString() ); break; + case TYPE::MultipleCharValue: + MULTIPLECHARVALUE_CONVERTOR::convert( field.getString() ); break; + case TYPE::Exchange: + EXCHANGE_CONVERTOR::convert( field.getString() ); break; + case TYPE::UtcTimeStamp: + UTCTIMESTAMP_CONVERTOR::convert( field.getString() ); break; + case TYPE::Boolean: + BOOLEAN_CONVERTOR::convert( field.getString() ); break; + case TYPE::LocalMktDate: + LOCALMKTDATE_CONVERTOR::convert( field.getString() ); break; + case TYPE::Data: + DATA_CONVERTOR::convert( field.getString() ); break; + case TYPE::Float: + FLOAT_CONVERTOR::convert( field.getString() ); break; + case TYPE::PriceOffset: + PRICEOFFSET_CONVERTOR::convert( field.getString() ); break; + case TYPE::MonthYear: + MONTHYEAR_CONVERTOR::convert( field.getString() ); break; + case TYPE::DayOfMonth: + DAYOFMONTH_CONVERTOR::convert( field.getString() ); break; + case TYPE::UtcDate: + UTCDATE_CONVERTOR::convert( field.getString() ); break; + case TYPE::UtcTimeOnly: + UTCTIMEONLY_CONVERTOR::convert( field.getString() ); break; + case TYPE::NumInGroup: + NUMINGROUP_CONVERTOR::convert( field.getString() ); break; + case TYPE::Percentage: + PERCENTAGE_CONVERTOR::convert( field.getString() ); break; + case TYPE::SeqNum: + SEQNUM_CONVERTOR::convert( field.getString() ); break; + case TYPE::Length: + LENGTH_CONVERTOR::convert( field.getString() ); break; + case TYPE::Country: + COUNTRY_CONVERTOR::convert( field.getString() ); break; + case TYPE::TzTimeOnly: + TZTIMEONLY_CONVERTOR::convert( field.getString() ); break; + case TYPE::TzTimeStamp: + TZTIMESTAMP_CONVERTOR::convert( field.getString() ); break; + case TYPE::XmlData: + XMLDATA_CONVERTOR::convert( field.getString() ); break; + case TYPE::Language: + LANGUAGE_CONVERTOR::convert( field.getString() ); break; + case TYPE::Unknown: break; + } + } + catch ( FieldConvertError& ) + { throw IncorrectDataFormat( field.getField(), field.getString() ); } + } + + void checkValue( const FieldBase& field ) const + throw( IncorrectTagValue ) + { + if ( !hasFieldValue( field.getField() ) ) return ; + + const std::string& value = field.getString(); + if ( !isFieldValue( field.getField(), value ) ) + throw IncorrectTagValue( field.getField() ); + } + + /// Check if a field has a value. + void checkHasValue( const FieldBase& field ) const + throw( NoTagValue ) + { + if ( m_checkFieldsHaveValues && !field.getString().length() ) + throw NoTagValue( field.getField() ); + } + + /// Check if a field is in this message type. + void checkIsInMessage + ( const FieldBase& field, const MsgType& msgType ) const + throw( TagNotDefinedForMessage ) + { + if ( !isMsgField( msgType, field.getField() ) ) + throw TagNotDefinedForMessage( field.getField() ); + } + + /// Check if group count matches number of groups in + void checkGroupCount + ( const FieldBase& field, const FieldMap& fieldMap, const MsgType& msgType ) const + throw( RepeatingGroupCountMismatch ) + { + int fieldNum = field.getField(); + if( isGroup(msgType, fieldNum) ) + { + if( (int)fieldMap.groupCount(fieldNum) + != IntConvertor::convert(field.getString()) ) + throw RepeatingGroupCountMismatch(fieldNum); + } + } + + /// Check if a message has all required fields. + void checkHasRequired + ( const FieldMap& header, const FieldMap& body, const FieldMap& trailer, + const MsgType& msgType ) const + throw( RequiredTagMissing ) + { + NonBodyFields::const_iterator iNBF; + for( iNBF = m_headerFields.begin(); iNBF != m_headerFields.end(); ++iNBF ) + { + if( iNBF->second == true && !header.isSetField(iNBF->first) ) + throw RequiredTagMissing( iNBF->first ); + } + + for( iNBF = m_trailerFields.begin(); iNBF != m_trailerFields.end(); ++iNBF ) + { + if( iNBF->second == true && !trailer.isSetField(iNBF->first) ) + throw RequiredTagMissing( iNBF->first ); + } + + MsgTypeToField::const_iterator iM + = m_requiredFields.find( msgType.getString() ); + if ( iM == m_requiredFields.end() ) return ; + + const MsgFields& fields = iM->second; + MsgFields::const_iterator iF; + for( iF = fields.begin(); iF != fields.end(); ++iF ) + { + if( !body.isSetField(*iF) ) + throw RequiredTagMissing( *iF ); + } + + FieldMap::g_iterator groups; + for( groups = body.g_begin(); groups != body.g_end(); ++groups ) + { + int delim; + const DataDictionary* DD = 0; + int field = groups->first; + if( getGroup( msgType.getValue(), field, delim, DD ) ) + { + std::vector::const_iterator group; + for( group = groups->second.begin(); group != groups->second.end(); ++group ) + DD->checkHasRequired( **group, **group, **group, msgType ); + } + } + } + + int lookupXMLFieldNumber( DOMDocument*, DOMNode* ) const; + int lookupXMLFieldNumber( DOMDocument*, const std::string& name ) const; + int addXMLComponentFields( DOMDocument*, DOMNode*, const std::string& msgtype, DataDictionary&, bool ); + void addXMLGroup( DOMDocument*, DOMNode*, const std::string& msgtype, DataDictionary&, bool ); + TYPE::Type XMLTypeToType( const std::string& xmlType ) const; + + bool m_hasVersion; + bool m_checkFieldsOutOfOrder; + bool m_checkFieldsHaveValues; + bool m_checkUserDefinedFields; + BeginString m_beginString; + MsgTypeToField m_messageFields; + MsgTypeToField m_requiredFields; + MsgTypes m_messages; + Fields m_fields; + OrderedFields m_orderedFields; + mutable OrderedFieldsArray m_orderedFieldsArray; + NonBodyFields m_headerFields; + NonBodyFields m_trailerFields; + FieldTypes m_fieldTypes; + FieldToValue m_fieldValues; + FieldToName m_fieldNames; + NameToField m_names; + ValueToName m_valueNames; + FieldToGroup m_groups; + MsgFields m_dataFields; +}; +} + +#endif //FIX_DATADICTIONARY_H diff --git a/linux/include/quickfix/DataDictionaryProvider.h b/linux/include/quickfix/DataDictionaryProvider.h new file mode 100644 index 000000000..bd88aa402 --- /dev/null +++ b/linux/include/quickfix/DataDictionaryProvider.h @@ -0,0 +1,70 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_DATADICTIONARYPROVIDER_H +#define FIX_DATADICTIONARYPROVIDER_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "DataDictionary.h" +#include "Exceptions.h" +#include "Utility.h" + +namespace FIX +{ +class BeginString; +class ApplVerID; + +/** +* Queries for DataDictionary based on appropriate version of %FIX. +*/ + +class DataDictionaryProvider +{ +public: + DataDictionaryProvider() {} + DataDictionaryProvider( const DataDictionaryProvider& copy ); + + const DataDictionary& getSessionDataDictionary(const BeginString& beginString) const + throw( DataDictionaryNotFound ); + + const DataDictionary& getApplicationDataDictionary(const ApplVerID& applVerID) const + throw( DataDictionaryNotFound ); + + void addTransportDataDictionary(const BeginString& beginString, ptr::shared_ptr); + void addApplicationDataDictionary(const ApplVerID& applVerID, ptr::shared_ptr); + + void addTransportDataDictionary(const BeginString& beginString, const std::string& path) + { addTransportDataDictionary(beginString, ptr::shared_ptr( new DataDictionary(path) )); } + void addApplicationDataDictionary(const ApplVerID& applVerID, const std::string& path) + { addApplicationDataDictionary(applVerID, ptr::shared_ptr( new DataDictionary(path) )); } + +private: + std::map > m_transportDictionaries; + std::map > m_applicationDictionaries; + DataDictionary emptyDataDictionary; +}; +} + +#endif //FIX_DATADICTIONARYPROVIDER_H + diff --git a/linux/include/quickfix/DatabaseConnectionID.h b/linux/include/quickfix/DatabaseConnectionID.h new file mode 100644 index 000000000..aad43b7df --- /dev/null +++ b/linux/include/quickfix/DatabaseConnectionID.h @@ -0,0 +1,105 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_DATABASECONNECTIONID_H +#define FIX_DATABASECONNECTIONID_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include +#include + +namespace FIX +{ +class DatabaseConnectionID +{ +public: + DatabaseConnectionID + ( const std::string& database, const std::string& user, + const std::string& password, const std::string& host, short port ) + : m_database( database ), m_user( user ), m_password( password ), + m_host( host ), m_port( port ) {} + + friend bool operator<( const DatabaseConnectionID&, const DatabaseConnectionID& ); + friend bool operator==( const DatabaseConnectionID&, const DatabaseConnectionID& ); + friend bool operator!=( const DatabaseConnectionID&, const DatabaseConnectionID& ); + + const std::string& getDatabase() const + { return m_database; } + const std::string& getUser() const + { return m_user; } + const std::string& getPassword() const + { return m_password; } + const std::string& getHost() const + { return m_host; } + short getPort() const + { return m_port; } + +private: + std::string m_database; + std::string m_user; + std::string m_password; + std::string m_host; + short m_port; +}; + +inline bool operator<( const DatabaseConnectionID& lhs, const DatabaseConnectionID& rhs ) +{ + if ( lhs.m_database < rhs.m_database ) + return true; + else if ( rhs.m_database < lhs.m_database ) + return false; + else if ( lhs.m_user < rhs.m_user ) + return true; + else if ( rhs.m_user < lhs.m_user ) + return false; + else if ( lhs.m_password < rhs.m_password ) + return true; + else if ( rhs.m_password < lhs.m_password ) + return false; + else if ( lhs.m_host < rhs.m_host ) + return true; + else if ( rhs.m_host < lhs.m_host ) + return false; + else if ( lhs.m_port < rhs.m_port ) + return true; + else if ( rhs.m_port < lhs.m_port ) + return false; + else + return false; +} +inline bool operator==( const DatabaseConnectionID& lhs, const DatabaseConnectionID& rhs ) +{ + return ( ( lhs.m_database == rhs.m_database ) && + ( lhs.m_user == rhs.m_user ) && + ( lhs.m_password == rhs.m_password ) && + ( lhs.m_host == rhs.m_host ) && + ( lhs.m_port == rhs.m_port )); +} +inline bool operator!=( const DatabaseConnectionID& lhs, const DatabaseConnectionID& rhs ) +{ + return !( lhs == rhs ); +} +} + +#endif diff --git a/linux/include/quickfix/DatabaseConnectionPool.h b/linux/include/quickfix/DatabaseConnectionPool.h new file mode 100644 index 000000000..142558a35 --- /dev/null +++ b/linux/include/quickfix/DatabaseConnectionPool.h @@ -0,0 +1,91 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_DATABASECONNECTIONPOOL_H +#define FIX_DATABASECONNECTIONPOOL_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "DatabaseConnectionID.h" +#include +#include + +namespace FIX +{ +template< typename T > class DatabaseConnectionPool +{ +public: + DatabaseConnectionPool( bool poolConnections ) + : m_poolConnections( poolConnections ) {} + + T* create( const DatabaseConnectionID& id ) + { + if( !m_poolConnections ) + return new T( id ); + + if( m_connections.find( id ) == m_connections.end() ) + { + m_connections[id] = Connection + ( new T(id), 0 ); + } + m_connections[id].second++; + return m_connections[id].first; + } + + bool destroy( T* pConnection ) + { + if( !m_poolConnections ) + { + delete pConnection; + return true; + } + + const DatabaseConnectionID& id = pConnection->connectionID(); + if( m_connections.find( id ) == m_connections.end() ) + return false; + + Connection& connection = m_connections[id]; + if( connection.first != pConnection ) + return false; + + connection.second--; + if( connection.second == 0 ) + { + m_connections.erase( id ); + delete pConnection; + } + return true; + } + +private: + typedef std::pair + Connection; + typedef std::map + Connections; + + Connections m_connections; + bool m_poolConnections; +}; +} + +#endif diff --git a/linux/include/quickfix/Dictionary.h b/linux/include/quickfix/Dictionary.h new file mode 100644 index 000000000..e043b03da --- /dev/null +++ b/linux/include/quickfix/Dictionary.h @@ -0,0 +1,94 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_DICTIONARY_H +#define FIX_DICTIONARY_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include +#include +#include "Exceptions.h" + +namespace FIX +{ +/// For storage and retrieval of key/value pairs. +class Dictionary +{ +public: + Dictionary( const std::string& name ) : m_name( name ) {} + Dictionary() {} + virtual ~Dictionary() {} + + typedef std::map < std::string, std::string > Data; + typedef Data::const_iterator iterator; + typedef iterator const_iterator; + + /// Get the name of the dictionary. + std::string getName() const { return m_name; } + /// Return the number of key/value pairs. + size_t size() const { return m_data.size(); } + + /// Get a value as a string. + std::string getString( const std::string&, bool capitalize = false ) const + throw( ConfigError, FieldConvertError ); + /// Get a value as a int. + int getInt( const std::string& ) const + throw( ConfigError, FieldConvertError ); + /// Get a value as a double. + double getDouble( const std::string& ) const + throw( ConfigError, FieldConvertError ); + /// Get a value as a bool + bool getBool( const std::string& ) const + throw( ConfigError, FieldConvertError ); + /// Get a value as a day of week + int getDay( const std::string& ) const + throw( ConfigError, FieldConvertError ); + + /// Set a value from a string. + void setString( const std::string&, const std::string& ); + /// Set a value from a int. + void setInt( const std::string&, int ); + /// Set a value from a double. + void setDouble( const std::string&, double ); + /// Set a value from a bool + void setBool( const std::string&, bool ); + /// Set a value from a day + void setDay( const std::string&, int ); + + /// Check if the dictionary contains a value for key. + bool has( const std::string& ) const; + /// Merge two dictionaries. + void merge( const Dictionary& ); + + iterator begin() const { return m_data.begin(); } + iterator end() const { return m_data.end(); } + +private: + Data m_data; + std::string m_name; +}; +/*! @} */ +} + +#endif //FIX_DICTIONARY_H diff --git a/linux/include/quickfix/Event.h b/linux/include/quickfix/Event.h new file mode 100644 index 000000000..68a004c5a --- /dev/null +++ b/linux/include/quickfix/Event.h @@ -0,0 +1,95 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_EVENT_H +#define FIX_EVENT_H + +#include "Utility.h" +#include + +#ifndef _MSC_VER +#include +#include +#endif + +namespace FIX +{ +/// Portable implementation of an event/conditional mutex +class Event +{ +public: + Event() + { +#ifdef _MSC_VER + m_event = CreateEvent( 0, false, false, 0 ); +#else + pthread_mutex_init( &m_mutex, 0 ); + pthread_cond_init( &m_event, 0 ); +#endif + } + + ~Event() + { +#ifdef _MSC_VER + CloseHandle( m_event ); +#else + pthread_cond_destroy( &m_event ); + pthread_mutex_destroy( &m_mutex ); +#endif + } + + void signal() + { +#ifdef _MSC_VER + SetEvent( m_event ); +#else + pthread_mutex_lock( &m_mutex ); + pthread_cond_broadcast( &m_event ); + pthread_mutex_unlock( &m_mutex ); +#endif + } + + void wait( double s ) + { +#ifdef _MSC_VER + WaitForSingleObject( m_event, (long)(s * 1000) ); +#else + pthread_mutex_lock( &m_mutex ); + timespec time, remainder; + double intpart; + time.tv_nsec = (long)(modf(s, &intpart) * 1e9); + time.tv_sec = (int)intpart; + pthread_cond_timedwait( &m_event, &m_mutex, &time ); + pthread_mutex_unlock( &m_mutex ); +#endif + } + +private: +#ifdef _MSC_VER + HANDLE m_event; +#else + pthread_cond_t m_event; + pthread_mutex_t m_mutex; +#endif +}; +} + +#endif diff --git a/linux/include/quickfix/Exceptions.h b/linux/include/quickfix/Exceptions.h new file mode 100644 index 000000000..15b4ba91a --- /dev/null +++ b/linux/include/quickfix/Exceptions.h @@ -0,0 +1,299 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_EXCEPTIONS_H +#define FIX_EXCEPTIONS_H + +#include +#include +#include "Utility.h" + +namespace FIX +{ + +/// Base QuickFIX exception type. +struct Exception : public std::logic_error +{ + Exception( const std::string& t, const std::string& d ) + : std::logic_error( d.size() ? t + ": " + d : t ), + type( t ), detail( d ) + {} + ~Exception() throw() {} + + std::string type; + std::string detail; +}; + +/// DataDictionary not found for BeginString or ApplVerID +struct DataDictionaryNotFound : public Exception +{ + DataDictionaryNotFound( const std::string& v, const std::string& what = "" ) + : Exception( "Could not find data dictionary", what ), + version( v ) {} + ~DataDictionaryNotFound() throw() {} + + std::string version; +}; + +/// Field not found inside a message +struct FieldNotFound : public Exception +{ + FieldNotFound( int f = 0, const std::string& what = "" ) + : Exception( "Field not found", what ), + field( f ) {} + int field; +}; + +/// Unable to convert field into its native format +struct FieldConvertError : public Exception +{ + FieldConvertError( const std::string& what = "" ) + : Exception( "Could not convert field", what ) {} +}; + +/// Unable to parse message +struct MessageParseError : public Exception +{ + MessageParseError( const std::string& what = "" ) + : Exception( "Could not parse message", what ) {} +}; + +/// Not a recognizable message +struct InvalidMessage : public Exception +{ + InvalidMessage( const std::string& what = "" ) + : Exception( "Invalid message", what ) {} +}; + +/// %Application is not configured correctly +struct ConfigError : public Exception +{ + ConfigError( const std::string& what = "" ) + : Exception( "Configuration failed", what ) {} +}; + +/// %Application encountered serious error during runtime +struct RuntimeError : public Exception +{ + RuntimeError( const std::string& what = "" ) + : Exception( "Runtime error", what ) {} +}; + +/// Tag number does not exist in specification +struct InvalidTagNumber : public Exception +{ + InvalidTagNumber( int f = 0, const std::string& what = "" ) + : Exception( "Invalid tag number", what ), + field( f ) {} + int field; +}; + +/// Required field is not in message +struct RequiredTagMissing : public Exception +{ + RequiredTagMissing( int f = 0, const std::string& what = "" ) + : Exception( "Required tag missing", what ), + field( f ) {} + int field; +}; + +/// Field does not belong to message +struct TagNotDefinedForMessage : public Exception +{ + TagNotDefinedForMessage( int f = 0, const std::string& what = "" ) + : Exception( "Tag not defined for this message type", what ), + field( f ) {} + int field; +}; + +/// Field exists in message without a value +struct NoTagValue : public Exception +{ + NoTagValue( int f = 0, const std::string& what = "" ) + : Exception( "Tag specified without a value", what ), + field( f ) {} + int field; +}; + +/// Field has a value that is out of range +struct IncorrectTagValue : public Exception +{ + IncorrectTagValue( int f = 0, const std::string& what = "" ) + : Exception( "Value is incorrect (out of range) for this tag", what ), + field( f ) {} + int field; +}; + +/// Field has a badly formatted value +struct IncorrectDataFormat : public Exception +{ + IncorrectDataFormat( int f = 0, const std::string& what = "" ) + : Exception( "Incorrect data format for value", what ), + field( f ) {} + int field; +}; + +/// Message is not structured correctly +struct IncorrectMessageStructure : public Exception +{ + IncorrectMessageStructure( const std::string& what = "" ) + : Exception( "Incorrect message structure", what ) {} +}; + +/// Field shows up twice in the message +struct DuplicateFieldNumber : public Exception +{ + DuplicateFieldNumber( const std::string& what = "" ) + : Exception( "Duplicate field number", what ) {} +}; + +/// Not a known message type +struct InvalidMessageType : public Exception +{ + InvalidMessageType( const std::string& what = "" ) + : Exception( "Invalid Message Type", what ) {} +}; + +/// Message type not supported by application +struct UnsupportedMessageType : public Exception +{ + UnsupportedMessageType( const std::string& what = "" ) + : Exception( "Unsupported Message Type", what ) {} +}; + +/// Version of %FIX is not supported +struct UnsupportedVersion : public Exception +{ + UnsupportedVersion( const std::string& what = "" ) + : Exception( "Unsupported Version", what ) {} +}; + +/// Tag is not in the correct order +struct TagOutOfOrder : public Exception +{ + TagOutOfOrder( int f = 0, const std::string& what = "" ) + : Exception( "Tag specified out of required order", what ), + field( f ) {} + int field; +}; + +/// Repeated tag not part of repeating group +struct RepeatedTag : public Exception +{ + RepeatedTag( int f = 0, const std::string& what = "" ) + : Exception( "Repeated tag not part of repeating group", what ), + field( f ) {} + int field; +}; + +/// Repeated group count not equal to actual count +struct RepeatingGroupCountMismatch : public Exception +{ + RepeatingGroupCountMismatch( int f = 0, const std::string& what = "" ) + : Exception( "Repeating group count mismatch", what ), + field( f ) {} + int field; +}; + +/// Indicates user does not want to send a message +struct DoNotSend : public Exception +{ + DoNotSend( const std::string& what = "" ) + : Exception( "Do Not Send Message", what ) {} +}; + +/// User wants to reject permission to logon +struct RejectLogon : public Exception +{ + RejectLogon( const std::string& what = "" ) + : Exception( "Rejected Logon Attempt", what ) {} +}; + +/// Session cannot be found for specified action +struct SessionNotFound : public Exception +{ + SessionNotFound( const std::string& what = "" ) + : Exception( "Session Not Found", what ) {} +}; + +/// IO Error +struct IOException : public Exception +{ + IOException( const std::string& what = "" ) + : Exception( "IO Error", what ) {} +}; + +/// Socket Error +struct SocketException : public Exception +{ + SocketException() + : Exception( "Socket Error", errorToWhat() ) {} + + SocketException( const std::string& what ) + : Exception( "Socket Error", what ) {} + + std::string errorToWhat() + { +#ifdef _MSC_VER + error = WSAGetLastError(); + char buffer[2048]; + FormatMessageA( FORMAT_MESSAGE_FROM_SYSTEM, NULL, error, + MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), + buffer, 2048, NULL ); + return buffer; +#else + error = errno; + return strerror( error ); +#endif + } + + int error; +}; + +/// Socket send operation failed +struct SocketSendFailed : public SocketException +{ + SocketSendFailed() {} + SocketSendFailed( const std::string& what ) + : SocketException( what ) {} +}; + +/// Socket recv operation failed +struct SocketRecvFailed : public SocketException +{ + SocketRecvFailed( ssize_t size ) + : SocketException( size == 0 ? "Connection reset by peer." : size < 0 ? errorToWhat() : "Success." ) {} + SocketRecvFailed( const std::string& what ) + : SocketException( what ) {} +}; + +/// Socket close operation failed +struct SocketCloseFailed : public SocketException +{ + SocketCloseFailed() {} + SocketCloseFailed( const std::string& what ) + : SocketException( what ) {} +}; + +/*! @} */ +} + +#endif //FIX_EXCEPTIONS_H diff --git a/linux/include/quickfix/Field.h b/linux/include/quickfix/Field.h new file mode 100644 index 000000000..1d4caeff2 --- /dev/null +++ b/linux/include/quickfix/Field.h @@ -0,0 +1,672 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_FIELD +#define FIX_FIELD + +#ifdef _MSC_VER +#pragma warning( disable : 4786 ) +#endif + +#include +#include +#include "FieldNumbers.h" +#include "FieldConvertors.h" +#include "FieldTypes.h" +#include "Utility.h" + +namespace FIX +{ +/** + * Base representation of all Field classes. + * + * This base class is the lowest common denominator of all fields. It + * keeps all fields in its most generic string representation with its + * integer tag. + */ +class FieldBase +{ + + /// Class used to store field metrics like total length and checksum + class field_metrics + { + public: + + field_metrics( const size_t length, const int checksum ) + : m_length( length ) + , m_checksum( checksum ) + {} + + size_t getLength() const + { return m_length; } + + int getCheckSum() const + { return m_checksum; } + + bool isValid() const + { return m_length > 0; } + + private: + + size_t m_length; + int m_checksum; + }; + + friend class Message; + + /// Constructor which also calculates field metrics + FieldBase( int field, + std::string::const_iterator valueStart, + std::string::const_iterator valueEnd, + std::string::const_iterator tagStart, + std::string::const_iterator tagEnd ) + : m_field( field ) + , m_string( valueStart, valueEnd ) + , m_metrics( calculateMetrics( tagStart, tagEnd ) ) + {} + +public: + FieldBase( int field, const std::string& string ) + : m_field( field ), m_string(string), m_metrics( no_metrics() ) + {} + + virtual ~FieldBase() {} + + void setField( int field ) + { + m_field = field; + m_metrics = no_metrics(); + m_data.clear(); + } + + void setString( const std::string& string ) + { + m_string = string; + m_metrics = no_metrics(); + m_data.clear(); + } + + /// Get the fields integer tag. + int getField() const + { return m_field; } + + /// Get the string representation of the fields value. + const std::string& getString() const + { return m_string; } + + /// Get the string representation of the Field (i.e.) 55=MSFT[SOH] + const std::string& getFixString() const + { + if( m_data.empty() ) + encodeTo( m_data ); + + return m_data; + } + + /// Get the length of the fields string representation + size_t getLength() const + { + calculate(); + return m_metrics.getLength(); + } + + /// Get the total value the fields characters added together + int getTotal() const + { + calculate(); + return m_metrics.getCheckSum(); + } + + /// Compares fields based on their tag numbers + bool operator < ( const FieldBase& field ) const + { return m_field < field.m_field; } + +private: + + void calculate() const + { + if( m_metrics.isValid() ) return; + + m_metrics = calculateMetrics( getFixString() ); + } + + /// Serializes string representation of the Field to input string + void encodeTo( std::string& result ) const + { + size_t tagLength = FIX::number_of_symbols_in( m_field ) + 1; + size_t totalLength = tagLength + m_string.length() + 1; + + result.resize( totalLength ); + + char * buf = (char*)result.c_str(); + FIX::integer_to_string( buf, tagLength, m_field ); + + buf[tagLength - 1] = '='; + memcpy( buf + tagLength, m_string.data(), m_string.length() ); + buf[totalLength - 1] = '\001'; + } + + static field_metrics no_metrics() + { + return field_metrics( 0, 0 ); + } + + /// Calculate metrics for any input string + static field_metrics calculateMetrics( + std::string::const_iterator const start, + std::string::const_iterator const end ) + { + int checksum = 0; + for ( std::string::const_iterator str = start; str != end; ++str ) + checksum += (unsigned char)( *str ); + + return field_metrics( std::distance( start, end ), checksum ); + } + + static field_metrics calculateMetrics( const std::string& field ) + { + return calculateMetrics( field.begin(), field.end() ); + } + + int m_field; + std::string m_string; + mutable std::string m_data; + mutable field_metrics m_metrics; +}; +/*! @} */ + +inline std::ostream& operator << +( std::ostream& stream, const FieldBase& field ) +{ + stream << field.getString(); + return stream; +} + +/** + * MSC doesn't support partial template specialization so we have this. + * this is here to provide equality checking against native char arrays. + */ +class StringField : public FieldBase +{ +public: + explicit StringField( int field, const std::string& data ) +: FieldBase( field, data ) {} + StringField( int field ) +: FieldBase( field, "" ) {} + + void setValue( const std::string& value ) + { setString( value ); } + const std::string& getValue() const + { return getString(); } + operator const std::string&() const + { return getString(); } + + bool operator<( const StringField& rhs ) const + { return getString() < rhs.getString(); } + bool operator>( const StringField& rhs ) const + { return getString() > rhs.getString(); } + bool operator==( const StringField& rhs ) const + { return getString() == rhs.getString(); } + bool operator!=( const StringField& rhs ) const + { return getString() != rhs.getString(); } + bool operator<=( const StringField& rhs ) const + { return getString() <= rhs.getString(); } + bool operator>=( const StringField& rhs ) const + { return getString() >= rhs.getString(); } + friend bool operator<( const StringField&, const char* ); + friend bool operator<( const char*, const StringField& ); + friend bool operator>( const StringField&, const char* ); + friend bool operator>( const char*, const StringField& ); + friend bool operator==( const StringField&, const char* ); + friend bool operator==( const char*, const StringField& ); + friend bool operator!=( const StringField&, const char* ); + friend bool operator!=( const char*, const StringField& ); + friend bool operator<=( const StringField&, const char* ); + friend bool operator<=( const char*, const StringField& ); + friend bool operator>=( const StringField&, const char* ); + friend bool operator>=( const char*, const StringField& ); + + friend bool operator<( const StringField&, const std::string& ); + friend bool operator<( const std::string&, const StringField& ); + friend bool operator>( const StringField&, const std::string& ); + friend bool operator>( const std::string&, const StringField& ); + friend bool operator==( const StringField&, const std::string& ); + friend bool operator==( const std::string&, const StringField& ); + friend bool operator!=( const StringField&, const std::string& ); + friend bool operator!=( const std::string&, const StringField& ); + friend bool operator<=( const StringField&, const std::string& ); + friend bool operator<=( const std::string&, const StringField& ); + friend bool operator>=( const StringField&, const std::string& ); + friend bool operator>=( const std::string&, const StringField& ); +}; + +inline bool operator<( const StringField& lhs, const char* rhs ) + { return lhs.getValue() < rhs; } +inline bool operator<( const char* lhs, const StringField& rhs ) + { return lhs < rhs.getValue(); } +inline bool operator>( const StringField& lhs, const char* rhs ) + { return lhs.getValue() > rhs; } +inline bool operator>( const char* lhs, const StringField& rhs ) + { return lhs > rhs.getValue(); } +inline bool operator==( const StringField& lhs, const char* rhs ) + { return lhs.getValue() == rhs; } +inline bool operator==( const char* lhs, const StringField& rhs ) + { return lhs == rhs.getValue(); } +inline bool operator!=( const StringField& lhs, const char* rhs ) + { return lhs.getValue() != rhs; } +inline bool operator!=( const char* lhs, const StringField& rhs ) + { return lhs != rhs.getValue(); } +inline bool operator<=( const StringField& lhs, const char* rhs ) + { return lhs.getValue() <= rhs; } +inline bool operator<=( const char* lhs, const StringField& rhs ) + { return lhs <= rhs.getValue(); } +inline bool operator>=( const StringField& lhs, const char* rhs ) + { return lhs.getValue() >= rhs; } +inline bool operator>=( const char* lhs, const StringField& rhs ) + { return lhs >= rhs.getValue(); } + +inline bool operator<( const StringField& lhs, const std::string& rhs ) + { return lhs.getValue() < rhs; } +inline bool operator<( const std::string& lhs, const StringField& rhs ) + { return lhs < rhs.getValue(); } +inline bool operator>( const StringField& lhs, const std::string& rhs ) + { return lhs.getValue() > rhs; } +inline bool operator>( const std::string& lhs, const StringField& rhs ) + { return lhs > rhs.getValue(); } +inline bool operator==( const StringField& lhs, const std::string& rhs ) + { return lhs.getValue() == rhs; } +inline bool operator==( const std::string& lhs, const StringField& rhs ) + { return lhs == rhs.getValue(); } +inline bool operator!=( const StringField& lhs, const std::string& rhs ) + { return lhs.getValue() != rhs; } +inline bool operator!=( const std::string& lhs, const StringField& rhs ) + { return lhs != rhs.getValue(); } +inline bool operator<=( const StringField& lhs, const std::string& rhs ) + { return lhs.getValue() <= rhs; } +inline bool operator<=( const std::string& lhs, const StringField& rhs ) + { return lhs <= rhs.getValue(); } +inline bool operator>=( const StringField& lhs, const std::string& rhs ) + { return lhs.getValue() >= rhs; } +inline bool operator>=( const std::string& lhs, const StringField& rhs ) + { return lhs >= rhs.getValue(); } + +/// Field that contains a character value +class CharField : public FieldBase +{ +public: + explicit CharField( int field, char data ) +: FieldBase( field, CharConvertor::convert( data ) ) {} + CharField( int field ) +: FieldBase( field, "" ) {} + + void setValue( char value ) + { setString( CharConvertor::convert( value ) ); } + char getValue() const throw ( IncorrectDataFormat ) + { try + { return CharConvertor::convert( getString() ); } + catch( FieldConvertError& ) + { throw IncorrectDataFormat( getField(), getString() ); } } + operator char() const + { return getValue(); } +}; + +/// Field that contains a double value +class DoubleField : public FieldBase +{ +public: + explicit DoubleField( int field, double data, int padding = 0 ) +: FieldBase( field, DoubleConvertor::convert( data, padding ) ) {} + DoubleField( int field ) +: FieldBase( field, "" ) {} + + void setValue( double value, int padding = 0 ) + { setString( DoubleConvertor::convert( value, padding ) ); } + double getValue() const throw ( IncorrectDataFormat ) + { try + { return DoubleConvertor::convert( getString() ); } + catch( FieldConvertError& ) + { throw IncorrectDataFormat( getField(), getString() ); } } + operator double() const + { return getValue(); } +}; + +/// Field that contains an integer value +class IntField : public FieldBase +{ +public: + explicit IntField( int field, int data ) +: FieldBase( field, IntConvertor::convert( data ) ) {} + IntField( int field ) +: FieldBase( field, "" ) {} + + void setValue( int value ) + { setString( IntConvertor::convert( value ) ); } + int getValue() const throw ( IncorrectDataFormat ) + { try + { return IntConvertor::convert( getString() ); } + catch( FieldConvertError& ) + { throw IncorrectDataFormat( getField(), getString() ); } } + operator const int() const + { return getValue(); } +}; + +/// Field that contains a boolean value +class BoolField : public FieldBase +{ +public: + explicit BoolField( int field, bool data ) +: FieldBase( field, BoolConvertor::convert( data ) ) {} + BoolField( int field ) +: FieldBase( field, "" ) {} + + void setValue( bool value ) + { setString( BoolConvertor::convert( value ) ); } + bool getValue() const throw ( IncorrectDataFormat ) + { try + { return BoolConvertor::convert( getString() ); } + catch( FieldConvertError& ) + { throw IncorrectDataFormat( getField(), getString() ); } } + operator bool() const + { return getValue(); } +}; + +/// Field that contains a UTC time stamp value +class UtcTimeStampField : public FieldBase +{ +public: + explicit UtcTimeStampField( int field, const UtcTimeStamp& data, bool showMilliseconds = false ) +: FieldBase( field, UtcTimeStampConvertor::convert( data, showMilliseconds ) ) {} + UtcTimeStampField( int field, bool showMilliseconds = false ) +: FieldBase( field, UtcTimeStampConvertor::convert( UtcTimeStamp(), showMilliseconds ) ) {} + + void setValue( const UtcTimeStamp& value ) + { setString( UtcTimeStampConvertor::convert( value ) ); } + UtcTimeStamp getValue() const throw ( IncorrectDataFormat ) + { try + { return UtcTimeStampConvertor::convert( getString() ); } + catch( FieldConvertError& ) + { throw IncorrectDataFormat( getField(), getString() ); } } + operator UtcTimeStamp() const + { return getValue(); } + + bool operator<( const UtcTimeStampField& rhs ) const + { return getValue() < rhs.getValue(); } + bool operator==( const UtcTimeStampField& rhs ) const + { return getValue() == rhs.getValue(); } + bool operator!=( const UtcTimeStampField& rhs ) const + { return getValue() != rhs.getValue(); } +}; + +/// Field that contains a UTC date value +class UtcDateField : public FieldBase +{ +public: + explicit UtcDateField( int field, const UtcDate& data ) +: FieldBase( field, UtcDateConvertor::convert( data ) ) {} + UtcDateField( int field ) +: FieldBase( field, UtcDateConvertor::convert( UtcDate() ) ) {} + + void setValue( const UtcDate& value ) + { setString( UtcDateConvertor::convert( value ) ); } + UtcDate getValue() const throw ( IncorrectDataFormat ) + { try + { return UtcDateConvertor::convert( getString() ); } + catch( FieldConvertError& ) + { throw IncorrectDataFormat( getField(), getString() ); } } + operator UtcDate() const + { return getValue(); } + + bool operator<( const UtcDateField& rhs ) const + { return getValue() < rhs.getValue(); } + bool operator==( const UtcDateField& rhs ) const + { return getValue() == rhs.getValue(); } + bool operator!=( const UtcDateField& rhs ) const + { return getValue() != rhs.getValue(); } +}; + +/// Field that contains a UTC time value +class UtcTimeOnlyField : public FieldBase +{ +public: + explicit UtcTimeOnlyField( int field, const UtcTimeOnly& data, bool showMilliseconds = false ) +: FieldBase( field, UtcTimeOnlyConvertor::convert( data, showMilliseconds ) ) {} + UtcTimeOnlyField( int field, bool showMilliseconds = false ) +: FieldBase( field, UtcTimeOnlyConvertor::convert( UtcTimeOnly(), showMilliseconds ) ) {} + + void setValue( const UtcTimeOnly& value ) + { setString( UtcTimeOnlyConvertor::convert( value ) ); } + UtcTimeOnly getValue() const throw ( IncorrectDataFormat ) + { try + { return UtcTimeOnlyConvertor::convert( getString() ); } + catch( FieldConvertError& ) + { throw IncorrectDataFormat( getField(), getString() ); } } + operator UtcTimeOnly() const + { return getValue(); } + + bool operator<( const UtcTimeOnlyField& rhs ) const + { return getValue() < rhs.getValue(); } + bool operator==( const UtcTimeOnlyField& rhs ) const + { return getValue() == rhs.getValue(); } + bool operator!=( const UtcTimeOnlyField& rhs ) const + { return getValue() != rhs.getValue(); } +}; + +/// Field that contains a checksum value +class CheckSumField : public FieldBase +{ +public: + explicit CheckSumField( int field, int data ) +: FieldBase( field, CheckSumConvertor::convert( data ) ) {} + CheckSumField( int field ) +: FieldBase( field, "" ) {} + + void setValue( int value ) + { setString( CheckSumConvertor::convert( value ) ); } + int getValue() const throw ( IncorrectDataFormat ) + { try + { return CheckSumConvertor::convert( getString() ); } + catch( FieldConvertError& ) + { throw IncorrectDataFormat( getField(), getString() ); } } + operator const int() const + { return getValue(); } +}; + +typedef DoubleField PriceField; +typedef DoubleField AmtField; +typedef DoubleField QtyField; +typedef StringField CurrencyField; +typedef StringField MultipleValueStringField; +typedef StringField MultipleStringValueField; +typedef StringField MultipleCharValueField; +typedef StringField ExchangeField; +typedef StringField LocalMktDateField; +typedef StringField DataField; +typedef DoubleField FloatField; +typedef DoubleField PriceOffsetField; +typedef StringField MonthField; +typedef StringField MonthYearField; +typedef StringField DayOfMonthField; +typedef UtcDateField UtcDateOnlyField; +typedef IntField LengthField; +typedef IntField NumInGroupField; +typedef IntField SeqNumField; +typedef DoubleField PercentageField; +typedef StringField CountryField; +typedef StringField TzTimeOnlyField; +typedef StringField TzTimeStampField; +} + +#define DEFINE_FIELD_CLASS_NUM( NAME, TOK, TYPE, NUM ) \ +class NAME : public TOK##Field { public: \ +NAME() : TOK##Field(NUM) {} \ +NAME(const TYPE& value) : TOK##Field(NUM, value) {} \ +} + +#define DEFINE_FIELD_CLASS( NAME, TOK, TYPE ) \ +DEFINE_FIELD_CLASS_NUM(NAME, TOK, TYPE, FIELD::NAME) + +#define DEFINE_DEPRECATED_FIELD_CLASS( NAME, TOK, TYPE ) \ +DEFINE_FIELD_CLASS_NUM(NAME, TOK, TYPE, DEPRECATED_FIELD::NAME) + +#define DEFINE_FIELD_TIMECLASS_NUM( NAME, TOK, TYPE, NUM ) \ +class NAME : public TOK##Field { public: \ +NAME() : TOK##Field(NUM, false) {} \ +NAME(bool showMilliseconds) : TOK##Field(NUM, showMilliseconds) {} \ +NAME(const TYPE& value) : TOK##Field(NUM, value) {} \ +NAME(const TYPE& value, bool showMilliseconds) : TOK##Field(NUM, value, showMilliseconds) {} \ +} + +#define DEFINE_FIELD_TIMECLASS( NAME, TOK, TYPE ) \ +DEFINE_FIELD_TIMECLASS_NUM(NAME, TOK, TYPE, FIELD::NAME) + +#define DEFINE_DEPRECATED_FIELD_TIMECLASS( NAME, TOK, TYPE ) \ +DEFINE_FIELD_TIMECLASS_NUM(NAME, TOK, TYPE, DEPRECATED_FIELD::NAME) + +#define DEFINE_CHECKSUM( NAME ) \ + DEFINE_FIELD_CLASS(NAME, CheckSum, FIX::INT) +#define DEFINE_STRING( NAME ) \ + DEFINE_FIELD_CLASS(NAME, String, FIX::STRING) +#define DEFINE_CHAR( NAME ) \ + DEFINE_FIELD_CLASS(NAME, Char, FIX::CHAR) +#define DEFINE_PRICE( NAME ) \ + DEFINE_FIELD_CLASS(NAME, Price, FIX::PRICE) +#define DEFINE_INT( NAME ) \ + DEFINE_FIELD_CLASS(NAME, Int, FIX::INT) +#define DEFINE_AMT( NAME ) \ + DEFINE_FIELD_CLASS(NAME, Amt, FIX::AMT) +#define DEFINE_QTY( NAME ) \ + DEFINE_FIELD_CLASS(NAME, Qty, FIX::QTY) +#define DEFINE_CURRENCY( NAME ) \ + DEFINE_FIELD_CLASS(NAME, Currency, FIX::CURRENCY) +#define DEFINE_MULTIPLEVALUESTRING( NAME ) \ + DEFINE_FIELD_CLASS(NAME, MultipleValueString, FIX::MULTIPLEVALUESTRING) +#define DEFINE_MULTIPLESTRINGVALUE( NAME ) \ + DEFINE_FIELD_CLASS(NAME, MultipleStringValue, FIX::MULTIPLESTRINGVALUE) +#define DEFINE_MULTIPLECHARVALUE( NAME ) \ + DEFINE_FIELD_CLASS(NAME, MultipleCharValue, FIX::MULTIPLECHARVALUE) +#define DEFINE_EXCHANGE( NAME ) \ + DEFINE_FIELD_CLASS(NAME, Exchange, FIX::EXCHANGE) +#define DEFINE_UTCTIMESTAMP( NAME ) \ + DEFINE_FIELD_TIMECLASS(NAME, UtcTimeStamp, FIX::UTCTIMESTAMP) +#define DEFINE_BOOLEAN( NAME ) \ + DEFINE_FIELD_CLASS(NAME, Bool, FIX::BOOLEAN) +#define DEFINE_LOCALMKTDATE( NAME ) \ + DEFINE_FIELD_CLASS(NAME, String, FIX::LOCALMKTDATE) +#define DEFINE_DATA( NAME ) \ + DEFINE_FIELD_CLASS(NAME, Data, FIX::DATA) +#define DEFINE_FLOAT( NAME ) \ + DEFINE_FIELD_CLASS(NAME, Float, FIX::FLOAT) +#define DEFINE_PRICEOFFSET( NAME ) \ + DEFINE_FIELD_CLASS(NAME, PriceOffset, FIX::PRICEOFFSET) +#define DEFINE_MONTHYEAR( NAME ) \ + DEFINE_FIELD_CLASS(NAME, MonthYear, FIX::MONTHYEAR) +#define DEFINE_DAYOFMONTH( NAME ) \ + DEFINE_FIELD_CLASS(NAME, DayOfMonth, FIX::DAYOFMONTH) +#define DEFINE_UTCDATE( NAME ) \ + DEFINE_FIELD_CLASS(NAME, UtcDate, FIX::UTCDATE) +#define DEFINE_UTCDATEONLY( NAME ) \ + DEFINE_FIELD_CLASS(NAME, UtcDateOnly, FIX::UTCDATEONLY) +#define DEFINE_UTCTIMEONLY( NAME ) \ + DEFINE_FIELD_CLASS(NAME, UtcTimeOnly, FIX::UTCTIMEONLY) +#define DEFINE_NUMINGROUP( NAME ) \ + DEFINE_FIELD_CLASS(NAME, NumInGroup, FIX::NUMINGROUP) +#define DEFINE_SEQNUM( NAME ) \ + DEFINE_FIELD_CLASS(NAME, SeqNum, FIX::SEQNUM) +#define DEFINE_LENGTH( NAME ) \ + DEFINE_FIELD_CLASS(NAME, Length, FIX::LENGTH) +#define DEFINE_PERCENTAGE( NAME ) \ + DEFINE_FIELD_CLASS(NAME, Percentage, FIX::PERCENTAGE) +#define DEFINE_COUNTRY( NAME ) \ + DEFINE_FIELD_CLASS(NAME, Country, FIX::COUNTRY) +#define DEFINE_TZTIMEONLY( NAME ) \ + DEFINE_FIELD_CLASS(NAME, String, FIX::TZTIMEONLY) +#define DEFINE_TZTIMESTAMP( NAME ) \ + DEFINE_FIELD_CLASS(NAME, String, FIX::TZTIMESTAMP) +#define DEFINE_XMLDATA( NAME ) \ + DEFINE_FIELD_CLASS(NAME, String, FIX::XMLDATA) +#define DEFINE_LANGUAGE( NAME ) \ + DEFINE_FIELD_CLASS(NAME, String, FIX::LANGUAGE) + +#define USER_DEFINE_STRING( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, String, FIX::STRING, NUM) +#define USER_DEFINE_CHAR( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, Char, FIX::CHAR, NUM) +#define USER_DEFINE_PRICE( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, Price, FIX::PRICE, NUM) +#define USER_DEFINE_INT( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, Int, FIX::INT, NUM) +#define USER_DEFINE_AMT( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, Amt, FIX::AMT, NUM) +#define USER_DEFINE_QTY( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, Qty, FIX::QTY, NUM) +#define USER_DEFINE_CURRENCY( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, Currency, FIX::CURRENCY, NUM) +#define USER_DEFINE_MULTIPLEVALUESTRING( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, MultipleValueString, FIX::MULTIPLEVALUESTRING, NUM) +#define USER_DEFINE_MULTIPLESTRINGVALUE( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, MultipleStringValue, FIX::MULTIPLESTRINGVALUE, NUM) +#define USER_DEFINE_MULTIPLECHARVALUE( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, MultipleCharValue, FIX::MULTIPLECHARVALUE, NUM) +#define USER_DEFINE_EXCHANGE( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, Exchange, FIX::EXCHANGE, NUM) +#define USER_DEFINE_UTCTIMESTAMP( NAME, NUM ) \ + DEFINE_FIELD_TIMECLASS_NUM(NAME, UtcTimeStamp, FIX::UTCTIMESTAMP, NUM) +#define USER_DEFINE_BOOLEAN( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, Bool, FIX::BOOLEAN, NUM) +#define USER_DEFINE_LOCALMKTDATE( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, String, FIX::STRING, NUM) +#define USER_DEFINE_DATA( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, Data, FIX::DATA, NUM) +#define USER_DEFINE_FLOAT( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, Float, FIX::FLOAT, NUM) +#define USER_DEFINE_PRICEOFFSET( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, PriceOffset, FIX::PRICEOFFSET, NUM) +#define USER_DEFINE_MONTHYEAR( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, MonthYear, FIX::MONTHYEAR, NUM) +#define USER_DEFINE_DAYOFMONTH( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, DayOfMonth, FIX::DAYOFMONTH, NUM) +#define USER_DEFINE_UTCDATE( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, UtcDate, FIX::UTCDATE, NUM) +#define USER_DEFINE_UTCDATEONLY( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, UtcDateOnly, FIX::UTCDATEONLY, NUM) +#define USER_DEFINE_UTCTIMEONLY( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, UtcTimeOnly, FIX::UTCTIMEONLY, NUM) +#define USER_DEFINE_NUMINGROUP( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, NumInGroup, FIX::NUMINGROUP, NUM) +#define USER_DEFINE_SEQNUM( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, SeqNum, FIX::SEQNUM, NUM) +#define USER_DEFINE_LENGTH( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, Length, FIX::LENGTH, NUM) +#define USER_DEFINE_PERCENTAGE( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, Percentage, FIX::PERCENTAGE, NUM) +#define USER_DEFINE_COUNTRY( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, Country, FIX::COUNTRY, NUM) +#define USER_DEFINE_TZTIMEONLY( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, String, FIX::TZTIMEONLY, NUM) +#define USER_DEFINE_TZTIMESTAMP( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, String, FIX::TZTIMESTAMP, NUM) +#define USER_DEFINE_XMLDATA( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, String, FIX::XMLDATA, NUM) +#define USER_DEFINE_LANGUAGE( NAME, NUM ) \ + DEFINE_FIELD_CLASS_NUM(NAME, String, FIX::LANGUAGE, NUM) + +#endif + diff --git a/linux/include/quickfix/FieldConvertors.h b/linux/include/quickfix/FieldConvertors.h new file mode 100644 index 000000000..ec68d09a1 --- /dev/null +++ b/linux/include/quickfix/FieldConvertors.h @@ -0,0 +1,863 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_FIELDCONVERTORS_H +#define FIX_FIELDCONVERTORS_H + +#include "FieldTypes.h" +#include "Exceptions.h" +#include "Utility.h" +#include +#include +#include +#include +#include + +namespace FIX +{ + +typedef int signed_int; +typedef unsigned int unsigned_int; + +#define UNSIGNED_VALUE_OF( x ) unsigned_int( x < 0 ? -x : x ) + +#define IS_SPACE( x ) ( x == ' ' ) +#define IS_DIGIT( x ) ( unsigned_int( x - '0' ) < 10 ) + +inline int number_of_symbols_in( const signed_int value ) +{ + unsigned_int number = UNSIGNED_VALUE_OF( value ); + + int symbols = 0; + + while( number > 9999 ) + { + symbols += 4; + number /= 10000; + } + + // small tweak to make comparison times consistent + // always 2 comparisons instead of [1 - 4] + if( number > 99 ) + { + if( number > 999 ) + symbols += 4; + else + symbols += 3; + } + else + { + if( number > 9 ) + symbols += 2; + else + symbols += 1; + } + + if( value < 0 ) + symbols += 1; + + return symbols; +} + +static const char digit_pairs[201] = { + "00010203040506070809" + "10111213141516171819" + "20212223242526272829" + "30313233343536373839" + "40414243444546474849" + "50515253545556575859" + "60616263646566676869" + "70717273747576777879" + "80818283848586878889" + "90919293949596979899" +}; + +inline char* integer_to_string( char* buf, const size_t len, signed_int t ) +{ + const bool isNegative = t < 0; + char* p = buf + len; + + *--p = '\0'; + + unsigned_int number = UNSIGNED_VALUE_OF( t ); + + while( number > 99 ) + { + unsigned_int pos = number % 100; + number /= 100; + p -= 2; + *(short*)(p) = *(short*)(digit_pairs + 2 * pos); + } + + if( number > 9 ) + { + p -= 2; + *(short*)(p) = *(short*)(digit_pairs + 2 * number); + } + else + { + *--p = '0' + char(number); + } + + if( isNegative ) + *--p = '-'; + + return p; +} + +inline char* integer_to_string_padded +( char* buf, const size_t len, signed_int t, + const size_t width = 0, + const char paddingChar = '0') +{ + char* p = integer_to_string( buf, len, t ); + if( !width ) + return p; + + const char* stop_p = buf + len - width - 1; + if( stop_p < buf ) stop_p = buf; + while( p > stop_p ) + *--p = paddingChar; + return p; +} + +/// Empty converter is a no-op. +struct EmptyConvertor +{ + static const std::string& convert( const std::string& value ) + { return value; } +}; + +typedef EmptyConvertor StringConvertor; + +/// Converts integer to/from a string +struct IntConvertor +{ + static std::string convert( signed_int value ) + { + // buffer is big enough for significant digits and extra digit, + // minus and null + char buffer[std::numeric_limits::digits10 + 3]; + const char* const start + = integer_to_string( buffer, sizeof (buffer), value ); + return std::string( start, buffer + sizeof (buffer) - start - 1 ); + } + + static bool convert( + std::string::const_iterator str, + std::string::const_iterator end, + signed_int& result ) + { + bool isNegative = false; + signed_int x = 0; + + if( str == end ) + return false; + + if( *str == '-' ) + { + isNegative = true; + if( ++str == end ) + return false; + } + + do + { + const unsigned_int c = *str - '0'; + if( c > 9 ) return false; + x = 10 * x + c; + } while ( ++str != end ); + + if( isNegative ) + x = -x; + + result = x; + return true; + } + + static bool convert( const std::string& value, signed_int& result ) + { + return convert( value.begin(), value.end(), result ); + } + + static signed_int convert( const std::string& value ) + throw( FieldConvertError ) + { + signed_int result = 0; + if( !convert( value.begin(), value.end(), result ) ) + throw FieldConvertError(value); + else + return result; + } + + /// Converts only positive number e.g. FIX field ID: [1 ... 2147483647] + /// No leading whitespace/zero/plus/sign symbols allowed + /// Value is fixed to not make difference between 32bit and 64bit code + static bool convertPositive( + std::string::const_iterator str, + std::string::const_iterator end, + signed_int& result ) + { + const int MAX_VALUE = 2147483647; // max value for 32-bit signed integer + const int HIGH_MARK = MAX_VALUE / 10; + const unsigned_int STOP_SYMBOL = MAX_VALUE % 10; + const std::size_t MAX_DIGITS = 10; // integer can hold up to 10 digits + + const std::size_t length = std::distance( str, end ); + if( length < 1 || length > MAX_DIGITS) + return false; + + if( length == MAX_DIGITS ) + { + end = str; + std::advance( end, length - 1 ); + } + + const unsigned_int ch = *str - '1'; + if( ch > 8 ) + return false; + + unsigned_int x = 0; + + do + { + const unsigned_int c = *str - '0'; + if( c > 9 ) return false; + x = 10 * x + c; + } while( ++str < end ); + + // complete overflow condition check and value calculation + // this saves about 25% of speed when executed out of the main loop + if( length == MAX_DIGITS ) + { + if( x > (unsigned int)HIGH_MARK ) + return false; + + const unsigned_int c = *str - '0'; + if( x == (unsigned int)HIGH_MARK && c > STOP_SYMBOL ) + return false; + + x = 10 * x + c; + } + + result = x; + return true; + } + + static signed_int convertPositive( const std::string& value ) + throw( FieldConvertError ) + { + signed_int result = 0; + if( !convertPositive( value.begin(), value.end(), result ) ) + throw FieldConvertError(value); + else + return result; + } +}; + +/// Converts checksum to/from a string +struct CheckSumConvertor +{ + static std::string convert( int value ) + throw( FieldConvertError ) + { + if ( value > 255 || value < 0 ) throw FieldConvertError(); + char result[4]; + if( integer_to_string_padded(result, sizeof(result), value, 3) != result ) + { + throw FieldConvertError(); + } + return std::string( result, 3 ); + } + + static bool convert( const std::string& value, int& result ) + { + return IntConvertor::convert( value, result ); + } + + static int convert( const std::string& value ) + throw( FieldConvertError ) + { + return IntConvertor::convert( value ); + } +}; + +/// Converts double to/from a string +struct DoubleConvertor +{ + +private: + + /*Simple and fast atof (ascii to float) function. + Executes about 5x faster than standard MSCRT library atof(). + An attractive alternative if the number of calls is in the millions. + Assumes input is a proper integer, fraction, or scientific format. + Matches library atof() to 15 digits (except at extreme exponents). + Follows atof() precedent of essentially no error checking. + 09-May-2009 Tom Van Baak (tvb) www.LeapSecond.com */ + static double fast_atof (const char *p) + { + bool frac(false); + double sign(1.), value(0.), scale(1.); + + while (IS_SPACE(*p)) + ++p; + + // Get sign, if any. + if (*p == '-') + { + sign = -1.; + ++p; + } + else if (*p == '+') + ++p; + + // Get digits before decimal point or exponent, if any. + while (IS_DIGIT(*p)) + { + value = value * 10. + (*p - '0'); + ++p; + } + + // Get digits after decimal point, if any. + if (*p == '.') + { + ++p; + double pow10(10.); + while (IS_DIGIT(*p)) + { + value += (*p - '0') / pow10; + pow10 *= 10.; + ++p; + } + } + + // Handle exponent, if any. + if (toupper(*p) == 'E') + { + unsigned int expon(0); + ++p; + + // Get sign of exponent, if any. + if (*p == '-') + { + frac = true; + ++p; + } + else if (*p == '+') + ++p; + + // Get digits of exponent, if any. + while (IS_DIGIT(*p)) + { + expon = expon * 10 + (*p - '0'); + ++p; + } + if (expon > 308) + expon = 308; + + // Calculate scaling factor. + while (expon >= 50) + { + scale *= 1E50; + expon -= 50; + } + while (expon >= 8) + { + scale *= 1E8; + expon -= 8; + } + while (expon > 0) + { + scale *= 10.0; + expon -= 1; + } + } + + // Return signed and scaled floating point result. + return sign * (frac ? (value / scale) : (value * scale)); + } + +public: + + static std::string convert( double value, int padding = 0 ) + { + char result[32]; + char *end = 0; + + int size; + if( value == 0 || value > 0.0001 || value <= -0.0001 ) + { + size = STRING_SPRINTF( result, "%.15g", value ); + + if( padding > 0 ) + { + char* point = result; + end = result + size - 1; + while( *point != '.' && *point != 0 ) + point++; + + if( *point == 0 ) + { + end = point; + *point = '.'; + size++; + } + int needed = padding - (int)(end - point); + + while( needed-- > 0 ) + { + *(++end) = '0'; + size++; + } + *(end+1) = 0; + } + } + else + { + size = STRING_SPRINTF( result, "%.15f", value ); + // strip trailing 0's + end = result + size - 1; + + if( padding > 0 ) + { + int discard = 15 - padding; + + while( (*end == '0') && (discard-- > 0) ) + { + *(end--) = 0; + size--; + } + } + else + { + while( *end == '0' ) + { + *(end--) = 0; + size--; + } + } + } + + return std::string( result, size ); +} + +static bool convert( const std::string& value, double& result ) +{ + const char * i = value.c_str(); + + // Catch null strings + if( !*i ) return false; + // Eat leading '-' and recheck for null string + if( *i == '-' && !*++i ) return false; + + bool haveDigit = false; + + if( IS_DIGIT(*i) ) + { + haveDigit = true; + while( IS_DIGIT (*++i) ); + } + + if( *i == '.' && IS_DIGIT(*++i) ) + { + haveDigit = true; + while( IS_DIGIT (*++i) ); + } + + if( *i || !haveDigit ) return false; + + result = fast_atof( value.c_str() ); + return true; + } + + static double convert( const std::string& value ) + throw( FieldConvertError ) + { + double result = 0.0; + if( !convert( value, result ) ) + throw FieldConvertError(value); + else + return result; + } +}; + +/// Converts character to/from a string +struct CharConvertor +{ + static std::string convert( char value ) + { + if( value == '\0' ) return ""; + return std::string( 1, value ); + } + + static bool convert( const std::string& value, char& result ) + { + if( value.size() != 1 ) return false; + result = value[0]; + return true; + } + + static char convert( const std::string& value ) + throw( FieldConvertError ) + { + char result = '\0'; + if( !convert( value, result ) ) + throw FieldConvertError(value); + else + return result; + } +}; + +/// Converts boolean to/from a string +struct BoolConvertor +{ + static std::string convert( bool value ) + { + const char ch = value ? 'Y' : 'N'; + return std::string( 1, ch ); + } + + static bool convert( const std::string& value, bool& result ) + { + if( value.size() != 1 ) return false; + switch( value[0] ) + { + case 'Y': result = true; break; + case 'N': result = false; break; + default: return false; + } + + return true; + } + + static bool convert( const std::string& value ) + throw( FieldConvertError ) + { + bool result = false; + if( !convert( value, result ) ) + throw FieldConvertError(value); + else + return result; + } +}; + +/// Converts a UtcTimeStamp to/from a string +struct UtcTimeStampConvertor +{ + static std::string convert( const UtcTimeStamp& value, + bool showMilliseconds = false ) + throw( FieldConvertError ) + { + char result[ 18+4 ]; + int year, month, day, hour, minute, second, millis; + + value.getYMD( year, month, day ); + value.getHMS( hour, minute, second, millis ); + + integer_to_string_padded( result, 5, year, 4 ); + integer_to_string_padded( result + 4, 3, month, 2 ); + integer_to_string_padded( result + 6, 3, day, 2 ); + result[8] = '-'; + integer_to_string_padded( result + 9, 3, hour, 2 ); + result[11] = ':'; + integer_to_string_padded( result + 12, 3, minute, 2 ); + result[14] = ':'; + integer_to_string_padded( result + 15, 3, second, 2 ); + + if( showMilliseconds ) + { + result[17] = '.'; + if( integer_to_string_padded ( result + 18, 4, millis, 3 ) + != result + 18 ) + { + throw FieldConvertError(); + } + } + + return result; + } + + static UtcTimeStamp convert( const std::string& value, + bool calculateDays = false ) + throw( FieldConvertError ) + { + bool haveMilliseconds = false; + + switch( value.size() ) + { + case 21: haveMilliseconds = true; + case 17: break; + default: throw FieldConvertError(value); + } + + int i = 0; + int c = 0; + for( c = 0; c < 8; ++c ) + if( !IS_DIGIT(value[i++]) ) throw FieldConvertError(value); + if (value[i++] != '-') throw FieldConvertError(value); + for( c = 0; c < 2; ++c ) + if( !IS_DIGIT(value[i++]) ) throw FieldConvertError(value); + if( value[i++] != ':' ) throw FieldConvertError(value); + for( c = 0; c < 2; ++c ) + if( !IS_DIGIT(value[i++]) ) throw FieldConvertError(value); + if( value[i++] != ':' ) throw FieldConvertError(value); + for( c = 0; c < 2; ++c ) + if( !IS_DIGIT(value[i++]) ) throw FieldConvertError(value); + + if( haveMilliseconds ) + { + if( value[i++] != '.' ) throw FieldConvertError(value); + for( c = 0; c < 3; ++c ) + if( !IS_DIGIT(value[i++]) ) throw FieldConvertError(value); + } + + int year, mon, mday, hour, min, sec, millis; + + i = 0; + + year = value[i++] - '0'; + year = 10 * year + value[i++] - '0'; + year = 10 * year + value[i++] - '0'; + year = 10 * year + value[i++] - '0'; + + mon = value[i++] - '0'; + mon = 10 * mon + value[i++] - '0'; + if( mon < 1 || 12 < mon ) throw FieldConvertError(value); + + mday = value[i++] - '0'; + mday = 10 * mday + value[i++] - '0'; + if( mday < 1 || 31 < mday ) throw FieldConvertError(value); + + ++i; // skip '-' + + hour = value[i++] - '0'; + hour = 10 * hour + value[i++] - '0'; + // No check for >= 0 as no '-' are converted here + if( 23 < hour ) throw FieldConvertError(value); + + ++i; // skip ':' + + min = value[i++] - '0'; + min = 10 * min + value[i++] - '0'; + // No check for >= 0 as no '-' are converted here + if( 59 < min ) throw FieldConvertError(value); + + ++i; // skip ':' + + sec = value[i++] - '0'; + sec = 10 * sec + value[i++] - '0'; + + // No check for >= 0 as no '-' are converted here + if( 60 < sec ) throw FieldConvertError(value); + + if( haveMilliseconds ) + { + millis = (100 * (value[i+1] - '0') + + 10 * (value[i+2] - '0') + + (value[i+3] - '0')); + } + else + millis = 0; + + return UtcTimeStamp (hour, min, sec, millis, + mday, mon, year); + } +}; + +/// Converts a UtcTimeOnly to/from a string +struct UtcTimeOnlyConvertor +{ + static std::string convert( const UtcTimeOnly& value, + bool showMilliseconds = false) + throw( FieldConvertError ) + { + char result[ 9+4 ]; + int hour, minute, second, millis; + + value.getHMS( hour, minute, second, millis ); + + integer_to_string_padded ( result, 3, hour, 2 ); + result[2] = ':'; + integer_to_string_padded ( result + 3, 3, minute, 2 ); + result[5] = ':'; + integer_to_string_padded ( result + 6, 3, second, 2 ); + + if( showMilliseconds ) + { + result[8] = '.'; + if( integer_to_string_padded ( result + 9, 4, millis, 3 ) + != result + 9 ) + throw FieldConvertError(); + } + + return result; + } + + static UtcTimeOnly convert( const std::string& value ) + throw( FieldConvertError ) + { + bool haveMilliseconds = false; + + switch( value.size() ) + { + case 12: haveMilliseconds = true; + case 8: break; + default: throw FieldConvertError(value); + } + + int i = 0; + int c = 0; + for( c = 0; c < 2; ++c ) + if( !IS_DIGIT(value[i++]) ) throw FieldConvertError(value); + if( value[i++] != ':' ) throw FieldConvertError(value); + for( c = 0; c < 2; ++c ) + if( !IS_DIGIT(value[i++]) ) throw FieldConvertError(value); + if( value[i++] != ':' ) throw FieldConvertError(value); + for( c = 0; c < 2; ++c ) + if( !IS_DIGIT(value[i++]) ) throw FieldConvertError(value); + + if( haveMilliseconds ) + { + // ++i instead of i++ skips the '.' separator + for( c = 0; c < 3; ++c ) + if( !IS_DIGIT(value[++i]) ) throw FieldConvertError(value); + } + + int hour, min, sec, millis; + + i = 0; + + hour = value[i++] - '0'; + hour = 10 * hour + value[i++] - '0'; + // No check for >= 0 as no '-' are converted here + if( 23 < hour ) throw FieldConvertError(value); + ++i; // skip ':' + + min = value[i++] - '0'; + min = 10 * min + value[i++] - '0'; + // No check for >= 0 as no '-' are converted here + if( 59 < min ) throw FieldConvertError(value); + ++i; // skip ':' + + sec = value[i++] - '0'; + sec = 10 * sec + value[i++] - '0'; + // No check for >= 0 as no '-' are converted here + if( 60 < sec ) throw FieldConvertError(value); + + if( haveMilliseconds ) + { + millis = (100 * (value[i+1] - '0') + + 10 * (value[i+2] - '0') + + (value[i+3] - '0')); + } + else + millis = 0; + + return UtcTimeOnly( hour, min, sec, millis ); + } +}; + +/// Converts a UtcDate to/from a string +struct UtcDateConvertor +{ + static std::string convert( const UtcDate& value ) + throw( FieldConvertError ) + { + char result[ 9 ]; + int year, month, day; + + value.getYMD( year, month, day ); + + integer_to_string_padded( result, 5, year, 4 ); + integer_to_string_padded( result + 4, 3, month, 2 ); + integer_to_string_padded( result + 6, 3, day, 2 ); + return result; + } + + static UtcDate convert( const std::string& value ) + throw( FieldConvertError ) + { + if( value.size() != 8 ) throw FieldConvertError(value); + + int i = 0; + for( int c=0; c<8; ++c ) + if( !IS_DIGIT(value[i++]) ) throw FieldConvertError(value); + + int year, mon, mday; + + i = 0; + + year = value[i++] - '0'; + year = 10 * year + value[i++] - '0'; + year = 10 * year + value[i++] - '0'; + year = 10 * year + value[i++] - '0'; + + mon = value[i++] - '0'; + mon = 10 * mon + value[i++] - '0'; + if( mon < 1 || 12 < mon ) + throw FieldConvertError(value); + + mday = value[i++] - '0'; + mday = 10 * mday + value[i++] - '0'; + if( mday < 1 || 31 < mday ) + throw FieldConvertError(value); + + return UtcDateOnly( mday, mon, year ); + } +}; + +typedef UtcDateConvertor UtcDateOnlyConvertor; + +typedef StringConvertor STRING_CONVERTOR; +typedef CharConvertor CHAR_CONVERTOR; +typedef DoubleConvertor PRICE_CONVERTOR; +typedef IntConvertor INT_CONVERTOR; +typedef DoubleConvertor AMT_CONVERTOR; +typedef DoubleConvertor QTY_CONVERTOR; +typedef StringConvertor CURRENCY_CONVERTOR; +typedef StringConvertor MULTIPLEVALUESTRING_CONVERTOR; +typedef StringConvertor MULTIPLESTRINGVALUE_CONVERTOR; +typedef StringConvertor MULTIPLECHARVALUE_CONVERTOR; +typedef StringConvertor EXCHANGE_CONVERTOR; +typedef UtcTimeStampConvertor UTCTIMESTAMP_CONVERTOR; +typedef BoolConvertor BOOLEAN_CONVERTOR; +typedef StringConvertor LOCALMKTDATE_CONVERTOR; +typedef StringConvertor DATA_CONVERTOR; +typedef DoubleConvertor FLOAT_CONVERTOR; +typedef DoubleConvertor PRICEOFFSET_CONVERTOR; +typedef StringConvertor MONTHYEAR_CONVERTOR; +typedef StringConvertor DAYOFMONTH_CONVERTOR; +typedef UtcDateConvertor UTCDATE_CONVERTOR; +typedef UtcTimeOnlyConvertor UTCTIMEONLY_CONVERTOR; +typedef IntConvertor NUMINGROUP_CONVERTOR; +typedef DoubleConvertor PERCENTAGE_CONVERTOR; +typedef IntConvertor SEQNUM_CONVERTOR; +typedef IntConvertor LENGTH_CONVERTOR; +typedef StringConvertor COUNTRY_CONVERTOR; +typedef StringConvertor TZTIMEONLY_CONVERTOR; +typedef StringConvertor TZTIMESTAMP_CONVERTOR; +typedef StringConvertor XMLDATA_CONVERTOR; +typedef StringConvertor LANGUAGE_CONVERTOR; +typedef CheckSumConvertor CHECKSUM_CONVERTOR; +} + +#endif //FIX_FIELDCONVERTORS_H diff --git a/linux/include/quickfix/FieldMap.h b/linux/include/quickfix/FieldMap.h new file mode 100644 index 000000000..7b2965190 --- /dev/null +++ b/linux/include/quickfix/FieldMap.h @@ -0,0 +1,244 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_FIELDMAP +#define FIX_FIELDMAP + +#ifdef _MSC_VER +#pragma warning( disable: 4786 ) +#endif + +#include "Field.h" +#include "MessageSorters.h" +#include "Exceptions.h" +#include "Utility.h" +#include +#include +#include +#include + +namespace FIX +{ +/** + * Stores and organizes a collection of Fields. + * + * This is the basis for a message, header, and trailer. This collection + * class uses a sorter to keep the fields in a particular order. + */ +class FieldMap +{ +public: +#if defined(_MSC_VER) && _MSC_VER < 1300 + typedef std::multimap < int, FieldBase, message_order > Fields; + typedef std::map < int, std::vector < FieldMap* >, std::less > Groups; +#else + typedef std::multimap < int, FieldBase, message_order, + ALLOCATOR > > Fields; + typedef std::map < int, std::vector < FieldMap* >, std::less, + ALLOCATOR > > > Groups; +#endif + + typedef Fields::const_iterator iterator; + typedef iterator const_iterator; + typedef Groups::const_iterator g_iterator; + typedef Groups::const_iterator g_const_iterator; + + FieldMap( const message_order& order = + message_order( message_order::normal ) ) + : m_fields( order ) {} + + FieldMap( const int order[] ) + : m_fields( message_order(order) ) {} + + FieldMap( const FieldMap& copy ) + { *this = copy; } + + virtual ~FieldMap(); + + FieldMap& operator=( const FieldMap& rhs ); + + /// Set a field without type checking + void setField( const FieldBase& field, bool overwrite = true ) + throw( RepeatedTag ) + { + if(!overwrite) + m_fields.insert( Fields::value_type( field.getField(), field ) ); + else + { + Fields::iterator i = m_fields.find( field.getField() ); + if( i == m_fields.end() ) + m_fields.insert( Fields::value_type( field.getField(), field ) ); + else + i->second = field; + } + } + /// Set a field without a field class + void setField( int field, const std::string& value ) + throw( RepeatedTag, NoTagValue ) + { + FieldBase fieldBase( field, value ); + setField( fieldBase ); + } + + /// Get a field if set + bool getFieldIfSet( FieldBase& field ) const + { + Fields::const_iterator iter = m_fields.find( field.getField() ); + if ( iter == m_fields.end() ) + return false; + field = iter->second; + return true; + } + + /// Get a field without type checking + FieldBase& getField( FieldBase& field ) + const throw( FieldNotFound ) + { + field = getFieldRef( field.getField() ); + return field; + } + + /// Get a field without a field class + const std::string& getField( int field ) + const throw( FieldNotFound ) + { + return getFieldRef( field ).getString(); + } + + /// Get direct access to a field through a reference + const FieldBase& getFieldRef( int field ) + const throw( FieldNotFound ) + { + Fields::const_iterator iter = m_fields.find( field ); + if ( iter == m_fields.end() ) + throw FieldNotFound( field ); + return iter->second; + } + + /// Get direct access to a field through a pointer + const FieldBase* const getFieldPtr( int field ) + const throw( FieldNotFound ) + { + return &getFieldRef( field ); + } + + /// Check to see if a field is set + bool isSetField( const FieldBase& field ) const + { return isSetField( field.getField() ); } + /// Check to see if a field is set by referencing its number + bool isSetField( int field ) const + { return m_fields.find( field ) != m_fields.end(); } + + /// Remove a field. If field is not present, this is a no-op. + void removeField( int field ); + + /// Add a group. + void addGroup( int field, const FieldMap& group, bool setCount = true ); + + /// Acquire ownership of Group object + void addGroupPtr( int field, FieldMap * group, bool setCount = true ); + + /// Replace a specific instance of a group. + void replaceGroup( int num, int field, const FieldMap& group ); + + /// Get a specific instance of a group. + FieldMap& getGroup( int num, int field, FieldMap& group ) const + throw( FieldNotFound ) + { + return group = getGroupRef( num, field ); + } + + /// Get direct access to a field through a reference + FieldMap& getGroupRef( int num, int field ) const + throw( FieldNotFound ) + { + Groups::const_iterator i = m_groups.find( field ); + if( i == m_groups.end() ) throw FieldNotFound( field ); + if( num <= 0 ) throw FieldNotFound( field ); + if( i->second.size() < (unsigned)num ) throw FieldNotFound( field ); + return *( *(i->second.begin() + (num-1) ) ); + } + + /// Get direct access to a field through a pointer + FieldMap* getGroupPtr( int num, int field ) const + throw( FieldNotFound ) + { + return &getGroupRef( num, field ); + } + + /// Remove a specific instance of a group. + void removeGroup( int num, int field ); + /// Remove all instances of a group. + void removeGroup( int field ); + + /// Check to see any instance of a group exists + bool hasGroup( int field ) const; + /// Check to see if a specific instance of a group exists + bool hasGroup( int num, int field ) const; + /// Count the number of instance of a group + size_t groupCount( int field ) const; + + /// Clear all fields from the map + void clear(); + /// Check if map contains any fields + bool isEmpty(); + + size_t totalFields() const; + + std::string& calculateString( std::string& ) const; + + int calculateLength( int beginStringField = FIELD::BeginString, + int bodyLengthField = FIELD::BodyLength, + int checkSumField = FIELD::CheckSum ) const; + + int calculateTotal( int checkSumField = FIELD::CheckSum ) const; + + iterator begin() const { return m_fields.begin(); } + iterator end() const { return m_fields.end(); } + g_iterator g_begin() const { return m_groups.begin(); } + g_iterator g_end() const { return m_groups.end(); } + +private: + Fields m_fields; + Groups m_groups; +}; +/*! @} */ +} + +#define FIELD_SET( MAP, FIELD ) \ +bool isSet( const FIELD& field ) const \ +{ return (MAP).isSetField(field); } \ +void set( const FIELD& field ) \ +{ (MAP).setField(field); } \ +FIELD& get( FIELD& field ) const \ +{ return (FIELD&)(MAP).getField(field); } \ +bool getIfSet( FIELD& field ) const \ +{ return (MAP).getFieldIfSet(field); } + +#define FIELD_GET_PTR( MAP, FLD ) \ +(const FIX::FLD*)MAP.getFieldPtr( FIX::FIELD::FLD ) +#define FIELD_GET_REF( MAP, FLD ) \ +(const FIX::FLD&)MAP.getFieldRef( FIX::FIELD::FLD ) +#define FIELD_THROW_IF_NOT_FOUND( MAP, FLD ) \ +if( !(MAP).isSetField( FIX::FIELD::FLD) ) \ + throw FieldNotFound( FIX::FIELD::FLD ) +#endif //FIX_FIELDMAP + diff --git a/linux/include/quickfix/FieldNumbers.h b/linux/include/quickfix/FieldNumbers.h new file mode 100644 index 000000000..974d7c9d1 --- /dev/null +++ b/linux/include/quickfix/FieldNumbers.h @@ -0,0 +1,46 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_FIELDNUMBERS_BASE_H +#define FIX_FIELDNUMBERS_BASE_H + +#include +#include "FixFieldNumbers.h" + +namespace FIX +{ + namespace FIELD + { + const int FIX40_LastField = PrevClosePx; + const int FIX41_LastField = PegDifference; + const int FIX42_LastField = EncodedListStatusText; + const int FIX43_LastField = SideComplianceID; + const int FIX44_LastField = LegInterestAccrualDate; + const int FIX50_LastField = ExchangeSpecialInstructions; + const int NormalMin = 1; + const int NormalMax = 4999; + const int UserMin = 5000; + const int UserMax = 9999; + const int InternalMin = 10000; + } +} + +#endif //FIX_FIELDNUMBERS_BASE_H diff --git a/linux/include/quickfix/FieldTypes.h b/linux/include/quickfix/FieldTypes.h new file mode 100644 index 000000000..82cb7fb24 --- /dev/null +++ b/linux/include/quickfix/FieldTypes.h @@ -0,0 +1,698 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_FIELDTYPES_H +#define FIX_FIELDTYPES_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "Utility.h" +#include +#include + +namespace FIX +{ +/*! \addtogroup user + * @{ + */ + +/// Date and Time stored as a Julian day number and number of +/// milliseconds since midnight. Does not perform any timezone +/// calculations. All magic numbers and related calculations +/// have been taken from: +/// +/// \sa http://www.faqs.org/faqs/calendars.faq +/// \sa http://scienceworld.wolfram.com/astronomy/JulianDate.html +/// \sa http://scienceworld.wolfram.com/astronomy/GregorianCalendar.html +/// \sa http://scienceworld.wolfram.com/astronomy/Weekday.html +/// +/// \author Caleb Epstein +struct DateTime +{ + int m_date; + int m_time; + + /// Magic numbers + enum + { + SECONDS_PER_DAY = 86400, + SECONDS_PER_HOUR = 3600, + SECONDS_PER_MIN = 60, + MINUTES_PER_HOUR = 60, + + MILLIS_PER_DAY = 86400000, + MILLIS_PER_HOUR = 3600000, + MILLIS_PER_MIN = 60000, + MILLIS_PER_SEC = 1000, + + // time_t epoch (1970-01-01) as a Julian date + JULIAN_19700101 = 2440588 + }; + + /// Default constructor - initializes to zero + DateTime () : m_date (0), m_time (0) {} + + /// Construct from a Julian day number and time in millis + DateTime (int date, int time) : m_date (date), m_time (time) {} + + /// Construct from the specified components + DateTime( int year, int month, int day, + int hour, int minute, int second, int millis ) + { + m_date = julianDate( year, month, day ); + m_time = makeHMS( hour, minute, second, millis ); + } + + virtual ~DateTime() {} + + /// Return the year portion of the date + inline int getYear() const + { + int y, m, d; + getYMD( y, m, d ); + return y; + } + + /// Return the month (1-12) portion of the date + inline int getMonth() const + { + int y, m, d; + getYMD( y, m, d ); + return m; + } + + /// Return the day of the month portion of the date + inline int getDay() const + { + int y, m, d; + getYMD( y, m, d ); + return d; + } + + /// Another name for the day of the month. Bad name, but used + /// because of the legacy UtcTimeStamp interface + inline int getDate() const { return getDay(); } + + /// Return the internal julian date + inline int getJulianDate() const { return m_date; } + + /// Return the hour portion of the time (0-23) + inline int getHour() const + { + return m_time / MILLIS_PER_HOUR; + } + + /// Return the minute portion of the time (0-59) + inline int getMinute() const + { + return (m_time / MILLIS_PER_MIN) % MINUTES_PER_HOUR; + } + + /// Return the second portion of the time (0-59) + inline int getSecond() const + { + return (m_time / MILLIS_PER_SEC) % SECONDS_PER_MIN; + } + + /// Return the millisecond portion of the time + inline int getMillisecond() const + { + return m_time % MILLIS_PER_SEC; + } + + /// Load the referenced values with the year, month and day + /// portions of the date in a single operation + inline void getYMD (int& year, int& month, int& day) const + { + getYMD( m_date, year, month, day ); + } + + /// Load the referenced values with the hour, minute, second and + /// millisecond portions of the time in a single operation + inline void getHMS( int& hour, int& minute, int& second, int& millis ) const + { + int ticks = m_time / MILLIS_PER_SEC; + hour = ticks / SECONDS_PER_HOUR; + minute = (ticks / SECONDS_PER_MIN) % MINUTES_PER_HOUR; + second = ticks % SECONDS_PER_MIN; + millis = m_time % MILLIS_PER_SEC; + } + + /// Calculate the weekday of the date (Sunday is 1, Saturday is 7) + inline int getWeekDay() const + { + int Y, M, D; + getYMD (Y, M, D); + int m = M >= 3 ? M - 2 : M + 10; + int Yprime = M >= 3 ? Y : Y - 1; + int y = Yprime % 100; + int c = Yprime / 100; + int wd = (D + int (2.6 * m - 0.2) + y + int (y / 4) + int (c / 4) - + (2 * c)) % 7; + return 1 + (wd < 0 ? 7 + wd : wd); + } + + /// Convert the DateTime to a time_t. Note that this operation + /// can overflow on 32-bit platforms when we go beyond year 2038. + inline time_t getTimeT() const + { + return (SECONDS_PER_DAY * (m_date - JULIAN_19700101) + + m_time / MILLIS_PER_SEC); + } + + /// Convert the DateTime to a struct tm which is in UTC + tm getTmUtc() const + { + int year, month, day; + int hour, minute, second, millis; + tm result = { 0 }; + + getYMD( year, month, day ); + getHMS( hour, minute, second, millis ); + + result.tm_year = year - 1900; + result.tm_mon = month - 1; + result.tm_mday = day; + result.tm_hour = hour; + result.tm_min = minute; + result.tm_sec = second; + result.tm_isdst = -1; + + return result; + } + + /// Set the date portion of the DateTime + void setYMD( int year, int month, int day ) + { + m_date = julianDate( year, month, day ); + } + + /// Set the time portion of the DateTime + void setHMS( int hour, int minute, int second, int millis ) + { + m_time = makeHMS( hour, minute, second, millis ); + } + + /// Set the hour portion of the time + void setHour( int hour ) + { + int old_hour, min, sec, millis; + getHMS( old_hour, min, sec, millis ); + setHMS( hour, min, sec, millis ); + } + + /// Set the minute portion of the time + void setMinute( int min ) + { + int hour, old_min, sec, millis; + getHMS( hour, old_min, sec, millis ); + setHMS( hour, min, sec, millis ); + } + + /// Set the seconds portion of the time + void setSecond( int sec ) + { + int hour, min, old_sec, millis; + getHMS( hour, min, old_sec, millis ); + setHMS( hour, min, sec, millis ); + } + + /// Set the millisecond portion of the time + void setMillisecond( int millis ) + { + int hour, min, sec, old_millis; + getHMS( hour, min, sec, old_millis ); + setHMS( hour, min, sec, millis ); + } + + /// Clear the date portion of the DateTime + void clearDate() + { + m_date = 0; + } + + /// Clear the time portion of the DateTime + void clearTime() + { + m_time = 0; + } + + /// Set the internal date and time members + void set( int date, int time ) { m_date = date; m_time = time; } + + /// Initialize from another DateTime + void set( const DateTime& other ) + { + m_date = other.m_date; + m_time = other.m_time; + } + + /// Add a number of seconds to this + void operator+=( int seconds ) + { + int d = seconds / SECONDS_PER_DAY; + int s = seconds % SECONDS_PER_DAY; + + m_date += d; + m_time += s * MILLIS_PER_SEC; + + if( m_time > MILLIS_PER_DAY ) + { + m_date++; + m_time %= MILLIS_PER_DAY; + } + else if( m_time < 0 ) + { + m_date--; + m_time += MILLIS_PER_DAY; + } + } + + /// Helper method to convert a broken down time to a number of + /// milliseconds since midnight + static int makeHMS( int hour, int minute, int second, int millis ) + { + return MILLIS_PER_SEC * (SECONDS_PER_HOUR * hour + + SECONDS_PER_MIN * minute + + second) + millis; + } + + /// Return the current wall-clock time as a utc DateTime + static DateTime nowUtc(); + + /// Return the current wall-clock time as a local DateTime + static DateTime nowLocal(); + + /// Convert a time_t and optional milliseconds to a DateTime + static DateTime fromUtcTimeT( time_t t, int millis = 0 ) + { + struct tm tm = time_gmtime( &t ); + return fromTm( tm, millis ); + } + + static DateTime fromLocalTimeT( time_t t, int millis = 0 ) + { + struct tm tm = time_localtime( &t ); + return fromTm( tm, millis ); + } + + /// Convert a tm and optional milliseconds to a DateTime. \note + /// the tm structure is assumed to contain a date specified in UTC + static DateTime fromTm( const tm& tm, int millis = 0 ) + { + return DateTime ( julianDate(tm.tm_year + 1900, tm.tm_mon + 1, + tm.tm_mday), + makeHMS(tm.tm_hour, tm.tm_min, tm.tm_sec, millis) ); + } + + /// Helper method to calculate a Julian day number. + static int julianDate( int year, int month, int day ) + { + int a = (14 - month) / 12; + int y = year + 4800 - a; + int m = month + 12 * a - 3; + return (day + int ((153 * m + 2) / 5) + y * 365 + + int (y / 4) - int (y / 100) + int (y / 400) - 32045); + } + + /// Convert a Julian day number to a year, month and day + static void getYMD( int jday, int& year, int& month, int& day ) + { + int a = jday + 32044; + int b = (4 * a + 3) / 146097; + int c = a - int ((b * 146097) / 4); + int d = (4 * c + 3) / 1461; + int e = c - int ((1461 * d) / 4); + int m = (5 * e + 2) / 153; + day = e - int ((153 * m + 2) / 5) + 1; + month = m + 3 - 12 * int (m / 10); + year = b * 100 + d - 4800 + int (m / 10); + } +}; + +inline bool operator==( const DateTime& lhs, const DateTime& rhs ) +{ + return lhs.m_date == rhs.m_date && lhs.m_time == rhs.m_time; +} + +inline bool operator!=( const DateTime& lhs, const DateTime& rhs ) +{ + return !(lhs == rhs); +} + +inline bool operator<( const DateTime& lhs, const DateTime& rhs ) +{ + if( lhs.m_date < rhs.m_date ) + return true; + else if( lhs.m_date > rhs.m_date ) + return false; + else if( lhs.m_time < rhs.m_time ) + return true; + return false; +} + +inline bool operator>( const DateTime& lhs, const DateTime& rhs ) +{ + return !(lhs == rhs || lhs < rhs); +} + +inline bool operator<=( const DateTime& lhs, const DateTime& rhs ) +{ + return lhs == rhs || lhs < rhs; +} + +inline bool operator>=( const DateTime& lhs, const DateTime& rhs ) +{ + return lhs == rhs || lhs > rhs; +} + +/// Calculate the difference between two DateTime values and return +/// the result as a number of seconds +inline int operator-( const DateTime& lhs, const DateTime& rhs ) +{ + return (DateTime::SECONDS_PER_DAY * (lhs.m_date - rhs.m_date) + + // Truncate the millis before subtracting + lhs.m_time / 1000 - rhs.m_time / 1000); +} + +/// Date and Time represented in UTC. +class UtcTimeStamp : public DateTime +{ +public: + /// Defaults to the current date and time + UtcTimeStamp() + : DateTime( DateTime::nowUtc() ) {} + + /// Defaults to the current date + UtcTimeStamp( int hour, int minute, int second, int millisecond = 0 ) + : DateTime( DateTime::nowUtc() ) + { + setHMS( hour, minute, second, millisecond ); + } + + UtcTimeStamp( int hour, int minute, int second, + int date, int month, int year ) + : DateTime( year, month, date, hour, minute, second, 0 ) {} + + UtcTimeStamp( int hour, int minute, int second, int millisecond, + int date, int month, int year ) + : DateTime( year, month, date, hour, minute, second, millisecond ) {} + + explicit UtcTimeStamp( time_t time, int millisecond = 0 ) + : DateTime( fromUtcTimeT (time, millisecond) ) {} + + UtcTimeStamp( const tm* time, int millisecond = 0 ) + : DateTime( fromTm (*time, millisecond) ) {} + + void setCurrent() + { + set( DateTime::nowUtc() ); + } +}; + +/// Date and Time represented in local time. +class LocalTimeStamp : public DateTime +{ +public: + /// Defaults to the current date and time + LocalTimeStamp() + : DateTime( DateTime::nowLocal() ) {} + + /// Defaults to the current date + LocalTimeStamp( int hour, int minute, int second, int millisecond = 0 ) + : DateTime( DateTime::nowLocal() ) + { + setHMS( hour, minute, second, millisecond ); + } + + LocalTimeStamp( int hour, int minute, int second, + int date, int month, int year ) + : DateTime( year, month, date, hour, minute, second, 0 ) {} + + LocalTimeStamp( int hour, int minute, int second, int millisecond, + int date, int month, int year ) + : DateTime( year, month, date, hour, minute, second, millisecond ) {} + + explicit LocalTimeStamp( time_t time, int millisecond = 0 ) + : DateTime( fromLocalTimeT (time, millisecond) ) {} + + LocalTimeStamp( const tm* time, int millisecond = 0 ) + : DateTime( fromTm (*time, millisecond) ) {} + + void setCurrent() + { + set( DateTime::nowLocal() ); + } +}; + +/// Time only represented in UTC. +class UtcTimeOnly : public DateTime +{ +public: + /// Defaults to the current time + UtcTimeOnly() + { + setCurrent(); + } + + UtcTimeOnly( const DateTime& val ) + : DateTime(val) + { + clearDate(); + } + + UtcTimeOnly( int hour, int minute, int second, int millisecond = 0 ) + { + setHMS( hour, minute, second, millisecond ); + } + + explicit UtcTimeOnly( time_t time, int millisecond = 0 ) + : DateTime( fromUtcTimeT (time, millisecond) ) + { + clearDate(); + } + + UtcTimeOnly( const tm* time, int millisecond = 0 ) + : DateTime( fromTm (*time, millisecond) ) + { + clearDate(); + } + + /// Set to the current time. + void setCurrent() + { + DateTime d = nowUtc(); + m_time = d.m_time; + } +}; + +/// Time only represented in local time. +class LocalTimeOnly : public DateTime +{ +public: + /// Defaults to the current time + LocalTimeOnly() + { + setCurrent(); + } + + LocalTimeOnly( const DateTime& val ) + : DateTime(val) + { + clearDate(); + } + + LocalTimeOnly( int hour, int minute, int second, int millisecond = 0 ) + { + setHMS( hour, minute, second, millisecond ); + } + + explicit LocalTimeOnly( time_t time, int millisecond = 0 ) + : DateTime( fromLocalTimeT (time, millisecond) ) + { + clearDate(); + } + + LocalTimeOnly( const tm* time, int millisecond = 0 ) + : DateTime( fromTm (*time, millisecond) ) + { + clearDate(); + } + + /// Set to the current time. + void setCurrent() + { + DateTime d = nowLocal(); + m_time = d.m_time; + } +}; + +/// Date only represented in UTC. +class UtcDate : public DateTime +{ +public: + /// Defaults to the current date + UtcDate() + { + setCurrent(); + } + + UtcDate( const DateTime& val ) + : DateTime( val ) + { + clearTime(); + } + + UtcDate( int date, int month, int year ) + : DateTime(year, month, date, 0, 0, 0, 0) {} + + UtcDate( int sec ) + : DateTime( sec / DateTime::SECONDS_PER_DAY, 0 ) {} + + UtcDate( const tm* time ) + : DateTime( fromTm (*time) ) + { + clearTime(); + } + + /// Set to the current time. + void setCurrent() + { + DateTime d = nowUtc(); + m_date = d.m_date; + } +}; + +/// Date only represented in local time. +class LocalDate : public DateTime +{ +public: + /// Defaults to the current date + LocalDate() + { + setCurrent(); + } + + LocalDate( const DateTime& val ) + : DateTime( val ) + { + clearTime(); + } + + LocalDate( int date, int month, int year ) + : DateTime(year, month, date, 0, 0, 0, 0) {} + + LocalDate( int sec ) + : DateTime( sec / DateTime::SECONDS_PER_DAY, 0 ) {} + + LocalDate( const tm* time ) + : DateTime( fromTm (*time) ) + { + clearTime(); + } + + /// Set to the current time. + void setCurrent() + { + DateTime d = nowLocal(); + m_date = d.m_date; + } +}; + +/*! @} */ + +typedef UtcDate UtcDateOnly; + +typedef std::string STRING; +typedef char CHAR; +typedef double PRICE; +typedef int INT; +typedef double AMT; +typedef double QTY; +typedef std::string CURRENCY; +typedef std::string MULTIPLEVALUESTRING; +typedef std::string MULTIPLESTRINGVALUE; +typedef std::string MULTIPLECHARVALUE; +typedef std::string EXCHANGE; +typedef UtcTimeStamp UTCTIMESTAMP; +typedef bool BOOLEAN; +typedef std::string LOCALMKTDATE; +typedef std::string DATA; +typedef double FLOAT; +typedef double PRICEOFFSET; +typedef std::string MONTHYEAR; +typedef std::string DAYOFMONTH; +typedef UtcDate UTCDATE; +typedef UtcDateOnly UTCDATEONLY; +typedef UtcTimeOnly UTCTIMEONLY; +typedef int NUMINGROUP; +typedef double PERCENTAGE; +typedef int SEQNUM; +typedef int LENGTH; +typedef std::string COUNTRY; +typedef std::string TZTIMEONLY; +typedef std::string TZTIMESTAMP; +typedef std::string XMLDATA; +typedef std::string LANGUAGE; + +namespace TYPE +{ +enum Type +{ + Unknown, + String, + Char, + Price, + Int, + Amt, + Qty, + Currency, + MultipleValueString, + MultipleStringValue, + MultipleCharValue, + Exchange, + UtcTimeStamp, + Boolean, + LocalMktDate, + Data, + Float, + PriceOffset, + MonthYear, + DayOfMonth, + UtcDate, + UtcDateOnly = UtcDate, + UtcTimeOnly, + NumInGroup, + Percentage, + SeqNum, + Length, + Country, + TzTimeOnly, + TzTimeStamp, + XmlData, + Language +}; +} +} + +#endif //FIX_FIELDTYPES_H diff --git a/linux/include/quickfix/Fields.h b/linux/include/quickfix/Fields.h new file mode 100644 index 000000000..304d90299 --- /dev/null +++ b/linux/include/quickfix/Fields.h @@ -0,0 +1,31 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_FIELDS_BASE_H +#define FIX_FIELDS_BASE_H + +#include "FixFields.h" +#include "Field.h" + +#undef Yield + +#endif //FIX_FIELDS_BASE_H + diff --git a/linux/include/quickfix/FileLog.h b/linux/include/quickfix/FileLog.h new file mode 100644 index 000000000..6992eac8c --- /dev/null +++ b/linux/include/quickfix/FileLog.h @@ -0,0 +1,112 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_FILELOG_H +#define FIX_FILELOG_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "Log.h" +#include "SessionSettings.h" +#include + +namespace FIX +{ +/** + * Creates a file based implementation of Log + * + * This stores all log events into flat files + */ +class FileLogFactory : public LogFactory +{ +public: + FileLogFactory( const SessionSettings& settings ) +: m_settings( settings ), m_globalLog(0), m_globalLogCount(0) {}; + FileLogFactory( const std::string& path ) +: m_path( path ), m_backupPath( path ), m_globalLog(0), m_globalLogCount(0) {}; + FileLogFactory( const std::string& path, const std::string& backupPath ) +: m_path( path ), m_backupPath( backupPath ), m_globalLog(0), m_globalLogCount(0) {}; + +public: + Log* create(); + Log* create( const SessionID& ); + void destroy( Log* log ); + +private: + std::string m_path; + std::string m_backupPath; + SessionSettings m_settings; + Log* m_globalLog; + int m_globalLogCount; +}; + +/** + * File based implementation of Log + * + * Two files are created by this implementation. One for messages, + * and one for events. + * + */ +class FileLog : public Log +{ +public: + FileLog( const std::string& path ); + FileLog( const std::string& path, const std::string& backupPath ); + FileLog( const std::string& path, const SessionID& sessionID ); + FileLog( const std::string& path, const std::string& backupPath, const SessionID& sessionID ); + virtual ~FileLog(); + + void clear(); + void backup(); + + void onIncoming( const std::string& value ) + { m_messages << UtcTimeStampConvertor::convert(UtcTimeStamp(), m_millisecondsInTimeStamp) << " : " << value << std::endl; } + void onOutgoing( const std::string& value ) + { m_messages << UtcTimeStampConvertor::convert(UtcTimeStamp(), m_millisecondsInTimeStamp) << " : " << value << std::endl; } + void onEvent( const std::string& value ) + { + UtcTimeStamp now; + m_event << UtcTimeStampConvertor::convert( now, m_millisecondsInTimeStamp ) + << " : " << value << std::endl; + } + + bool getMillisecondsInTimeStamp() const + { return m_millisecondsInTimeStamp; } + void setMillisecondsInTimeStamp ( bool value ) + { m_millisecondsInTimeStamp = value; } + +private: + std::string generatePrefix( const SessionID& sessionID ); + void init( std::string path, std::string backupPath, const std::string& prefix ); + + std::ofstream m_messages; + std::ofstream m_event; + std::string m_messagesFileName; + std::string m_eventFileName; + std::string m_fullPrefix; + std::string m_fullBackupPrefix; + bool m_millisecondsInTimeStamp; +}; +} + +#endif //FIX_LOG_H diff --git a/linux/include/quickfix/FileStore.h b/linux/include/quickfix/FileStore.h new file mode 100644 index 000000000..e2f1f01b2 --- /dev/null +++ b/linux/include/quickfix/FileStore.h @@ -0,0 +1,129 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_FILESTORE_H +#define FIX_FILESTORE_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "MessageStore.h" +#include "SessionSettings.h" +#include +#include + +namespace FIX +{ +class Session; + +/// Creates a file based implementation of MessageStore. +class FileStoreFactory : public MessageStoreFactory +{ +public: + FileStoreFactory( const SessionSettings& settings ) +: m_settings( settings ) {}; + FileStoreFactory( const std::string& path ) +: m_path( path ) {}; + + MessageStore* create( const SessionID& ); + void destroy( MessageStore* ); +private: + std::string m_path; + SessionSettings m_settings; +}; +/*! @} */ + +/** + * File based implementation of MessageStore. + * + * Four files are created by this implementation. One for storing outgoing + * messages, one for indexing message locations, one for storing sequence numbers, + * and one for storing the session creation time. + * + * The formats of the files are:
+ *    + * [path]+[BeginString]-[SenderCompID]-[TargetCompID].body
+ *    + * [path]+[BeginString]-[SenderCompID]-[TargetCompID].header
+ *    + * [path]+[BeginString]-[SenderCompID]-[TargetCompID].seqnums
+ *    + * [path]+[BeginString]-[SenderCompID]-[TargetCompID].session
+ * + * + * The messages file is a pure stream of %FIX messages.

+ * The sequence number file is in the format of
+ *    + * [SenderMsgSeqNum] : [TargetMsgSeqNum]

+ * The session file is a UTC timestamp in the format of
+ *    + * YYYYMMDD-HH:MM:SS + */ +class FileStore : public MessageStore +{ +public: + FileStore( std::string, const SessionID& s ); + virtual ~FileStore(); + + bool set( int, const std::string& ) throw ( IOException ); + void get( int, int, std::vector < std::string > & ) const throw ( IOException ); + + int getNextSenderMsgSeqNum() const throw ( IOException ); + int getNextTargetMsgSeqNum() const throw ( IOException ); + void setNextSenderMsgSeqNum( int value ) throw ( IOException ); + void setNextTargetMsgSeqNum( int value ) throw ( IOException ); + void incrNextSenderMsgSeqNum() throw ( IOException ); + void incrNextTargetMsgSeqNum() throw ( IOException ); + + UtcTimeStamp getCreationTime() const throw ( IOException ); + + void reset() throw ( IOException ); + void refresh() throw ( IOException ); + +private: + typedef std::pair < int, int > OffsetSize; + typedef std::map < int, OffsetSize > NumToOffset; + + void open( bool deleteFile ); + void populateCache(); + bool readFromFile( int offset, int size, std::string& msg ); + void setSeqNum(); + void setSession(); + + bool get( int, std::string& ) const throw ( IOException ); + + MemoryStore m_cache; + NumToOffset m_offsets; + + std::string m_msgFileName; + std::string m_headerFileName; + std::string m_seqNumsFileName; + std::string m_sessionFileName; + + FILE* m_msgFile; + FILE* m_headerFile; + FILE* m_seqNumsFile; + FILE* m_sessionFile; +}; +} + +#endif //FIX_FILESTORE_H diff --git a/linux/include/quickfix/FixFieldNumbers.h b/linux/include/quickfix/FixFieldNumbers.h new file mode 100644 index 000000000..230a19e23 --- /dev/null +++ b/linux/include/quickfix/FixFieldNumbers.h @@ -0,0 +1,1537 @@ +#ifndef FIX_FIELD_NUMBERS_H +#define FIX_FIELD_NUMBERS_H + +namespace FIX +{ + namespace FIELD + { + const int MaxPriceLevels = 1090; + const int DerivativeEncodedIssuer = 1278; + const int NoCompIDs = 936; + const int SettlInstRefID = 214; + const int NestedPartyID = 524; + const int DetachmentPoint = 1458; + const int LateIndicator = 978; + const int SecurityListID = 1465; + const int DerivativeFlowScheduleType = 1442; + const int FlexibleIndicator = 1244; + const int NoExecInstRules = 1232; + const int SideTrdRegTimestamp = 1012; + const int DeliveryForm = 668; + const int ExecRestatementReason = 378; + const int MidYield = 633; + const int ContractMultiplier = 231; + const int CcyAmt = 1157; + const int LegOrderQty = 685; + const int AllocIntermedReqType = 808; + const int UnderlyingIssuer = 306; + const int NoNested2PartyIDs = 756; + const int MinTradeVol = 562; + const int SettlCurrAmt = 119; + const int DerivativeInstrumentPartyRole = 1295; + const int YieldRedemptionPriceType = 698; + const int NewsRefID = 1476; + const int SecurityListTypeSource = 1471; + const int ApplReqID = 1346; + const int DerivativeFuturesValuationMethod = 1319; + const int NoLegSecurityAltID = 604; + const int DerivativeSecurityType = 1249; + const int CollInquiryQualifier = 896; + const int RawData = 96; + const int CashSettlAgentContactPhone = 187; + const int CreditRating = 255; + const int ContingencyType = 1385; + const int StrikeCurrency = 947; + const int TradeVolume = 1020; + const int SideTrdRegTimestampSrc = 1014; + const int DeliveryDate = 743; + const int EmailType = 94; + const int EncodedListExecInst = 353; + const int ContraTradeTime = 438; + const int MaturityMonthYearIncrement = 1229; + const int RootPartyIDSource = 1118; + const int UnderlyingCouponPaymentDate = 241; + const int BidYield = 632; + const int IOIQltyInd = 25; + const int Issuer = 106; + const int CardNumber = 489; + const int NoLegStipulations = 683; + const int LegSecurityExchange = 616; + const int CashOrderQty = 152; + const int AccruedInterestAmt = 159; + const int MDEntrySeller = 289; + const int LegPrice = 566; + const int DeliverToCompID = 128; + const int TargetLocationID = 143; + const int OfferForwardPoints2 = 643; + const int RatioQty = 319; + const int MultiLegRptTypeReq = 563; + const int AllocAccount = 79; + const int TotalVolumeTraded = 387; + const int LinesOfText = 33; + const int AccountType = 581; + const int MDEntryPositionNo = 290; + const int HaltReasonInt = 327; + const int FutSettDate = 64; + const int SecurityDesc = 107; + const int MinQty = 110; + const int SettlCurrency = 120; + const int PegOffsetValue = 211; + const int DerivativeSecurityAltIDSource = 1220; + const int NoSettlPartySubIDs = 801; + const int AllocReportID = 755; + const int LegCFICode = 608; + const int LegFutSettDate = 588; + const int LegBenchmarkCurveName = 677; + const int ClearingFeeIndicator = 635; + const int BrokerOfCredit = 92; + const int SecurityListRefID = 1466; + const int UnderlyingLegMaturityTime = 1405; + const int NestedPartySubIDType = 805; + const int BidType = 394; + const int MDEntryRefID = 280; + const int UnderlyingUnitOfMeasureQty = 1423; + const int UnderlyingLegMaturityDate = 1345; + const int StartTickPriceRange = 1206; + const int LegContractSettlMonth = 955; + const int UnderlyingSecurityDesc = 307; + const int CashDistribPayRef = 501; + const int QuotePriceType = 692; + const int EncodedAllocText = 361; + const int UnderlyingMaturityMonthYear = 313; + const int UnderlyingOriginalNotionalPercentageOutstanding = 1456; + const int MultilegPriceMethod = 1378; + const int TotNoFills = 1361; + const int DerivativeSettleOnOpenFlag = 1254; + const int UnderlyingRepurchaseTerm = 244; + const int DerivativeCountryOfIssue = 1258; + const int ListMethod = 1198; + const int UnderlyingCPProgram = 877; + const int PriceDelta = 811; + const int RefSeqNum = 45; + const int AutoAcceptIndicator = 754; + const int MDImplicitDelete = 547; + const int NoStipulations = 232; + const int ClearingBusinessDate = 715; + const int LocationID = 283; + const int Currency = 15; + const int RoutingType = 216; + const int UnderlyingStrikePrice = 316; + const int BidTradeType = 418; + const int UnderlyingAttachmentPoint = 1459; + const int TotNoRejQuotes = 1170; + const int OrdStatusReqID = 790; + const int SenderCompID = 49; + const int OrdRejReason = 103; + const int MaturityMonthYearIncrementUnits = 1302; + const int DisplayWhen = 1083; + const int ApplQueueAction = 815; + const int RegistTransType = 514; + const int PaymentRemitterID = 505; + const int PriceType = 423; + const int MarketReqID = 1393; + const int NoNestedInstrAttrib = 1312; + const int SecuritySubType = 762; + const int ClOrdID = 11; + const int MaturityDay = 205; + const int UnderlyingSeniority = 1454; + const int MarketSegmentDesc = 1396; + const int NoMarketSegments = 1310; + const int SettlObligMode = 1159; + const int SecurityUpdateAction = 980; + const int NetworkRequestType = 935; + const int LiquidityPctLow = 402; + const int PartyRole = 452; + const int LegRatioQty = 623; + const int SettlCurrFxRate = 155; + const int LegContractMultiplierUnit = 1436; + const int SecureData = 91; + const int SenderLocationID = 142; + const int FirstPx = 1025; + const int EncodedLegIssuer = 619; + const int AssignmentMethod = 744; + const int RoutingID = 217; + const int StrategyParameterType = 959; + const int EncryptMethod = 98; + const int UnderlyingStateOrProvinceOfIssue = 593; + const int ApplNewSeqNum = 1399; + const int DerivativeEncodedSecurityDescLen = 1280; + const int TradingCurrency = 1245; + const int SecondaryHighLimitPrice = 1230; + const int OrderAvgPx = 799; + const int PosAmtType = 707; + const int ResetSeqNumFlag = 141; + const int NoHops = 627; + const int CollInquiryResult = 946; + const int StartDate = 916; + const int CollAsgnRespType = 905; + const int OrderBookingQty = 800; + const int NoQuoteQualifiers = 735; + const int UnsolicitedIndicator = 325; + const int RefCstmApplVerID = 1131; + const int SideExecID = 1427; + const int RejectText = 1328; + const int ExchangeSpecialInstructions = 1139; + const int TradeID = 1003; + const int RndPx = 991; + const int QuoteEntryRejectReason = 368; + const int OrderCapacity = 528; + const int SideLastQty = 1009; + const int DerivativeUnitOfMeasure = 1269; + const int NoLegAllocs = 670; + const int QuoteAckStatus = 297; + const int SecondaryFirmTradeID = 1042; + const int UserRequestType = 924; + const int SecondaryTrdType = 855; + const int TradeReportTransType = 487; + const int AdvSide = 4; + const int DerivativeSecuritySubType = 1250; + const int TriggerTradingSessionSubID = 1114; + const int TradeLinkID = 820; + const int LegBenchmarkPrice = 679; + const int HopRefID = 630; + const int Designation = 494; + const int TradeRequestID = 568; + const int LegFlowScheduleType = 1440; + const int LegPriceUnitOfMeasure = 1421; + const int Nested4PartyIDSource = 1416; + const int CoveredOrUncovered = 203; + const int AcctIDSource = 660; + const int MktOfferPx = 646; + const int NoCapacities = 862; + const int TradeRequestType = 569; + const int NoNestedPartyIDs = 539; + const int TradSesStatus = 340; + const int UnderlyingNotionalPercentageOutstanding = 1455; + const int ApplLastSeqNum = 1350; + const int PegPriceType = 1094; + const int StrategyParameterName = 958; + const int StreamAsgnRejReason = 1502; + const int MatchIncrement = 1089; + const int Nested3PartyRole = 951; + const int UnderlyingPx = 810; + const int PriceImprovement = 639; + const int ValuationMethod = 1197; + const int DerivativeSecurityID = 1216; + const int NoExpiration = 981; + const int TargetCompID = 56; + const int MDEntryBuyer = 288; + const int NoDerivativeInstrumentPartySubIDs = 1296; + const int NoMaturityRules = 1236; + const int QuoteMsgID = 1166; + const int TriggerType = 1100; + const int PriceProtectionScope = 1092; + const int TotNumAssignmentReports = 832; + const int ContraLegRefID = 655; + const int TradeReportRejectReason = 751; + const int TradeReportRefID = 572; + const int SecurityListType = 1470; + const int DerivativeSecurityIDSource = 1217; + const int AssignmentUnit = 745; + const int TradeReportID = 571; + const int NoRpts = 82; + const int LegBenchmarkPriceType = 680; + const int EncodedSubjectLen = 356; + const int SecurityXML = 1185; + const int LegReportID = 990; + const int Nested3PartySubIDType = 954; + const int BenchmarkSecurityIDSource = 761; + const int QuoteRejectReason = 300; + const int HeartBtInt = 108; + const int BidForwardPoints = 189; + const int PossResend = 97; + const int Symbol = 55; + const int EncodedUnderlyingSecurityDesc = 365; + const int MarketReportID = 1394; + const int DiscretionPrice = 845; + const int ContAmtValue = 520; + const int QuantityType = 465; + const int ComplexEventPriceBoundaryMethod = 1487; + const int ImpliedMarketIndicator = 1144; + const int AllocClearingFeeIndicator = 1136; + const int QuoteRequestType = 303; + const int SecurityRequestResult = 560; + const int OrderRestrictions = 529; + const int NoSideTrdRegTS = 1016; + const int Text = 58; + const int EncodedTextLen = 354; + const int ListExecInstType = 433; + const int SecondaryOrderID = 198; + const int ExecBroker = 76; + const int SecurityXMLLen = 1184; + const int ApplSeqNum = 1181; + const int MaxTradeVol = 1140; + const int OfferSwapPoints = 1066; + const int SettlPartySubIDType = 786; + const int DistribPaymentMethod = 477; + const int TotalAffectedOrders = 533; + const int StrikeIncrement = 1204; + const int OrderHandlingInstSource = 1032; + const int CopyMsgIndicator = 797; + const int NoDlvyInst = 85; + const int QuoteEntryID = 299; + const int AffirmStatus = 940; + const int MailingInst = 482; + const int OfferSize = 135; + const int LegSecurityType = 609; + const int OrigCustOrderCapacity = 1432; + const int AllocMethod = 1002; + const int QuantityDate = 976; + const int TargetStrategyPerformance = 850; + const int CardExpDate = 490; + const int ConfirmID = 664; + const int StandInstDbName = 170; + const int DayOrderQty = 424; + const int HighLimitPrice = 1149; + const int FirmTradeID = 1041; + const int SecondaryIndividualAllocID = 989; + const int AgreementDesc = 913; + const int MassCancelResponse = 531; + const int LegSettlCurrency = 675; + const int Commission = 12; + const int StreamAsgnReqType = 1498; + const int BidSwapPoints = 1065; + const int NoSettlPartyIDs = 781; + const int SymbolSfx = 65; + const int BusinessRejectRefID = 379; + const int Price2 = 640; + const int FillLiquidityInd = 1443; + const int MassActionReportID = 1369; + const int DerivativeIssuer = 1275; + const int ExDestinationIDSource = 1133; + const int CollRespID = 904; + const int SecurityListRequestType = 559; + const int EncodedLegSecurityDesc = 622; + const int UnderlyingSettlementStatus = 988; + const int SecurityAltID = 455; + const int RegistRefID = 508; + const int DerivativePriceQuoteMethod = 1318; + const int OrderDelay = 1428; + const int NoNotAffectedOrders = 1370; + const int Nested3PartyID = 949; + const int CollAsgnReason = 895; + const int TotalVolumeTradedTime = 450; + const int SecurityExchange = 207; + const int SettlPriceType = 731; + const int UnitOfMeasureQty = 1147; + const int UserRequestID = 923; + const int LastParPx = 669; + const int EndMaturityMonthYear = 1226; + const int DealingCapacity = 1048; + const int PrevClosePx = 140; + const int TradeInputDevice = 579; + const int DayCumQty = 425; + const int SecuritySettlAgentAcctNum = 178; + const int LegCurrency = 556; + const int EncryptedNewPassword = 1404; + const int DerivativeMinPriceIncrementAmount = 1268; + const int NoNested3PartySubIDs = 952; + const int RefSubID = 931; + const int SettlPartyRole = 784; + const int CashDistribAgentName = 498; + const int LegContractMultiplier = 614; + const int ProgPeriodInterval = 415; + const int LegSettlType = 587; + const int OnBehalfOfLocationID = 144; + const int OnBehalfOfSubID = 116; + const int ComplexEventEndTime = 1496; + const int RateSourceType = 1447; + const int DerivativeStateOrProvinceOfIssue = 1259; + const int TradeLegRefID = 824; + const int RelSymTransactTime = 1504; + const int NoComplexEventTimes = 1494; + const int LegCalculatedCcyLastQty = 1074; + const int Nested3PartyIDSource = 950; + const int DatedDate = 873; + const int SettlInstID = 162; + const int OpenInterest = 746; + const int UnderlyingContractMultiplier = 436; + const int TotQuoteEntries = 304; + const int TotNoCxldQuotes = 1168; + const int AggregatedBook = 266; + const int PaymentRef = 476; + const int PaymentDate = 504; + const int OrderPercent = 516; + const int PosQtyStatus = 706; + const int NoNested4PartySubIDs = 1413; + const int PrivateQuote = 1171; + const int SecondaryTradeID = 1040; + const int SecuritySettlAgentContactPhone = 181; + const int EncodedMktSegmDescLen = 1397; + const int SideCurrency = 1154; + const int LegQty = 687; + const int MsgType = 35; + const int NoTradingSessions = 386; + const int IOIid = 23; + const int MultiLegReportingType = 442; + const int IDSource = 22; + const int LegStipulationType = 688; + const int DerivativeContractMultiplierUnit = 1438; + const int MarketSegmentID = 1300; + const int OrdStatus = 39; + const int MaturityDate = 541; + const int ApplTotalMessageCount = 1349; + const int InstrumentPartySubID = 1053; + const int CustomerOrFirm = 204; + const int AdjustmentType = 718; + const int UnderlyingInstrumentPartyID = 1059; + const int AsOfIndicator = 1015; + const int QuoteStatusReqID = 649; + const int LegPositionEffect = 564; + const int MDEntryPx = 270; + const int MassActionScope = 1374; + const int ReportedPxDiff = 1134; + const int UnderlyingSettlementDate = 987; + const int NoNestedPartySubIDs = 804; + const int AllocReportRefID = 795; + const int Concession = 238; + const int EncodedSecurityDesc = 351; + const int ExecRefID = 19; + const int VenueType = 1430; + const int MassActionType = 1373; + const int PosMaintResult = 723; + const int IOIShares = 27; + const int BenchmarkSecurityID = 699; + const int LegLastQty = 1418; + const int AllocSettlCurrency = 736; + const int LegCountryOfIssue = 596; + const int DerivativeSecurityXML = 1283; + const int StrikeRuleID = 1223; + const int RefCompID = 930; + const int SettlCurrOfferFxRate = 657; + const int OfferYield = 634; + const int TargetPartyIDSource = 1463; + const int EncryptedNewPasswordLen = 1403; + const int NoPositions = 702; + const int TotalAccruedInterestAmt = 540; + const int UnderlyingOptAttribute = 317; + const int DerivativeInstrAttribValue = 1314; + const int InstrumentPartyIDSource = 1050; + const int PegOffsetType = 836; + const int MassCancelRejectReason = 532; + const int ResponseTransportType = 725; + const int LegSecurityIDSource = 603; + const int BasisFeaturePrice = 260; + const int CouponPaymentDate = 224; + const int TradSesStatusRejReason = 567; + const int UnderlyingDetachmentPoint = 1460; + const int MaturityRuleID = 1222; + const int UnderlyingRepoCollateralSecurityType = 243; + const int NoTimeInForceRules = 1239; + const int NoRootPartySubIDs = 1120; + const int DisplayMinIncr = 1087; + const int TrdRegTimestampType = 770; + const int LegProduct = 607; + const int ApplVerID = 1128; + const int HandlInst = 21; + const int ListUpdateAction = 1324; + const int NestedInstrAttribValue = 1211; + const int TradingSessionSubID = 625; + const int RFQReqID = 644; + const int UnderlyingLegSymbolSfx = 1331; + const int LiquidityNumSecurities = 441; + const int NoMsgTypes = 384; + const int TradSesStartTime = 341; + const int MDEntryType = 269; + const int AgreementCurrency = 918; + const int PegMoveType = 835; + const int PegDifference = 211; + const int Spread = 218; + const int EncodedAllocTextLen = 360; + const int OutsideIndexPct = 407; + const int DerivFlexProductEligibilityIndicator = 1243; + const int AvgPxIndicator = 819; + const int NoIOIQualifiers = 199; + const int CancellationRights = 480; + const int ListSeqNo = 67; + const int CardIssNum = 491; + const int EncodedMktSegmDesc = 1398; + const int DerivativeEventType = 1287; + const int DerivativeMaturityMonthYear = 1251; + const int SideTradeReportID = 1005; + const int NoQuoteSets = 296; + const int Nested4PartySubIDType = 1411; + const int FillPx = 1364; + const int StrikeExerciseStyle = 1304; + const int DeskID = 284; + const int CrossPercent = 413; + const int MaturityMonthYear = 200; + const int ComplexEventPrice = 1486; + const int NoNewsRefIDs = 1475; + const int UnderlyingCapValue = 1038; + const int CPRegType = 876; + const int CashDistribAgentCode = 499; + const int ExecPriceType = 484; + const int LegAllocID = 1366; + const int MDEntryTime = 273; + const int TotalNumSecurities = 393; + const int AllocSettlInstType = 780; + const int TargetPartyID = 1462; + const int DerivativeStrikeCurrency = 1262; + const int StatsType = 1176; + const int ApplExtID = 1156; + const int SettlementCycleNo = 1153; + const int UnderlyingStrikeCurrency = 941; + const int TradSesMode = 339; + const int SettlInstSource = 165; + const int UnderlyingLegSecurityDesc = 1392; + const int NoDerivativeInstrumentParties = 1292; + const int DerivativeEventTime = 1289; + const int TickIncrement = 1208; + const int UndlyInstrumentPartyID = 1059; + const int NoUndlyInstrumentParties = 1058; + const int ExpType = 982; + const int SecondaryClOrdID = 526; + const int SettlInstTransType = 163; + const int SideComplianceID = 659; + const int TradeRequestResult = 749; + const int OrigPosReqRefID = 713; + const int OrigCrossID = 551; + const int TradeInputSource = 578; + const int OrderQty2 = 192; + const int TestMessageIndicator = 464; + const int DerivativeEventDate = 1288; + const int SideGrossTradeAmt = 1072; + const int PeggedPrice = 839; + const int ExpirationCycle = 827; + const int AllocCancReplaceReason = 796; + const int CxlRejReason = 102; + const int BeginString = 8; + const int DeliverToSubID = 129; + const int LegPriceUnitOfMeasureQty = 1422; + const int NoCollInquiryQualifier = 938; + const int OfferPx = 133; + const int TotalVolumeTradedDate = 449; + const int NoContAmts = 518; + const int MinOfferSize = 648; + const int AvgParPx = 860; + const int LegFactor = 253; + const int RespondentType = 1172; + const int DisplayLowQty = 1085; + const int DKReason = 127; + const int BenchmarkPrice = 662; + const int ListID = 66; + const int LegSecurityAltID = 605; + const int PositionEffect = 77; + const int TriggerAction = 1101; + const int RefOrderID = 1080; + const int ClearingInstruction = 577; + const int SettlInstCode = 175; + const int NumDaysInterest = 157; + const int OpenCloseSettlFlag = 286; + const int NoComplexEventDates = 1491; + const int DerivativeEncodedIssuerLen = 1277; + const int StrikeMultiplier = 967; + const int DiscretionMoveType = 841; + const int ListNoOrds = 68; + const int PegSymbol = 1098; + const int DayAvgPx = 426; + const int Headline = 148; + const int NestedPartySubID = 545; + const int CardIssNo = 491; + const int OptAttribute = 206; + const int LastForwardPoints2 = 641; + const int MDUpdateType = 265; + const int TickDirection = 274; + const int LegRedemptionDate = 254; + const int StrikePrice = 202; + const int EncodedIssuer = 349; + const int YieldType = 235; + const int TradingReferencePrice = 1150; + const int MDEntrySpotRate = 1026; + const int ParticipationRate = 849; + const int PegScope = 840; + const int InterestAtMaturity = 738; + const int LegIndividualAllocID = 672; + const int AllowableOneSidednessValue = 766; + const int CashSettlAgentName = 182; + const int ContraTradeQty = 437; + const int LegMaturityTime = 1212; + const int SettlDeliveryType = 172; + const int SecondaryPriceLimitType = 1305; + const int MidPx = 631; + const int AvgPx = 6; + const int DiscretionLimitType = 843; + const int StrikeTime = 443; + const int SettlSessSubID = 717; + const int MailingDtls = 474; + const int BidID = 390; + const int ExerciseMethod = 747; + const int CommCurrency = 479; + const int NoSettlOblig = 1165; + const int MaxPriceVariation = 1143; + const int WorkingIndicator = 636; + const int CashSettlAgentAcctName = 185; + const int SellVolume = 331; + const int SideMultiLegReportingType = 752; + const int DerivativeEventText = 1291; + const int PegSecurityDesc = 1099; + const int AllocCustomerCapacity = 993; + const int ConfirmRejReason = 774; + const int BidRequestTransType = 374; + const int CashDistribAgentAcctNumber = 500; + const int LegExecInst = 1384; + const int CapPrice = 1199; + const int LegRepurchaseTerm = 251; + const int RegistAcctType = 493; + const int MassActionRejectReason = 1376; + const int DerivativePutOrCall = 1323; + const int StartMaturityMonthYear = 1241; + const int CollApplType = 1043; + const int NoUnderlyingAmounts = 984; + const int ConfirmType = 773; + const int LegMaturityMonthYear = 610; + const int RelatdSym = 46; + const int UnderlyingLegSecuritySubType = 1338; + const int NoUnderlyingSecurityAltID = 457; + const int MDQuoteType = 1070; + const int QtyType = 854; + const int QuoteRespType = 694; + const int IOINaturalFlag = 130; + const int BenchmarkCurvePoint = 222; + const int TradSesUpdateAction = 1327; + const int UnderlyingCashAmount = 973; + const int CollAsgnID = 902; + const int ExchangeRule = 825; + const int EncodedHeadline = 359; + const int RegistID = 513; + const int CrossID = 548; + const int NoExecs = 124; + const int DerivativeSecurityGroup = 1247; + const int SecondaryDisplayQty = 1082; + const int RefMsgType = 372; + const int StandInstDbID = 171; + const int EncodedLegSecurityDescLen = 621; + const int DerivativeEventPx = 1290; + const int SettlObligSource = 1164; + const int TrdSubType = 829; + const int EncodedUnderlyingIssuerLen = 362; + const int ExecTransType = 20; + const int BeginSeqNo = 7; + const int DayBookingInst = 589; + const int FlowScheduleType = 1439; + const int MDOriginType = 1024; + const int CollInquiryStatus = 945; + const int NoInstrAttrib = 870; + const int RegistEmail = 511; + const int StreamAsgnReqID = 1497; + const int CPProgram = 875; + const int ConfirmReqID = 859; + const int AltMDSourceID = 817; + const int NoOrders = 73; + const int CashDistribAgentAcctName = 502; + const int UndlyInstrumentPartyIDSource = 1060; + const int UnderlyingSettlMethod = 1039; + const int NoMDEntryTypes = 267; + const int MDEntryForwardPoints = 1027; + const int PosReqType = 724; + const int MassStatusReqType = 585; + const int TradeOriginationDate = 229; + const int SettlPrice = 730; + const int SecuritySettlAgentAcctName = 179; + const int NoDerivativeEvents = 1286; + const int UnderlyingEndPrice = 883; + const int SubscriptionRequestType = 263; + const int TotalNumSecurityTypes = 557; + const int NewsCategory = 1473; + const int UnderlyingLegPutOrCall = 1343; + const int URLLink = 149; + const int NoInstrumentPartySubIDs = 1052; + const int UnderlyingCurrentValue = 885; + const int InterestAccrualDate = 874; + const int FutSettDate2 = 193; + const int NoClearingInstructions = 576; + const int UnderlyingCurrency = 318; + const int LegInterestAccrualDate = 956; + const int NewPassword = 925; + const int RedemptionDate = 240; + const int RefApplLastSeqNum = 1357; + const int StartCash = 921; + const int MaxMessageSize = 383; + const int OfferForwardPoints = 191; + const int IOIQty = 27; + const int LastQty = 32; + const int ApplResponseError = 1354; + const int UnderlyingLegSecurityType = 1337; + const int DerivativePriceUnitOfMeasure = 1315; + const int TriggerPriceDirection = 1109; + const int PositionCurrency = 1055; + const int MessageEventSource = 1011; + const int CollInquiryID = 909; + const int UnderlyingStartValue = 884; + const int LastLiquidityInd = 851; + const int SecurityID = 48; + const int NoMDEntries = 268; + const int StrikePriceDeterminationMethod = 1478; + const int EndDate = 917; + const int CashOutstanding = 901; + const int MDReqID = 262; + const int IOIRefID = 26; + const int TargetStrategy = 847; + const int ConfirmRefID = 772; + const int SellerDays = 287; + const int DueToRelated = 329; + const int SecondaryTradingReferencePrice = 1240; + const int NoMDFeedTypes = 1141; + const int UnderlyingInstrumentPartySubIDType = 1064; + const int TradSesCloseTime = 344; + const int ContractSettlMonth = 667; + const int DerivativeStrikePrice = 1261; + const int TriggerSecurityDesc = 1106; + const int UnderlyingCashType = 974; + const int NoMiscFees = 136; + const int CustOrderCapacity = 582; + const int LegAllocSettlCurrency = 1367; + const int UnderlyingAdjustedQuantity = 1044; + const int OwnershipType = 517; + const int MaxShow = 210; + const int LegSecurityID = 602; + const int DerivativeSecurityDesc = 1279; + const int UnitOfMeasure = 996; + const int Quantity = 53; + const int NewsID = 1472; + const int UndlyInstrumentPartySubIDType = 1064; + const int SettleOnOpenFlag = 966; + const int LastUpdateTime = 779; + const int RepurchaseRate = 227; + const int RepurchaseTerm = 226; + const int NestedPartyRole = 538; + const int SecondaryExecID = 527; + const int Pool = 691; + const int NoTickRules = 1205; + const int Volatility = 1188; + const int PctAtRisk = 869; + const int UnderlyingSecurityExchange = 308; + const int LegStrikePrice = 612; + const int SettlmntTyp = 63; + const int TradePublishIndicator = 1390; + const int ApplResponseType = 1348; + const int MDSubBookType = 1173; + const int Username = 553; + const int StandInstDbType = 169; + const int QuoteEntryStatus = 1167; + const int TriggerPriceType = 1107; + const int SideTrdSubTyp = 1008; + const int UnderlyingTradingSessionSubID = 823; + const int SettlInstReqRejCode = 792; + const int MktBidPx = 645; + const int UnderlyingLegSymbol = 1330; + const int StrikeValue = 968; + const int Urgency = 61; + const int AllocID = 70; + const int UnderlyingDeliveryAmount = 1037; + const int SideQty = 1009; + const int CollAsgnTransType = 903; + const int ThresholdAmount = 834; + const int DefBidSize = 293; + const int LegStateOrProvinceOfIssue = 597; + const int PaymentMethod = 492; + const int UnderlyingLegOptAttribute = 1391; + const int LegVolatility = 1379; + const int DerivativeInstrAttribType = 1313; + const int DerivativeUnitOfMeasureQty = 1270; + const int NoStatsIndicators = 1175; + const int TriggerPriceTypeScope = 1108; + const int LastNetworkResponseID = 934; + const int UnderlyingSettlPriceType = 733; + const int ApplReportID = 1356; + const int PegLimitType = 837; + const int ExecID = 17; + const int Side = 54; + const int UnderlyingLastPx = 651; + const int MarketDepth = 264; + const int DiscretionOffset = 389; + const int ContAmtType = 519; + const int MiscFeeCurr = 138; + const int AttachmentPoint = 1457; + const int OrderCategory = 1115; + const int AdvTransType = 5; + const int WtAverageLiquidity = 410; + const int QuoteSetValidUntilTime = 367; + const int NoNested4PartyIDs = 1414; + const int LegPutOrCall = 1358; + const int UserStatusText = 927; + const int Nested2PartySubID = 760; + const int EFPTrackingError = 405; + const int SideLiquidityInd = 1444; + const int DerivativeMinPriceIncrement = 1267; + const int PublishTrdIndicator = 852; + const int InvestorCountryOfResidence = 475; + const int SideReasonCd = 1007; + const int MinPriceIncrement = 969; + const int SecuritySettlAgentContactName = 180; + const int SecurityResponseType = 323; + const int LegBenchmarkCurvePoint = 678; + const int ClearingFirm = 439; + const int SessionStatus = 1409; + const int TriggerSecurityID = 1104; + const int TotNoAllocs = 892; + const int NoAltMDSource = 816; + const int AllocAccountType = 798; + const int LastPx = 31; + const int AllocTransType = 71; + const int TotNoQuoteEntries = 304; + const int MinBidSize = 647; + const int SettlBrkrCode = 174; + const int CardHolderName = 488; + const int ExpirationQtyType = 982; + const int EncodedUnderlyingSecurityDescLen = 364; + const int QuoteReqID = 131; + const int PriceUnitOfMeasure = 1191; + const int TZTransactTime = 1132; + const int AllocHandlInst = 209; + const int UnderlyingInstrumentPartyIDSource = 1060; + const int CurrencyRatio = 1382; + const int RefreshQty = 1088; + const int TradeRequestStatus = 750; + const int TrdRepIndicator = 1389; + const int MiscFeeAmt = 137; + const int TradSesOpenTime = 342; + const int PreallocMethod = 591; + const int TaxAdvantageType = 495; + const int MessageEncoding = 347; + const int NoPartySubIDs = 802; + const int SettlInstReqID = 791; + const int LegRepoCollateralSecurityType = 250; + const int AffectedSecondaryOrderID = 536; + const int DerivativeMaturityTime = 1253; + const int ExpireTime = 126; + const int UnderlyingFactor = 246; + const int OrigOrdModTime = 586; + const int NoTrdRepIndicators = 1387; + const int DerivativeMaturityDate = 1252; + const int DerivativeCFICode = 1248; + const int Nested2PartySubIDType = 807; + const int LegIOIQty = 682; + const int ExpireDate = 432; + const int NoMatchRules = 1235; + const int ApplEndSeqNum = 1183; + const int EventPx = 867; + const int AsgnRptID = 833; + const int TimeInForce = 59; + const int LowPx = 333; + const int IOIQualifier = 104; + const int WaveNo = 105; + const int StrikePriceBoundaryMethod = 1479; + const int DerivativeIssueDate = 1276; + const int MiscFeeType = 139; + const int QuoteID = 117; + const int DerivativeInstrumentPartyIDSource = 1294; + const int SettlObligID = 1161; + const int InstrAttribValue = 872; + const int LiquidityValue = 404; + const int SecurityIDSource = 22; + const int NewsRefType = 1477; + const int NoOfLegUnderlyings = 1342; + const int DerivativeEncodedSecurityDesc = 1281; + const int TriggerOrderType = 1111; + const int UnderlyingDirtyPrice = 882; + const int CrossType = 549; + const int RepoCollateralSecurityType = 239; + const int Password = 554; + const int OpenCloseSettleFlag = 286; + const int Subject = 147; + const int RefApplReqID = 1433; + const int UnderlyingEndValue = 886; + const int NewSeqNo = 36; + const int OrigTradeHandlingInstr = 1124; + const int DisplayHighQty = 1086; + const int MDBookType = 1021; + const int MarginExcess = 899; + const int BasisPxType = 419; + const int DlvyInst = 86; + const int ComplianceID = 376; + const int EmailThreadID = 164; + const int ContAmtCurr = 521; + const int ComplexEventType = 1484; + const int MassActionResponse = 1375; + const int UnderlyingIssueDate = 242; + const int SecurityRequestType = 321; + const int AllocInterestAtMaturity = 741; + const int ListRejectReason = 1386; + const int DeskType = 1033; + const int SecondaryTradeReportID = 818; + const int SettlType = 63; + const int OpenClose = 77; + const int ContractMultiplierUnit = 1435; + const int SecondaryLowLimitPrice = 1221; + const int ExpQty = 983; + const int NetworkRequestID = 933; + const int TrdType = 828; + const int NoUnderlyings = 711; + const int MDMkt = 275; + const int LastMkt = 30; + const int RestructuringType = 1449; + const int NoStrikeRules = 1201; + const int ListName = 392; + const int ProgRptReqs = 414; + const int TradingSessionID = 336; + const int ListOrderStatus = 431; + const int RegistStatus = 506; + const int PosAmt = 708; + const int UnderlyingPriceDeterminationMethod = 1481; + const int NoUnderlyingStips = 887; + const int TradSesPreCloseTime = 343; + const int MassCancelRequestType = 530; + const int UnderlyingLegSecurityAltIDSource = 1336; + const int SettlPartyID = 782; + const int NoAffectedOrders = 534; + const int CashSettlAgentAcctNum = 184; + const int UnderlyingLegMaturityMonthYear = 1339; + const int NoLotTypeRules = 1234; + const int NoDates = 580; + const int CxlRejResponseTo = 434; + const int EffectiveTime = 168; + const int GrossTradeAmt = 381; + const int SecurityListDesc = 1467; + const int NotAffectedOrderID = 1371; + const int DerivativeStrikeValue = 1264; + const int NoPosAmt = 753; + const int LegCreditRating = 257; + const int BidForwardPoints2 = 642; + const int SettlDate = 64; + const int ClientID = 109; + const int QuoteCancelType = 298; + const int StipulationType = 233; + const int OutMainCntryUIndex = 412; + const int LegSettlmntTyp = 587; + const int DerivativeNTPositionLimit = 1274; + const int PriceQuoteMethod = 1196; + const int LowLimitPrice = 1148; + const int LegUnitOfMeasure = 999; + const int SessionRejectReason = 373; + const int DeliveryType = 919; + const int AllocPrice = 366; + const int NoBidComponents = 420; + const int QuoteQualifier = 695; + const int Scope = 546; + const int NoSecurityAltID = 454; + const int RootPartySubID = 1121; + const int DeliverToLocationID = 145; + const int DeleteReason = 285; + const int BidSpotRate = 188; + const int Nested4PartyID = 1415; + const int InViewOfCommon = 328; + const int UnderlyingSettlPrice = 732; + const int RegistRejReasonText = 496; + const int NoSides = 552; + const int LegAllocAccount = 671; + const int LegSecurityDesc = 620; + const int ClOrdLinkID = 583; + const int OrigSendingTime = 122; + const int EncodedLegIssuerLen = 618; + const int OrderID = 37; + const int SecurityType = 167; + const int RoundingDirection = 468; + const int FillExecID = 1363; + const int NoEvents = 864; + const int RoundLot = 561; + const int MDEntrySize = 271; + const int EncodedIssuerLen = 348; + const int DerivativePriceUnitOfMeasureQty = 1316; + const int TimeUnit = 997; + const int TotNoOrders = 68; + const int LegSwapType = 690; + const int IOITransType = 28; + const int RawDataLength = 95; + const int UnderlyingSecurityType = 310; + const int UnderlyingLegSecurityAltID = 1335; + const int SecurityReportID = 964; + const int TotNumReports = 911; + const int TotalNumPosReports = 727; + const int SecurityReqID = 320; + const int PosReqResult = 728; + const int LegOfferForwardPoints = 1068; + const int AllowableOneSidednessCurr = 767; + const int AffectedOrderID = 535; + const int UnderlyingCountryOfIssue = 592; + const int UnderlyingRepurchaseRate = 245; + const int LastMsgSeqNumProcessed = 369; + const int UnderlyingCFICode = 463; + const int DerivativeOptAttribute = 1265; + const int PegSecurityID = 1097; + const int HostCrossID = 961; + const int ExecInstValue = 1308; + const int DerivativeOptPayAmount = 1225; + const int UnderlyingCouponRate = 435; + const int SettlInstMode = 160; + const int SecurityAltIDSource = 456; + const int PreviouslyReported = 570; + const int RptSys = 1135; + const int NoNested2PartySubIDs = 806; + const int RefAllocID = 72; + const int DefOfferSize = 294; + const int ProductComplex = 1227; + const int CustOrderHandlingInst = 1031; + const int MDPriceLevel = 1023; + const int LegOptionRatio = 1017; + const int SecurityStatus = 965; + const int LegRefID = 654; + const int DividendYield = 1380; + const int DerivativeInstrumentPartySubIDType = 1298; + const int EndStrikePxRange = 1203; + const int DisplayQty = 1138; + const int LegSecuritySubType = 764; + const int ProcessCode = 81; + const int ExecInst = 18; + const int TradSesEndTime = 345; + const int OrigTime = 42; + const int ExecValuationPoint = 515; + const int ExecType = 150; + const int Nested4PartyRole = 1417; + const int MultilegModel = 1377; + const int SecurityGroup = 1151; + const int EventType = 865; + const int TradeAllocIndicator = 826; + const int YieldCalcDate = 701; + const int ValueOfFutures = 408; + const int LegSide = 624; + const int UserStatus = 926; + const int SideValue1 = 396; + const int CxlQty = 84; + const int SecurityResponseID = 322; + const int InstrRegistry = 543; + const int StreamAsgnRptID = 1501; + const int OrderDelayUnit = 1429; + const int LegCurrencyRatio = 1383; + const int EndTickPriceRange = 1207; + const int CollReqID = 894; + const int LegPool = 740; + const int ShortQty = 705; + const int SideValue2 = 397; + const int TradedFlatSwitch = 258; + const int MassStatusReqID = 584; + const int ComplexEventEndDate = 1493; + const int MarketID = 1301; + const int OrigTradeDate = 1125; + const int PreTradeAnonymity = 1091; + const int TrdRptStatus = 939; + const int DistribPercentage = 512; + const int QuoteStatus = 297; + const int ClearingAccount = 440; + const int TrdMatchID = 880; + const int OrderInputDevice = 821; + const int SolicitedFlag = 377; + const int TransactTime = 60; + const int UnderlyingFlowScheduleType = 1441; + const int UnderlyingStipValue = 889; + const int NextExpectedMsgSeqNum = 789; + const int BenchmarkCurveCurrency = 220; + const int CFICode = 461; + const int Factor = 228; + const int LastShares = 32; + const int EventTime = 1145; + const int RootPartySubIDType = 1122; + const int ShortSaleReason = 853; + const int XmlData = 213; + const int NoTargetPartyIDs = 1461; + const int NoRootPartyIDs = 1116; + const int EventDate = 866; + const int PegRoundDirection = 838; + const int LegSettlDate = 588; + const int ModelType = 1434; + const int DefaultVerIndicator = 1410; + const int FuturesValuationMethod = 1197; + const int SettlMethod = 1193; + const int UnderlyingFXRate = 1045; + const int ConfirmStatus = 665; + const int LocateReqd = 114; + const int PosMaintRptID = 721; + const int Adjustment = 334; + const int StreamAsgnType = 1617; + const int LastRptRequested = 912; + const int LocaleOfIssue = 472; + const int SenderSubID = 50; + const int HighPx = 332; + const int AllocSettlCurrAmt = 737; + const int ComplexEventPriceBoundaryPrecision = 1488; + const int InstrumentPartyRole = 1051; + const int YieldRedemptionPrice = 697; + const int CumQty = 14; + const int OrigClOrdID = 41; + const int SettlSessID = 716; + const int ParentMktSegmID = 1325; + const int TradeReportType = 856; + const int AvgPrxPrecision = 74; + const int NoLegs = 555; + const int UnderlyingSymbol = 311; + const int ExerciseStyle = 1194; + const int HaltReasonChar = 327; + const int ExDestination = 100; + const int DerivativeInstrmtAssignmentMethod = 1255; + const int UnderlyingIDSource = 305; + const int AdvId = 2; + const int TransBkdTime = 483; + const int LegLastPx = 637; + const int AllocReportType = 794; + const int RegistDtls = 509; + const int AllocType = 626; + const int QuoteRequestRejectReason = 658; + const int UnderlyingUnitOfMeasure = 998; + const int IndividualAllocID = 467; + const int LegOfferPx = 684; + const int LiquidityIndType = 409; + const int HopSendingTime = 629; + const int ApplResendFlag = 1352; + const int DerivativeCapPrice = 1321; + const int ComplexOptPayoutAmount = 1485; + const int LanguageCode = 1474; + const int SettlObligRefID = 1163; + const int OrigTradeID = 1126; + const int UnderlyingCollectAmount = 986; + const int StatusValue = 928; + const int OfferSpotRate = 190; + const int PosType = 703; + const int UnderlyingRedemptionDate = 247; + const int SettlDepositoryCode = 173; + const int StreamAsgnAckType = 1503; + const int FloorPrice = 1200; + const int UnderlyingPriceUnitOfMeasureQty = 1425; + const int FeeMultiplier = 1329; + const int UnderlyingMaturityTime = 1213; + const int ApplID = 1180; + const int LegGrossTradeAmt = 1075; + const int MDEntryDate = 272; + const int LegBenchmarkCurveCurrency = 676; + const int OptPayoutAmount = 1195; + const int MiscFeeBasis = 891; + const int ValidUntilTime = 62; + const int OrdType = 40; + const int AdvRefID = 3; + const int HopCompID = 628; + const int PosMaintRptRefID = 714; + const int LegStipulationValue = 689; + const int MatchType = 574; + const int OptPayoutType = 1482; + const int UnderlyingPriceUnitOfMeasure = 1424; + const int MarketUpdateAction = 1395; + const int CollAsgnRejectReason = 906; + const int PeggedRefPrice = 1095; + const int IndividualAllocType = 992; + const int EndCash = 922; + const int EventText = 868; + const int ExDate = 230; + const int NestedPartyIDSource = 525; + const int GTBookingInst = 427; + const int DerivativeValuationMethod = 1319; + const int NumberOfOrders = 346; + const int TrdRepPartyRole = 1388; + const int TriggerPrice = 1102; + const int MDReportID = 963; + const int SecondaryAllocID = 793; + const int LeavesQty = 151; + const int CardStartDate = 503; + const int LegCoveredOrUncovered = 565; + const int PutOrCall = 201; + const int MatchAlgorithm = 1142; + const int CalculatedCcyLastQty = 1056; + const int FundRenewWaiv = 497; + const int SecuritySettlAgentName = 176; + const int BidDescriptor = 400; + const int MDStreamID = 1500; + const int NoAsgnReqs = 1499; + const int NotionalPercentageOutstanding = 1451; + const int NoSettlInst = 778; + const int SettlInstMsgID = 777; + const int ForexReq = 121; + const int TradSesReqID = 335; + const int UnderlyingLegStrikePrice = 1340; + const int TickRuleType = 1209; + const int InstrmtAssignmentMethod = 1049; + const int DiscretionOffsetType = 842; + const int ConfirmTransType = 666; + const int TotalTakedown = 237; + const int ResponseDestination = 726; + const int MDSecSizeType = 1178; + const int InstrumentPartySubIDType = 1054; + const int LegTimeUnit = 1001; + const int TransferReason = 830; + const int ApplQueueMax = 812; + const int DiscretionOffsetValue = 389; + const int BookingRefID = 466; + const int LegBidPx = 681; + const int TradSesEvent = 1368; + const int DerivativeProduct = 1246; + const int RootPartyRole = 1119; + const int DlvyInstType = 787; + const int NoLinesOfText = 33; + const int PosReqID = 710; + const int LegSecurityAltIDSource = 606; + const int EncodedSubject = 357; + const int ContraBroker = 375; + const int TradeCondition = 277; + const int PartyID = 448; + const int MDEntryID = 278; + const int UnderlyingLegSecurityExchange = 1341; + const int PriceLimitType = 1306; + const int TriggerSecurityIDSource = 1105; + const int NoUndlyInstrumentPartySubIDs = 1062; + const int ClientBidID = 391; + const int NetChgPrevDay = 451; + const int DefaultApplVerID = 1137; + const int IOIID = 23; + const int SpreadToBenchmark = 218; + const int CommType = 13; + const int RegistRejReasonCode = 507; + const int SideTimeInForce = 962; + const int TrdRegTimestamp = 769; + const int FinancialStatus = 291; + const int NoTrades = 897; + const int LastFragment = 893; + const int PartySubID = 523; + const int AllocQty = 80; + const int NotifyBrokerOfCredit = 208; + const int SideTrdRegTimestampType = 1013; + const int AgreementDate = 915; + const int PartySubIDType = 803; + const int TotalNetValue = 900; + const int AllocNoOrdersType = 857; + const int AllocLinkID = 196; + const int RoundingModulus = 469; + const int OnBehalfOfCompID = 115; + const int UnderlyingSecurityID = 309; + const int SettlObligMsgID = 1160; + const int PositionLimit = 970; + const int SharedCommission = 858; + const int AllowableOneSidednessPct = 765; + const int AllocText = 161; + const int EndSeqNo = 16; + const int NoPartyIDs = 453; + const int NoContraBrokers = 382; + const int AllocLinkType = 197; + const int UnderlyingAllocationPercent = 972; + const int AllocAccruedInterestAmt = 742; + const int EncodedSecurityListDesc = 1469; + const int EncryptedPasswordLen = 1401; + const int LegDividendYield = 1381; + const int RefreshIndicator = 1187; + const int SideSettlCurrency = 1155; + const int UnderlyingSettlementType = 975; + const int OrderCapacityQty = 863; + const int LongQty = 704; + const int DerivativeSettlMethod = 1317; + const int TriggerTradingSessionID = 1113; + const int DisplayMethod = 1084; + const int RptSeq = 83; + const int MDEntryOriginator = 282; + const int LegInstrRegistry = 599; + const int FillQty = 1365; + const int PegSecurityIDSource = 1096; + const int MaturityTime = 1079; + const int MDFeedType = 1022; + const int CollStatus = 910; + const int UnderlyingSecuritySubType = 763; + const int CstmApplVerID = 1129; + const int DefaultApplExtID = 1407; + const int NoDerivativeSecurityAltID = 1218; + const int SideValueInd = 401; + const int EncodedText = 355; + const int Account = 1; + const int TriggerNewPrice = 1110; + const int UndlyInstrumentPartyRole = 1061; + const int MsgDirection = 385; + const int LegMaturityDate = 611; + const int UnderlyingContractMultiplierUnit = 1437; + const int InputSource = 979; + const int MDUpdateAction = 279; + const int MatchStatus = 573; + const int RateSource = 1446; + const int AllocPositionEffect = 1047; + const int PartyIDSource = 447; + const int EncodedUnderlyingIssuer = 363; + const int EncryptedPassword = 1402; + const int TriggerNewQty = 1112; + const int LegLastForwardPoints = 1073; + const int TotNumTradeReports = 748; + const int RefApplVerID = 1130; + const int LastSpotRate = 194; + const int Price = 44; + const int UnderlyingSecurityIDSource = 305; + const int TotNoSecurityTypes = 557; + const int ReportedPx = 861; + const int LegSymbol = 600; + const int LegIssuer = 617; + const int RegistDetls = 509; + const int UnderlyingLegSecurityID = 1332; + const int MinLotSize = 1231; + const int NumTickets = 395; + const int LegLocaleOfIssue = 598; + const int ExchangeForPhysical = 411; + const int SecurityTradingEvent = 1174; + const int MinPriceIncrementAmount = 1146; + const int UnderlyingPayAmount = 985; + const int SettlPartySubID = 785; + const int AllocNetMoney = 154; + const int UnderlyingMaturityDay = 314; + const int NetworkResponseID = 932; + const int NumBidders = 417; + const int AllocAcctIDSource = 661; + const int AllocAvgPx = 153; + const int SecuritySettlAgentCode = 177; + const int NoDistribInsts = 510; + const int CustDirectedOrder = 1029; + const int FairValue = 406; + const int NoStrikes = 428; + const int EncodedSecurityListDescLen = 1468; + const int LegExerciseStyle = 1420; + const int DerivativeSymbolSfx = 1215; + const int NestedInstrAttribType = 1210; + const int ContraTrader = 337; + const int MDSecSize = 1179; + const int NoOfSecSizes = 1177; + const int CollAction = 944; + const int UnderlyingLastQty = 652; + const int PossDupFlag = 43; + const int ListStatusType = 429; + const int SideFillStationCd = 1006; + const int StatusText = 929; + const int BasisFeatureDate = 259; + const int XmlDataLen = 212; + const int UnderlyingMaturityDate = 542; + const int GapFillFlag = 123; + const int RefApplExtID = 1406; + const int RefApplID = 1355; + const int NoTradingSessionRules = 1309; + const int SwapPoints = 1069; + const int TargetStrategyParameters = 848; + const int LastForwardPoints = 195; + const int YieldRedemptionDate = 696; + const int NoSettlDetails = 1158; + const int TradeHandlingInstr = 1123; + const int CashSettlAgentCode = 183; + const int LegPriceType = 686; + const int EncodedListExecInstLen = 352; + const int TradSesMethod = 338; + const int AgreementID = 914; + const int CashDistribCurr = 478; + const int BidPx = 132; + const int TradeType = 418; + const int EncodedSecurityDescLen = 350; + const int ComplexEventCondition = 1490; + const int EncryptedPasswordMethod = 1400; + const int DerivativeSecurityAltID = 1219; + const int TotNoAccQuotes = 1169; + const int TimeBracket = 943; + const int NoAllocs = 78; + const int UnderlyingProduct = 462; + const int BenchmarkCurveName = 221; + const int UnderlyingSymbolSfx = 312; + const int StrikePriceBoundaryPrecision = 1480; + const int QuoteSetID = 302; + const int CashMargin = 544; + const int SettlObligTransType = 1162; + const int LegNumber = 1152; + const int DeskOrderHandlingInst = 1035; + const int SettlPartyIDSource = 783; + const int PriorSettlPrice = 734; + const int NotAffOrigClOrdID = 1372; + const int TradingSessionDesc = 1326; + const int DerivativeFloorPrice = 1322; + const int DerivativeSymbol = 1214; + const int RiskFreeRate = 1190; + const int PosTransType = 709; + const int MsgSeqNum = 34; + const int Signature = 89; + const int Seniority = 1450; + const int NoRateSources = 1445; + const int PriceUnitOfMeasureQty = 1192; + const int CollAsgnRefID = 907; + const int BuyVolume = 330; + const int SettlCurrFxRateCalc = 156; + const int PosMaintStatus = 722; + const int PriorSpreadIndicator = 720; + const int Benchmark = 219; + const int MaturityMonthYearFormat = 1303; + const int UnderlyingTradingSessionID = 822; + const int TotNoRelatedSym = 393; + const int StateOrProvinceOfIssue = 471; + const int DerivativeInstrRegistry = 1257; + const int LegBidForwardPoints = 1067; + const int ManualOrderIndicator = 1028; + const int NetMoney = 118; + const int LegalConfirm = 650; + const int CountryOfIssue = 470; + const int ApplReportType = 1426; + const int RootPartyID = 1117; + const int UnderlyingQty = 879; + const int ApplQueueDepth = 813; + const int StopPx = 99; + const int ReportToExch = 113; + const int ContraryInstructionIndicator = 719; + const int EncodedListStatusTextLen = 445; + const int DerivativeSecurityXMLSchema = 1284; + const int NoRelatedSym = 146; + const int AllocRejCode = 88; + const int UnderlyingSecurityAltID = 458; + const int RefOrdIDReason = 1431; + const int DerivativeInstrumentPartyID = 1293; + const int SecurityXMLSchema = 1186; + const int RefOrderIDSource = 1081; + const int NTPositionLimit = 971; + const int EndAccruedInterestAmt = 920; + const int AccruedInterestRate = 158; + const int LastCapacity = 29; + const int UnderlyingInstrumentPartySubID = 1063; + const int NoFills = 1362; + const int NoOrdTypeRules = 1237; + const int InstrumentPartyID = 1019; + const int MarginRatio = 898; + const int RefTagID = 371; + const int NoRoutingIDs = 215; + const int CouponRate = 223; + const int NoApplIDs = 1351; + const int DerivativeContractSettlMonth = 1285; + const int InstrAttribType = 871; + const int Product = 460; + const int AllocShares = 80; + const int NoQuoteEntries = 295; + const int DefaultCstmApplVerID = 1408; + const int DerivativeListMethod = 1320; + const int DerivativeSecurityXMLLen = 1282; + const int LegDatedDate = 739; + const int Nested2PartyIDSource = 758; + const int UnderlyingInstrRegistry = 595; + const int IssueDate = 225; + const int SecurityTradingStatus = 326; + const int LegOptAttribute = 613; + const int MaxFloor = 111; + const int DerivativeLocaleOfIssue = 1260; + const int OptPayAmount = 1195; + const int UnderlyingStipType = 888; + const int Rule80A = 47; + const int TotNoStrikes = 422; + const int CorporateAction = 292; + const int TerminationType = 788; + const int LegCouponRate = 615; + const int PosMaintAction = 712; + const int NoSecurityTypes = 558; + const int ComplexEventPriceTimeType = 1489; + const int LastSwapPoints = 1071; + const int UnderlyingFXRateCalc = 1046; + const int ListStatusText = 444; + const int OddLot = 575; + const int BookingUnit = 590; + const int LegAllocAcctIDSource = 674; + const int OnBehalfOfSendingTime = 370; + const int AllocStatus = 87; + const int ReferencePage = 1448; + const int DerivativeExerciseStyle = 1299; + const int ApplBegSeqNum = 1182; + const int CollRptID = 908; + const int IncTaxInd = 416; + const int NoBidDescriptors = 398; + const int LegCouponPaymentDate = 248; + const int NoUnderlyingLegSecurityAltID = 1334; + const int ReversalIndicator = 700; + const int CheckSum = 10; + const int TargetSubID = 57; + const int PosReqStatus = 729; + const int PriorityIndicator = 638; + const int UnderlyingLegCFICode = 1344; + const int DerivativeTimeUnit = 1271; + const int NoNested3PartyIDs = 948; + const int LiquidityPctHigh = 403; + const int MoneyLaunderingStatus = 481; + const int Nested4PartySubID = 1412; + const int DerivativeSecurityExchange = 1272; + const int LotType = 1093; + const int ContIntRptID = 977; + const int QuoteCondition = 276; + const int ComplexEventStartTime = 1495; + const int NoComplexEvents = 1483; + const int DerivativeContractMultiplier = 1266; + const int DerivativeSecurityStatus = 1256; + const int DerivativeProductComplex = 1228; + const int TriggerSymbol = 1103; + const int UnderlyingLocaleOfIssue = 594; + const int SendingTime = 52; + const int ComplexEventStartDate = 1492; + const int UnderlyingRestructuringType = 1453; + const int LegUnitOfMeasureQty = 1224; + const int NoTrdRegTimestamps = 768; + const int SendingDate = 51; + const int TimeToExpiration = 1189; + const int LegAllocQty = 673; + const int SettlLocation = 166; + const int UnderlyingExerciseStyle = 1419; + const int CashSettlAgentContactName = 186; + const int LegRepurchaseRate = 252; + const int ApplResponseID = 1353; + const int NoDerivativeInstrAttrib = 1311; + const int DerivativeStrikeMultiplier = 1263; + const int LegStrikeCurrency = 942; + const int SecurityStatusReqID = 324; + const int SecureDataLen = 90; + const int DiscretionScope = 846; + const int OwnerType = 522; + const int Shares = 53; + const int Yield = 236; + const int QuoteRespID = 693; + const int Nested3PartySubID = 953; + const int ApplQueueResolution = 814; + const int TrdRegTimestampOrigin = 771; + const int Nested2PartyRole = 759; + const int Nested2PartyID = 757; + const int BidSize = 134; + const int LegSymbolSfx = 601; + const int QuoteResponseLevel = 301; + const int BodyLength = 9; + const int ListExecInst = 69; + const int ExecAckStatus = 1036; + const int SettlDate2 = 193; + const int NetGrossInd = 430; + const int UnderlyingSecurityAltIDSource = 459; + const int TestReqID = 112; + const int CxlType = 125; + const int UnderlyingCreditRating = 256; + const int AvgPxPrecision = 74; + const int BenchmarkPriceType = 663; + const int DeskTypeSource = 1034; + const int DiscretionRoundDirection = 844; + const int OrigSecondaryTradeID = 1127; + const int ReceivedDeptID = 1030; + const int MaturityNetMoney = 890; + const int BidDescriptorType = 399; + const int DerivativeInstrumentPartySubID = 1297; + const int NetworkStatusResponseType = 937; + const int DateOfBirth = 486; + const int StartStrikePxRange = 1202; + const int UndlyInstrumentPartySubID = 1063; + const int SecondaryTradeReportRefID = 881; + const int UnderlyingCPRegType = 878; + const int SignatureLength = 93; + const int OrderQty = 38; + const int OriginalNotionalPercentageOutstanding = 1452; + const int UnderlyingTimeUnit = 1000; + const int EncodedHeadlineLen = 358; + const int NoRegistDtls = 473; + const int StrategyParameterValue = 960; + const int NoInstrumentParties = 1018; + const int QuoteType = 537; + const int NoStrategyParameters = 957; + const int IndividualAllocRejCode = 776; + const int DiscretionInst = 388; + const int TargetPartyRole = 1464; + const int CrossPrioritization = 550; + const int EncodedListStatusText = 446; + const int IOIOthSvc = 24; + const int LegIssueDate = 249; + const int MDReqRejReason = 281; + const int ApplReqType = 1347; + const int Country = 421; + const int UnderlyingLegSecurityIDSource = 1333; + const int FlexProductEligibilityIndicator = 1242; + const int AggressorIndicator = 1057; + const int ExecPriceAdjustment = 485; + const int BusinessRejectReason = 380; + const int TradeDate = 75; + const int UnderlyingPutOrCall = 315; + const int UnderlyingInstrumentPartyRole = 1061; + const int DerivativePositionLimit = 1273; + const int TierCode = 994; + const int BookingType = 775; + const int StipulationValue = 234; + const int SettlCurrBidFxRate = 656; + } +} +#endif //FIX_FIELDNUMBERS_H diff --git a/linux/include/quickfix/FixFields.h b/linux/include/quickfix/FixFields.h new file mode 100644 index 000000000..08af741d1 --- /dev/null +++ b/linux/include/quickfix/FixFields.h @@ -0,0 +1,1538 @@ +#ifndef FIX_FIELDS_H +#define FIX_FIELDS_H + +#include "Field.h" + +#undef Yield + +namespace FIX +{ + DEFINE_INT(MaxPriceLevels); + DEFINE_DATA(DerivativeEncodedIssuer); + DEFINE_NUMINGROUP(NoCompIDs); + DEFINE_STRING(SettlInstRefID); + DEFINE_STRING(NestedPartyID); + DEFINE_PERCENTAGE(DetachmentPoint); + DEFINE_BOOLEAN(LateIndicator); + DEFINE_STRING(SecurityListID); + DEFINE_INT(DerivativeFlowScheduleType); + DEFINE_BOOLEAN(FlexibleIndicator); + DEFINE_NUMINGROUP(NoExecInstRules); + DEFINE_UTCTIMESTAMP(SideTrdRegTimestamp); + DEFINE_INT(DeliveryForm); + DEFINE_INT(ExecRestatementReason); + DEFINE_PERCENTAGE(MidYield); + DEFINE_FLOAT(ContractMultiplier); + DEFINE_AMT(CcyAmt); + DEFINE_QTY(LegOrderQty); + DEFINE_INT(AllocIntermedReqType); + DEFINE_STRING(UnderlyingIssuer); + DEFINE_NUMINGROUP(NoNested2PartyIDs); + DEFINE_QTY(MinTradeVol); + DEFINE_AMT(SettlCurrAmt); + DEFINE_INT(DerivativeInstrumentPartyRole); + DEFINE_INT(YieldRedemptionPriceType); + DEFINE_STRING(NewsRefID); + DEFINE_INT(SecurityListTypeSource); + DEFINE_STRING(ApplReqID); + DEFINE_STRING(DerivativeFuturesValuationMethod); + DEFINE_NUMINGROUP(NoLegSecurityAltID); + DEFINE_STRING(DerivativeSecurityType); + DEFINE_INT(CollInquiryQualifier); + DEFINE_DATA(RawData); + DEFINE_STRING(CashSettlAgentContactPhone); + DEFINE_STRING(CreditRating); + DEFINE_INT(ContingencyType); + DEFINE_CURRENCY(StrikeCurrency); + DEFINE_QTY(TradeVolume); + DEFINE_STRING(SideTrdRegTimestampSrc); + DEFINE_LOCALMKTDATE(DeliveryDate); + DEFINE_CHAR(EmailType); + DEFINE_DATA(EncodedListExecInst); + DEFINE_UTCTIMESTAMP(ContraTradeTime); + DEFINE_INT(MaturityMonthYearIncrement); + DEFINE_CHAR(RootPartyIDSource); + DEFINE_LOCALMKTDATE(UnderlyingCouponPaymentDate); + DEFINE_PERCENTAGE(BidYield); + DEFINE_CHAR(IOIQltyInd); + DEFINE_STRING(Issuer); + DEFINE_STRING(CardNumber); + DEFINE_NUMINGROUP(NoLegStipulations); + DEFINE_EXCHANGE(LegSecurityExchange); + DEFINE_QTY(CashOrderQty); + DEFINE_AMT(AccruedInterestAmt); + DEFINE_STRING(MDEntrySeller); + DEFINE_PRICE(LegPrice); + DEFINE_STRING(DeliverToCompID); + DEFINE_STRING(TargetLocationID); + DEFINE_PRICEOFFSET(OfferForwardPoints2); + DEFINE_QTY(RatioQty); + DEFINE_INT(MultiLegRptTypeReq); + DEFINE_STRING(AllocAccount); + DEFINE_QTY(TotalVolumeTraded); + DEFINE_NUMINGROUP(LinesOfText); + DEFINE_INT(AccountType); + DEFINE_INT(MDEntryPositionNo); + DEFINE_INT(HaltReasonInt); + DEFINE_LOCALMKTDATE(FutSettDate); + DEFINE_STRING(SecurityDesc); + DEFINE_QTY(MinQty); + DEFINE_CURRENCY(SettlCurrency); + DEFINE_FLOAT(PegOffsetValue); + DEFINE_STRING(DerivativeSecurityAltIDSource); + DEFINE_NUMINGROUP(NoSettlPartySubIDs); + DEFINE_STRING(AllocReportID); + DEFINE_STRING(LegCFICode); + DEFINE_LOCALMKTDATE(LegFutSettDate); + DEFINE_STRING(LegBenchmarkCurveName); + DEFINE_STRING(ClearingFeeIndicator); + DEFINE_STRING(BrokerOfCredit); + DEFINE_STRING(SecurityListRefID); + DEFINE_TZTIMEONLY(UnderlyingLegMaturityTime); + DEFINE_INT(NestedPartySubIDType); + DEFINE_INT(BidType); + DEFINE_STRING(MDEntryRefID); + DEFINE_QTY(UnderlyingUnitOfMeasureQty); + DEFINE_LOCALMKTDATE(UnderlyingLegMaturityDate); + DEFINE_PRICE(StartTickPriceRange); + DEFINE_MONTHYEAR(LegContractSettlMonth); + DEFINE_STRING(UnderlyingSecurityDesc); + DEFINE_STRING(CashDistribPayRef); + DEFINE_INT(QuotePriceType); + DEFINE_DATA(EncodedAllocText); + DEFINE_MONTHYEAR(UnderlyingMaturityMonthYear); + DEFINE_PERCENTAGE(UnderlyingOriginalNotionalPercentageOutstanding); + DEFINE_INT(MultilegPriceMethod); + DEFINE_INT(TotNoFills); + DEFINE_STRING(DerivativeSettleOnOpenFlag); + DEFINE_INT(UnderlyingRepurchaseTerm); + DEFINE_COUNTRY(DerivativeCountryOfIssue); + DEFINE_INT(ListMethod); + DEFINE_STRING(UnderlyingCPProgram); + DEFINE_FLOAT(PriceDelta); + DEFINE_SEQNUM(RefSeqNum); + DEFINE_BOOLEAN(AutoAcceptIndicator); + DEFINE_BOOLEAN(MDImplicitDelete); + DEFINE_NUMINGROUP(NoStipulations); + DEFINE_LOCALMKTDATE(ClearingBusinessDate); + DEFINE_STRING(LocationID); + DEFINE_CURRENCY(Currency); + DEFINE_INT(RoutingType); + DEFINE_PRICE(UnderlyingStrikePrice); + DEFINE_CHAR(BidTradeType); + DEFINE_PERCENTAGE(UnderlyingAttachmentPoint); + DEFINE_INT(TotNoRejQuotes); + DEFINE_STRING(OrdStatusReqID); + DEFINE_STRING(SenderCompID); + DEFINE_INT(OrdRejReason); + DEFINE_INT(MaturityMonthYearIncrementUnits); + DEFINE_CHAR(DisplayWhen); + DEFINE_INT(ApplQueueAction); + DEFINE_CHAR(RegistTransType); + DEFINE_STRING(PaymentRemitterID); + DEFINE_INT(PriceType); + DEFINE_STRING(MarketReqID); + DEFINE_NUMINGROUP(NoNestedInstrAttrib); + DEFINE_STRING(SecuritySubType); + DEFINE_STRING(ClOrdID); + DEFINE_DAYOFMONTH(MaturityDay); + DEFINE_STRING(UnderlyingSeniority); + DEFINE_STRING(MarketSegmentDesc); + DEFINE_NUMINGROUP(NoMarketSegments); + DEFINE_INT(SettlObligMode); + DEFINE_CHAR(SecurityUpdateAction); + DEFINE_INT(NetworkRequestType); + DEFINE_PERCENTAGE(LiquidityPctLow); + DEFINE_INT(PartyRole); + DEFINE_FLOAT(LegRatioQty); + DEFINE_FLOAT(SettlCurrFxRate); + DEFINE_INT(LegContractMultiplierUnit); + DEFINE_DATA(SecureData); + DEFINE_STRING(SenderLocationID); + DEFINE_PRICE(FirstPx); + DEFINE_DATA(EncodedLegIssuer); + DEFINE_CHAR(AssignmentMethod); + DEFINE_STRING(RoutingID); + DEFINE_INT(StrategyParameterType); + DEFINE_INT(EncryptMethod); + DEFINE_STRING(UnderlyingStateOrProvinceOfIssue); + DEFINE_SEQNUM(ApplNewSeqNum); + DEFINE_LENGTH(DerivativeEncodedSecurityDescLen); + DEFINE_CURRENCY(TradingCurrency); + DEFINE_PRICE(SecondaryHighLimitPrice); + DEFINE_PRICE(OrderAvgPx); + DEFINE_STRING(PosAmtType); + DEFINE_BOOLEAN(ResetSeqNumFlag); + DEFINE_NUMINGROUP(NoHops); + DEFINE_INT(CollInquiryResult); + DEFINE_LOCALMKTDATE(StartDate); + DEFINE_INT(CollAsgnRespType); + DEFINE_QTY(OrderBookingQty); + DEFINE_NUMINGROUP(NoQuoteQualifiers); + DEFINE_BOOLEAN(UnsolicitedIndicator); + DEFINE_STRING(RefCstmApplVerID); + DEFINE_STRING(SideExecID); + DEFINE_STRING(RejectText); + DEFINE_STRING(ExchangeSpecialInstructions); + DEFINE_STRING(TradeID); + DEFINE_PRICE(RndPx); + DEFINE_INT(QuoteEntryRejectReason); + DEFINE_CHAR(OrderCapacity); + DEFINE_INT(SideLastQty); + DEFINE_STRING(DerivativeUnitOfMeasure); + DEFINE_NUMINGROUP(NoLegAllocs); + DEFINE_INT(QuoteAckStatus); + DEFINE_STRING(SecondaryFirmTradeID); + DEFINE_INT(UserRequestType); + DEFINE_INT(SecondaryTrdType); + DEFINE_INT(TradeReportTransType); + DEFINE_CHAR(AdvSide); + DEFINE_STRING(DerivativeSecuritySubType); + DEFINE_STRING(TriggerTradingSessionSubID); + DEFINE_STRING(TradeLinkID); + DEFINE_PRICE(LegBenchmarkPrice); + DEFINE_SEQNUM(HopRefID); + DEFINE_STRING(Designation); + DEFINE_STRING(TradeRequestID); + DEFINE_INT(LegFlowScheduleType); + DEFINE_STRING(LegPriceUnitOfMeasure); + DEFINE_CHAR(Nested4PartyIDSource); + DEFINE_INT(CoveredOrUncovered); + DEFINE_INT(AcctIDSource); + DEFINE_PRICE(MktOfferPx); + DEFINE_NUMINGROUP(NoCapacities); + DEFINE_INT(TradeRequestType); + DEFINE_NUMINGROUP(NoNestedPartyIDs); + DEFINE_INT(TradSesStatus); + DEFINE_PERCENTAGE(UnderlyingNotionalPercentageOutstanding); + DEFINE_SEQNUM(ApplLastSeqNum); + DEFINE_INT(PegPriceType); + DEFINE_STRING(StrategyParameterName); + DEFINE_INT(StreamAsgnRejReason); + DEFINE_QTY(MatchIncrement); + DEFINE_INT(Nested3PartyRole); + DEFINE_PRICE(UnderlyingPx); + DEFINE_PRICEOFFSET(PriceImprovement); + DEFINE_STRING(ValuationMethod); + DEFINE_STRING(DerivativeSecurityID); + DEFINE_NUMINGROUP(NoExpiration); + DEFINE_STRING(TargetCompID); + DEFINE_STRING(MDEntryBuyer); + DEFINE_NUMINGROUP(NoDerivativeInstrumentPartySubIDs); + DEFINE_NUMINGROUP(NoMaturityRules); + DEFINE_STRING(QuoteMsgID); + DEFINE_CHAR(TriggerType); + DEFINE_CHAR(PriceProtectionScope); + DEFINE_INT(TotNumAssignmentReports); + DEFINE_STRING(ContraLegRefID); + DEFINE_INT(TradeReportRejectReason); + DEFINE_STRING(TradeReportRefID); + DEFINE_INT(SecurityListType); + DEFINE_STRING(DerivativeSecurityIDSource); + DEFINE_QTY(AssignmentUnit); + DEFINE_STRING(TradeReportID); + DEFINE_INT(NoRpts); + DEFINE_INT(LegBenchmarkPriceType); + DEFINE_LENGTH(EncodedSubjectLen); + DEFINE_XMLDATA(SecurityXML); + DEFINE_STRING(LegReportID); + DEFINE_INT(Nested3PartySubIDType); + DEFINE_STRING(BenchmarkSecurityIDSource); + DEFINE_INT(QuoteRejectReason); + DEFINE_INT(HeartBtInt); + DEFINE_PRICEOFFSET(BidForwardPoints); + DEFINE_BOOLEAN(PossResend); + DEFINE_STRING(Symbol); + DEFINE_DATA(EncodedUnderlyingSecurityDesc); + DEFINE_STRING(MarketReportID); + DEFINE_PRICE(DiscretionPrice); + DEFINE_FLOAT(ContAmtValue); + DEFINE_INT(QuantityType); + DEFINE_INT(ComplexEventPriceBoundaryMethod); + DEFINE_INT(ImpliedMarketIndicator); + DEFINE_STRING(AllocClearingFeeIndicator); + DEFINE_INT(QuoteRequestType); + DEFINE_INT(SecurityRequestResult); + DEFINE_MULTIPLECHARVALUE(OrderRestrictions); + DEFINE_NUMINGROUP(NoSideTrdRegTS); + DEFINE_STRING(Text); + DEFINE_LENGTH(EncodedTextLen); + DEFINE_CHAR(ListExecInstType); + DEFINE_STRING(SecondaryOrderID); + DEFINE_STRING(ExecBroker); + DEFINE_LENGTH(SecurityXMLLen); + DEFINE_SEQNUM(ApplSeqNum); + DEFINE_QTY(MaxTradeVol); + DEFINE_PRICEOFFSET(OfferSwapPoints); + DEFINE_INT(SettlPartySubIDType); + DEFINE_INT(DistribPaymentMethod); + DEFINE_INT(TotalAffectedOrders); + DEFINE_FLOAT(StrikeIncrement); + DEFINE_INT(OrderHandlingInstSource); + DEFINE_BOOLEAN(CopyMsgIndicator); + DEFINE_NUMINGROUP(NoDlvyInst); + DEFINE_STRING(QuoteEntryID); + DEFINE_INT(AffirmStatus); + DEFINE_STRING(MailingInst); + DEFINE_QTY(OfferSize); + DEFINE_STRING(LegSecurityType); + DEFINE_INT(OrigCustOrderCapacity); + DEFINE_INT(AllocMethod); + DEFINE_LOCALMKTDATE(QuantityDate); + DEFINE_FLOAT(TargetStrategyPerformance); + DEFINE_LOCALMKTDATE(CardExpDate); + DEFINE_STRING(ConfirmID); + DEFINE_STRING(StandInstDbName); + DEFINE_QTY(DayOrderQty); + DEFINE_PRICE(HighLimitPrice); + DEFINE_STRING(FirmTradeID); + DEFINE_STRING(SecondaryIndividualAllocID); + DEFINE_STRING(AgreementDesc); + DEFINE_CHAR(MassCancelResponse); + DEFINE_CURRENCY(LegSettlCurrency); + DEFINE_AMT(Commission); + DEFINE_INT(StreamAsgnReqType); + DEFINE_PRICEOFFSET(BidSwapPoints); + DEFINE_NUMINGROUP(NoSettlPartyIDs); + DEFINE_STRING(SymbolSfx); + DEFINE_STRING(BusinessRejectRefID); + DEFINE_PRICE(Price2); + DEFINE_INT(FillLiquidityInd); + DEFINE_STRING(MassActionReportID); + DEFINE_STRING(DerivativeIssuer); + DEFINE_CHAR(ExDestinationIDSource); + DEFINE_STRING(CollRespID); + DEFINE_INT(SecurityListRequestType); + DEFINE_DATA(EncodedLegSecurityDesc); + DEFINE_STRING(UnderlyingSettlementStatus); + DEFINE_STRING(SecurityAltID); + DEFINE_STRING(RegistRefID); + DEFINE_STRING(DerivativePriceQuoteMethod); + DEFINE_INT(OrderDelay); + DEFINE_NUMINGROUP(NoNotAffectedOrders); + DEFINE_STRING(Nested3PartyID); + DEFINE_INT(CollAsgnReason); + DEFINE_UTCTIMEONLY(TotalVolumeTradedTime); + DEFINE_EXCHANGE(SecurityExchange); + DEFINE_INT(SettlPriceType); + DEFINE_QTY(UnitOfMeasureQty); + DEFINE_STRING(UserRequestID); + DEFINE_PRICE(LastParPx); + DEFINE_MONTHYEAR(EndMaturityMonthYear); + DEFINE_CHAR(DealingCapacity); + DEFINE_PRICE(PrevClosePx); + DEFINE_STRING(TradeInputDevice); + DEFINE_QTY(DayCumQty); + DEFINE_STRING(SecuritySettlAgentAcctNum); + DEFINE_CURRENCY(LegCurrency); + DEFINE_DATA(EncryptedNewPassword); + DEFINE_AMT(DerivativeMinPriceIncrementAmount); + DEFINE_NUMINGROUP(NoNested3PartySubIDs); + DEFINE_STRING(RefSubID); + DEFINE_INT(SettlPartyRole); + DEFINE_STRING(CashDistribAgentName); + DEFINE_FLOAT(LegContractMultiplier); + DEFINE_INT(ProgPeriodInterval); + DEFINE_CHAR(LegSettlType); + DEFINE_STRING(OnBehalfOfLocationID); + DEFINE_STRING(OnBehalfOfSubID); + DEFINE_UTCTIMEONLY(ComplexEventEndTime); + DEFINE_INT(RateSourceType); + DEFINE_STRING(DerivativeStateOrProvinceOfIssue); + DEFINE_STRING(TradeLegRefID); + DEFINE_UTCTIMESTAMP(RelSymTransactTime); + DEFINE_NUMINGROUP(NoComplexEventTimes); + DEFINE_QTY(LegCalculatedCcyLastQty); + DEFINE_CHAR(Nested3PartyIDSource); + DEFINE_LOCALMKTDATE(DatedDate); + DEFINE_STRING(SettlInstID); + DEFINE_AMT(OpenInterest); + DEFINE_FLOAT(UnderlyingContractMultiplier); + DEFINE_INT(TotQuoteEntries); + DEFINE_INT(TotNoCxldQuotes); + DEFINE_BOOLEAN(AggregatedBook); + DEFINE_STRING(PaymentRef); + DEFINE_LOCALMKTDATE(PaymentDate); + DEFINE_PERCENTAGE(OrderPercent); + DEFINE_INT(PosQtyStatus); + DEFINE_NUMINGROUP(NoNested4PartySubIDs); + DEFINE_BOOLEAN(PrivateQuote); + DEFINE_STRING(SecondaryTradeID); + DEFINE_STRING(SecuritySettlAgentContactPhone); + DEFINE_LENGTH(EncodedMktSegmDescLen); + DEFINE_CURRENCY(SideCurrency); + DEFINE_QTY(LegQty); + DEFINE_STRING(MsgType); + DEFINE_NUMINGROUP(NoTradingSessions); + DEFINE_STRING(IOIid); + DEFINE_CHAR(MultiLegReportingType); + DEFINE_STRING(IDSource); + DEFINE_STRING(LegStipulationType); + DEFINE_INT(DerivativeContractMultiplierUnit); + DEFINE_STRING(MarketSegmentID); + DEFINE_CHAR(OrdStatus); + DEFINE_LOCALMKTDATE(MaturityDate); + DEFINE_INT(ApplTotalMessageCount); + DEFINE_STRING(InstrumentPartySubID); + DEFINE_INT(CustomerOrFirm); + DEFINE_INT(AdjustmentType); + DEFINE_STRING(UnderlyingInstrumentPartyID); + DEFINE_CHAR(AsOfIndicator); + DEFINE_STRING(QuoteStatusReqID); + DEFINE_CHAR(LegPositionEffect); + DEFINE_PRICE(MDEntryPx); + DEFINE_INT(MassActionScope); + DEFINE_BOOLEAN(ReportedPxDiff); + DEFINE_LOCALMKTDATE(UnderlyingSettlementDate); + DEFINE_NUMINGROUP(NoNestedPartySubIDs); + DEFINE_STRING(AllocReportRefID); + DEFINE_AMT(Concession); + DEFINE_DATA(EncodedSecurityDesc); + DEFINE_STRING(ExecRefID); + DEFINE_CHAR(VenueType); + DEFINE_INT(MassActionType); + DEFINE_INT(PosMaintResult); + DEFINE_STRING(IOIShares); + DEFINE_STRING(BenchmarkSecurityID); + DEFINE_QTY(LegLastQty); + DEFINE_CURRENCY(AllocSettlCurrency); + DEFINE_COUNTRY(LegCountryOfIssue); + DEFINE_DATA(DerivativeSecurityXML); + DEFINE_STRING(StrikeRuleID); + DEFINE_STRING(RefCompID); + DEFINE_FLOAT(SettlCurrOfferFxRate); + DEFINE_PERCENTAGE(OfferYield); + DEFINE_CHAR(TargetPartyIDSource); + DEFINE_LENGTH(EncryptedNewPasswordLen); + DEFINE_NUMINGROUP(NoPositions); + DEFINE_AMT(TotalAccruedInterestAmt); + DEFINE_CHAR(UnderlyingOptAttribute); + DEFINE_STRING(DerivativeInstrAttribValue); + DEFINE_CHAR(InstrumentPartyIDSource); + DEFINE_INT(PegOffsetType); + DEFINE_INT(MassCancelRejectReason); + DEFINE_INT(ResponseTransportType); + DEFINE_STRING(LegSecurityIDSource); + DEFINE_PRICE(BasisFeaturePrice); + DEFINE_LOCALMKTDATE(CouponPaymentDate); + DEFINE_INT(TradSesStatusRejReason); + DEFINE_PERCENTAGE(UnderlyingDetachmentPoint); + DEFINE_STRING(MaturityRuleID); + DEFINE_STRING(UnderlyingRepoCollateralSecurityType); + DEFINE_NUMINGROUP(NoTimeInForceRules); + DEFINE_NUMINGROUP(NoRootPartySubIDs); + DEFINE_QTY(DisplayMinIncr); + DEFINE_INT(TrdRegTimestampType); + DEFINE_INT(LegProduct); + DEFINE_STRING(ApplVerID); + DEFINE_CHAR(HandlInst); + DEFINE_CHAR(ListUpdateAction); + DEFINE_STRING(NestedInstrAttribValue); + DEFINE_STRING(TradingSessionSubID); + DEFINE_STRING(RFQReqID); + DEFINE_STRING(UnderlyingLegSymbolSfx); + DEFINE_INT(LiquidityNumSecurities); + DEFINE_NUMINGROUP(NoMsgTypes); + DEFINE_UTCTIMESTAMP(TradSesStartTime); + DEFINE_CHAR(MDEntryType); + DEFINE_CURRENCY(AgreementCurrency); + DEFINE_INT(PegMoveType); + DEFINE_PRICEOFFSET(PegDifference); + DEFINE_PRICEOFFSET(Spread); + DEFINE_LENGTH(EncodedAllocTextLen); + DEFINE_PERCENTAGE(OutsideIndexPct); + DEFINE_BOOLEAN(DerivFlexProductEligibilityIndicator); + DEFINE_INT(AvgPxIndicator); + DEFINE_NUMINGROUP(NoIOIQualifiers); + DEFINE_CHAR(CancellationRights); + DEFINE_INT(ListSeqNo); + DEFINE_STRING(CardIssNum); + DEFINE_DATA(EncodedMktSegmDesc); + DEFINE_INT(DerivativeEventType); + DEFINE_MONTHYEAR(DerivativeMaturityMonthYear); + DEFINE_STRING(SideTradeReportID); + DEFINE_NUMINGROUP(NoQuoteSets); + DEFINE_INT(Nested4PartySubIDType); + DEFINE_PRICE(FillPx); + DEFINE_INT(StrikeExerciseStyle); + DEFINE_STRING(DeskID); + DEFINE_PERCENTAGE(CrossPercent); + DEFINE_MONTHYEAR(MaturityMonthYear); + DEFINE_PRICE(ComplexEventPrice); + DEFINE_NUMINGROUP(NoNewsRefIDs); + DEFINE_AMT(UnderlyingCapValue); + DEFINE_STRING(CPRegType); + DEFINE_STRING(CashDistribAgentCode); + DEFINE_CHAR(ExecPriceType); + DEFINE_STRING(LegAllocID); + DEFINE_UTCTIMEONLY(MDEntryTime); + DEFINE_INT(TotalNumSecurities); + DEFINE_INT(AllocSettlInstType); + DEFINE_STRING(TargetPartyID); + DEFINE_CURRENCY(DerivativeStrikeCurrency); + DEFINE_INT(StatsType); + DEFINE_INT(ApplExtID); + DEFINE_INT(SettlementCycleNo); + DEFINE_CURRENCY(UnderlyingStrikeCurrency); + DEFINE_INT(TradSesMode); + DEFINE_CHAR(SettlInstSource); + DEFINE_STRING(UnderlyingLegSecurityDesc); + DEFINE_NUMINGROUP(NoDerivativeInstrumentParties); + DEFINE_UTCTIMESTAMP(DerivativeEventTime); + DEFINE_PRICE(TickIncrement); + DEFINE_STRING(UndlyInstrumentPartyID); + DEFINE_NUMINGROUP(NoUndlyInstrumentParties); + DEFINE_INT(ExpType); + DEFINE_STRING(SecondaryClOrdID); + DEFINE_CHAR(SettlInstTransType); + DEFINE_STRING(SideComplianceID); + DEFINE_INT(TradeRequestResult); + DEFINE_STRING(OrigPosReqRefID); + DEFINE_STRING(OrigCrossID); + DEFINE_STRING(TradeInputSource); + DEFINE_QTY(OrderQty2); + DEFINE_BOOLEAN(TestMessageIndicator); + DEFINE_LOCALMKTDATE(DerivativeEventDate); + DEFINE_AMT(SideGrossTradeAmt); + DEFINE_PRICE(PeggedPrice); + DEFINE_INT(ExpirationCycle); + DEFINE_INT(AllocCancReplaceReason); + DEFINE_INT(CxlRejReason); + DEFINE_STRING(BeginString); + DEFINE_STRING(DeliverToSubID); + DEFINE_QTY(LegPriceUnitOfMeasureQty); + DEFINE_NUMINGROUP(NoCollInquiryQualifier); + DEFINE_PRICE(OfferPx); + DEFINE_UTCDATE(TotalVolumeTradedDate); + DEFINE_NUMINGROUP(NoContAmts); + DEFINE_QTY(MinOfferSize); + DEFINE_PRICE(AvgParPx); + DEFINE_FLOAT(LegFactor); + DEFINE_INT(RespondentType); + DEFINE_QTY(DisplayLowQty); + DEFINE_CHAR(DKReason); + DEFINE_PRICE(BenchmarkPrice); + DEFINE_STRING(ListID); + DEFINE_STRING(LegSecurityAltID); + DEFINE_CHAR(PositionEffect); + DEFINE_CHAR(TriggerAction); + DEFINE_STRING(RefOrderID); + DEFINE_INT(ClearingInstruction); + DEFINE_STRING(SettlInstCode); + DEFINE_INT(NumDaysInterest); + DEFINE_MULTIPLECHARVALUE(OpenCloseSettlFlag); + DEFINE_NUMINGROUP(NoComplexEventDates); + DEFINE_LENGTH(DerivativeEncodedIssuerLen); + DEFINE_FLOAT(StrikeMultiplier); + DEFINE_INT(DiscretionMoveType); + DEFINE_INT(ListNoOrds); + DEFINE_STRING(PegSymbol); + DEFINE_PRICE(DayAvgPx); + DEFINE_STRING(Headline); + DEFINE_STRING(NestedPartySubID); + DEFINE_STRING(CardIssNo); + DEFINE_CHAR(OptAttribute); + DEFINE_PRICEOFFSET(LastForwardPoints2); + DEFINE_INT(MDUpdateType); + DEFINE_CHAR(TickDirection); + DEFINE_LOCALMKTDATE(LegRedemptionDate); + DEFINE_PRICE(StrikePrice); + DEFINE_DATA(EncodedIssuer); + DEFINE_STRING(YieldType); + DEFINE_PRICE(TradingReferencePrice); + DEFINE_FLOAT(MDEntrySpotRate); + DEFINE_PERCENTAGE(ParticipationRate); + DEFINE_INT(PegScope); + DEFINE_AMT(InterestAtMaturity); + DEFINE_STRING(LegIndividualAllocID); + DEFINE_AMT(AllowableOneSidednessValue); + DEFINE_STRING(CashSettlAgentName); + DEFINE_QTY(ContraTradeQty); + DEFINE_TZTIMEONLY(LegMaturityTime); + DEFINE_INT(SettlDeliveryType); + DEFINE_INT(SecondaryPriceLimitType); + DEFINE_PRICE(MidPx); + DEFINE_PRICE(AvgPx); + DEFINE_INT(DiscretionLimitType); + DEFINE_UTCTIMESTAMP(StrikeTime); + DEFINE_STRING(SettlSessSubID); + DEFINE_STRING(MailingDtls); + DEFINE_STRING(BidID); + DEFINE_CHAR(ExerciseMethod); + DEFINE_CURRENCY(CommCurrency); + DEFINE_NUMINGROUP(NoSettlOblig); + DEFINE_FLOAT(MaxPriceVariation); + DEFINE_BOOLEAN(WorkingIndicator); + DEFINE_STRING(CashSettlAgentAcctName); + DEFINE_QTY(SellVolume); + DEFINE_INT(SideMultiLegReportingType); + DEFINE_STRING(DerivativeEventText); + DEFINE_STRING(PegSecurityDesc); + DEFINE_STRING(AllocCustomerCapacity); + DEFINE_INT(ConfirmRejReason); + DEFINE_CHAR(BidRequestTransType); + DEFINE_STRING(CashDistribAgentAcctNumber); + DEFINE_MULTIPLECHARVALUE(LegExecInst); + DEFINE_PRICE(CapPrice); + DEFINE_INT(LegRepurchaseTerm); + DEFINE_STRING(RegistAcctType); + DEFINE_INT(MassActionRejectReason); + DEFINE_INT(DerivativePutOrCall); + DEFINE_MONTHYEAR(StartMaturityMonthYear); + DEFINE_INT(CollApplType); + DEFINE_NUMINGROUP(NoUnderlyingAmounts); + DEFINE_INT(ConfirmType); + DEFINE_MONTHYEAR(LegMaturityMonthYear); + DEFINE_STRING(RelatdSym); + DEFINE_STRING(UnderlyingLegSecuritySubType); + DEFINE_NUMINGROUP(NoUnderlyingSecurityAltID); + DEFINE_INT(MDQuoteType); + DEFINE_INT(QtyType); + DEFINE_INT(QuoteRespType); + DEFINE_BOOLEAN(IOINaturalFlag); + DEFINE_STRING(BenchmarkCurvePoint); + DEFINE_CHAR(TradSesUpdateAction); + DEFINE_AMT(UnderlyingCashAmount); + DEFINE_STRING(CollAsgnID); + DEFINE_STRING(ExchangeRule); + DEFINE_DATA(EncodedHeadline); + DEFINE_STRING(RegistID); + DEFINE_STRING(CrossID); + DEFINE_NUMINGROUP(NoExecs); + DEFINE_STRING(DerivativeSecurityGroup); + DEFINE_QTY(SecondaryDisplayQty); + DEFINE_STRING(RefMsgType); + DEFINE_STRING(StandInstDbID); + DEFINE_LENGTH(EncodedLegSecurityDescLen); + DEFINE_PRICE(DerivativeEventPx); + DEFINE_CHAR(SettlObligSource); + DEFINE_INT(TrdSubType); + DEFINE_LENGTH(EncodedUnderlyingIssuerLen); + DEFINE_CHAR(ExecTransType); + DEFINE_SEQNUM(BeginSeqNo); + DEFINE_CHAR(DayBookingInst); + DEFINE_INT(FlowScheduleType); + DEFINE_INT(MDOriginType); + DEFINE_INT(CollInquiryStatus); + DEFINE_NUMINGROUP(NoInstrAttrib); + DEFINE_STRING(RegistEmail); + DEFINE_STRING(StreamAsgnReqID); + DEFINE_INT(CPProgram); + DEFINE_STRING(ConfirmReqID); + DEFINE_STRING(AltMDSourceID); + DEFINE_NUMINGROUP(NoOrders); + DEFINE_STRING(CashDistribAgentAcctName); + DEFINE_CHAR(UndlyInstrumentPartyIDSource); + DEFINE_STRING(UnderlyingSettlMethod); + DEFINE_NUMINGROUP(NoMDEntryTypes); + DEFINE_PRICEOFFSET(MDEntryForwardPoints); + DEFINE_INT(PosReqType); + DEFINE_INT(MassStatusReqType); + DEFINE_LOCALMKTDATE(TradeOriginationDate); + DEFINE_PRICE(SettlPrice); + DEFINE_STRING(SecuritySettlAgentAcctName); + DEFINE_NUMINGROUP(NoDerivativeEvents); + DEFINE_PRICE(UnderlyingEndPrice); + DEFINE_CHAR(SubscriptionRequestType); + DEFINE_INT(TotalNumSecurityTypes); + DEFINE_INT(NewsCategory); + DEFINE_INT(UnderlyingLegPutOrCall); + DEFINE_STRING(URLLink); + DEFINE_NUMINGROUP(NoInstrumentPartySubIDs); + DEFINE_AMT(UnderlyingCurrentValue); + DEFINE_LOCALMKTDATE(InterestAccrualDate); + DEFINE_LOCALMKTDATE(FutSettDate2); + DEFINE_NUMINGROUP(NoClearingInstructions); + DEFINE_CURRENCY(UnderlyingCurrency); + DEFINE_LOCALMKTDATE(LegInterestAccrualDate); + DEFINE_STRING(NewPassword); + DEFINE_LOCALMKTDATE(RedemptionDate); + DEFINE_SEQNUM(RefApplLastSeqNum); + DEFINE_AMT(StartCash); + DEFINE_LENGTH(MaxMessageSize); + DEFINE_PRICEOFFSET(OfferForwardPoints); + DEFINE_STRING(IOIQty); + DEFINE_QTY(LastQty); + DEFINE_INT(ApplResponseError); + DEFINE_STRING(UnderlyingLegSecurityType); + DEFINE_STRING(DerivativePriceUnitOfMeasure); + DEFINE_CHAR(TriggerPriceDirection); + DEFINE_STRING(PositionCurrency); + DEFINE_STRING(MessageEventSource); + DEFINE_STRING(CollInquiryID); + DEFINE_AMT(UnderlyingStartValue); + DEFINE_INT(LastLiquidityInd); + DEFINE_STRING(SecurityID); + DEFINE_NUMINGROUP(NoMDEntries); + DEFINE_INT(StrikePriceDeterminationMethod); + DEFINE_LOCALMKTDATE(EndDate); + DEFINE_AMT(CashOutstanding); + DEFINE_STRING(MDReqID); + DEFINE_STRING(IOIRefID); + DEFINE_INT(TargetStrategy); + DEFINE_STRING(ConfirmRefID); + DEFINE_INT(SellerDays); + DEFINE_BOOLEAN(DueToRelated); + DEFINE_PRICE(SecondaryTradingReferencePrice); + DEFINE_NUMINGROUP(NoMDFeedTypes); + DEFINE_INT(UnderlyingInstrumentPartySubIDType); + DEFINE_UTCTIMESTAMP(TradSesCloseTime); + DEFINE_MONTHYEAR(ContractSettlMonth); + DEFINE_PRICE(DerivativeStrikePrice); + DEFINE_STRING(TriggerSecurityDesc); + DEFINE_STRING(UnderlyingCashType); + DEFINE_NUMINGROUP(NoMiscFees); + DEFINE_INT(CustOrderCapacity); + DEFINE_CURRENCY(LegAllocSettlCurrency); + DEFINE_QTY(UnderlyingAdjustedQuantity); + DEFINE_CHAR(OwnershipType); + DEFINE_QTY(MaxShow); + DEFINE_STRING(LegSecurityID); + DEFINE_STRING(DerivativeSecurityDesc); + DEFINE_STRING(UnitOfMeasure); + DEFINE_QTY(Quantity); + DEFINE_STRING(NewsID); + DEFINE_INT(UndlyInstrumentPartySubIDType); + DEFINE_STRING(SettleOnOpenFlag); + DEFINE_UTCTIMESTAMP(LastUpdateTime); + DEFINE_PERCENTAGE(RepurchaseRate); + DEFINE_INT(RepurchaseTerm); + DEFINE_INT(NestedPartyRole); + DEFINE_STRING(SecondaryExecID); + DEFINE_STRING(Pool); + DEFINE_NUMINGROUP(NoTickRules); + DEFINE_FLOAT(Volatility); + DEFINE_PERCENTAGE(PctAtRisk); + DEFINE_EXCHANGE(UnderlyingSecurityExchange); + DEFINE_PRICE(LegStrikePrice); + DEFINE_CHAR(SettlmntTyp); + DEFINE_INT(TradePublishIndicator); + DEFINE_INT(ApplResponseType); + DEFINE_INT(MDSubBookType); + DEFINE_STRING(Username); + DEFINE_INT(StandInstDbType); + DEFINE_INT(QuoteEntryStatus); + DEFINE_CHAR(TriggerPriceType); + DEFINE_INT(SideTrdSubTyp); + DEFINE_STRING(UnderlyingTradingSessionSubID); + DEFINE_INT(SettlInstReqRejCode); + DEFINE_PRICE(MktBidPx); + DEFINE_STRING(UnderlyingLegSymbol); + DEFINE_FLOAT(StrikeValue); + DEFINE_CHAR(Urgency); + DEFINE_STRING(AllocID); + DEFINE_AMT(UnderlyingDeliveryAmount); + DEFINE_INT(SideQty); + DEFINE_INT(CollAsgnTransType); + DEFINE_PRICEOFFSET(ThresholdAmount); + DEFINE_QTY(DefBidSize); + DEFINE_STRING(LegStateOrProvinceOfIssue); + DEFINE_INT(PaymentMethod); + DEFINE_CHAR(UnderlyingLegOptAttribute); + DEFINE_FLOAT(LegVolatility); + DEFINE_INT(DerivativeInstrAttribType); + DEFINE_QTY(DerivativeUnitOfMeasureQty); + DEFINE_NUMINGROUP(NoStatsIndicators); + DEFINE_CHAR(TriggerPriceTypeScope); + DEFINE_STRING(LastNetworkResponseID); + DEFINE_INT(UnderlyingSettlPriceType); + DEFINE_STRING(ApplReportID); + DEFINE_INT(PegLimitType); + DEFINE_STRING(ExecID); + DEFINE_CHAR(Side); + DEFINE_PRICE(UnderlyingLastPx); + DEFINE_INT(MarketDepth); + DEFINE_PRICEOFFSET(DiscretionOffset); + DEFINE_INT(ContAmtType); + DEFINE_CURRENCY(MiscFeeCurr); + DEFINE_PERCENTAGE(AttachmentPoint); + DEFINE_CHAR(OrderCategory); + DEFINE_STRING(AdvTransType); + DEFINE_PERCENTAGE(WtAverageLiquidity); + DEFINE_UTCTIMESTAMP(QuoteSetValidUntilTime); + DEFINE_NUMINGROUP(NoNested4PartyIDs); + DEFINE_INT(LegPutOrCall); + DEFINE_STRING(UserStatusText); + DEFINE_STRING(Nested2PartySubID); + DEFINE_PERCENTAGE(EFPTrackingError); + DEFINE_INT(SideLiquidityInd); + DEFINE_FLOAT(DerivativeMinPriceIncrement); + DEFINE_BOOLEAN(PublishTrdIndicator); + DEFINE_COUNTRY(InvestorCountryOfResidence); + DEFINE_STRING(SideReasonCd); + DEFINE_FLOAT(MinPriceIncrement); + DEFINE_STRING(SecuritySettlAgentContactName); + DEFINE_INT(SecurityResponseType); + DEFINE_STRING(LegBenchmarkCurvePoint); + DEFINE_STRING(ClearingFirm); + DEFINE_INT(SessionStatus); + DEFINE_STRING(TriggerSecurityID); + DEFINE_INT(TotNoAllocs); + DEFINE_NUMINGROUP(NoAltMDSource); + DEFINE_INT(AllocAccountType); + DEFINE_PRICE(LastPx); + DEFINE_CHAR(AllocTransType); + DEFINE_INT(TotNoQuoteEntries); + DEFINE_QTY(MinBidSize); + DEFINE_STRING(SettlBrkrCode); + DEFINE_STRING(CardHolderName); + DEFINE_INT(ExpirationQtyType); + DEFINE_LENGTH(EncodedUnderlyingSecurityDescLen); + DEFINE_STRING(QuoteReqID); + DEFINE_STRING(PriceUnitOfMeasure); + DEFINE_TZTIMESTAMP(TZTransactTime); + DEFINE_INT(AllocHandlInst); + DEFINE_CHAR(UnderlyingInstrumentPartyIDSource); + DEFINE_FLOAT(CurrencyRatio); + DEFINE_QTY(RefreshQty); + DEFINE_INT(TradeRequestStatus); + DEFINE_BOOLEAN(TrdRepIndicator); + DEFINE_AMT(MiscFeeAmt); + DEFINE_UTCTIMESTAMP(TradSesOpenTime); + DEFINE_CHAR(PreallocMethod); + DEFINE_INT(TaxAdvantageType); + DEFINE_STRING(MessageEncoding); + DEFINE_NUMINGROUP(NoPartySubIDs); + DEFINE_STRING(SettlInstReqID); + DEFINE_STRING(LegRepoCollateralSecurityType); + DEFINE_STRING(AffectedSecondaryOrderID); + DEFINE_TZTIMEONLY(DerivativeMaturityTime); + DEFINE_UTCTIMESTAMP(ExpireTime); + DEFINE_FLOAT(UnderlyingFactor); + DEFINE_UTCTIMESTAMP(OrigOrdModTime); + DEFINE_NUMINGROUP(NoTrdRepIndicators); + DEFINE_LOCALMKTDATE(DerivativeMaturityDate); + DEFINE_STRING(DerivativeCFICode); + DEFINE_INT(Nested2PartySubIDType); + DEFINE_STRING(LegIOIQty); + DEFINE_LOCALMKTDATE(ExpireDate); + DEFINE_NUMINGROUP(NoMatchRules); + DEFINE_SEQNUM(ApplEndSeqNum); + DEFINE_PRICE(EventPx); + DEFINE_STRING(AsgnRptID); + DEFINE_CHAR(TimeInForce); + DEFINE_PRICE(LowPx); + DEFINE_CHAR(IOIQualifier); + DEFINE_STRING(WaveNo); + DEFINE_INT(StrikePriceBoundaryMethod); + DEFINE_LOCALMKTDATE(DerivativeIssueDate); + DEFINE_STRING(MiscFeeType); + DEFINE_STRING(QuoteID); + DEFINE_STRING(DerivativeInstrumentPartyIDSource); + DEFINE_STRING(SettlObligID); + DEFINE_STRING(InstrAttribValue); + DEFINE_AMT(LiquidityValue); + DEFINE_STRING(SecurityIDSource); + DEFINE_INT(NewsRefType); + DEFINE_NUMINGROUP(NoOfLegUnderlyings); + DEFINE_DATA(DerivativeEncodedSecurityDesc); + DEFINE_CHAR(TriggerOrderType); + DEFINE_PRICE(UnderlyingDirtyPrice); + DEFINE_INT(CrossType); + DEFINE_STRING(RepoCollateralSecurityType); + DEFINE_STRING(Password); + DEFINE_MULTIPLEVALUESTRING(OpenCloseSettleFlag); + DEFINE_STRING(Subject); + DEFINE_STRING(RefApplReqID); + DEFINE_AMT(UnderlyingEndValue); + DEFINE_SEQNUM(NewSeqNo); + DEFINE_CHAR(OrigTradeHandlingInstr); + DEFINE_QTY(DisplayHighQty); + DEFINE_INT(MDBookType); + DEFINE_AMT(MarginExcess); + DEFINE_CHAR(BasisPxType); + DEFINE_STRING(DlvyInst); + DEFINE_STRING(ComplianceID); + DEFINE_STRING(EmailThreadID); + DEFINE_CURRENCY(ContAmtCurr); + DEFINE_INT(ComplexEventType); + DEFINE_INT(MassActionResponse); + DEFINE_LOCALMKTDATE(UnderlyingIssueDate); + DEFINE_INT(SecurityRequestType); + DEFINE_AMT(AllocInterestAtMaturity); + DEFINE_INT(ListRejectReason); + DEFINE_STRING(DeskType); + DEFINE_STRING(SecondaryTradeReportID); + DEFINE_STRING(SettlType); + DEFINE_CHAR(OpenClose); + DEFINE_INT(ContractMultiplierUnit); + DEFINE_PRICE(SecondaryLowLimitPrice); + DEFINE_QTY(ExpQty); + DEFINE_STRING(NetworkRequestID); + DEFINE_INT(TrdType); + DEFINE_NUMINGROUP(NoUnderlyings); + DEFINE_EXCHANGE(MDMkt); + DEFINE_EXCHANGE(LastMkt); + DEFINE_STRING(RestructuringType); + DEFINE_NUMINGROUP(NoStrikeRules); + DEFINE_STRING(ListName); + DEFINE_INT(ProgRptReqs); + DEFINE_STRING(TradingSessionID); + DEFINE_INT(ListOrderStatus); + DEFINE_CHAR(RegistStatus); + DEFINE_AMT(PosAmt); + DEFINE_INT(UnderlyingPriceDeterminationMethod); + DEFINE_NUMINGROUP(NoUnderlyingStips); + DEFINE_UTCTIMESTAMP(TradSesPreCloseTime); + DEFINE_CHAR(MassCancelRequestType); + DEFINE_STRING(UnderlyingLegSecurityAltIDSource); + DEFINE_STRING(SettlPartyID); + DEFINE_NUMINGROUP(NoAffectedOrders); + DEFINE_STRING(CashSettlAgentAcctNum); + DEFINE_MONTHYEAR(UnderlyingLegMaturityMonthYear); + DEFINE_NUMINGROUP(NoLotTypeRules); + DEFINE_NUMINGROUP(NoDates); + DEFINE_CHAR(CxlRejResponseTo); + DEFINE_UTCTIMESTAMP(EffectiveTime); + DEFINE_AMT(GrossTradeAmt); + DEFINE_STRING(SecurityListDesc); + DEFINE_STRING(NotAffectedOrderID); + DEFINE_FLOAT(DerivativeStrikeValue); + DEFINE_NUMINGROUP(NoPosAmt); + DEFINE_STRING(LegCreditRating); + DEFINE_PRICEOFFSET(BidForwardPoints2); + DEFINE_LOCALMKTDATE(SettlDate); + DEFINE_STRING(ClientID); + DEFINE_INT(QuoteCancelType); + DEFINE_STRING(StipulationType); + DEFINE_AMT(OutMainCntryUIndex); + DEFINE_CHAR(LegSettlmntTyp); + DEFINE_INT(DerivativeNTPositionLimit); + DEFINE_STRING(PriceQuoteMethod); + DEFINE_PRICE(LowLimitPrice); + DEFINE_STRING(LegUnitOfMeasure); + DEFINE_INT(SessionRejectReason); + DEFINE_INT(DeliveryType); + DEFINE_PRICE(AllocPrice); + DEFINE_NUMINGROUP(NoBidComponents); + DEFINE_CHAR(QuoteQualifier); + DEFINE_MULTIPLECHARVALUE(Scope); + DEFINE_NUMINGROUP(NoSecurityAltID); + DEFINE_STRING(RootPartySubID); + DEFINE_STRING(DeliverToLocationID); + DEFINE_CHAR(DeleteReason); + DEFINE_PRICE(BidSpotRate); + DEFINE_STRING(Nested4PartyID); + DEFINE_BOOLEAN(InViewOfCommon); + DEFINE_PRICE(UnderlyingSettlPrice); + DEFINE_STRING(RegistRejReasonText); + DEFINE_NUMINGROUP(NoSides); + DEFINE_STRING(LegAllocAccount); + DEFINE_STRING(LegSecurityDesc); + DEFINE_STRING(ClOrdLinkID); + DEFINE_UTCTIMESTAMP(OrigSendingTime); + DEFINE_LENGTH(EncodedLegIssuerLen); + DEFINE_STRING(OrderID); + DEFINE_STRING(SecurityType); + DEFINE_CHAR(RoundingDirection); + DEFINE_STRING(FillExecID); + DEFINE_NUMINGROUP(NoEvents); + DEFINE_QTY(RoundLot); + DEFINE_QTY(MDEntrySize); + DEFINE_LENGTH(EncodedIssuerLen); + DEFINE_QTY(DerivativePriceUnitOfMeasureQty); + DEFINE_STRING(TimeUnit); + DEFINE_INT(TotNoOrders); + DEFINE_INT(LegSwapType); + DEFINE_CHAR(IOITransType); + DEFINE_LENGTH(RawDataLength); + DEFINE_STRING(UnderlyingSecurityType); + DEFINE_STRING(UnderlyingLegSecurityAltID); + DEFINE_INT(SecurityReportID); + DEFINE_INT(TotNumReports); + DEFINE_INT(TotalNumPosReports); + DEFINE_STRING(SecurityReqID); + DEFINE_INT(PosReqResult); + DEFINE_PRICEOFFSET(LegOfferForwardPoints); + DEFINE_CURRENCY(AllowableOneSidednessCurr); + DEFINE_STRING(AffectedOrderID); + DEFINE_COUNTRY(UnderlyingCountryOfIssue); + DEFINE_PERCENTAGE(UnderlyingRepurchaseRate); + DEFINE_SEQNUM(LastMsgSeqNumProcessed); + DEFINE_STRING(UnderlyingCFICode); + DEFINE_CHAR(DerivativeOptAttribute); + DEFINE_STRING(PegSecurityID); + DEFINE_STRING(HostCrossID); + DEFINE_CHAR(ExecInstValue); + DEFINE_AMT(DerivativeOptPayAmount); + DEFINE_PERCENTAGE(UnderlyingCouponRate); + DEFINE_CHAR(SettlInstMode); + DEFINE_STRING(SecurityAltIDSource); + DEFINE_BOOLEAN(PreviouslyReported); + DEFINE_STRING(RptSys); + DEFINE_NUMINGROUP(NoNested2PartySubIDs); + DEFINE_STRING(RefAllocID); + DEFINE_QTY(DefOfferSize); + DEFINE_STRING(ProductComplex); + DEFINE_MULTIPLESTRINGVALUE(CustOrderHandlingInst); + DEFINE_INT(MDPriceLevel); + DEFINE_FLOAT(LegOptionRatio); + DEFINE_STRING(SecurityStatus); + DEFINE_STRING(LegRefID); + DEFINE_PERCENTAGE(DividendYield); + DEFINE_INT(DerivativeInstrumentPartySubIDType); + DEFINE_PRICE(EndStrikePxRange); + DEFINE_QTY(DisplayQty); + DEFINE_STRING(LegSecuritySubType); + DEFINE_CHAR(ProcessCode); + DEFINE_MULTIPLECHARVALUE(ExecInst); + DEFINE_UTCTIMESTAMP(TradSesEndTime); + DEFINE_UTCTIMESTAMP(OrigTime); + DEFINE_UTCTIMESTAMP(ExecValuationPoint); + DEFINE_CHAR(ExecType); + DEFINE_INT(Nested4PartyRole); + DEFINE_INT(MultilegModel); + DEFINE_STRING(SecurityGroup); + DEFINE_INT(EventType); + DEFINE_INT(TradeAllocIndicator); + DEFINE_LOCALMKTDATE(YieldCalcDate); + DEFINE_AMT(ValueOfFutures); + DEFINE_CHAR(LegSide); + DEFINE_INT(UserStatus); + DEFINE_AMT(SideValue1); + DEFINE_QTY(CxlQty); + DEFINE_STRING(SecurityResponseID); + DEFINE_STRING(InstrRegistry); + DEFINE_STRING(StreamAsgnRptID); + DEFINE_INT(OrderDelayUnit); + DEFINE_FLOAT(LegCurrencyRatio); + DEFINE_PRICE(EndTickPriceRange); + DEFINE_STRING(CollReqID); + DEFINE_STRING(LegPool); + DEFINE_QTY(ShortQty); + DEFINE_AMT(SideValue2); + DEFINE_BOOLEAN(TradedFlatSwitch); + DEFINE_STRING(MassStatusReqID); + DEFINE_UTCTIMESTAMP(ComplexEventEndDate); + DEFINE_EXCHANGE(MarketID); + DEFINE_LOCALMKTDATE(OrigTradeDate); + DEFINE_BOOLEAN(PreTradeAnonymity); + DEFINE_INT(TrdRptStatus); + DEFINE_PERCENTAGE(DistribPercentage); + DEFINE_INT(QuoteStatus); + DEFINE_STRING(ClearingAccount); + DEFINE_STRING(TrdMatchID); + DEFINE_STRING(OrderInputDevice); + DEFINE_BOOLEAN(SolicitedFlag); + DEFINE_UTCTIMESTAMP(TransactTime); + DEFINE_INT(UnderlyingFlowScheduleType); + DEFINE_STRING(UnderlyingStipValue); + DEFINE_SEQNUM(NextExpectedMsgSeqNum); + DEFINE_CURRENCY(BenchmarkCurveCurrency); + DEFINE_STRING(CFICode); + DEFINE_FLOAT(Factor); + DEFINE_QTY(LastShares); + DEFINE_UTCTIMESTAMP(EventTime); + DEFINE_INT(RootPartySubIDType); + DEFINE_INT(ShortSaleReason); + DEFINE_DATA(XmlData); + DEFINE_NUMINGROUP(NoTargetPartyIDs); + DEFINE_NUMINGROUP(NoRootPartyIDs); + DEFINE_LOCALMKTDATE(EventDate); + DEFINE_INT(PegRoundDirection); + DEFINE_LOCALMKTDATE(LegSettlDate); + DEFINE_INT(ModelType); + DEFINE_BOOLEAN(DefaultVerIndicator); + DEFINE_STRING(FuturesValuationMethod); + DEFINE_CHAR(SettlMethod); + DEFINE_FLOAT(UnderlyingFXRate); + DEFINE_INT(ConfirmStatus); + DEFINE_BOOLEAN(LocateReqd); + DEFINE_STRING(PosMaintRptID); + DEFINE_INT(Adjustment); + DEFINE_INT(StreamAsgnType); + DEFINE_BOOLEAN(LastRptRequested); + DEFINE_STRING(LocaleOfIssue); + DEFINE_STRING(SenderSubID); + DEFINE_PRICE(HighPx); + DEFINE_AMT(AllocSettlCurrAmt); + DEFINE_PERCENTAGE(ComplexEventPriceBoundaryPrecision); + DEFINE_INT(InstrumentPartyRole); + DEFINE_PRICE(YieldRedemptionPrice); + DEFINE_QTY(CumQty); + DEFINE_STRING(OrigClOrdID); + DEFINE_STRING(SettlSessID); + DEFINE_STRING(ParentMktSegmID); + DEFINE_INT(TradeReportType); + DEFINE_INT(AvgPrxPrecision); + DEFINE_NUMINGROUP(NoLegs); + DEFINE_STRING(UnderlyingSymbol); + DEFINE_INT(ExerciseStyle); + DEFINE_CHAR(HaltReasonChar); + DEFINE_EXCHANGE(ExDestination); + DEFINE_CHAR(DerivativeInstrmtAssignmentMethod); + DEFINE_STRING(UnderlyingIDSource); + DEFINE_STRING(AdvId); + DEFINE_UTCTIMESTAMP(TransBkdTime); + DEFINE_PRICE(LegLastPx); + DEFINE_INT(AllocReportType); + DEFINE_STRING(RegistDtls); + DEFINE_INT(AllocType); + DEFINE_INT(QuoteRequestRejectReason); + DEFINE_STRING(UnderlyingUnitOfMeasure); + DEFINE_STRING(IndividualAllocID); + DEFINE_PRICE(LegOfferPx); + DEFINE_INT(LiquidityIndType); + DEFINE_UTCTIMESTAMP(HopSendingTime); + DEFINE_BOOLEAN(ApplResendFlag); + DEFINE_PRICE(DerivativeCapPrice); + DEFINE_AMT(ComplexOptPayoutAmount); + DEFINE_LANGUAGE(LanguageCode); + DEFINE_STRING(SettlObligRefID); + DEFINE_STRING(OrigTradeID); + DEFINE_AMT(UnderlyingCollectAmount); + DEFINE_INT(StatusValue); + DEFINE_PRICE(OfferSpotRate); + DEFINE_STRING(PosType); + DEFINE_LOCALMKTDATE(UnderlyingRedemptionDate); + DEFINE_STRING(SettlDepositoryCode); + DEFINE_INT(StreamAsgnAckType); + DEFINE_PRICE(FloorPrice); + DEFINE_QTY(UnderlyingPriceUnitOfMeasureQty); + DEFINE_FLOAT(FeeMultiplier); + DEFINE_TZTIMEONLY(UnderlyingMaturityTime); + DEFINE_STRING(ApplID); + DEFINE_AMT(LegGrossTradeAmt); + DEFINE_UTCDATEONLY(MDEntryDate); + DEFINE_CURRENCY(LegBenchmarkCurveCurrency); + DEFINE_AMT(OptPayoutAmount); + DEFINE_INT(MiscFeeBasis); + DEFINE_UTCTIMESTAMP(ValidUntilTime); + DEFINE_CHAR(OrdType); + DEFINE_STRING(AdvRefID); + DEFINE_STRING(HopCompID); + DEFINE_STRING(PosMaintRptRefID); + DEFINE_STRING(LegStipulationValue); + DEFINE_STRING(MatchType); + DEFINE_INT(OptPayoutType); + DEFINE_STRING(UnderlyingPriceUnitOfMeasure); + DEFINE_CHAR(MarketUpdateAction); + DEFINE_INT(CollAsgnRejectReason); + DEFINE_PRICE(PeggedRefPrice); + DEFINE_INT(IndividualAllocType); + DEFINE_AMT(EndCash); + DEFINE_STRING(EventText); + DEFINE_LOCALMKTDATE(ExDate); + DEFINE_CHAR(NestedPartyIDSource); + DEFINE_INT(GTBookingInst); + DEFINE_STRING(DerivativeValuationMethod); + DEFINE_INT(NumberOfOrders); + DEFINE_INT(TrdRepPartyRole); + DEFINE_PRICE(TriggerPrice); + DEFINE_INT(MDReportID); + DEFINE_STRING(SecondaryAllocID); + DEFINE_QTY(LeavesQty); + DEFINE_LOCALMKTDATE(CardStartDate); + DEFINE_INT(LegCoveredOrUncovered); + DEFINE_INT(PutOrCall); + DEFINE_STRING(MatchAlgorithm); + DEFINE_QTY(CalculatedCcyLastQty); + DEFINE_CHAR(FundRenewWaiv); + DEFINE_STRING(SecuritySettlAgentName); + DEFINE_STRING(BidDescriptor); + DEFINE_STRING(MDStreamID); + DEFINE_NUMINGROUP(NoAsgnReqs); + DEFINE_PERCENTAGE(NotionalPercentageOutstanding); + DEFINE_NUMINGROUP(NoSettlInst); + DEFINE_STRING(SettlInstMsgID); + DEFINE_BOOLEAN(ForexReq); + DEFINE_STRING(TradSesReqID); + DEFINE_PRICE(UnderlyingLegStrikePrice); + DEFINE_INT(TickRuleType); + DEFINE_CHAR(InstrmtAssignmentMethod); + DEFINE_INT(DiscretionOffsetType); + DEFINE_INT(ConfirmTransType); + DEFINE_AMT(TotalTakedown); + DEFINE_STRING(ResponseDestination); + DEFINE_INT(MDSecSizeType); + DEFINE_INT(InstrumentPartySubIDType); + DEFINE_STRING(LegTimeUnit); + DEFINE_STRING(TransferReason); + DEFINE_INT(ApplQueueMax); + DEFINE_FLOAT(DiscretionOffsetValue); + DEFINE_STRING(BookingRefID); + DEFINE_PRICE(LegBidPx); + DEFINE_INT(TradSesEvent); + DEFINE_INT(DerivativeProduct); + DEFINE_INT(RootPartyRole); + DEFINE_CHAR(DlvyInstType); + DEFINE_NUMINGROUP(NoLinesOfText); + DEFINE_STRING(PosReqID); + DEFINE_STRING(LegSecurityAltIDSource); + DEFINE_DATA(EncodedSubject); + DEFINE_STRING(ContraBroker); + DEFINE_MULTIPLESTRINGVALUE(TradeCondition); + DEFINE_STRING(PartyID); + DEFINE_STRING(MDEntryID); + DEFINE_STRING(UnderlyingLegSecurityExchange); + DEFINE_INT(PriceLimitType); + DEFINE_STRING(TriggerSecurityIDSource); + DEFINE_NUMINGROUP(NoUndlyInstrumentPartySubIDs); + DEFINE_STRING(ClientBidID); + DEFINE_PRICEOFFSET(NetChgPrevDay); + DEFINE_STRING(DefaultApplVerID); + DEFINE_STRING(IOIID); + DEFINE_PRICEOFFSET(SpreadToBenchmark); + DEFINE_CHAR(CommType); + DEFINE_INT(RegistRejReasonCode); + DEFINE_UTCTIMESTAMP(SideTimeInForce); + DEFINE_UTCTIMESTAMP(TrdRegTimestamp); + DEFINE_MULTIPLECHARVALUE(FinancialStatus); + DEFINE_NUMINGROUP(NoTrades); + DEFINE_BOOLEAN(LastFragment); + DEFINE_STRING(PartySubID); + DEFINE_QTY(AllocQty); + DEFINE_BOOLEAN(NotifyBrokerOfCredit); + DEFINE_INT(SideTrdRegTimestampType); + DEFINE_LOCALMKTDATE(AgreementDate); + DEFINE_INT(PartySubIDType); + DEFINE_AMT(TotalNetValue); + DEFINE_INT(AllocNoOrdersType); + DEFINE_STRING(AllocLinkID); + DEFINE_FLOAT(RoundingModulus); + DEFINE_STRING(OnBehalfOfCompID); + DEFINE_STRING(UnderlyingSecurityID); + DEFINE_STRING(SettlObligMsgID); + DEFINE_INT(PositionLimit); + DEFINE_AMT(SharedCommission); + DEFINE_PERCENTAGE(AllowableOneSidednessPct); + DEFINE_STRING(AllocText); + DEFINE_SEQNUM(EndSeqNo); + DEFINE_NUMINGROUP(NoPartyIDs); + DEFINE_NUMINGROUP(NoContraBrokers); + DEFINE_INT(AllocLinkType); + DEFINE_PERCENTAGE(UnderlyingAllocationPercent); + DEFINE_AMT(AllocAccruedInterestAmt); + DEFINE_DATA(EncodedSecurityListDesc); + DEFINE_LENGTH(EncryptedPasswordLen); + DEFINE_PERCENTAGE(LegDividendYield); + DEFINE_BOOLEAN(RefreshIndicator); + DEFINE_CURRENCY(SideSettlCurrency); + DEFINE_INT(UnderlyingSettlementType); + DEFINE_QTY(OrderCapacityQty); + DEFINE_QTY(LongQty); + DEFINE_CHAR(DerivativeSettlMethod); + DEFINE_STRING(TriggerTradingSessionID); + DEFINE_CHAR(DisplayMethod); + DEFINE_INT(RptSeq); + DEFINE_STRING(MDEntryOriginator); + DEFINE_STRING(LegInstrRegistry); + DEFINE_QTY(FillQty); + DEFINE_STRING(PegSecurityIDSource); + DEFINE_TZTIMEONLY(MaturityTime); + DEFINE_STRING(MDFeedType); + DEFINE_INT(CollStatus); + DEFINE_STRING(UnderlyingSecuritySubType); + DEFINE_STRING(CstmApplVerID); + DEFINE_INT(DefaultApplExtID); + DEFINE_NUMINGROUP(NoDerivativeSecurityAltID); + DEFINE_INT(SideValueInd); + DEFINE_DATA(EncodedText); + DEFINE_STRING(Account); + DEFINE_PRICE(TriggerNewPrice); + DEFINE_INT(UndlyInstrumentPartyRole); + DEFINE_CHAR(MsgDirection); + DEFINE_LOCALMKTDATE(LegMaturityDate); + DEFINE_INT(UnderlyingContractMultiplierUnit); + DEFINE_STRING(InputSource); + DEFINE_CHAR(MDUpdateAction); + DEFINE_CHAR(MatchStatus); + DEFINE_INT(RateSource); + DEFINE_CHAR(AllocPositionEffect); + DEFINE_CHAR(PartyIDSource); + DEFINE_DATA(EncodedUnderlyingIssuer); + DEFINE_DATA(EncryptedPassword); + DEFINE_QTY(TriggerNewQty); + DEFINE_PRICEOFFSET(LegLastForwardPoints); + DEFINE_INT(TotNumTradeReports); + DEFINE_STRING(RefApplVerID); + DEFINE_PRICE(LastSpotRate); + DEFINE_PRICE(Price); + DEFINE_STRING(UnderlyingSecurityIDSource); + DEFINE_INT(TotNoSecurityTypes); + DEFINE_PRICE(ReportedPx); + DEFINE_STRING(LegSymbol); + DEFINE_STRING(LegIssuer); + DEFINE_STRING(RegistDetls); + DEFINE_STRING(UnderlyingLegSecurityID); + DEFINE_QTY(MinLotSize); + DEFINE_INT(NumTickets); + DEFINE_STRING(LegLocaleOfIssue); + DEFINE_BOOLEAN(ExchangeForPhysical); + DEFINE_INT(SecurityTradingEvent); + DEFINE_AMT(MinPriceIncrementAmount); + DEFINE_AMT(UnderlyingPayAmount); + DEFINE_STRING(SettlPartySubID); + DEFINE_AMT(AllocNetMoney); + DEFINE_DAYOFMONTH(UnderlyingMaturityDay); + DEFINE_STRING(NetworkResponseID); + DEFINE_INT(NumBidders); + DEFINE_INT(AllocAcctIDSource); + DEFINE_PRICE(AllocAvgPx); + DEFINE_STRING(SecuritySettlAgentCode); + DEFINE_NUMINGROUP(NoDistribInsts); + DEFINE_BOOLEAN(CustDirectedOrder); + DEFINE_AMT(FairValue); + DEFINE_NUMINGROUP(NoStrikes); + DEFINE_LENGTH(EncodedSecurityListDescLen); + DEFINE_INT(LegExerciseStyle); + DEFINE_STRING(DerivativeSymbolSfx); + DEFINE_INT(NestedInstrAttribType); + DEFINE_STRING(ContraTrader); + DEFINE_QTY(MDSecSize); + DEFINE_NUMINGROUP(NoOfSecSizes); + DEFINE_INT(CollAction); + DEFINE_QTY(UnderlyingLastQty); + DEFINE_BOOLEAN(PossDupFlag); + DEFINE_INT(ListStatusType); + DEFINE_STRING(SideFillStationCd); + DEFINE_STRING(StatusText); + DEFINE_LOCALMKTDATE(BasisFeatureDate); + DEFINE_LENGTH(XmlDataLen); + DEFINE_LOCALMKTDATE(UnderlyingMaturityDate); + DEFINE_BOOLEAN(GapFillFlag); + DEFINE_INT(RefApplExtID); + DEFINE_STRING(RefApplID); + DEFINE_NUMINGROUP(NoTradingSessionRules); + DEFINE_PRICEOFFSET(SwapPoints); + DEFINE_STRING(TargetStrategyParameters); + DEFINE_PRICEOFFSET(LastForwardPoints); + DEFINE_LOCALMKTDATE(YieldRedemptionDate); + DEFINE_NUMINGROUP(NoSettlDetails); + DEFINE_CHAR(TradeHandlingInstr); + DEFINE_STRING(CashSettlAgentCode); + DEFINE_INT(LegPriceType); + DEFINE_LENGTH(EncodedListExecInstLen); + DEFINE_INT(TradSesMethod); + DEFINE_STRING(AgreementID); + DEFINE_CURRENCY(CashDistribCurr); + DEFINE_PRICE(BidPx); + DEFINE_CHAR(TradeType); + DEFINE_LENGTH(EncodedSecurityDescLen); + DEFINE_INT(ComplexEventCondition); + DEFINE_INT(EncryptedPasswordMethod); + DEFINE_STRING(DerivativeSecurityAltID); + DEFINE_INT(TotNoAccQuotes); + DEFINE_STRING(TimeBracket); + DEFINE_NUMINGROUP(NoAllocs); + DEFINE_INT(UnderlyingProduct); + DEFINE_STRING(BenchmarkCurveName); + DEFINE_STRING(UnderlyingSymbolSfx); + DEFINE_PERCENTAGE(StrikePriceBoundaryPrecision); + DEFINE_STRING(QuoteSetID); + DEFINE_CHAR(CashMargin); + DEFINE_CHAR(SettlObligTransType); + DEFINE_INT(LegNumber); + DEFINE_MULTIPLESTRINGVALUE(DeskOrderHandlingInst); + DEFINE_CHAR(SettlPartyIDSource); + DEFINE_PRICE(PriorSettlPrice); + DEFINE_STRING(NotAffOrigClOrdID); + DEFINE_STRING(TradingSessionDesc); + DEFINE_PRICE(DerivativeFloorPrice); + DEFINE_STRING(DerivativeSymbol); + DEFINE_FLOAT(RiskFreeRate); + DEFINE_INT(PosTransType); + DEFINE_SEQNUM(MsgSeqNum); + DEFINE_DATA(Signature); + DEFINE_STRING(Seniority); + DEFINE_NUMINGROUP(NoRateSources); + DEFINE_QTY(PriceUnitOfMeasureQty); + DEFINE_STRING(CollAsgnRefID); + DEFINE_QTY(BuyVolume); + DEFINE_CHAR(SettlCurrFxRateCalc); + DEFINE_INT(PosMaintStatus); + DEFINE_BOOLEAN(PriorSpreadIndicator); + DEFINE_CHAR(Benchmark); + DEFINE_INT(MaturityMonthYearFormat); + DEFINE_STRING(UnderlyingTradingSessionID); + DEFINE_INT(TotNoRelatedSym); + DEFINE_STRING(StateOrProvinceOfIssue); + DEFINE_STRING(DerivativeInstrRegistry); + DEFINE_PRICEOFFSET(LegBidForwardPoints); + DEFINE_BOOLEAN(ManualOrderIndicator); + DEFINE_AMT(NetMoney); + DEFINE_BOOLEAN(LegalConfirm); + DEFINE_COUNTRY(CountryOfIssue); + DEFINE_INT(ApplReportType); + DEFINE_STRING(RootPartyID); + DEFINE_QTY(UnderlyingQty); + DEFINE_INT(ApplQueueDepth); + DEFINE_PRICE(StopPx); + DEFINE_BOOLEAN(ReportToExch); + DEFINE_BOOLEAN(ContraryInstructionIndicator); + DEFINE_LENGTH(EncodedListStatusTextLen); + DEFINE_STRING(DerivativeSecurityXMLSchema); + DEFINE_NUMINGROUP(NoRelatedSym); + DEFINE_INT(AllocRejCode); + DEFINE_STRING(UnderlyingSecurityAltID); + DEFINE_INT(RefOrdIDReason); + DEFINE_STRING(DerivativeInstrumentPartyID); + DEFINE_STRING(SecurityXMLSchema); + DEFINE_CHAR(RefOrderIDSource); + DEFINE_INT(NTPositionLimit); + DEFINE_AMT(EndAccruedInterestAmt); + DEFINE_PERCENTAGE(AccruedInterestRate); + DEFINE_CHAR(LastCapacity); + DEFINE_STRING(UnderlyingInstrumentPartySubID); + DEFINE_NUMINGROUP(NoFills); + DEFINE_NUMINGROUP(NoOrdTypeRules); + DEFINE_STRING(InstrumentPartyID); + DEFINE_PERCENTAGE(MarginRatio); + DEFINE_INT(RefTagID); + DEFINE_NUMINGROUP(NoRoutingIDs); + DEFINE_PERCENTAGE(CouponRate); + DEFINE_NUMINGROUP(NoApplIDs); + DEFINE_MONTHYEAR(DerivativeContractSettlMonth); + DEFINE_INT(InstrAttribType); + DEFINE_INT(Product); + DEFINE_QTY(AllocShares); + DEFINE_NUMINGROUP(NoQuoteEntries); + DEFINE_STRING(DefaultCstmApplVerID); + DEFINE_INT(DerivativeListMethod); + DEFINE_LENGTH(DerivativeSecurityXMLLen); + DEFINE_LOCALMKTDATE(LegDatedDate); + DEFINE_CHAR(Nested2PartyIDSource); + DEFINE_STRING(UnderlyingInstrRegistry); + DEFINE_LOCALMKTDATE(IssueDate); + DEFINE_INT(SecurityTradingStatus); + DEFINE_CHAR(LegOptAttribute); + DEFINE_QTY(MaxFloor); + DEFINE_STRING(DerivativeLocaleOfIssue); + DEFINE_AMT(OptPayAmount); + DEFINE_STRING(UnderlyingStipType); + DEFINE_CHAR(Rule80A); + DEFINE_INT(TotNoStrikes); + DEFINE_MULTIPLECHARVALUE(CorporateAction); + DEFINE_INT(TerminationType); + DEFINE_PERCENTAGE(LegCouponRate); + DEFINE_INT(PosMaintAction); + DEFINE_NUMINGROUP(NoSecurityTypes); + DEFINE_INT(ComplexEventPriceTimeType); + DEFINE_PRICEOFFSET(LastSwapPoints); + DEFINE_CHAR(UnderlyingFXRateCalc); + DEFINE_STRING(ListStatusText); + DEFINE_BOOLEAN(OddLot); + DEFINE_CHAR(BookingUnit); + DEFINE_STRING(LegAllocAcctIDSource); + DEFINE_UTCTIMESTAMP(OnBehalfOfSendingTime); + DEFINE_INT(AllocStatus); + DEFINE_STRING(ReferencePage); + DEFINE_CHAR(DerivativeExerciseStyle); + DEFINE_SEQNUM(ApplBegSeqNum); + DEFINE_STRING(CollRptID); + DEFINE_INT(IncTaxInd); + DEFINE_NUMINGROUP(NoBidDescriptors); + DEFINE_LOCALMKTDATE(LegCouponPaymentDate); + DEFINE_NUMINGROUP(NoUnderlyingLegSecurityAltID); + DEFINE_BOOLEAN(ReversalIndicator); + DEFINE_CHECKSUM(CheckSum); + DEFINE_STRING(TargetSubID); + DEFINE_INT(PosReqStatus); + DEFINE_INT(PriorityIndicator); + DEFINE_STRING(UnderlyingLegCFICode); + DEFINE_STRING(DerivativeTimeUnit); + DEFINE_NUMINGROUP(NoNested3PartyIDs); + DEFINE_PERCENTAGE(LiquidityPctHigh); + DEFINE_CHAR(MoneyLaunderingStatus); + DEFINE_STRING(Nested4PartySubID); + DEFINE_EXCHANGE(DerivativeSecurityExchange); + DEFINE_CHAR(LotType); + DEFINE_STRING(ContIntRptID); + DEFINE_MULTIPLESTRINGVALUE(QuoteCondition); + DEFINE_UTCTIMEONLY(ComplexEventStartTime); + DEFINE_NUMINGROUP(NoComplexEvents); + DEFINE_FLOAT(DerivativeContractMultiplier); + DEFINE_STRING(DerivativeSecurityStatus); + DEFINE_STRING(DerivativeProductComplex); + DEFINE_STRING(TriggerSymbol); + DEFINE_STRING(UnderlyingLocaleOfIssue); + DEFINE_UTCTIMESTAMP(SendingTime); + DEFINE_UTCTIMESTAMP(ComplexEventStartDate); + DEFINE_STRING(UnderlyingRestructuringType); + DEFINE_QTY(LegUnitOfMeasureQty); + DEFINE_NUMINGROUP(NoTrdRegTimestamps); + DEFINE_LOCALMKTDATE(SendingDate); + DEFINE_FLOAT(TimeToExpiration); + DEFINE_QTY(LegAllocQty); + DEFINE_STRING(SettlLocation); + DEFINE_INT(UnderlyingExerciseStyle); + DEFINE_STRING(CashSettlAgentContactName); + DEFINE_PERCENTAGE(LegRepurchaseRate); + DEFINE_STRING(ApplResponseID); + DEFINE_NUMINGROUP(NoDerivativeInstrAttrib); + DEFINE_FLOAT(DerivativeStrikeMultiplier); + DEFINE_CURRENCY(LegStrikeCurrency); + DEFINE_STRING(SecurityStatusReqID); + DEFINE_LENGTH(SecureDataLen); + DEFINE_INT(DiscretionScope); + DEFINE_INT(OwnerType); + DEFINE_QTY(Shares); + DEFINE_PERCENTAGE(Yield); + DEFINE_STRING(QuoteRespID); + DEFINE_STRING(Nested3PartySubID); + DEFINE_INT(ApplQueueResolution); + DEFINE_STRING(TrdRegTimestampOrigin); + DEFINE_INT(Nested2PartyRole); + DEFINE_STRING(Nested2PartyID); + DEFINE_QTY(BidSize); + DEFINE_STRING(LegSymbolSfx); + DEFINE_INT(QuoteResponseLevel); + DEFINE_LENGTH(BodyLength); + DEFINE_STRING(ListExecInst); + DEFINE_CHAR(ExecAckStatus); + DEFINE_LOCALMKTDATE(SettlDate2); + DEFINE_INT(NetGrossInd); + DEFINE_STRING(UnderlyingSecurityAltIDSource); + DEFINE_STRING(TestReqID); + DEFINE_CHAR(CxlType); + DEFINE_STRING(UnderlyingCreditRating); + DEFINE_INT(AvgPxPrecision); + DEFINE_INT(BenchmarkPriceType); + DEFINE_INT(DeskTypeSource); + DEFINE_INT(DiscretionRoundDirection); + DEFINE_STRING(OrigSecondaryTradeID); + DEFINE_STRING(ReceivedDeptID); + DEFINE_AMT(MaturityNetMoney); + DEFINE_INT(BidDescriptorType); + DEFINE_STRING(DerivativeInstrumentPartySubID); + DEFINE_INT(NetworkStatusResponseType); + DEFINE_LOCALMKTDATE(DateOfBirth); + DEFINE_PRICE(StartStrikePxRange); + DEFINE_STRING(UndlyInstrumentPartySubID); + DEFINE_STRING(SecondaryTradeReportRefID); + DEFINE_STRING(UnderlyingCPRegType); + DEFINE_LENGTH(SignatureLength); + DEFINE_QTY(OrderQty); + DEFINE_PERCENTAGE(OriginalNotionalPercentageOutstanding); + DEFINE_STRING(UnderlyingTimeUnit); + DEFINE_LENGTH(EncodedHeadlineLen); + DEFINE_NUMINGROUP(NoRegistDtls); + DEFINE_STRING(StrategyParameterValue); + DEFINE_NUMINGROUP(NoInstrumentParties); + DEFINE_INT(QuoteType); + DEFINE_NUMINGROUP(NoStrategyParameters); + DEFINE_INT(IndividualAllocRejCode); + DEFINE_CHAR(DiscretionInst); + DEFINE_INT(TargetPartyRole); + DEFINE_INT(CrossPrioritization); + DEFINE_DATA(EncodedListStatusText); + DEFINE_CHAR(IOIOthSvc); + DEFINE_LOCALMKTDATE(LegIssueDate); + DEFINE_CHAR(MDReqRejReason); + DEFINE_INT(ApplReqType); + DEFINE_COUNTRY(Country); + DEFINE_STRING(UnderlyingLegSecurityIDSource); + DEFINE_BOOLEAN(FlexProductEligibilityIndicator); + DEFINE_BOOLEAN(AggressorIndicator); + DEFINE_FLOAT(ExecPriceAdjustment); + DEFINE_INT(BusinessRejectReason); + DEFINE_LOCALMKTDATE(TradeDate); + DEFINE_INT(UnderlyingPutOrCall); + DEFINE_INT(UnderlyingInstrumentPartyRole); + DEFINE_INT(DerivativePositionLimit); + DEFINE_STRING(TierCode); + DEFINE_INT(BookingType); + DEFINE_STRING(StipulationValue); + DEFINE_FLOAT(SettlCurrBidFxRate); +} +#endif //FIX_FIELDS_H diff --git a/linux/include/quickfix/FixValues.h b/linux/include/quickfix/FixValues.h new file mode 100644 index 000000000..5e5d7f4c9 --- /dev/null +++ b/linux/include/quickfix/FixValues.h @@ -0,0 +1,3281 @@ +#ifndef FIX_VALUES_H +#define FIX_VALUES_H + +#include + +namespace FIX +{ + const int DeliveryForm_BOOKENTRY = 1; + const int DeliveryForm_BEARER = 2; + const int DeliveryForm_BOOK_ENTRY = 1; + const int ExecRestatementReason_WAREHOUSE_RECAP = 10; + const int ExecRestatementReason_CANCEL_ON_SYSTEM_FAILURE = 7; + const int ExecRestatementReason_PARTIAL_DECLINE_OF_ORDERQTY = 5; + const int ExecRestatementReason_GT_CORPORATE_ACTION = 0; + const int ExecRestatementReason_PEG_REFRESH = 11; + const int ExecRestatementReason_CANCELED_NOT_BEST = 9; + const int ExecRestatementReason_CANCEL_ON_TRADING_HALT = 6; + const int ExecRestatementReason_VERBAL_CHANGE = 2; + const int ExecRestatementReason_OTHER = 99; + const int ExecRestatementReason_BROKER_OPTION = 4; + const int ExecRestatementReason_REPRICING_OF_ORDER = 3; + const int ExecRestatementReason_MARKET = 8; + const int ExecRestatementReason_GT_RENEWAL = 1; + const int AllocIntermedReqType_PENDING_RELEASE = 2; + const int AllocIntermedReqType_PENDING_REVERSAL = 3; + const int AllocIntermedReqType_ACCOUNT_LEVEL_REJECT = 6; + const int AllocIntermedReqType_BLOCK_LEVEL_REJECT = 5; + const int AllocIntermedReqType_PENDING_ACCEPT = 1; + const int AllocIntermedReqType_ACCEPT = 4; + const int SecurityListTypeSource_GICS = 3; + const int SecurityListTypeSource_NAICS = 2; + const int SecurityListTypeSource_ICB = 1; + const int CollInquiryQualifier_OUTSTANDING_TRADES = 7; + const int CollInquiryQualifier_PARTIALLY_ASSIGNED = 5; + const int CollInquiryQualifier_TRADE_DATE = 0; + const int CollInquiryQualifier_FULLY_ASSIGNED = 6; + const int CollInquiryQualifier_SUBSTITUTION_ELIGIBLE = 3; + const int CollInquiryQualifier_NOT_ASSIGNED = 4; + const int CollInquiryQualifier_COLLATERAL_INSTRUMENT = 2; + const int CollInquiryQualifier_TRADEDATE = 0; + const int CollInquiryQualifier_COLLATERALINSTRUMENT = 2; + const int CollInquiryQualifier_GC_INSTRUMENT = 1; + const int ContingencyType_ONE_UPDATES_THE_OTHER_4 = 4; + const int ContingencyType_ONE_TRIGGERS_THE_OTHER = 2; + const int ContingencyType_ONE_CANCELS_THE_OTHER = 1; + const int ContingencyType_ONE_UPDATES_THE_OTHER_3 = 3; + const char EmailType_NEW = '0'; + const char EmailType_REPLY = '1'; + const char EmailType_ADMIN_REPLY = '2'; + const char IOIQltyInd_MEDIUM = 'M'; + const char IOIQltyInd_HIGH = 'H'; + const char IOIQltyInd_LOW = 'L'; + const int MultiLegRptTypeReq_REPORT_BY_INSTRUMENT_LEGS_BELONGING_TO_THE_MULTILEG_SECURITY_ONLY = 2; + const int MultiLegRptTypeReq_REPORT_BY_MULTILEG_SECURITY_AND_BY_INSTRUMENT_LEGS_BELONGING_TO_THE_MULTILEG_SECURITY = 1; + const int MultiLegRptTypeReq_REPORT_BY_MULITLEG_SECURITY_ONLY = 0; + const int AccountType_HOUSE_TRADER = 3; + const int AccountType_ACCOUNT_IS_CARRIED_ON_CUSTOMER_SIDE_OF_THE_BOOKS = 1; + const int AccountType_ACCOUNT_IS_CARRIED_ON_NON_CUSTOMER_SIDE_OF_BOOKS = 2; + const int AccountType_FLOOR_TRADER = 4; + const int AccountType_JOINT_BACK_OFFICE_ACCOUNT = 8; + const int AccountType_ACCOUNT_IS_CARRIED_ON_NON_CUSTOMER_SIDE_OF_BOOKS_AND_IS_CROSS_MARGINED = 6; + const int AccountType_ACCOUNT_IS_CARRIED_ON_CUSTOMER_SIDE_OF_BOOKS = 1; + const int AccountType_JOINT_BACKOFFICE_ACCOUNT = 8; + const int AccountType_ACCOUNT_IS_HOUSE_TRADER_AND_IS_CROSS_MARGINED = 7; + const int HaltReasonInt_ADDITIONAL_INFORMATION = 3; + const int HaltReasonInt_NEWS_PENDING = 4; + const int HaltReasonInt_ORDER_INFLUX = 1; + const int HaltReasonInt_NEWS_DISSEMINATION = 0; + const int HaltReasonInt_EQUIPMENT_CHANGEOVER = 5; + const int HaltReasonInt_ORDER_IMBALANCE = 2; + const char ClearingFeeIndicator_106H_AND_106J_FIRMS[] = "H"; + const char ClearingFeeIndicator_1ST_YEAR_DELEGATE_TRADING_FOR_HIS_OWN_ACCOUNT[] = "1"; + const char ClearingFeeIndicator_GIM_IDEM_AND_COM_MEMBERSHIP_INTEREST_HOLDERS[] = "I"; + const char ClearingFeeIndicator_2ND_YEAR_DELEGATE_TRADING_FOR_HIS_OWN_ACCOUNT[] = "2"; + const char ClearingFeeIndicator_4TH_YEAR_DELEGATE_TRADING_FOR_HIS_OWN_ACCOUNT[] = "4"; + const char ClearingFeeIndicator_3RD_YEAR_DELEGATE_TRADING_FOR_OWN_ACCOUNT[] = "3"; + const char ClearingFeeIndicator_LESSEE_106F_EMPLOYEES[] = "L"; + const char ClearingFeeIndicator_NON_MEMBER_AND_CUSTOMER[] = "C"; + const char ClearingFeeIndicator_5TH_YEAR_DELEGATE_TRADING_FOR_HIS_OWN_ACCOUNT[] = "5"; + const char ClearingFeeIndicator_FULL_AND_ASSOCIATE_MEMBER_TRADING_FOR_OWN_ACCOUNT_AND_AS_FLOOR_BROKERS[] = "F"; + const char ClearingFeeIndicator_CBOE_MEMBER[] = "B"; + const char ClearingFeeIndicator_1ST_YEAR_DELEGATE_TRADING_FOR_OWN_ACCOUNT[] = "1"; + const char ClearingFeeIndicator_5TH_YEAR_DELEGATE_TRADING_FOR_OWN_ACCOUNT[] = "5"; + const char ClearingFeeIndicator_LESSEE_AND_106F_EMPLOYEES[] = "L"; + const char ClearingFeeIndicator_FULL_AND_ASSOCIATE_MEMBER_TRADING_FOR_OWN_ACCOUNT_AND_AS_FLOOR[] = "F"; + const char ClearingFeeIndicator_3RD_YEAR_DELEGATE_TRADING_FOR_HIS_OWN_ACCOUNT[] = "3"; + const char ClearingFeeIndicator_2ND_YEAR_DELEGATE_TRADING_FOR_OWN_ACCOUNT[] = "2"; + const char ClearingFeeIndicator_EQUITY_MEMBER_AND_CLEARING_MEMBER[] = "E"; + const char ClearingFeeIndicator_ALL_OTHER_OWNERSHIP_TYPES[] = "M"; + const char ClearingFeeIndicator_6TH_YEAR_AND_BEYOND_DELEGATE_TRADING_FOR_HIS_OWN_ACCOUNT[] = "9"; + const char ClearingFeeIndicator_4TH_YEAR_DELEGATE_TRADING_FOR_OWN_ACCOUNT[] = "4"; + const char ClearingFeeIndicator_6TH_YEAR_DELEGATE_TRADING_FOR_OWN_ACCOUNT[] = "9"; + const int BidType_DISCLOSED_STYLE = 2; + const int BidType_NO_BIDDING_PROCESS = 3; + const int BidType_DISCLOSED_SYTLE = 2; + const int BidType_NON_DISCLOSED_STYLE = 1; + const int QuotePriceType_PER_SHARE = 2; + const int QuotePriceType_PREMIUM_PERCENTAGE_POINTS_OVER_PAR = 5; + const int QuotePriceType_DISCOUNT_PERCENTAGE_POINTS_BELOW_PAR = 4; + const int QuotePriceType_YIELD = 10; + const int QuotePriceType_PREMIUM = 5; + const int QuotePriceType_TED_YIELD = 8; + const int QuotePriceType_FIXED_AMOUNT = 3; + const int QuotePriceType_DISCOUNT = 4; + const int QuotePriceType_YIELD_SPREAD = 9; + const int QuotePriceType_TED_PRICE = 7; + const int QuotePriceType_PERCENT = 1; + const int QuotePriceType_SPREAD = 6; + const int QuotePriceType_BASIS_POINTS_RELATIVE_TO_BENCHMARK = 6; + const int MultilegPriceMethod_CONTRACT_WEIGHTED_AVERAGE_PRICE = 4; + const int MultilegPriceMethod_REVERSED_NET_PRICE = 1; + const int MultilegPriceMethod_MULTIPLIED_PRICE = 5; + const int MultilegPriceMethod_INDIVIDUAL = 3; + const int MultilegPriceMethod_YIELD_DIFFERENCE = 2; + const int MultilegPriceMethod_NET_PRICE = 0; + const int ListMethod_PRE_LISTED_ONLY = 0; + const int ListMethod_USER_REQUESTED = 1; + const char MDImplicitDelete_NO = 'N'; + const char MDImplicitDelete_YES = 'Y'; + const int RoutingType_TARGET_LIST = 2; + const int RoutingType_TARGET_FIRM = 1; + const int RoutingType_BLOCK_LIST = 4; + const int RoutingType_BLOCK_FIRM = 3; + const char BidTradeType_AGENCY = 'A'; + const char BidTradeType_VWAP_GUARANTEE = 'G'; + const char BidTradeType_RISK_TRADE = 'R'; + const char BidTradeType_GUARANTEED_CLOSE = 'J'; + const int OrdRejReason_INCORRECT_ALLOCATED_QUANTITY = 14; + const int OrdRejReason_DUPLICATE_OF_A_VERBALLY_COMMUNICATED_ORDER = 7; + const int OrdRejReason_ORDER_EXCEEDS_LIMIT = 3; + const int OrdRejReason_EXCHANGE_CLOSED = 2; + const int OrdRejReason_SURVEILLENCE_OPTION = 12; + const int OrdRejReason_UNKNOWN_ORDER = 5; + const int OrdRejReason_UNSUPPORTED_ORDER_CHARACTERISTIC = 11; + const int OrdRejReason_DUPLICATE_ORDER = 6; + const int OrdRejReason_TOO_LATE_TO_ENTER = 4; + const int OrdRejReason_UNSUPPORTED_ORDER_CHARACTERISTIC12_SURVEILLENCE_OPTION = 11; + const int OrdRejReason_INCORRECT_QUANTITY = 13; + const int OrdRejReason_INVALID_PRICE_INCREMENT = 18; + const int OrdRejReason_UNKNOWN_ACCOUNT = 15; + const int OrdRejReason_INVALID_INVESTOR_ID = 10; + const int OrdRejReason_UNKNOWN_SYMBOL = 1; + const int OrdRejReason_OTHER = 99; + const int OrdRejReason_BROKER = 0; + const int OrdRejReason_BROKER_OPTION = 0; + const int OrdRejReason_PRICE_EXCEEDS_CURRENT_PRICE_BAND = 16; + const int OrdRejReason_TRADE_ALONG_REQUIRED = 9; + const int OrdRejReason_STALE_ORDER = 8; + const int MaturityMonthYearIncrementUnits_WEEKS = 2; + const int MaturityMonthYearIncrementUnits_MONTHS = 0; + const int MaturityMonthYearIncrementUnits_YEARS = 3; + const int MaturityMonthYearIncrementUnits_DAYS = 1; + const char DisplayWhen_EXHAUST = '2'; + const char DisplayWhen_IMMEDIATE = '1'; + const int ApplQueueAction_END_SESSION = 3; + const int ApplQueueAction_QUEUE_FLUSHED = 1; + const int ApplQueueAction_OVERLAY_LAST = 2; + const int ApplQueueAction_NO_ACTION_TAKEN = 0; + const char RegistTransType_REPLACE = '1'; + const char RegistTransType_NEW = '0'; + const char RegistTransType_CANCEL = '2'; + const int PriceType_PRODUCT_TICKS_IN_HALFS = 13; + const int PriceType_PER_SHARE = 2; + const int PriceType_DISCOUNT_PERCENTAGE_POINTS_BELOW_PAR = 4; + const int PriceType_PREMIUM_PERCENTAGE_POINTS_OVER_PAR = 5; + const int PriceType_PRODUCT_TICKS_IN_FOURTHS = 14; + const int PriceType_YIELD = 9; + const int PriceType_TED_YIELD = 8; + const int PriceType_PREMIUM = 5; + const int PriceType_FIXED_AMOUNT = 3; + const int PriceType_DISCOUNT = 4; + const int PriceType_PRODUCT_TICKS_IN_SIXTY_FORTHS = 18; + const int PriceType_PRODUCT_TICKS_IN_ONE_TWENTY_EIGHTS = 19; + const int PriceType_PERCENTAGE = 1; + const int PriceType_PRODUCT_TICKS_IN_EIGHTS = 15; + const int PriceType_PRODUCT_TICKS_IN_THIRTY_SECONDS = 17; + const int PriceType_PRODUCT_TICKS_IN_SIXTEENTHS = 16; + const int PriceType_PER_UNIT = 2; + const int PriceType_VARIABLE_CABINET_TRADE_PRICE = 11; + const int PriceType_TED_PRICE = 7; + const int PriceType_SPREAD = 6; + const int PriceType_FIXED_CABINET_TRADE_PRICE = 10; + const int PriceType_BASIS_POINTS_RELATIVE_TO_BENCHMARK = 6; + const int SettlObligMode_PRELIMINARY = 1; + const int SettlObligMode_FINAL = 2; + const char SecurityUpdateAction_DELETE = 'D'; + const char SecurityUpdateAction_ADD = 'A'; + const char SecurityUpdateAction_MODIFY = 'M'; + const int NetworkRequestType_STOP_SUBSCRIBING = 4; + const int NetworkRequestType_SUBSCRIBE = 2; + const int NetworkRequestType_SNAPSHOT = 1; + const int NetworkRequestType_LEVEL_OF_DETAIL_THEN_NOCOMPIDS_BECOMES_REQUIRED = 8; + const int PartyRole_EXECUTION_VENUE = 73; + const int PartyRole_CLIENT_ID = 3; + const int PartyRole_MARKET_DATA_ENTRY_ORIGINATOR = 74; + const int PartyRole_ORDER_ORIGINATION_FIRM = 13; + const int PartyRole_PLEDGEE_ACCOUNT = 51; + const int PartyRole_CONTRA_TRADER = 37; + const int PartyRole_MULTILATERAL_TRADING_FACILITY = 64; + const int PartyRole_CENTRAL_REGISTRATION_DEPOSITORY = 82; + const int PartyRole_REPORT_ORIGINATOR = 62; + const int PartyRole_TRANSFER_TO_FIRM = 40; + const int PartyRole_BROKERCLEARINGID = 81; + const int PartyRole_ASSET_MANAGER = 49; + const int PartyRole_INTRODUCING_BROKER = 60; + const int PartyRole_LOCATE_LENDING_FIRM = 8; + const int PartyRole_CONTRA_CLEARING_FIRM = 18; + const int PartyRole_CORRESPONDENT_CLEARING_ORGANIZATION = 25; + const int PartyRole_CUSTODIAN = 28; + const int PartyRole_GIVEUP_CLEARING_FIRM = 14; + const int PartyRole_EXECUTING_TRADER = 12; + const int PartyRole_EXECUTING_UNIT = 59; + const int PartyRole_BROKER_OF_CREDIT = 2; + const int PartyRole_CORRESPONDANT_CLEARING_FIRM = 15; + const int PartyRole_SETTLEMENT_LOCATION = 10; + const int PartyRole_THIRD_PARTY_ALLOCATION_FIRM = 47; + const int PartyRole_ORDER_ORIGINATION_TRADER = 11; + const int PartyRole_HOST_COMPETENT_AUTHORITY = 68; + const int PartyRole_ORDER_ENTRY_OPERATOR_ID = 44; + const int PartyRole_SPONSORING_FIRM = 19; + const int PartyRole_INTRODUCING_FIRM = 6; + const int PartyRole_CLEARING_FIRM = 4; + const int PartyRole_CONTRA_POSITION_ACCOUNT = 41; + const int PartyRole_INVESTOR_ID = 5; + const int PartyRole_ENTERING_TRADER = 36; + const int PartyRole_LOCATE = 8; + const int PartyRole_LARGE_TRADER_REPORTABLE_ACCOUNT = 52; + const int PartyRole_ACCEPTABLE_SETTLING_COUNTERPARTY = 84; + const int PartyRole_PRIME_BROKER_PROVIDING_GENERAL_TRADE_SERVICES = 79; + const int PartyRole_FORIEGN_FIRM = 46; + const int PartyRole_ACCEPTABLE_COUNTERPARTY = 56; + const int PartyRole_CUSTOMER_ACCOUNT = 24; + const int PartyRole_POSITION_ACCOUNT = 38; + const int PartyRole_LIQUIDITY_PROVIDER = 35; + const int PartyRole_MARKET_MAKER = 66; + const int PartyRole_AGENT = 30; + const int PartyRole_ENTERING_UNIT = 58; + const int PartyRole_FOREIGN_FIRM = 46; + const int PartyRole_CLEARING_ACCOUNT = 83; + const int PartyRole_HOME_COMPETENT_AUTHORITY = 69; + const int PartyRole_INTERESTED_PARTY = 33; + const int PartyRole_SESSION_ID = 55; + const int PartyRole_REPORTING_INTERMEDIARY = 72; + const int PartyRole_INVESTMENT_FIRM = 67; + const int PartyRole_TRADER_MNEMONIC = 53; + const int PartyRole_INTERNAL_CARRY_ACCOUNT = 43; + const int PartyRole_CONTRA_FIRM = 17; + const int PartyRole_CORRESPONDENT_BROKER = 26; + const int PartyRole_CLEARING_ORGANIZATION = 21; + const int PartyRole_SUB_CUSTODIAN = 31; + const int PartyRole_BUYER_SELLER = 27; + const int PartyRole_STEP_OUT_FIRM = 80; + const int PartyRole_MARKET_DATA_MARKET = 77; + const int PartyRole_EXCHANGE = 22; + const int PartyRole_CLAIMING_ACCOUNT = 48; + const int PartyRole_SECONDARY_ACCOUNT_NUMBER = 45; + const int PartyRole_ALLOCATION_ENTITY = 78; + const int PartyRole_INTERMEDIARY = 29; + const int PartyRole_EXECUTING_FIRM = 1; + const int PartyRole_LOCATION_ID = 75; + const int PartyRole_DESK_ID = 76; + const int PartyRole_EXECUTING_SYSTEM = 16; + const int PartyRole_BENEFICIARY = 32; + const int PartyRole_FUND_MANAGER_CLIENT_ID = 9; + const int PartyRole_CONTRA_INVESTOR_ID = 39; + const int PartyRole_UNACCEPTABLE_COUNTERPARTY = 57; + const int PartyRole_UNDERLYING_CONTRA_FIRM = 20; + const int PartyRole_QUOTE_ORIGINATOR = 61; + const int PartyRole_REGULATED_MARKET = 65; + const int PartyRole_COMPETENT_AUTHORITY_OF_THE_TRANSACTION = 71; + const int PartyRole_ENTERING_FIRM = 7; + const int PartyRole_UNACCEPTABLE_SETTLING_COUNTERPARTY = 85; + const int PartyRole_SENDER_LOCATION = 54; + const int PartyRole_SYSTEMATIC_INTERNALISER = 63; + const int PartyRole_CONTRA_EXCHANGE = 42; + const int PartyRole_REGULATORY_BODY = 34; + const int PartyRole_PLEDGOR_ACCOUNT = 50; + const int PartyRole_COMPETENT_AUTHORITY_OF_THE_MOST_RELEVANT_MARKET_IN_TERMS_OF_LIQUIDITY = 70; + const char AssignmentMethod_PRO_RATA = 'P'; + const char AssignmentMethod_RANDOM = 'R'; + const char AssignmentMethod_PRORATA = 'P'; + const int StrategyParameterType_TZTIMEONLY = 27; + const int StrategyParameterType_MONTHYEAR = 18; + const int StrategyParameterType_PRICE = 8; + const int StrategyParameterType_QTY = 7; + const int StrategyParameterType_BOOLEAN = 13; + const int StrategyParameterType_MULTIPLECHARVALUE = 15; + const int StrategyParameterType_CHAR = 12; + const int StrategyParameterType_NUMINGROUP = 3; + const int StrategyParameterType_TAGNUM = 5; + const int StrategyParameterType_COUNTRY = 25; + const int StrategyParameterType_TENOR = 29; + const int StrategyParameterType_LOCALMKTTIME = 21; + const int StrategyParameterType_INT = 1; + const int StrategyParameterType_LOCALMKTDATE = 21; + const int StrategyParameterType_EXCHANGE = 17; + const int StrategyParameterType_LANGUAGE = 26; + const int StrategyParameterType_PERCENTAGE = 11; + const int StrategyParameterType_LENGTH = 2; + const int StrategyParameterType_TZTIMESTAMP = 28; + const int StrategyParameterType_MULTIPLESTRINGVALUE = 24; + const int StrategyParameterType_UTCTIMESTAMP = 19; + const int StrategyParameterType_DATA = 23; + const int StrategyParameterType_CURRENCY = 16; + const int StrategyParameterType_STRING = 14; + const int StrategyParameterType_AMT = 10; + const int StrategyParameterType_FLOAT = 6; + const int StrategyParameterType_UTCDATE = 22; + const int StrategyParameterType_UTCTIMEONLY = 20; + const int StrategyParameterType_SEQNUM = 4; + const int StrategyParameterType_UTCDATEONLY = 22; + const int StrategyParameterType_PRICEOFFSET = 9; + const int EncryptMethod_PGP_DES_MD5 = 5; + const int EncryptMethod_PKCS_DES = 3; + const int EncryptMethod_PKCS = 1; + const int EncryptMethod_PGP_DES = 4; + const int EncryptMethod_NONE = 0; + const int EncryptMethod_DES = 2; + const int EncryptMethod_NONE_OTHER = 0; + const int EncryptMethod_PEM_DES_MD5 = 6; + const char PosAmtType_ACCRUED_COUPON_AMOUNT[] = "ACPN"; + const char PosAmtType_PREMIUM_AMOUNT[] = "PREM"; + const char PosAmtType_INCREMENTAL_COLLATERALIZED_MARK_TO_MARKET[] = "ICMTM"; + const char PosAmtType_TOTAL_BANKED_AMOUNT[] = "BANK"; + const char PosAmtType_FINAL_MARK_TO_MARKET_AMOUNT[] = "FMTM"; + const char PosAmtType_SETTLEMENT_VALUE[] = "SETL"; + const char PosAmtType_CASH_AMOUNT[] = "CASH"; + const char PosAmtType_INITIAL_TRADE_COUPON_AMOUNT[] = "ICPN"; + const char PosAmtType_INCREMENTAL_ACCRUED_COUPON[] = "IACPN"; + const char PosAmtType_VALUE_ADJUSTED_AMOUNT[] = "VADJ"; + const char PosAmtType_START_OF_DAY_MARK_TO_MARKET_AMOUNT[] = "SMTM"; + const char PosAmtType_COLLATERALIZED_MARK_TO_MARKET[] = "CMTM"; + const char PosAmtType_CASH_RESIDUAL_AMOUNT[] = "CRES"; + const char PosAmtType_COMPENSATION_AMOUNT[] = "DLV"; + const char PosAmtType_TRADE_VARIATION_AMOUNT[] = "TVAR"; + const char PosAmtType_COUPON_AMOUNT[] = "CPN"; + const char PosAmtType_TOTAL_COLLATERALIZED_AMOUNT[] = "COLAT"; + const char PosAmtType_INCREMENTAL_MARK_TO_MARKET_AMOUNT[] = "IMTM"; + const char ResetSeqNumFlag_NO = 'N'; + const char ResetSeqNumFlag_YES = 'Y'; + const int CollInquiryResult_NO_COLLATERAL_FOUND_FOR_THE_ORDER_SPECIFIED = 7; + const int CollInquiryResult_INVALID_DESTINATION_REQUESTED = 5; + const int CollInquiryResult_UNAUTHORIZED_FOR_COLLATERAL_INQUIRY = 9; + const int CollInquiryResult_INVALID_OR_UNKNOWN_COLLATERAL_TYPE = 2; + const int CollInquiryResult_SUCCESSFUL = 0; + const int CollInquiryResult_OTHER = 99; + const int CollInquiryResult_COLLATERAL_INQUIRY_TYPE_NOT_SUPPORTED = 8; + const int CollInquiryResult_INVALID_OR_UNKNOWN_INSTRUMENT = 1; + const int CollInquiryResult_INVALID_PARTIES = 3; + const int CollInquiryResult_INVALID_TRANSPORT_TYPE_REQUESTED = 4; + const int CollInquiryResult_NO_COLLATERAL_FOUND_FOR_THE_TRADE_SPECIFIED = 6; + const int CollAsgnRespType_DECLINED = 2; + const int CollAsgnRespType_RECEIVED = 0; + const int CollAsgnRespType_REJECTED = 3; + const int CollAsgnRespType_ACCEPTED = 1; + const char UnsolicitedIndicator_NO = 'N'; + const char UnsolicitedIndicator_YES = 'Y'; + const int QuoteEntryRejectReason_INVALID_PRICE = 8; + const int QuoteEntryRejectReason_NOT_AUTHORIZED_TO_QUOTE_SECURITY = 9; + const int QuoteEntryRejectReason_TOO_LATE_TO_ENTER = 4; + const int QuoteEntryRejectReason_QUOTE_EXCEEDS_LIMIT = 3; + const int QuoteEntryRejectReason_EXCHANGE = 2; + const int QuoteEntryRejectReason_UNKNOWN_SYMBOL = 1; + const int QuoteEntryRejectReason_INVALID_BID_ASK_SPREAD = 7; + const int QuoteEntryRejectReason_UNKNOWN_QUOTE = 5; + const int QuoteEntryRejectReason_DUPLICATE_QUOTE = 6; + const char OrderCapacity_PROPRIETARY = 'G'; + const char OrderCapacity_RISKLESS_PRINCIPAL = 'R'; + const char OrderCapacity_AGENT_FOR_OTHER_MEMBER = 'W'; + const char OrderCapacity_PRINCIPAL = 'P'; + const char OrderCapacity_AGENCY = 'A'; + const char OrderCapacity_INDIVIDUAL = 'I'; + const int QuoteAckStatus_CANCELED_FOR_UNDERLYING = 3; + const int QuoteAckStatus_CANCELED_ALL = 4; + const int QuoteAckStatus_CANCELED_FOR_SECURITY_TYPE = 2; + const int QuoteAckStatus_REJECTED = 5; + const int QuoteAckStatus_CANCELED_FOR_SYMBOL = 1; + const int QuoteAckStatus_ACCEPTED = 0; + const int UserRequestType_CHANGE_PASSWORD_FOR_USER = 3; + const int UserRequestType_CHANGEPASSWORDFORUSER = 3; + const int UserRequestType_LOGOFFUSER = 2; + const int UserRequestType_LOG_OFF_USER = 2; + const int UserRequestType_REQUEST_INDIVIDUAL_USER_STATUS = 4; + const int UserRequestType_LOGONUSER = 1; + const int UserRequestType_LOG_ON_USER = 1; + const int TradeReportTransType_REPLACE = 2; + const int TradeReportTransType_NEW = 0; + const int TradeReportTransType_REVERSE = 4; + const int TradeReportTransType_CANCEL = 1; + const int TradeReportTransType_CANCEL_DUE_TO_BACK_OUT_OF_TRADE = 5; + const int TradeReportTransType_RELEASE = 3; + const char AdvSide_CROSS = 'X'; + const char AdvSide_TRADE = 'T'; + const char AdvSide_BUY = 'B'; + const char AdvSide_SELL = 'S'; + const int CoveredOrUncovered_COVERED = 0; + const int CoveredOrUncovered_UNCOVERED = 1; + const int AcctIDSource_TFM = 3; + const int AcctIDSource_BIC = 1; + const int AcctIDSource_OTHER = 99; + const int AcctIDSource_OMGEO = 4; + const int AcctIDSource_DTCC_CODE = 5; + const int AcctIDSource_SID_CODE = 2; + const int TradeRequestType_UNMATCHED_TRADES_THAT_MATCH_CRITERIA = 2; + const int TradeRequestType_ALL_TRADES = 0; + const int TradeRequestType_MATCHED_TRADES_MATCHING_CRITERIA_PROVIDED_ON_REQUEST = 1; + const int TradeRequestType_UNREPORTED_TRADES_THAT_MATCH_CRITERIA = 3; + const int TradeRequestType_ADVISORIES_THAT_MATCH_CRITERIA = 4; + const int TradSesStatus_HALTED = 1; + const int TradSesStatus_REQUEST_REJECTED = 6; + const int TradSesStatus_OPEN = 2; + const int TradSesStatus_PRE_OPEN = 4; + const int TradSesStatus_UNKNOWN = 0; + const int TradSesStatus_PRE_CLOSE = 5; + const int TradSesStatus_CLOSED = 3; + const int PegPriceType_LAST_PEG = 1; + const int PegPriceType_PRIMARY_PEG = 5; + const int PegPriceType_OPENING_PEG = 3; + const int PegPriceType_FIXED_PEG_TO_LOCAL_BEST_BID_OR_OFFER_AT_TIME_OF_ORDER = 6; + const int PegPriceType_TRAILING_STOP_PEG = 8; + const int PegPriceType_PEG_TO_LIMIT_PRICE = 9; + const int PegPriceType_MID_PRICE_PEG = 2; + const int PegPriceType_MARKET_PEG = 4; + const int PegPriceType_PEG_TO_VWAP = 7; + const int StreamAsgnRejReason_NO_AVAILABLE_STREAM = 3; + const int StreamAsgnRejReason_EXCEEDS_MAXIMUM_SIZE = 1; + const int StreamAsgnRejReason_UNKNOWN_CLIENT = 0; + const int StreamAsgnRejReason_UNKNOWN_OR_INVALID_CURRENCY_PAIR = 2; + const int StreamAsgnRejReason_OTHER = 99; + const char ValuationMethod_FUTURES_STYLE_WITH_AN_ATTACHED_CASH_ADJUSTMENT[] = "FUTDA"; + const char ValuationMethod_PREMIUM_STYLE[] = "EQTY"; + const char ValuationMethod_CDS_IN_DELIVERY[] = "CDSD"; + const char ValuationMethod_CDS_STYLE_COLLATERALIZATION_OF_MARKET_TO_MARKET_AND_COUPON[] = "CDS"; + const char ValuationMethod_FUTURES_STYLE_MARK_TO_MARKET[] = "FUT"; + const char TriggerType_SPECIFIED_TRADING_SESSION = '2'; + const char TriggerType_NEXT_AUCTION = '3'; + const char TriggerType_PRICE_MOVEMENT = '4'; + const char TriggerType_PARTIAL_EXECUTION = '1'; + const char PriceProtectionScope_LOCAL = '1'; + const char PriceProtectionScope_NONE = '0'; + const char PriceProtectionScope_GLOBAL = '3'; + const char PriceProtectionScope_NATIONAL = '2'; + const int TradeReportRejectReason_INVALID_PARTY_INFORMATION = 1; + const int TradeReportRejectReason_UNAUTHORIZED_TO_REPORT_TRADES = 3; + const int TradeReportRejectReason_INVALID_PARTY_ONFORMATION = 1; + const int TradeReportRejectReason_UNKNOWN_INSTRUMENT = 2; + const int TradeReportRejectReason_SUCCESSFUL = 0; + const int TradeReportRejectReason_OTHER = 99; + const int TradeReportRejectReason_INVALID_TRADE_TYPE = 4; + const int SecurityListType_NEWSPAPER_LIST = 4; + const int SecurityListType_TRADING_LIST = 2; + const int SecurityListType_INDUSTRY_CLASSIFICATION = 1; + const int SecurityListType_MARKET = 3; + const int QuoteRejectReason_QUOTE_LOCKED = 11; + const int QuoteRejectReason_INVALID_OR_UNKNOWN_ISSUER_OF_UNDERLYING_SECURITY = 13; + const int QuoteRejectReason_INVALID_PRICE = 8; + const int QuoteRejectReason_NOT_AUTHORIZED_TO_QUOTE_SECURITY = 9; + const int QuoteRejectReason_TOO_LATE_TO_ENTER = 4; + const int QuoteRejectReason_EXCHANGE = 2; + const int QuoteRejectReason_UNKNOWN_SYMBOL = 1; + const int QuoteRejectReason_OTHER = 99; + const int QuoteRejectReason_INVALID_BID_ASK_SPREAD = 7; + const int QuoteRejectReason_UNKNOWN_QUOTE = 5; + const int QuoteRejectReason_INVALID_OR_UNKNOWN_SECURITY_ISSUER = 12; + const int QuoteRejectReason_DUPLICATE_QUOTE = 6; + const int QuoteRejectReason_PRICE_EXCEEDS_CURRENT_PRICE_BAND = 10; + const int QuoteRejectReason_QUOTE_REQUEST_EXCEEDS_LIMIT = 3; + const char PossResend_NO = 'N'; + const char PossResend_YES = 'Y'; + const int QuantityType_SHARES = 1; + const int QuantityType_CURRENTFACE = 3; + const int QuantityType_PAR = 8; + const int QuantityType_BONDS = 2; + const int QuantityType_ORIGINALFACE = 4; + const int QuantityType_CONTRACTS = 6; + const int QuantityType_OTHER = 7; + const int QuantityType_CURRENCY = 5; + const int ComplexEventPriceBoundaryMethod_GREATER_THAN_OR_EQUAL_TO_COMPLEXEVENTPRICE = 4; + const int ComplexEventPriceBoundaryMethod_EQUAL_TO_COMPLEXEVENTPRICE = 3; + const int ComplexEventPriceBoundaryMethod_LESS_THAN_COMPLEXEVENTPRICE = 1; + const int ComplexEventPriceBoundaryMethod_GREATER_THAN_COMPLEXEVENTPRICE = 5; + const int ComplexEventPriceBoundaryMethod_LESS_THAN_OR_EQUAL_TO_COMPLEXEVENTPRICE = 2; + const int ImpliedMarketIndicator_BOTH_IMPLIED_IN_AND_IMPLIED_OUT = 3; + const int ImpliedMarketIndicator_NOT_IMPLIED = 0; + const int ImpliedMarketIndicator_IMPLIED_OUT = 2; + const int ImpliedMarketIndicator_IMPLIED_IN = 1; + const int QuoteRequestType_AUTOMATIC = 2; + const int QuoteRequestType_MANUAL = 1; + const int SecurityRequestResult_NO_INSTRUMENTS_FOUND_THAT_MATCH_SELECTION_CRITERIA = 2; + const int SecurityRequestResult_NOT_AUTHORIZED_TO_RETRIEVE_INSTRUMENT_DATA = 3; + const int SecurityRequestResult_INSTRUMENT_DATA_TEMPORARILY_UNAVAILABLE = 4; + const int SecurityRequestResult_VALID_REQUEST = 0; + const int SecurityRequestResult_INVALID_OR_UNSUPPORTED_REQUEST = 1; + const int SecurityRequestResult_REQUEST_FOR_INSTRUMENT_DATA_NOT_SUPPORTED = 5; + const char OrderRestrictions_ISSUER_HOLDING = 'B'; + const char OrderRestrictions_ACTING_AS_MARKET_MAKER_OR_SPECIALIST_IN_THE_SECURITY = '5'; + const char OrderRestrictions_NON_ALGORITHMIC = 'D'; + const char OrderRestrictions_EXTNERAL_INTER_CONNECTED_MARKET_LINKAGE = '9'; + const char OrderRestrictions_NON_INDEX_ARBITRAGE = '3'; + const char OrderRestrictions_ACTING_AS_MARKET_MAKER_OF_SPECIALIST_IN_THE_UNDERLYING_SECURITY_OF_A_DERIVATIVE_SEUCIRTY = '6'; + const char OrderRestrictions_PROGRAM_TRADE = '1'; + const char OrderRestrictions_ISSUE_PRICE_STABILIZATION = 'C'; + const char OrderRestrictions_CROSS = 'F'; + const char OrderRestrictions_EXTERNAL_INTER_CONNECTED_MARKET_LINKAGE = '9'; + const char OrderRestrictions_FOREIGN_ENTITY = '7'; + const char OrderRestrictions_INDEX_ARBITRAGE = '2'; + const char OrderRestrictions_EXTERNAL_MARKET_PARTICIPANT = '8'; + const char OrderRestrictions_ALGORITHMIC = 'E'; + const char OrderRestrictions_ACTING_AS_MARKET_MAKER_OR_SPECIALIST_IN_THE_UNDERLYING_SECURITY_OF_A_DERIVATIVE_SECURITY = '6'; + const char OrderRestrictions_RISKLESS_ARBITRAGE = 'A'; + const char OrderRestrictions_COMPETING_MARKET_MAKER = '4'; + const char ListExecInstType_WAIT_FOR_EXECUT_INSTRUCTION = '2'; + const char ListExecInstType_EXCHANGE_SWITCH_CIV_ORDER_SELL_DRIVEN = '3'; + const char ListExecInstType_EXCHANGE_SWITCH_CIV_ORDER_BUY_DRIVEN_CASH_WITHDRAW = '5'; + const char ListExecInstType_EXCHANGE_SWITCH_CIV_ORDER_3 = '3'; + const char ListExecInstType_IMMEDIATE = '1'; + const char ListExecInstType_EXCHANGE_SWITCH_CIV_ORDER_4 = '4'; + const char ListExecInstType_EXCHANGE_SWITCH_CIV_ORDER_5 = '5'; + const char ListExecInstType_EXCHANGE_SWITCH_CIV_ORDER_BUY_DRIVEN_CASH_TOP_UP = '4'; + const char ListExecInstType_WAIT_FOR_EXECUTE_INSTRUCTION = '2'; + const int DistribPaymentMethod_FED_WIRE = 7; + const int DistribPaymentMethod_EUROCLEAR = 3; + const int DistribPaymentMethod_ACH_CREDIT = 9; + const int DistribPaymentMethod_TELEGRAPHIC_TRANSFER = 6; + const int DistribPaymentMethod_FEDWIRE = 7; + const int DistribPaymentMethod_CHEQUE = 5; + const int DistribPaymentMethod_DIRECT_CREDIT = 8; + const int DistribPaymentMethod_CREST = 1; + const int DistribPaymentMethod_HIGH_VALUE_CLEARING_SYSTEM = 11; + const int DistribPaymentMethod_CLEARSTREAM = 4; + const int DistribPaymentMethod_BPAY = 10; + const int DistribPaymentMethod_NSCC = 2; + const int DistribPaymentMethod_HIGH_VALUE_CLEARING_SYSTEM_HVACS = 11; + const int DistribPaymentMethod_REINVEST_IN_FUND = 12; + const int OrderHandlingInstSource_NASD_OATS = 1; + const int AffirmStatus_AFFIRMED = 3; + const int AffirmStatus_CONFIRM_REJECTED_IE_NOT_AFFIRMED = 2; + const int AffirmStatus_RECEIVED = 1; + const int OrigCustOrderCapacity_CLEARING_FIRM_TRADING_FOR_ITS_PROPRIETARY_ACCOUNT = 2; + const int OrigCustOrderCapacity_MEMBER_TRADING_FOR_THEIR_OWN_ACCOUNT = 1; + const int OrigCustOrderCapacity_MEMBER_TRADING_FOR_ANOTHER_MEMBER = 3; + const int OrigCustOrderCapacity_ALL_OTHER = 4; + const int AllocMethod_GUARANTOR = 2; + const int AllocMethod_AUTOMATIC = 1; + const int AllocMethod_MANUAL = 3; + const char MassCancelResponse_CANCEL_ORDERS_FOR_A_SECURITY = '1'; + const char MassCancelResponse_CANCEL_ORDERS_FOR_ISSUER_OF_UNDERLYING_SECURITY = 'C'; + const char MassCancelResponse_CANCEL_ORDERS_FOR_A_SECURITY_GROUP = 'A'; + const char MassCancelResponse_CANCEL_ORDERS_FOR_A_MARKET = '8'; + const char MassCancelResponse_CANCEL_ORDERS_FOR_A_MARKET_SEGMENT = '9'; + const char MassCancelResponse_CANCEL_ORDERS_FOR_A_SECURITYTYPE = '5'; + const char MassCancelResponse_CANCEL_ORDERS_FOR_A_TRADING_SESSION = '6'; + const char MassCancelResponse_CANCEL_ORDERS_FOR_AN_UNDERLYING_SECURITY = '2'; + const char MassCancelResponse_CANCEL_ALL_ORDERS = '7'; + const char MassCancelResponse_CANCEL_REQUEST_REJECTED = '0'; + const char MassCancelResponse_CANCEL_ORDERS_FOR_A_SECURITIES_ISSUER = 'B'; + const char MassCancelResponse_CANCEL_ORDERS_FOR_A_CFICODE = '4'; + const char MassCancelResponse_CANCEL_ORDERS_FOR_A_PRODUCT = '3'; + const int StreamAsgnReqType_STREAM_ASSIGNMENT_FOR_NEW_CUSTOMER = 1; + const int StreamAsgnReqType_STREAM_ASSIGNMENT_FOR_EXISTING_CUSTOMER = 2; + const char SymbolSfx_EUCP_WITH_LUMP_SUM_INTEREST_RATHER_THAN_DISCOUNT_PRICE[] = "CD"; + const char SymbolSfx_WHEN_ISSUED_FOR_A_SECURITY_TO_BE_REISSUED_UNDER_AN_OLD_CUSIP_OR_ISIN[] = "WI"; + const char ExDestinationIDSource_PROPRIETARY = 'D'; + const char ExDestinationIDSource_GENERALLY_ACCEPTED_MARKET_PARTICIPANT_IDENTIFIER = 'C'; + const char ExDestinationIDSource_BIC = 'B'; + const char ExDestinationIDSource_MIC = 'G'; + const char ExDestinationIDSource_ISO_COUNTRY_CODE = 'E'; + const int SecurityListRequestType_MARKETID_OR_MARKETID_PLUS_MARKETSEGMENTID = 5; + const int SecurityListRequestType_SYMBOL = 0; + const int SecurityListRequestType_SECURITYTYPE_AND_OR_CFICODE = 1; + const int SecurityListRequestType_TRADINGSESSIONID = 3; + const int SecurityListRequestType_ALL_SECURITIES = 4; + const int SecurityListRequestType_PRODUCT = 2; + const int CollAsgnReason_TIME_WARNING = 2; + const int CollAsgnReason_ADVERSE_TAX_EVENT = 7; + const int CollAsgnReason_MARGIN_DEFICIENCY = 3; + const int CollAsgnReason_SCHEDULED = 1; + const int CollAsgnReason_INITIAL = 0; + const int CollAsgnReason_FORWARD_COLLATERAL_DEMAND = 5; + const int CollAsgnReason_EVENT_OF_DEFAULT = 6; + const int CollAsgnReason_MARGIN_EXCESS = 4; + const int SettlPriceType_FINAL = 1; + const int SettlPriceType_THEORETICAL = 2; + const char DealingCapacity_RISKLESS_PRINCIPAL = 'R'; + const char DealingCapacity_PRINCIPAL = 'P'; + const char DealingCapacity_AGENT = 'A'; + const int RateSourceType_SECONDARY = 1; + const int RateSourceType_PRIMARY = 0; + const char AggregatedBook_NO = 'N'; + const char AggregatedBook_YES = 'Y'; + const int PosQtyStatus_SUBMITTED = 0; + const int PosQtyStatus_REJECTED = 2; + const int PosQtyStatus_ACCEPTED = 1; + const char MsgType_TradingSessionStatusRequest[] = "g"; + const char MsgType_ListStatus[] = "N"; + const char MsgType_Email[] = "C"; + const char MsgType_ListExecute[] = "L"; + const char MsgType_Confirmation[] = "AK"; + const char MsgType_NewOrderMultileg[] = "AB"; + const char MsgType_MarketDataIncrementalRefresh[] = "X"; + const char MsgType_TradeCaptureReport[] = "AE"; + const char MsgType_RequestForPositionsAck[] = "AO"; + const char MsgType_StreamAssignmentRequest[] = "CC"; + const char MsgType_SecurityListRequest[] = "x"; + const char MsgType_CollateralReport[] = "BA"; + const char MsgType_PositionMaintenanceReport[] = "AM"; + const char MsgType_PositionReport[] = "AP"; + const char MsgType_StreamAssignmentReportACK[] = "CE"; + const char MsgType_UserRequest[] = "BE"; + const char MsgType_PositionMaintenanceRequest[] = "AL"; + const char MsgType_NetworkCounterpartySystemStatusResponse[] = "BD"; + const char MsgType_NewOrderCross[] = "s"; + const char MsgType_AdjustedPositionReport[] = "BL"; + const char MsgType_Logon[] = "A"; + const char MsgType_IOI[] = "6"; + const char MsgType_ListStrikePrice[] = "m"; + const char MsgType_BidRequest[] = "k"; + const char MsgType_TradingSessionStatus[] = "h"; + const char MsgType_RegistrationInstructionsResponse[] = "p"; + const char MsgType_Advertisement[] = "7"; + const char MsgType_MassQuote[] = "i"; + const char MsgType_Logout[] = "5"; + const char MsgType_AllocationReport[] = "AS"; + const char MsgType_SecurityDefinitionUpdateReport[] = "BP"; + const char MsgType_ListStatusRequest[] = "M"; + const char MsgType_BusinessMessageReject[] = "j"; + const char MsgType_ConfirmationAck[] = "AU"; + const char MsgType_XMLnonFIX[] = "n"; + const char MsgType_TestRequest[] = "1"; + const char MsgType_SecurityList[] = "y"; + const char MsgType_ListCancelRequest[] = "K"; + const char MsgType_News[] = "B"; + const char MsgType_TradingSessionListUpdateReport[] = "BS"; + const char MsgType_Heartbeat[] = "0"; + const char MsgType_QuoteAcknowledgement[] = "b"; + const char MsgType_AllocationReportAck[] = "AT"; + const char MsgType_ConfirmationRequest[] = "BH"; + const char MsgType_OrderMassActionReport[] = "BZ"; + const char MsgType_CollateralInquiry[] = "BB"; + const char MsgType_SecurityTypeRequest[] = "v"; + const char MsgType_NewOrderList[] = "E"; + const char MsgType_ExecutionAcknowledgement[] = "BN"; + const char MsgType_TradingSessionListRequest[] = "BI"; + const char MsgType_SecurityTypes[] = "w"; + const char MsgType_MarketDefinition[] = "BU"; + const char MsgType_SequenceReset[] = "4"; + const char MsgType_CollateralResponse[] = "AZ"; + const char MsgType_MassQuoteAcknowledgement[] = "b"; + const char MsgType_QuoteResponse[] = "AJ"; + const char MsgType_QuoteStatusRequest[] = "a"; + const char MsgType_QuoteCancel[] = "Z"; + const char MsgType_ContraryIntentionReport[] = "BO"; + const char MsgType_CrossOrderCancelRequest[] = "u"; + const char MsgType_NewOrderSingle[] = "D"; + const char MsgType_DerivativeSecurityListRequest[] = "z"; + const char MsgType_CollateralRequest[] = "AX"; + const char MsgType_UserNotification[] = "CB"; + const char MsgType_UserResponse[] = "BF"; + const char MsgType_DontKnowTrade[] = "Q"; + const char MsgType_TradeCaptureReportAck[] = "AR"; + const char MsgType_ApplicationMessageRequest[] = "BW"; + const char MsgType_MultilegOrderCancelReplace[] = "AC"; + const char MsgType_OrderCancelReject[] = "9"; + const char MsgType_ExecutionReport[] = "8"; + const char MsgType_QuoteStatusReport[] = "AI"; + const char MsgType_ResendRequest[] = "2"; + const char MsgType_Quote[] = "S"; + const char MsgType_SettlementInstructionRequest[] = "AV"; + const char MsgType_SecurityListUpdateReport[] = "BK"; + const char MsgType_AllocationInstructionAlert[] = "BM"; + const char MsgType_TradeCaptureReportRequestAck[] = "AQ"; + const char MsgType_AllocationInstruction[] = "J"; + const char MsgType_Allocation[] = "J"; + const char MsgType_RegistrationInstructions[] = "o"; + const char MsgType_SecurityDefinition[] = "d"; + const char MsgType_SecurityDefinitionRequest[] = "c"; + const char MsgType_SecurityStatus[] = "f"; + const char MsgType_ApplicationMessageReport[] = "BY"; + const char MsgType_DerivativeSecurityList[] = "AA"; + const char MsgType_NetworkCounterpartySystemStatusRequest[] = "BC"; + const char MsgType_MarketDefinitionRequest[] = "BT"; + const char MsgType_Reject[] = "3"; + const char MsgType_DerivativeSecurityListUpdateReport[] = "BR"; + const char MsgType_QuoteRequestReject[] = "AG"; + const char MsgType_OrderMassStatusRequest[] = "AF"; + const char MsgType_ApplicationMessageRequestAck[] = "BX"; + const char MsgType_SecurityStatusRequest[] = "e"; + const char MsgType_MarketDefinitionUpdateReport[] = "BV"; + const char MsgType_CrossOrderCancelReplaceRequest[] = "t"; + const char MsgType_OrderMassCancelReport[] = "r"; + const char MsgType_AssignmentReport[] = "AW"; + const char MsgType_BidResponse[] = "l"; + const char MsgType_RequestForPositions[] = "AN"; + const char MsgType_SettlementObligationReport[] = "BQ"; + const char MsgType_OrderMassCancelRequest[] = "q"; + const char MsgType_TradingSessionList[] = "BJ"; + const char MsgType_OrderStatusRequest[] = "H"; + const char MsgType_CollateralAssignment[] = "AY"; + const char MsgType_StreamAssignmentReport[] = "CD"; + const char MsgType_OrderMassActionRequest[] = "CA"; + const char MsgType_AllocationAck[] = "P"; + const char MsgType_QuoteRequest[] = "R"; + const char MsgType_CollateralInquiryAck[] = "BG"; + const char MsgType_MarketDataSnapshotFullRefresh[] = "W"; + const char MsgType_SettlementInstructions[] = "T"; + const char MsgType_OrderCancelReplaceRequest[] = "G"; + const char MsgType_TradeCaptureReportRequest[] = "AD"; + const char MsgType_RFQRequest[] = "AH"; + const char MsgType_OrderCancelRequest[] = "F"; + const char MsgType_MultilegOrderCancelReplaceRequest[] = "AC"; + const char MsgType_AllocationInstructionAck[] = "P"; + const char MsgType_MarketDataRequest[] = "V"; + const char MsgType_MarketDataRequestReject[] = "Y"; + const char MultiLegReportingType_SINGLE_SECURITY = '1'; + const char MultiLegReportingType_MULTI_LEG_SECURITY = '3'; + const char MultiLegReportingType_INDIVIDUAL_LEG_OF_A_MULTI_LEG_SECURITY = '2'; + const char MultiLegReportingType_INDIVIDUAL_LEG_OF_A_MULTILEG_SECURITY = '2'; + const char IDSource_EXCHANGE_SYMBOL[] = "8"; + const char IDSource_RIC_CODE[] = "5"; + const char IDSource_ISO_CURRENCY_CODE[] = "6"; + const char IDSource_ISIN_NUMBER[] = "4"; + const char IDSource_SEDOL[] = "2"; + const char IDSource_ISO_COUNTRY_CODE[] = "7"; + const char IDSource_CONSOLIDATED_TAPE_ASSOCIATION[] = "9"; + const char IDSource_QUIK[] = "3"; + const char IDSource_CUSIP[] = "1"; + const char OrdStatus_NEW = '0'; + const char OrdStatus_CALCULATED = 'B'; + const char OrdStatus_PENDING_CANCEL = '6'; + const char OrdStatus_PENDING_CANCEL_REPLACE = '6'; + const char OrdStatus_PENDING_NEW = 'A'; + const char OrdStatus_STOPPED = '7'; + const char OrdStatus_FILLED = '2'; + const char OrdStatus_PENDING_REPLACE = 'E'; + const char OrdStatus_CANCELED = '4'; + const char OrdStatus_ACCEPTED_FOR_BIDDING = 'D'; + const char OrdStatus_SUSPENDED = '9'; + const char OrdStatus_REJECTED = '8'; + const char OrdStatus_PARTIALLY_FILLED = '1'; + const char OrdStatus_EXPIRED = 'C'; + const char OrdStatus_REPLACED = '5'; + const char OrdStatus_DONE_FOR_DAY = '3'; + const int CustomerOrFirm_FIRM = 1; + const int CustomerOrFirm_CUSTOMER = 0; + const int AdjustmentType_DELTA_MINUS = 2; + const int AdjustmentType_DELTA_PLUS = 1; + const int AdjustmentType_FINAL = 3; + const int AdjustmentType_PROCESS_REQUEST_AS_MARGIN_DISPOSITION = 0; + const char AsOfIndicator_TRUE = '1'; + const char AsOfIndicator_FALSE = '0'; + const int MassActionScope_ALL_ORDERS_FOR_A_MARKET_SEGMENT = 9; + const int MassActionScope_ALL_ORDERS_FOR_A_MARKET = 8; + const int MassActionScope_ALL_ORDERS_FOR_AN_UNDERLYING_SECURITY = 2; + const int MassActionScope_ALL_ORDERS = 7; + const int MassActionScope_ALL_ORDERS_FOR_A_CFICODE = 4; + const int MassActionScope_CANCEL_FOR_ISSUER_OF_UNDERLYING_SECURITY = 12; + const int MassActionScope_ALL_ORDERS_FOR_A_SECURITY = 1; + const int MassActionScope_ALL_ORDERS_FOR_A_TRADING_SESSION = 6; + const int MassActionScope_CANCEL_FOR_SECURITY_ISSUER = 11; + const int MassActionScope_ALL_ORDERS_FOR_A_SECURITY_GROUP = 10; + const int MassActionScope_ALL_ORDERS_FOR_A_PRODUCT = 3; + const int MassActionScope_ALL_ORDERS_FOR_A_SECURITYTYPE = 5; + const char VenueType_PIT = 'P'; + const char VenueType_EX_PIT = 'X'; + const char VenueType_ELECTRONIC = 'E'; + const int MassActionType_CANCEL_ORDERS = 3; + const int MassActionType_RELEASE_ORDERS_FROM_SUSPENSION = 2; + const int MassActionType_SUSPEND_ORDERS = 1; + const int PosMaintResult_SUCCESSFUL_COMPLETION = 0; + const int PosMaintResult_OTHER = 99; + const int PosMaintResult_REJECTED = 1; + const char IOIShares_MEDIUM[] = "M"; + const char IOIShares_LARGE[] = "L"; + const char IOIShares_SMALL[] = "S"; + const int PegOffsetType_PRICE = 0; + const int PegOffsetType_PRICE_TIER = 3; + const int PegOffsetType_TICKS = 2; + const int PegOffsetType_BASIS_POINTS = 1; + const int MassCancelRejectReason_INVALID_OR_UNKOWN_MARKET_SEGMENT = 8; + const int MassCancelRejectReason_INVALID_OR_UNKNOWN_SECURITY = 1; + const int MassCancelRejectReason_MASS_CANCEL_NOT_SUPPORTED = 0; + const int MassCancelRejectReason_INVALID_OR_UNKNOWN_SECURITY_GROUP = 9; + const int MassCancelRejectReason_INVALID_OR_UNKOWN_UNDERLYING_SECURITY = 2; + const int MassCancelRejectReason_INVALID_OR_UNKNOWN_ISSUER_OF_UNDERLYING_SECURITY = 11; + const int MassCancelRejectReason_INVALID_OR_UNKNOWN_SECURITYTYPE = 5; + const int MassCancelRejectReason_INVALID_OR_UNKNOWN_CFICODE = 4; + const int MassCancelRejectReason_INVALID_OR_UNKNOWN_TRADING_SESSION = 6; + const int MassCancelRejectReason_INVALID_OR_UNKNOWN_MARKET = 7; + const int MassCancelRejectReason_INVALID_OR_UNKNOWN_SECURITY_TYPE = 5; + const int MassCancelRejectReason_OTHER = 99; + const int MassCancelRejectReason_INVALID_OR_UNKNOWN_SECURITY_ISSUER = 10; + const int MassCancelRejectReason_INVALID_OR_UNKNOWN_PRODUCT = 3; + const int MassCancelRejectReason_INVALID_OR_UNKNOWN_UNDERLYING = 2; + const int ResponseTransportType_INBAND = 0; + const int ResponseTransportType_OUT_OF_BAND = 1; + const int ResponseTransportType_INBAND_TRANSPORT_THE_REQUEST_WAS_SENT_OVER = 0; + const int ResponseTransportType_OUT_OF_BAND_PRE_ARRANGED_OUT_OF_BAND_DELIVERY_MECHANISM = 1; + const int TradSesStatusRejReason_UNKNOWN_OR_INVALID_TRADINGSESSIONID = 1; + const int TradSesStatusRejReason_OTHER = 99; + const int TrdRegTimestampType_EXECUTION_TIME = 1; + const int TrdRegTimestampType_TIME_IN = 2; + const int TrdRegTimestampType_SUBMISSION_TO_CLEARING = 7; + const int TrdRegTimestampType_DESK_RECEIPT = 6; + const int TrdRegTimestampType_BROKER_RECEIPT = 4; + const int TrdRegTimestampType_BROKER_EXECUTION = 5; + const int TrdRegTimestampType_TIME_OUT = 3; + const char ApplVerID_FIX50SP1[] = "8"; + const char ApplVerID_FIX27[] = "0"; + const char ApplVerID_FIX50SP2[] = "9"; + const char ApplVerID_FIX50[] = "7"; + const char ApplVerID_FIX40[] = "2"; + const char ApplVerID_FIX41[] = "3"; + const char ApplVerID_FIX30[] = "1"; + const char ApplVerID_FIX42[] = "4"; + const char ApplVerID_FIX43[] = "5"; + const char ApplVerID_FIX44[] = "6"; + const char HandlInst_MANUAL_ORDER_BEST_EXECUTION = '3'; + const char HandlInst_AUTOMATED_EXECUTION_ORDER_PRIVATE_NO_BROKER_INTERVENTION = '1'; + const char HandlInst_AUTOMATED_EXECUTION_ORDER_PUBLIC_BROKER_INTERVENTION_OK = '2'; + const char TradingSessionSubID_POST_TRADING[] = "5"; + const char TradingSessionSubID_INTRADAY_AUCTION[] = "6"; + const char TradingSessionSubID_PRE_TRADING[] = "1"; + const char TradingSessionSubID_QUIESCENT[] = "7"; + const char TradingSessionSubID_3[] = "3"; + const char TradingSessionSubID_OPENING_OR_OPENING_AUCTION[] = "2"; + const char TradingSessionSubID_CLOSING_OR_CLOSING_AUCTION[] = "4"; + const char MDEntryType_SWAP_VALUE_FACTOR = 'S'; + const char MDEntryType_COMPOSITE_UNDERLYING_PRICE = 'D'; + const char MDEntryType_SESSION_HIGH_BID = 'N'; + const char MDEntryType_OPEN_INTEREST = 'C'; + const char MDEntryType_CLOSING_PRICE = '5'; + const char MDEntryType_PRIOR_SETTLE_PRICE = 'M'; + const char MDEntryType_TRADING_SESSION_VWAP_PRICE = '9'; + const char MDEntryType_TRADING_SESSION_LOW_PRICE = '8'; + const char MDEntryType_SETTLE_HIGH_PRICE = 'K'; + const char MDEntryType_IMBALANCE = 'A'; + const char MDEntryType_FIXING_PRICE = 'W'; + const char MDEntryType_CASH_RATE = 'X'; + const char MDEntryType_OPENING_PRICE = '4'; + const char MDEntryType_TRADE = '2'; + const char MDEntryType_CUMULATIVE_VALUE_ADJUSTMENT_FOR_SHORT_POSITIONS = 'V'; + const char MDEntryType_SIMULATED_SELL_PRICE = 'E'; + const char MDEntryType_EMPTY_BOOK = 'J'; + const char MDEntryType_AUCTION_CLEARING_PRICE = 'Q'; + const char MDEntryType_BID = '0'; + const char MDEntryType_RECOVERY_RATE_FOR_SHORT = 'a'; + const char MDEntryType_SIMULATED_BUY_PRICE = 'F'; + const char MDEntryType_EARLY_PRICES = 'P'; + const char MDEntryType_TRADING_SESSION_HIGH_PRICE = '7'; + const char MDEntryType_INDEX_VALUE = '3'; + const char MDEntryType_RECOVERY_RATE_FOR_LONG = 'Z'; + const char MDEntryType_DAILY_VALUE_ADJUSTMENT_FOR_LONG_POSITIONS = 'R'; + const char MDEntryType_MID_PRICE = 'H'; + const char MDEntryType_RECOVERY_RATE = 'Y'; + const char MDEntryType_CUMULATIVE_VALUE_ADJUSTMENT_FOR_LONG_POSITIONS = 'T'; + const char MDEntryType_DAILY_VALUE_ADJUSTMENT_FOR_SHORT_POSITIONS = 'U'; + const char MDEntryType_MARGIN_RATE = 'G'; + const char MDEntryType_SETTLE_LOW_PRICE = 'L'; + const char MDEntryType_SESSION_LOW_OFFER = 'O'; + const char MDEntryType_TRADE_VOLUME = 'B'; + const char MDEntryType_SETTLEMENT_PRICE = '6'; + const char MDEntryType_OFFER = '1'; + const int PegMoveType_FLOATING = 0; + const int PegMoveType_FIXED = 1; + const int AvgPxIndicator_LAST_TRADE_IN_THE_AVERAGE_PRICE_GROUP_IDENTIFIED_BY_THE_TRADELINKID = 2; + const int AvgPxIndicator_NO_AVERAGE_PRICING = 0; + const int AvgPxIndicator_TRADE_IS_PART_OF_AN_AVERAGE_PRICE_GROUP_IDENTIFIED_BY_THE_TRADELINKID = 1; + const int AvgPxIndicator_LAST_TRADE_IS_THE_AVERAGE_PRICE_GROUP_IDENTIFIED_BY_THE_TRADELINKID = 2; + const char CancellationRights_NO_WAIVER_AGREEMENT = 'M'; + const char CancellationRights_NO_M = 'M'; + const char CancellationRights_NO_N = 'N'; + const char CancellationRights_NO_INSTITUTIONAL = 'O'; + const char CancellationRights_YES = 'Y'; + const char CancellationRights_NO_O = 'O'; + const char CancellationRights_NO_EXECUTION_ONLY = 'N'; + const char ExecPriceType_CREATION_PRICE = 'C'; + const char ExecPriceType_CREATION_PRICE_PLUS_ADJUSTMENT_PERCENT = 'D'; + const char ExecPriceType_OFFER_PRICE_MINUS_ADJUSTMENT = 'P'; + const char ExecPriceType_OFFER_PRICE_MINUS_ADJUSTMENT_AMOUNT = 'Q'; + const char ExecPriceType_CREATION_PRICE_PLUS_ADJUSTMENT_AMOUNT = 'E'; + const char ExecPriceType_OFFER_PRICE_MINUS_ADJUSTMENT_PERCENT = 'P'; + const char ExecPriceType_BID_PRICE = 'B'; + const char ExecPriceType_SINGLE_PRICE = 'S'; + const char ExecPriceType_CREATION_PRICE_PLUS_ADJUSTMENT = 'D'; + const char ExecPriceType_OFFER_PRICE = 'O'; + const int AllocSettlInstType_PHONE_FOR_INSTRUCTIONS = 4; + const int AllocSettlInstType_SSI_DB_IDS_PROVIDED = 3; + const int AllocSettlInstType_FULL_DETAILS_PROVIDED = 2; + const int AllocSettlInstType_DERIVE_FROM_PARAMETERS_PROVIDED = 1; + const int AllocSettlInstType_USE_DEFAULT_INSTRUCTIONS = 0; + const int StatsType_AVERAGE_PRICE = 3; + const int StatsType_HIGH = 2; + const int StatsType_EXCHANGE_LAST = 1; + const int StatsType_TURNOVER = 4; + const int TradSesMode_SIMULATED = 2; + const int TradSesMode_PRODUCTION = 3; + const int TradSesMode_TESTING = 1; + const char SettlInstSource_INSTITUTIONS_INSTRUCTIONS = '2'; + const char SettlInstSource_BROKERS_INSTRUCTIONS = '1'; + const char SettlInstSource_INVESTOR = '3'; + const int ExpType_DIFFERENCE = 5; + const int ExpType_FINAL_WILL_BE_EXERCISED = 3; + const int ExpType_NON_AUTO_EXERCISE = 2; + const int ExpType_CONTRARY_INTENTION = 4; + const int ExpType_AUTO_EXERCISE = 1; + const char SettlInstTransType_REPLACE = 'R'; + const char SettlInstTransType_NEW = 'N'; + const char SettlInstTransType_RESTATE = 'T'; + const char SettlInstTransType_CANCEL = 'C'; + const int TradeRequestResult_INVALID_DESTINATION_REQUESTED = 5; + const int TradeRequestResult_UNAUTHORIZED_ROR_TRADE_CAPTURE_REPORT_REQUEST = 9; + const int TradeRequestResult_UNAUTHORIZED_FOR_TRADE_CAPTURE_REPORT_REQUEST = 9; + const int TradeRequestResult_SUCCESSFUL = 0; + const int TradeRequestResult_OTHER = 99; + const int TradeRequestResult_INVALID_OR_UNKNOWN_INSTRUMENT = 1; + const int TradeRequestResult_INVALID_PARTIES = 3; + const int TradeRequestResult_INVALID_TYPE_OF_TRADE_REQUESTED = 2; + const int TradeRequestResult_NOT_AUTHORIZED = 9; + const int TradeRequestResult_INVALID_TRANSPORT_TYPE_REQUESTED = 4; + const int TradeRequestResult_TRADEREQUESTTYPE_NOT_SUPPORTED = 8; + const char TestMessageIndicator_NO = 'N'; + const char TestMessageIndicator_YES = 'Y'; + const int ExpirationCycle_TRADING_ELIGIBILITY_EXPIRATION_SPECIFIED_IN_THE_DATE_AND_TIME_FIELDS_EVENTDATE = 2; + const int ExpirationCycle_EXPIRE_ON_TRADING_SESSION_CLOSE = 0; + const int ExpirationCycle_EXPIRE_ON_TRADING_SESSION_OPEN = 1; + const int AllocCancReplaceReason_CHANGE_IN_UNDERLYING_ORDER_DETAILS = 2; + const int AllocCancReplaceReason_OTHER = 99; + const int AllocCancReplaceReason_ORIGINAL_DETAILS_INCOMPLETE_INCORRECT = 1; + const int CxlRejReason_DUPLICATE_CLORDID = 6; + const int CxlRejReason_PRICE_EXCEEDS_CURRENT_PRICE = 7; + const int CxlRejReason_DUPLICATE_CLORDID_RECEIVED = 6; + const int CxlRejReason_UNKNOWN_ORDER = 1; + const int CxlRejReason_TOO_LATE_TO_CANCEL = 0; + const int CxlRejReason_INVALID_PRICE_INCREMENT = 18; + const int CxlRejReason_ORIGORDMODTIME = 5; + const int CxlRejReason_OTHER = 99; + const int CxlRejReason_BROKER = 2; + const int CxlRejReason_BROKER_OPTION = 2; + const int CxlRejReason_UNABLE_TO_PROCESS_ORDER_MASS_CANCEL_REQUEST = 4; + const int CxlRejReason_ORDER_ALREADY_IN_PENDING_CANCEL_OR_PENDING_REPLACE_STATUS = 3; + const int CxlRejReason_PRICE_EXCEEDS_CURRENT_PRICE_BAND = 8; + const int CxlRejReason_ORIGORDMODTIME_DID_NOT_MATCH_LAST_TRANSACTTIME_OF_ORDER = 5; + const int RespondentType_SPECIFIED_MARKET_PARTICIPANTS = 2; + const int RespondentType_ALL_MARKET_MAKERS = 3; + const int RespondentType_ALL_MARKET_PARTICIPANTS = 1; + const int RespondentType_PRIMARY_MARKET_MAKER = 4; + const char DKReason_NO_MATCHING_ORDER = 'D'; + const char DKReason_PRICE_EXCEEDS_LIMIT = 'E'; + const char DKReason_QUANTITY_EXCEEDS_ORDER = 'C'; + const char DKReason_UNKNOWN_SYMBOL = 'A'; + const char DKReason_OTHER = 'Z'; + const char DKReason_WRONG_SIDE = 'B'; + const char DKReason_CALCULATION_DIFFERENCE = 'F'; + const char PositionEffect_DEFAULT = 'D'; + const char PositionEffect_CLOSE = 'C'; + const char PositionEffect_CLOSE_BUT_NOTIFY_ON_OPEN = 'N'; + const char PositionEffect_OPEN = 'O'; + const char PositionEffect_FIFO = 'F'; + const char PositionEffect_ROLLED = 'R'; + const char TriggerAction_ACTIVATE = '1'; + const char TriggerAction_MODIFY = '2'; + const char TriggerAction_CANCEL = '3'; + const int ClearingInstruction_EXCLUDE_FROM_ALL_NETTING = 1; + const int ClearingInstruction_AUTOMATIC_POSTING_MODE = 9; + const int ClearingInstruction_MULTILATERAL_NETTING = 5; + const int ClearingInstruction_EXCLUDE_FROM_CENTRAL_COUNTERPARTY = 7; + const int ClearingInstruction_AUTOMATIC_GIVE_UP_MODE = 10; + const int ClearingInstruction_CUSTOMER_TRADE = 12; + const int ClearingInstruction_EX_CLEARING = 3; + const int ClearingInstruction_CLEAR_AGAINST_CENTRAL_COUNTERPARTY = 6; + const int ClearingInstruction_BILATERAL_NETTING_ONLY = 2; + const int ClearingInstruction_PROCESS_NORMALLY = 0; + const int ClearingInstruction_SPECIAL_TRADE = 4; + const int ClearingInstruction_MANUAL_MODE = 8; + const int ClearingInstruction_QUALIFIED_SERVICE_REPRESENTATIVE_QSR = 11; + const int ClearingInstruction_QUALIFIED_SERVICE_REPRESENTATIVE = 11; + const int ClearingInstruction_SELF_CLEARING = 13; + const char OpenCloseSettlFlag_SESSION_OPEN = '1'; + const char OpenCloseSettlFlag_EXPECTED_ENTRY = '3'; + const char OpenCloseSettlFlag_DAILY_OPEN = '0'; + const char OpenCloseSettlFlag_THEORETICAL_PRICE_VALUE = '5'; + const char OpenCloseSettlFlag_ENTRY_FROM_PREVIOUS_BUSINESS_DAY = '4'; + const char OpenCloseSettlFlag_DELIVERY_SETTLEMENT_ENTRY = '2'; + const int DiscretionMoveType_FLOATING = 0; + const int DiscretionMoveType_FIXED = 1; + const int MDUpdateType_INCREMENTAL_REFRESH = 1; + const int MDUpdateType_FULL_REFRESH = 0; + const char TickDirection_MINUS_TICK = '2'; + const char TickDirection_ZERO_PLUS_TICK = '1'; + const char TickDirection_ZERO_MINUS_TICK = '3'; + const char TickDirection_PLUS_TICK = '0'; + const char YieldType_MARK_TO_MARKET_YIELD[] = "MARK"; + const char YieldType_CLOSING_YIELD_MOST_RECENT_QUARTER[] = "LASTQUARTER"; + const char YieldType_YIELD_TO_MATURITY[] = "MATURITY"; + const char YieldType_COMPOUND_YIELD_THE_YIELD_OF_CERTAIN_JAPANESE_BONDS_BASED_ON_ITS_PRICE_CERTAIN_JAPANESE_BONDS_HAVE_IRREGULAR_FIRST_OR_LAST_COUPONS_AND_THE_YIELD_IS_CALCULATED_COMPOUND_FOR_THESE_IRREGULAR_PERIODS[] = "COMPOUND"; + const char YieldType_PREVIOUS_CLOSE_YIELD[] = "PREVCLOSE"; + const char YieldType_YIELD_AT_ISSUE[] = "ATISSUE"; + const char YieldType_YIELD_TO_NEXT_REFUND[] = "NEXTREFUND"; + const char YieldType_AFTER_TAX_YIELD[] = "AFTERTAX"; + const char YieldType_GVNT_EQUIVALENT_YIELD[] = "GOVTEQUIV"; + const char YieldType_YIELD_TO_SHORTEST_AVERAGE_LIFE_SAME_AS_AVGLIFE_ABOVE[] = "SHORTAVGLIFE"; + const char YieldType_YIELD_CHANGE_SINCE_CLOSE_THE_CHANGE_IN_THE_YIELD_SINCE_THE_PREVIOUS_DAYS_CLOSING_YIELD[] = "CHANGE"; + const char YieldType_CURRENT_YIELD_ANNUAL_INTEREST_ON_A_BOND_DIVIDED_BY_THE_MARKET_VALUE_THE_ACTUAL_INCOME_RATE_OF_RETURN_AS_OPPOSED_TO_THE_COUPON_RATE_EXPRESSED_AS_A_PERCENTAGE[] = "CURRENT"; + const char YieldType_YIELD_TO_MATURITY_THE_YIELD_OF_A_BOND_TO_ITS_MATURITY_DATE[] = "MATURITY"; + const char YieldType_CLOSING_YIELD_MOST_RECENT_YEAR[] = "LASTYEAR"; + const char YieldType_YIELD_TO_NEXT_CALL[] = "CALL"; + const char YieldType_YIELD_CHANGE_SINCE_CLOSE[] = "CHANGE"; + const char YieldType_PROCEEDS_YIELD[] = "PROCEEDS"; + const char YieldType_TAX_EQUIVALENT_YIELD_THE_AFTER_TAX_YIELD_GROSSED_UP_BY_THE_MAXIMUM_FEDERAL_TAX_RATE_OF_396_FOR_COMPARISON_TO_TAXABLE_YIELDS[] = "TAXEQUIV"; + const char YieldType_INVERSE_FLOATER_BOND_YIELD_INVERSE_FLOATER_SEMI_ANNUAL_BOND_EQUIVALENT_RATE[] = "INVERSEFLOATER"; + const char YieldType_CURRENT_YIELD[] = "CURRENT"; + const char YieldType_BOOK_YIELD_THE_YIELD_OF_A_SECURITY_CALCULATED_BY_USING_ITS_BOOK_VALUE_INSTEAD_OF_THE_CURRENT_MARKET_PRICE_THIS_TERM_IS_TYPICALLY_USED_IN_THE_US_DOMESTIC_MARKET[] = "BOOK"; + const char YieldType_COMPOUND_YIELD[] = "COMPOUND"; + const char YieldType_YIELD_TO_NEXT_PUT_THE_YIELD_TO_THE_DATE_AT_WHICH_THE_BOND_HOLDER_CAN_NEXT_PUT_THE_BOND_TO_THE_ISSUER[] = "PUT"; + const char YieldType_GOVERNMENT_EQUIVALENT_YIELD_ASK_YIELD_BASED_ON_SEMI_ANNUAL_COUPONS_COMPOUNDING_IN_ALL_PERIODS_AND_ACTUAL_ACTUAL_CALENDAR[] = "GOVTEQUIV"; + const char YieldType_YIELD_TO_TENDER_DATE_THE_YIELD_ON_A_MUNICIPAL_BOND_TO_ITS_MANDATORY_TENDER_DATE[] = "TENDER"; + const char YieldType_YIELD_TO_AVG_MATURITY[] = "AVGMATURITY"; + const char YieldType_OPEN_AVERAGE_YIELD_THE_AVERAGE_YIELD_OF_THE_RESPECTIVE_SECURITIES_IN_THE_PORTFOLIO[] = "OPENAVG"; + const char YieldType_YIELD_TO_TENDER_DATE[] = "TENDER"; + const char YieldType_CLOSING_YIELD_MOST_RECENT_MONTH_THE_YIELD_OF_A_BOND_BASED_ON_THE_CLOSING_PRICE_AS_OF_THE_MOST_RECENT_MONTHS_END[] = "LASTMONTH"; + const char YieldType_CLOSING_YIELD_MOST_RECENT_YEAR_THE_YIELD_OF_A_BOND_BASED_ON_THE_CLOSING_PRICE_AS_OF_THE_MOST_RECENT_YEARS_END[] = "LASTYEAR"; + const char YieldType_ANNUAL_YIELD[] = "ANNUAL"; + const char YieldType_YIELD_TO_WORST[] = "WORST"; + const char YieldType_YIELD_TO_NEXT_PUT[] = "PUT"; + const char YieldType_BOOK_YIELD[] = "BOOK"; + const char YieldType_TRUE_YIELD[] = "TRUE"; + const char YieldType_TRUE_YIELD_THE_YIELD_CALCULATED_WITH_COUPON_DATES_MOVED_FROM_A_WEEKEND_OR_HOLIDAY_TO_THE_NEXT_VALID_SETTLEMENT_DATE[] = "TRUE"; + const char YieldType_SEMI_ANNUAL_YIELD_THE_YIELD_OF_A_BOND_WHOSE_COUPON_PAYMENTS_ARE_REINVESTED_SEMI_ANNUALLY[] = "SEMIANNUAL"; + const char YieldType_CLOSING_YIELD_THE_YIELD_OF_A_BOND_BASED_ON_THE_CLOSING_PRICE[] = "CLOSE"; + const char YieldType_TAX_EQUIVALENT_YIELD[] = "TAXEQUIV"; + const char YieldType_PREVIOUS_CLOSE_YIELD_THE_YIELD_OF_A_BOND_BASED_ON_THE_CLOSING_PRICE_1_DAY_AGO[] = "PREVCLOSE"; + const char YieldType_YIELD_VALUE_OF_1_32_THE_AMOUNT_THAT_THE_YIELD_WILL_CHANGE_FOR_A_1_32ND_CHANGE_IN_PRICE[] = "VALUE1/32"; + const char YieldType_TRUE_GROSS_YIELD[] = "GROSS"; + const char YieldType_YIELD_TO_LONGEST_AVERAGE[] = "LONGEST"; + const char YieldType_INVERSE_FLOATER_BOND_YIELD[] = "INVERSEFLOATER"; + const char YieldType_CLOSING_YIELD_MOST_RECENT_MONTH[] = "LASTMONTH"; + const char YieldType_YIELD_TO_AVERAGE_LIFE_THE_YIELD_ASSUMING_THAT_ALL_SINKS[] = "AVGLIFE"; + const char YieldType_CLOSING_YIELD_MOST_RECENT_QUARTER_THE_YIELD_OF_A_BOND_BASED_ON_THE_CLOSING_PRICE_AS_OF_THE_MOST_RECENT_QUARTERS_END[] = "LASTQUARTER"; + const char YieldType_YIELD_TO_SHORTEST_AVERAGE[] = "SHORTEST"; + const char YieldType_OPEN_AVERAGE_YIELD[] = "OPENAVG"; + const char YieldType_TRUE_GROSS_YIELD_YIELD_CALCULATED_USING_THE_PRICE_INCLUDING_ACCRUED_INTEREST_WHERE_COUPON_DATES_ARE_MOVED_FROM_HOLIDAYS_AND_WEEKENDS_TO_THE_NEXT_TRADING_DAY[] = "GROSS"; + const char YieldType_PROCEEDS_YIELD_THE_CD_EQUIVALENT_YIELD_WHEN_THE_REMAINING_TIME_TO_MATURITY_IS_LESS_THAN_TWO_YEARS[] = "PROCEEDS"; + const char YieldType_YIELD_WITH_INFLATION_ASSUMPTION[] = "INFLATION"; + const char YieldType_YIELD_TO_LONGEST_AVERAGE_LIFE_THE_YIELD_ASSUMING_ONLY_MANDATORY_SINKS_ARE_TAKEN_THIS_RESULTS_IN_A_LOWER_PAYDOWN_OF_DEBT_THE_YIELD_IS_THEN_CALCULATED_TO_THE_FINAL_PAYMENT_DATE[] = "LONGAVGLIFE"; + const char YieldType_MARK_TO_MARKET_YIELD_AN_ADJUSTMENT_IN_THE_VALUATION_OF_A_SECURITIES_PORTFOLIO_TO_REFLECT_THE_CURRENT_MARKET_VALUES_OF_THE_RESPECTIVE_SECURITIES_IN_THE_PORTFOLIO[] = "MARK"; + const char YieldType_YIELD_TO_AVERAGE_MATURITY[] = "AVGMATURITY"; + const char YieldType_YIELD_TO_WORST_CONVENTION_THE_LOWEST_YIELD_TO_ALL_POSSIBLE_REDEMPTION_DATE_SCENARIOS[] = "WORST"; + const char YieldType_YIELD_TO_NEXT_CALL_THE_YIELD_OF_A_BOND_TO_THE_NEXT_POSSIBLE_CALL_DATE[] = "CALL"; + const char YieldType_SIMPLE_YIELD[] = "SIMPLE"; + const char YieldType_ANNUAL_YIELD_THE_ANNUAL_INTEREST_OR_DIVIDEND_INCOME_AN_INVESTMENT_EARNS_EXPRESSED_AS_A_PERCENTAGE_OF_THE_INVESTMENTS_TOTAL_VALUE[] = "ANNUAL"; + const char YieldType_SEMI_ANNUAL_YIELD[] = "SEMIANNUAL"; + const char YieldType_MOST_RECENT_CLOSING_YIELD[] = "LASTCLOSE"; + const char YieldType_GOVERNMENT_EQUIVALENT_YIELD[] = "GOVTEQUIV"; + const char YieldType_YIELD_TO_SHORTEST_AVERAGE_LIFE[] = "SHORTAVGLIFE"; + const char YieldType_CLOSING_YIELD[] = "CLOSE"; + const char YieldType_YIELD_WITH_INFLATION_ASSUMPTION_BASED_ON_PRICE_THE_RETURN_AN_INVESTOR_WOULD_REQUIRE_ON_A_NORMAL_BOND_THAT_WOULD_MAKE_THE_REAL_RETURN_EQUAL_TO_THAT_OF_THE_INFLATION_INDEXED_BOND_ASSUMING_A_CONSTANT_INFLATION_RATE[] = "INFLATION"; + const char YieldType_YIELD_VALUE_OF_1_32[] = "VALUE1_32"; + const char YieldType_MOST_RECENT_CLOSING_YIELD_THE_LAST_AVAILABLE_YIELD_STORED_IN_HISTORY_COMPUTED_USING_PRICE[] = "LASTCLOSE"; + const char YieldType_YIELD_TO_LONGEST_AVERAGE_LIFE[] = "LONGAVGLIFE"; + const char YieldType_SIMPLE_YIELD_THE_YIELD_OF_A_BOND_ASSUMING_NO_REINVESTMENT_OF_COUPON_PAYMENTS[] = "SIMPLE"; + const char YieldType_YIELD_TO_AVERAGE_MATURITY_THE_YIELD_ACHIEVED_BY_SUBSTITUTING_A_BONDS_AVERAGE_MATURITY_FOR_THE_ISSUES_FINAL_MATURITY_DATE[] = "AVGMATURITY"; + const int PegScope_NATIONAL_XXCLUDING_LOCAL = 4; + const int PegScope_NATIONAL_EXCLUDING_LOCAL = 4; + const int PegScope_LOCAL = 1; + const int PegScope_GLOBAL = 3; + const int PegScope_NATIONAL = 2; + const int SettlDeliveryType_TRI_PARTY = 2; + const int SettlDeliveryType_HOLD_IN_CUSTODY = 3; + const int SettlDeliveryType_FREE = 1; + const int SettlDeliveryType_VERSUS_PAYMENT_DELIVER = 0; + const int SettlDeliveryType_FREE_DELIVER = 1; + const int SettlDeliveryType_VERSUS_PAYMENT = 0; + const int DiscretionLimitType_STRICT = 1; + const int DiscretionLimitType_OR_BETTER = 0; + const int DiscretionLimitType_OR_WORSE = 2; + const int DiscretionLimitType_STRICT_LIMIT_IS_A_STRICT_LIMIT = 1; + const int DiscretionLimitType_OR_WORSE_FOR_A_BUY_THE_DISCRETION_PRICE_IS_A_MINIMUM_AND_FOR_A_SELL_THE_DISCRETION_PRICE_IS_A_MAXIMUM = 2; + const char ExerciseMethod_AUTOMATIC = 'A'; + const char ExerciseMethod_MANUAL = 'M'; + const char WorkingIndicator_NO = 'N'; + const char WorkingIndicator_YES = 'Y'; + const int SideMultiLegReportingType_MULTILEG_SECURITY = 3; + const int SideMultiLegReportingType_SINGLE_SECURITY = 1; + const int SideMultiLegReportingType_MULTI_LEG_SECURITY = 3; + const int SideMultiLegReportingType_INDIVIDUAL_LEG_OF_A_MULTI_LEG_SECURITY = 2; + const int SideMultiLegReportingType_INDIVIDUAL_LEG_OF_A_MULTILEG_SECURITY = 2; + const int ConfirmRejReason_MISSING_SETTLEMENT_INSTRUCTIONS = 2; + const int ConfirmRejReason_OTHER = 99; + const int ConfirmRejReason_MISMATCHED_ACCOUNT = 1; + const char BidRequestTransType_NEW = 'N'; + const char BidRequestTransType_NO = 'N'; + const char BidRequestTransType_CANCEL = 'C'; + const int MassActionRejectReason_INVALID_OR_UNKNOWN_SECURITY = 1; + const int MassActionRejectReason_INVALID_OR_UNKNOWN_SECURITY_GROUP = 9; + const int MassActionRejectReason_INVALID_OR_UNKNOWN_ISSUER_OF_UNDERLYING_SECURITY = 11; + const int MassActionRejectReason_INVALID_OR_UNKNOWN_SECURITYTYPE = 5; + const int MassActionRejectReason_INVALID_OR_UNKNOWN_CFICODE = 4; + const int MassActionRejectReason_INVALID_OR_UNKNOWN_UNDERLYING_SECURITY = 2; + const int MassActionRejectReason_INVALID_OR_UNKNOWN_TRADING_SESSION = 6; + const int MassActionRejectReason_INVALID_OR_UNKNOWN_MARKET_SEGMENT = 8; + const int MassActionRejectReason_INVALID_OR_UNKNOWN_MARKET = 7; + const int MassActionRejectReason_MASS_ACTION_NOT_SUPPORTED = 0; + const int MassActionRejectReason_OTHER = 99; + const int MassActionRejectReason_INVALID_OR_UNKNOWN_SECURITY_ISSUER = 10; + const int MassActionRejectReason_INVALID_OR_UNKNOWN_PRODUCT = 3; + const int CollApplType_GENERAL = 1; + const int CollApplType_SPECIFIC_DEPOSIT = 0; + const int ConfirmType_CONFIRMATION = 2; + const int ConfirmType_CONFIRMATION_REQUEST_REJECTED = 3; + const int ConfirmType_STATUS = 1; + const int MDQuoteType_INDICATIVE = 0; + const int MDQuoteType_RESTRICTED_TRADEABLE = 2; + const int MDQuoteType_INDICATIVE_AND_TRADEABLE = 4; + const int MDQuoteType_TRADEABLE = 1; + const int MDQuoteType_COUNTER = 3; + const int QtyType_CONTRACTS = 1; + const int QtyType_UNITS_OF_MEASURE_PER_TIME_UNIT = 2; + const int QtyType_UNITS = 0; + const int QuoteRespType_END_TRADE = 7; + const int QuoteRespType_COVER = 4; + const int QuoteRespType_HIT_LIFT = 1; + const int QuoteRespType_DONE_AWAY = 5; + const int QuoteRespType_TIMED_OUT = 8; + const int QuoteRespType_PASS = 6; + const int QuoteRespType_EXPIRED = 3; + const int QuoteRespType_COUNTER = 2; + const char IOINaturalFlag_NO = 'N'; + const char IOINaturalFlag_YES = 'Y'; + const char SettlObligSource_INSTRUCTIONS_OF_BROKER = '1'; + const char SettlObligSource_INVESTOR = '3'; + const char SettlObligSource_INSTRUCTIONS_FOR_INSTITUTION = '2'; + const int TrdSubType_ON_HOURS_TRADE = 34; + const int TrdSubType_INTERIM_PROTECTED_TRADE = 38; + const int TrdSubType_K = 16; + const int TrdSubType_LC = 17; + const int TrdSubType_WN = 31; + const int TrdSubType_CONVERTED_SWAP = 36; + const int TrdSubType_B = 15; + const int TrdSubType_M = 18; + const int TrdSubType_RT = 28; + const int TrdSubType_ONSET_DUE_TO_AN_ALLOCATION = 6; + const int TrdSubType_CMTA = 0; + const int TrdSubType_INTERNAL_TRANSFER_OR_ADJUSTMENT = 1; + const int TrdSubType_DIFFERENTIAL_SPREAD = 7; + const int TrdSubType_TRANSACTION_FROM_EXERCISE = 9; + const int TrdSubType_TRANSACTION_FROM_ASSIGNMENT = 10; + const int TrdSubType_N = 19; + const int TrdSubType_IMPLIED_SPREAD_LEG_EXECUTED_AGAINST_AN_OUTRIGHT = 8; + const int TrdSubType_NR = 21; + const int TrdSubType_SW = 29; + const int TrdSubType_OTC_QUOTE = 35; + const int TrdSubType_ADVISORY_FOR_CONTRA_SIDE = 4; + const int TrdSubType_OFFSET_DUE_TO_AN_ALLOCATION = 5; + const int TrdSubType_P = 22; + const int TrdSubType_CROSSED_TRADE = 37; + const int TrdSubType_PA = 23; + const int TrdSubType_EXTERNAL_TRANSFER_OR_TRANSFER_OF_ACCOUNT = 2; + const int TrdSubType_R = 26; + const int TrdSubType_RO = 27; + const int TrdSubType_WT = 32; + const int TrdSubType_OFF_HOURS_TRADE = 33; + const int TrdSubType_REJECT_FOR_SUBMITTING_SIDE = 3; + const int TrdSubType_ONSET_DUT_TO_AN_ALLOCATION = 6; + const int TrdSubType_AI = 14; + const int TrdSubType_PC = 24; + const int TrdSubType_PN = 25; + const int TrdSubType_LARGE_IN_SCALE = 39; + const int TrdSubType_NM = 20; + const int TrdSubType_T = 30; + const int TrdSubType_ACATS = 11; + const char ExecTransType_NEW = '0'; + const char ExecTransType_CORRECT = '2'; + const char ExecTransType_CANCEL = '1'; + const char ExecTransType_STATUS = '3'; + const char DayBookingInst_CAN_TRIGGER_BOOKING_WITHOUT_REFERENCE_TO_THE_ORDER_INITIATOR = '0'; + const char DayBookingInst_ACCUMULATE = '2'; + const char DayBookingInst_SPEAK_WITH_ORDER_INITIATOR_BEFORE_BOOKING = '1'; + const int FlowScheduleType_NERC_EASTERN_OFF_PEAK = 0; + const int FlowScheduleType_NERC_WESTERN_PEAK = 4; + const int FlowScheduleType_NERC_EASTERN_PEAK = 3; + const int FlowScheduleType_NERC_CALENDAR_ALL_DAYS_IN_MONTH = 2; + const int FlowScheduleType_NERC_WESTERN_OFF_PEAK = 1; + const int MDOriginType_CROSS = 2; + const int MDOriginType_OFF_BOOK = 1; + const int MDOriginType_BOOK = 0; + const int CollInquiryStatus_COMPLETED = 2; + const int CollInquiryStatus_ACCEPTED_WITH_WARNINGS = 1; + const int CollInquiryStatus_REJECTED = 4; + const int CollInquiryStatus_ACCEPTED = 0; + const int CollInquiryStatus_COMPLETED_WITH_WARNINGS = 3; + const int CPProgram_OTHER = 99; + const int CPProgram_3 = 1; + const int CPProgram_4 = 2; + const int PosReqType_POSITIONS = 0; + const int PosReqType_BACKOUT_MESSAGE = 5; + const int PosReqType_DELTA_POSITIONS = 6; + const int PosReqType_SETTLEMENT_ACTIVITY = 4; + const int PosReqType_TRADES = 1; + const int PosReqType_EXERCISES = 2; + const int PosReqType_ASSIGNMENTS = 3; + const int MassStatusReqType_STATUS_FOR_ORDERS_FOR_AN_UNDERLYING_SECURITY = 2; + const int MassStatusReqType_STATUS_FOR_ORDERS_FOR_A_SECURITY = 1; + const int MassStatusReqType_STATUS_FOR_ORDERS_FOR_A_CFICODE = 4; + const int MassStatusReqType_STATUS_FOR_ORDERS_FOR_A_PARTYID = 8; + const int MassStatusReqType_STATUS_FOR_SECURITY_ISSUER = 9; + const int MassStatusReqType_STATUS_FOR_ORDERS_FOR_A_TRADING_SESSION = 6; + const int MassStatusReqType_STATUS_FOR_ORDERS_FOR_A_PRODUCT = 3; + const int MassStatusReqType_STATUS_FOR_ORDERS_FOR_A_SECURITYTYPE = 5; + const int MassStatusReqType_STATUS_FOR_ALL_ORDERS = 7; + const int MassStatusReqType_STATUS_FOR_ISSUER_OF_UNDERLYING_SECURITY = 10; + const char SubscriptionRequestType_DISABLE_PREVIOUS_SNAPSHOT_PLUS_UPDATE_REQUEST = '2'; + const char SubscriptionRequestType_SNAPSHOT_PLUS_UPDATES = '1'; + const char SubscriptionRequestType_SNAPSHOT = '0'; + const int NewsCategory_MARKETPLACE_NEWS = 1; + const int NewsCategory_TECHNICAL_NEWS = 3; + const int NewsCategory_COMPANY_NEWS = 0; + const int NewsCategory_OTHER_NEWS = 99; + const int NewsCategory_FINANCIAL_MARKET_NEWS = 2; + const char IOIQty_MEDIUM[] = "M"; + const char IOIQty_LARGE[] = "L"; + const char IOIQty_SMALL[] = "S"; + const char IOIQty_UNDISCLOSED_QUANTITY[] = "U"; + const int ApplResponseError_USER_NOT_AUTHORIZED_FOR_APPLICATION = 2; + const int ApplResponseError_APPLICATION_DOES_NOT_EXIST = 0; + const int ApplResponseError_MESSAGES_REQUESTED_ARE_NOT_AVAILABLE = 1; + const char TriggerPriceDirection_TRIGGER_IF_THE_PRICE_OF_THE_SPECIFIED_TYPE_GOES_DOWN_TO_OR_THROUGH_THE_SPECIFIED_TRIGGER_PRICE = 'D'; + const char TriggerPriceDirection_TRIGGER_IF_THE_PRICE_OF_THE_SPECIFIED_TYPE_GOES_UP_TO_OR_THROUGH_THE_SPECIFIED_TRIGGER_PRICE = 'U'; + const int LastLiquidityInd_LIQUIDITY_ROUTED_OUT = 3; + const int LastLiquidityInd_AUCTION = 4; + const int LastLiquidityInd_ADDED_LIQUIDITY = 1; + const int LastLiquidityInd_REMOVED_LIQUIDITY = 2; + const int StrikePriceDeterminationMethod_STRIKE_SET_TO_AVERAGE_OF_UNDERLYING_SETTLEMENT_PRICE_ACROSS_THE_LIFE_OF_THE_OPTION = 3; + const int StrikePriceDeterminationMethod_STRIKE_SET_AT_EXPIRATION_TO_UNDERLYING_OR_OTHER_VALUE = 2; + const int StrikePriceDeterminationMethod_FIXED_STRIKE = 1; + const int StrikePriceDeterminationMethod_STRIKE_SET_TO_OPTIMAL_VALUE = 4; + const int TargetStrategy_PARTICIPATE = 2; + const int TargetStrategy_MININIZE_MARKET_IMPACT = 3; + const int TargetStrategy_VWAP = 1; + const char DueToRelated_NO = 'N'; + const char DueToRelated_YES = 'Y'; + const char UnderlyingCashType_DIFF[] = "DIFF"; + const char UnderlyingCashType_FIXED[] = "FIXED"; + const int CustOrderCapacity_CLEARING_FIRM_TRADING_FOR_ITS_PROPRIETARY_ACCOUNT = 2; + const int CustOrderCapacity_MEMBER_TRADING_FOR_THEIR_OWN_ACCOUNT = 1; + const int CustOrderCapacity_MEMBER_TRADING_FOR_ANOTHER_MEMBER = 3; + const int CustOrderCapacity_ALL_OTHER = 4; + const char OwnershipType_JOINT_TRUSTEES = '2'; + const char OwnershipType_JOINT_INVESTORS = 'J'; + const char OwnershipType_TENANTS_IN_COMMON = 'T'; + const char UnitOfMeasure_US_DOLLARS[] = "USD"; + const char UnitOfMeasure_TONS[] = "tn"; + const char UnitOfMeasure_TROY_OUNCES[] = "oz_tr"; + const char UnitOfMeasure_MEGAWATT_HOURS[] = "MWh"; + const char UnitOfMeasure_ONE_MILLION_BTU[] = "MMBtu"; + const char UnitOfMeasure_BILLION_CUBIC_FEET[] = "Bcf"; + const char UnitOfMeasure_MILLION_BARRELS[] = "MMbbl"; + const char UnitOfMeasure_GALLONS[] = "Gal"; + const char UnitOfMeasure_BARRELS[] = "Bbl"; + const char UnitOfMeasure_POUNDS[] = "lbs"; + const char UnitOfMeasure_METRIC_TONS[] = "t"; + const char UnitOfMeasure_ALLOWANCES[] = "Alw"; + const char UnitOfMeasure_BUSHELS[] = "Bu"; + const char SettlmntTyp_WHEN_AND_IF_ISSUED = '7'; + const char SettlmntTyp_T_PLUS_1 = 'A'; + const char SettlmntTyp_FUTURE = '6'; + const char SettlmntTyp_SELLERS_OPTION = '8'; + const char SettlmntTyp_T_PLUS_2 = '3'; + const char SettlmntTyp_T_PLUS_3 = '4'; + const char SettlmntTyp_T_PLUS_4 = '5'; + const char SettlmntTyp_REGULAR = '0'; + const char SettlmntTyp_T_PLUS_5 = '9'; + const char SettlmntTyp_WHEN_ISSUED = '7'; + const char SettlmntTyp_NEXT_DAY = '2'; + const char SettlmntTyp_CASH = '1'; + const int TradePublishIndicator_DO_NOT_PUBLISH_TRADE = 0; + const int TradePublishIndicator_DEFERRED_PUBLICATION = 2; + const int TradePublishIndicator_PUBLISH_TRADE = 1; + const int ApplResponseType_MESSAGES_NOT_AVAILABLE = 2; + const int ApplResponseType_APPLICATION_DOES_NOT_EXIST = 1; + const int ApplResponseType_REQUEST_SUCCESSFULLY_PROCESSED = 0; + const int StandInstDbType_DTC_SID = 1; + const int StandInstDbType_ACCOUNTNET = 4; + const int StandInstDbType_A_GLOBAL_CUSTODIAN = 3; + const int StandInstDbType_THOMSON_ALERT = 2; + const int StandInstDbType_OTHER = 0; + const int QuoteEntryStatus_CROSS_MARKET_WARNING = 13; + const int QuoteEntryStatus_LOCKED_MARKET_WARNING = 12; + const int QuoteEntryStatus_CANCELED_DUE_TO_CROSS_MARKET = 15; + const int QuoteEntryStatus_CANCELED_DUE_TO_LOCK_MARKET = 14; + const int QuoteEntryStatus_REJECTED = 5; + const int QuoteEntryStatus_EXPIRED = 7; + const int QuoteEntryStatus_REMOVED_FROM_MARKET = 6; + const int QuoteEntryStatus_ACCEPTED = 0; + const int QuoteEntryStatus_ACTIVE = 16; + const char TriggerPriceType_BEST_MID = '6'; + const char TriggerPriceType_BEST_BID_OR_LAST_TRADE = '4'; + const char TriggerPriceType_BEST_BID = '3'; + const char TriggerPriceType_BEST_OFFER_OR_LAST_TRADE = '5'; + const char TriggerPriceType_BEST_OFFER = '1'; + const char TriggerPriceType_LAST_TRADE = '2'; + const int SettlInstReqRejCode_UNABLE_TO_PROCESS_REQUEST = 0; + const int SettlInstReqRejCode_NO_MATCHING_SETTLEMENT_INSTRUCTIONS_FOUND = 2; + const int SettlInstReqRejCode_UNKNOWN_ACCOUNT = 1; + const int SettlInstReqRejCode_OTHER = 99; + const char Urgency_FLASH = '1'; + const char Urgency_NORMAL = '0'; + const char Urgency_BACKGROUND = '2'; + const int CollAsgnTransType_REPLACE = 1; + const int CollAsgnTransType_NEW = 0; + const int CollAsgnTransType_REVERSE = 4; + const int CollAsgnTransType_CANCEL = 2; + const int CollAsgnTransType_RELEASE = 3; + const int PaymentMethod_FED_WIRE = 7; + const int PaymentMethod_EUROCLEAR = 3; + const int PaymentMethod_ACH_CREDIT = 13; + const int PaymentMethod_TELEGRAPHIC_TRANSFER = 6; + const int PaymentMethod_FEDWIRE = 7; + const int PaymentMethod_DIRECT_DEBIT = 9; + const int PaymentMethod_CREDIT_CARD = 11; + const int PaymentMethod_CHEQUE = 5; + const int PaymentMethod_DIRECT_CREDIT = 10; + const int PaymentMethod_CREST = 1; + const int PaymentMethod_HIGH_VALUE_CLEARING_SYSTEM = 15; + const int PaymentMethod_CLEARSTREAM = 4; + const int PaymentMethod_BPAY = 14; + const int PaymentMethod_NSCC = 2; + const int PaymentMethod_DEBIT_CARD = 8; + const int PaymentMethod_ACH_DEBIT = 12; + const char TriggerPriceTypeScope_LOCAL = '1'; + const char TriggerPriceTypeScope_NONE = '0'; + const char TriggerPriceTypeScope_GLOBAL = '3'; + const char TriggerPriceTypeScope_NATIONAL = '2'; + const int PegLimitType_STRICT = 1; + const int PegLimitType_OR_BETTER = 0; + const int PegLimitType_OR_WORSE = 2; + const int PegLimitType_STRICT_LIMIT_IS_A_STRICT_LIMIT = 1; + const int PegLimitType_OR_WORSE_FOR_A_BUY_THE_PEG_LIMIT_IS_A_MINIMUM_AND_FOR_A_SELL_THE_PEG_LIMIT_IS_A_MAXIMUM = 2; + const char Side_BORROW = 'G'; + const char Side_BUY_MINUS = '3'; + const char Side_SUBSCRIBE = 'D'; + const char Side_CROSS_SHORT_EXEMPT = 'A'; + const char Side_UNDISCLOSED = '7'; + const char Side_CROSS = '8'; + const char Side_SELL_SHORT_EXEMPT = '6'; + const char Side_BUY = '1'; + const char Side_CROSS_SHORT_EXXMPT = 'A'; + const char Side_SELL = '2'; + const char Side_LEND = 'F'; + const char Side_SELL_SHORT = '5'; + const char Side_OPPOSITE = 'C'; + const char Side_CROSS_SHORT = '9'; + const char Side_SELL_PLUS = '4'; + const char Side_REDEEM = 'E'; + const char Side_AS_DEFINED = 'B'; + const int ContAmtType_EXIT_CHARGE = 10; + const int ContAmtType_DILUTION_LEVY_AMOUNT = 7; + const int ContAmtType_DILUTION_LEVY_PERCENT = 8; + const int ContAmtType_DISCOUNT_AMOUNT = 5; + const int ContAmtType_COMMISSION = 2; + const int ContAmtType_INITIAL_CHARGE_PERCENT = 4; + const int ContAmtType_DILUTION_LEVY = 8; + const int ContAmtType_COMMISSION_AMOUNT = 1; + const int ContAmtType_NET_SETTLEMENT_AMOUNT = 15; + const int ContAmtType_FUND_BASED_RENEWAL_COMMISSION = 11; + const int ContAmtType_DISCOUNT = 6; + const int ContAmtType_FUND_BASED_RENEWAL_COMMISSION_AMOUNT_13 = 13; + const int ContAmtType_EXIT_CHARGE_AMOUNT = 9; + const int ContAmtType_INITIAL_CHARGE = 4; + const int ContAmtType_DISCOUNT_PERCENT = 6; + const int ContAmtType_EXIT_CHARGE_PERCENT = 10; + const int ContAmtType_FUND_BASED_RENEWAL_COMMISSION_AMOUNT_14 = 14; + const int ContAmtType_COMMISSION_PERCENT = 2; + const int ContAmtType_FUND_BASED_RENEWAL_COMMISSION_PERCENT = 11; + const int ContAmtType_PROJECTED_FUND_VALUE = 12; + const int ContAmtType_INITIAL_CHARGE_AMOUNT = 3; + const char OrderCategory_IMPLIED_ORDER = '7'; + const char OrderCategory_STREAMING_PRICE = '9'; + const char OrderCategory_QUOTE_REQUEST = '6'; + const char OrderCategory_CROSS_ORDER = '8'; + const char OrderCategory_MULTILEG_ORDER = '4'; + const char OrderCategory_PRIVATELY_NEGOTIATED_TRADE = '3'; + const char OrderCategory_QUOTE = '2'; + const char OrderCategory_ORDER = '1'; + const char OrderCategory_LINKED_ORDER = '5'; + const char AdvTransType_REPLACE[] = "R"; + const char AdvTransType_NEW[] = "N"; + const char AdvTransType_CANCEL[] = "C"; + const char PublishTrdIndicator_NO = 'N'; + const char PublishTrdIndicator_YES = 'Y'; + const int SecurityResponseType_LIST_OF_SECURITIES_RETURNED_PER_REQUEST = 4; + const int SecurityResponseType_LIST_OF_SECURITY_TYPES_RETURNED_PER_REQUEST = 3; + const int SecurityResponseType_ACCEPT_SECURITY_PROPOSAL_WITH_REVISIONS_AS_INDICATED_IN_THE_MESSAGE = 2; + const int SecurityResponseType_ACCEPT_SECURITY_PROPOSAL_AS_IS = 1; + const int SecurityResponseType_REJECT_SECURITY_PROPOSAL = 5; + const int SecurityResponseType_CAN_NOT_MATCH_SELECTION_CRITERIA = 6; + const int SecurityResponseType_CANNOT_MATCH_SELECTION_CRITERIA = 6; + const int SessionStatus_PASSWORD_EXPIRED = 8; + const int SessionStatus_SESSION_LOGOUT_COMPLETE = 4; + const int SessionStatus_INVALID_USERNAME_OR_PASSWORD = 5; + const int SessionStatus_SESSION_ACTIVE = 0; + const int SessionStatus_SESSION_PASSWORD_CHANGED = 1; + const int SessionStatus_ACCOUNT_LOCKED = 6; + const int SessionStatus_LOGONS_ARE_NOT_ALLOWED_AT_THIS_TIME = 7; + const int SessionStatus_SESSION_PASSWORD_DUE_TO_EXPIRE = 2; + const int SessionStatus_NEW_SESSION_PASSWORD_DOES_NOT_COMPLY_WITH_POLICY = 3; + const int AllocAccountType_HOUSE_TRADER = 3; + const int AllocAccountType_FLOOR_TRADER = 4; + const int AllocAccountType_ACCOUNT_IS_CARRIED_ON_NON_CUSTOMER_SIDE_OF_BOOKS = 2; + const int AllocAccountType_JOINT_BACK_OFFICE_ACCOUNT = 8; + const int AllocAccountType_ACCOUNT_IS_CARRIED_ON_NON_CUSTOMER_SIDE_OF_BOOKS_AND_IS_CROSS_MARGINED = 6; + const int AllocAccountType_ACCOUNT_IS_CARRIED_ON_CUSTOMER_SIDE_OF_BOOKS = 1; + const int AllocAccountType_ACCOUNT_IS_CARRIED_PN_CUSTOMER_SIDE_OF_BOOKS = 1; + const int AllocAccountType_JOINT_BACKOFFICE_ACCOUNT = 8; + const int AllocAccountType_ACCOUNT_IS_HOUSE_TRADER_AND_IS_CROSS_MARGINED = 7; + const char AllocTransType_REPLACE = '1'; + const char AllocTransType_NEW = '0'; + const char AllocTransType_CALCULATED = '4'; + const char AllocTransType_PRELIMINARY = '3'; + const char AllocTransType_CANCEL = '2'; + const char AllocTransType_REVERSAL = '6'; + const char AllocTransType_CALCULATED_WITHOUT_PRELIMINARY = '5'; + const int ExpirationQtyType_DIFFERENCE = 5; + const int ExpirationQtyType_FINAL_WILL_BE_EXERCISED = 3; + const int ExpirationQtyType_NON_AUTO_EXERCISE = 2; + const int ExpirationQtyType_CONTRARY_INTENTION = 4; + const int ExpirationQtyType_AUTO_EXERCISE = 1; + const int AllocHandlInst_FORWARD_AND_MATCH = 3; + const int AllocHandlInst_FORWARD = 2; + const int AllocHandlInst_MATCH = 1; + const int TradeRequestStatus_COMPLETED = 1; + const int TradeRequestStatus_REJECTED = 2; + const int TradeRequestStatus_ACCEPTED = 0; + const char PreallocMethod_DO_NOT_PRO_RATA_DISCUSS_FIRST = '1'; + const char PreallocMethod_PRO_RATA = '0'; + const char PreallocMethod_DO_NOT_PRO_RATA = '1'; + const int TaxAdvantageType_457 = 23; + const int TaxAdvantageType_MAXI_ISA = 1; + const int TaxAdvantageType_EMPLOYEE_CURRENT_YEAR = 10; + const int TaxAdvantageType_EMPLOYEE_9 = 9; + const int TaxAdvantageType_403 = 22; + const int TaxAdvantageType_KEOGH = 18; + const int TaxAdvantageType_401K = 20; + const int TaxAdvantageType_SELF_DIRECTED_IRA = 21; + const int TaxAdvantageType_DEFINED_CONTRIBUTION_PLAN = 15; + const int TaxAdvantageType_INDIVIDUAL_RETIREMENT_ACCOUNT_16 = 16; + const int TaxAdvantageType_ROTH_IRA_24 = 24; + const int TaxAdvantageType_CURRENT_YEAR_PAYMENT = 6; + const int TaxAdvantageType_MINI_INSURANCE_ISA = 5; + const int TaxAdvantageType_INDIVIDUAL_RETIREMENT_ACCOUNT_17 = 17; + const int TaxAdvantageType_EDUCATION_IRA_28 = 28; + const int TaxAdvantageType_ROTH_IRA_25 = 25; + const int TaxAdvantageType_INDIVIDUAL_RETIREMENT_ACCOUNT = 16; + const int TaxAdvantageType_EMPLOYEE_10 = 10; + const int TaxAdvantageType_EDUCATION_IRA_29 = 29; + const int TaxAdvantageType_PRIOR_YEAR_PAYMENT = 7; + const int TaxAdvantageType_INDIVIDUAL_RETIREMENT_ACCOUNT_ROLLOVER = 17; + const int TaxAdvantageType_EMPLOYER_11 = 11; + const int TaxAdvantageType_ASSET_TRANSFER = 8; + const int TaxAdvantageType_EMPLOYER_12 = 12; + const int TaxAdvantageType_OTHER = 999; + const int TaxAdvantageType_MINI_STOCKS_AND_SHARES_ISA = 4; + const int TaxAdvantageType_EMPLOYEE = 9; + const int TaxAdvantageType_ROTH_CONVERSION_IRA_26 = 26; + const int TaxAdvantageType_MINI_CASH_ISA = 3; + const int TaxAdvantageType_ROTH_CONVERSION_IRA_27 = 27; + const int TaxAdvantageType_NONE_NOT_APPLICABLE = 0; + const int TaxAdvantageType_TESSA = 2; + const int TaxAdvantageType_NON_FUND_QUALIFIED_PLAN = 14; + const int TaxAdvantageType_EMPLOYER_CURRENT_YEAR = 12; + const int TaxAdvantageType_EMPLOYER = 11; + const int TaxAdvantageType_PROFIT_SHARING_PLAN = 19; + const int TaxAdvantageType_401 = 20; + const int TaxAdvantageType_NON_FUND_PROTOTYPE_IRA = 13; + const char MessageEncoding_EUC_JP[] = "EUC-JP"; + const char MessageEncoding_SHIFT_JIS[] = "SHIFT_JIS"; + const char MessageEncoding_UTF_8[] = "UTF-8"; + const char MessageEncoding_ISO_2022_JP[] = "ISO-2022-JP"; + const char MessageEncoding_EUC[] = "EUC-JP"; + const char MessageEncoding_JIS[] = "ISO-2022-JP"; + const char MessageEncoding_FOR_USING_SJIS[] = "Shift_JIS"; + const char MessageEncoding_UNICODE[] = "UTF-8"; + const char TimeInForce_GOOD_TILL_CROSSING = '5'; + const char TimeInForce_FILL_OR_KILL = '4'; + const char TimeInForce_GOOD_TILL_DATE = '6'; + const char TimeInForce_GOOD_TILL_CANCEL = '1'; + const char TimeInForce_DAY = '0'; + const char TimeInForce_AT_CROSSING = '9'; + const char TimeInForce_IMMEDIATE_OR_CANCEL = '3'; + const char TimeInForce_GOOD_THROUGH_CROSSING = '8'; + const char TimeInForce_AT_THE_CLOSE = '7'; + const char TimeInForce_AT_THE_OPENING = '2'; + const char IOIQualifier_THROUGH_THE_DAY = 'T'; + const char IOIQualifier_INDIDCATION = 'W'; + const char IOIQualifier_AT_THE_MARKET = 'Q'; + const char IOIQualifier_AT_THE_MIDPOINT = 'Y'; + const char IOIQualifier_CROSSING_OPPORTUNITY = 'X'; + const char IOIQualifier_CURRENT_QUOTE = 'Q'; + const char IOIQualifier_IN_TOUCH_WITH = 'I'; + const char IOIQualifier_ALL_OR_NONE = 'A'; + const char IOIQualifier_TAKING_A_POSITION = 'P'; + const char IOIQualifier_AT_THE_OPEN = 'O'; + const char IOIQualifier_PORTFOLIO_SHOW_N = 'S'; + const char IOIQualifier_MARKET_ON_CLOSE = 'B'; + const char IOIQualifier_VERSUS = 'V'; + const char IOIQualifier_LIMIT = 'L'; + const char IOIQualifier_PORTFOLIO_SHOWN = 'S'; + const char IOIQualifier_READY_TO_TRADE = 'R'; + const char IOIQualifier_PRE_OPEN = 'Z'; + const char IOIQualifier_INDICATION = 'W'; + const char IOIQualifier_MORE_BEHIND = 'M'; + const char IOIQualifier_VWAP = 'D'; + const char IOIQualifier_AT_THE_CLOSE = 'C'; + const int StrikePriceBoundaryMethod_GREATER_THAN_OR_EQUAL_TO_UNDERLYING_PRICE_IS_IN_THE_MONEY = 4; + const int StrikePriceBoundaryMethod_GREATER_THAN_UNDERLYING_IS_IN_THE_MONEY = 5; + const int StrikePriceBoundaryMethod_LESS_THAN_OR_EQUAL_TO_THE_UNDERLYING_PRICE_IS_IN_THE_MONEY = 2; + const int StrikePriceBoundaryMethod_LESS_THAN_UNDERLYING_PRICE_IS_IN_THE_MONEY = 1; + const int StrikePriceBoundaryMethod_EQUAL_TO_THE_UNDERLYING_PRICE_IS_IN_THE_MONEY = 3; + const char MiscFeeType_CONVERSION[] = "11"; + const char MiscFeeType_CONSUMPTION_TAX[] = "9"; + const char MiscFeeType_LOCAL_COMMISSION[] = "3"; + const char MiscFeeType_TAX[] = "2"; + const char MiscFeeType_MARKUP[] = "8"; + const char MiscFeeType_SECURITY_LENDING[] = "14"; + const char MiscFeeType_PER_TRANSACTION[] = "10"; + const char MiscFeeType_REGULATORY[] = "1"; + const char MiscFeeType_STAMP[] = "5"; + const char MiscFeeType_TRANSFER_FEE[] = "13"; + const char MiscFeeType_AGENT[] = "12"; + const char MiscFeeType_OTHER[] = "7"; + const char MiscFeeType_EXCHANGE_FEES[] = "4"; + const char MiscFeeType_LEVY[] = "6"; + const char SecurityIDSource_OPTION_PRICE_REPORTING_AUTHORITY[] = "J"; + const char SecurityIDSource_CLEARING_HOUSE[] = "H"; + const char SecurityIDSource_EXCHANGE_SYMBOL[] = "8"; + const char SecurityIDSource_SICOVAM[] = "E"; + const char SecurityIDSource_ISDA_FPML_PRODUCT_URL[] = "K"; + const char SecurityIDSource_ISDA_FPML_PRODUCT_SPECIFICATION[] = "I"; + const char SecurityIDSource_RIC_CODE[] = "5"; + const char SecurityIDSource_ISO_CURRENCY_CODE[] = "6"; + const char SecurityIDSource_COMMON[] = "G"; + const char SecurityIDSource_VALOREN[] = "D"; + const char SecurityIDSource_BELGIAN[] = "F"; + const char SecurityIDSource_OPTIONS_PRICE_REPORTING_AUTHORITY[] = "J"; + const char SecurityIDSource_ISIN_NUMBER[] = "4"; + const char SecurityIDSource_SEDOL[] = "2"; + const char SecurityIDSource_ISO_COUNTRY_CODE[] = "7"; + const char SecurityIDSource_LETTER_OF_CREDIT[] = "L"; + const char SecurityIDSource_BLOOMBERG_SYMBOL[] = "A"; + const char SecurityIDSource_WERTPAPIER[] = "B"; + const char SecurityIDSource_MARKETPLACE_ASSIGNED_IDENTIFIER[] = "M"; + const char SecurityIDSource_CONSOLIDATED_TAPE_ASSOCIATION[] = "9"; + const char SecurityIDSource_DUTCH[] = "C"; + const char SecurityIDSource_QUIK[] = "3"; + const char SecurityIDSource_CUSIP[] = "1"; + const int NewsRefType_OTHER_LANGUAGE = 1; + const int NewsRefType_COMPLIMENTARY = 2; + const int NewsRefType_REPLACEMENT = 0; + const char TriggerOrderType_LIMIT = '2'; + const char TriggerOrderType_MARKET = '1'; + const int CrossType_CROSS_TRADE_IS_EXECUTED_WITH_EXISTING_ORDERS_WITH_THE_SAME_PRICE_IN_THE_CASE_OTHER_ORDERS_EXIST_WITH_THE_SAME_PRICE_THE_QUANTITY_OF_THE_CROSS_IS_EXECUTED_AGAINST_THE_EXISTING_ORDERS_AND_QUOTES_THE_REMAINDER_OF_THE_CROSS_IS_EXECUTED_AGAINST_THE_OTHER_SIDE_OF_THE_CROSS_THE_TWO_SIDES_POTENTIALLY_HAVE_DIFFERENT_QUANTITIES = 4; + const int CrossType_CROSS_AON = 1; + const int CrossType_CROSS_TRADE_WHICH_IS_PARTIALLY_EXECUTED_WITH_THE_UNFILLED_PORTIONS_REMAINING_ACTIVE_ONE_SIDE_OF_THE_CROSS_IS_FULLY_EXECUTED = 3; + const int CrossType_CROSS_TRADE_WHICH_IS_EXECUTED_COMPLETELY_OR_NOT_BOTH_SIDES_ARE_TREATED_IN_THE_SAME_MANNER_THIS_IS_EQUIVALENT_TO_AN_ALL_OR_NONE = 1; + const int CrossType_CROSS_TRADE_IS_EXECUTED_WITH_EXISTING_ORDERS_WITH_THE_SAME_PRICE = 4; + const int CrossType_CROSS_ONE_SIDE = 3; + const int CrossType_CROSS_SAME_PRICE = 4; + const int CrossType_CROSS_IOC = 2; + const int CrossType_CROSS_TRADE_WHICH_IS_EXECUTED_PARTIALLY_AND_THE_REST_IS_CANCELLED_ONE_SIDE_IS_FULLY_EXECUTED_THE_OTHER_SIDE_IS_PARTIALLY_EXECUTED_WITH_THE_REMAINDER_BEING_CANCELLED_THIS_IS_EQUIVALENT_TO_AN_IMMEDIATE_OR_CANCEL_ON_THE_OTHER_SIDE = 2; + const int CrossType_CROSS_TRADE_WHICH_IS_EXECUTED_PARTIALLY_AND_THE_REST_IS_CANCELLED_ONE_SIDE_IS_FULLY_EXECUTED_THE_OTHER_SIDE_IS_PARTIALLY_EXECUTED_WITH_THE_REMAINDER_BEING_CANCELLED_THIS_IS_EQUIVALENT_TO_AN_IMMEDIATE_OR_CANCEL_ON_THE_OTHER_SIDE_NOTE_THE_CROSSPRIORITZATION = 2; + const char OpenCloseSettleFlag_SESSION_OPEN = '1'; + const char OpenCloseSettleFlag_DAILY_OPEN = '0'; + const char OpenCloseSettleFlag_EXPECTED_PRICE = '3'; + const char OpenCloseSettleFlag_PRICE_FROM_PREVIOUS_BUSINESS_DAY = '4'; + const char OpenCloseSettleFlag_DELIVERY_SETTLEMENT_PRICE = '2'; + const int MDBookType_PRICE_DEPTH = 2; + const int MDBookType_ORDER_DEPTH = 3; + const int MDBookType_TOP_OF_BOOK = 1; + const char BasisPxType_VWAP_THROUGH_A_DAY_EXCEPT_YORI = '9'; + const char BasisPxType_VWAP_THROUGH_A_MORNING_SESSION = '7'; + const char BasisPxType_CLOSING_PRICE = '3'; + const char BasisPxType_VWAP_THROUGH_A_DAY = '6'; + const char BasisPxType_OTHERS = 'Z'; + const char BasisPxType_OPEN = 'D'; + const char BasisPxType_CLOSING_PRICE_AT_MORNING_SESSION = '2'; + const char BasisPxType_CURRENT_PRICE = '4'; + const char BasisPxType_SQ = '5'; + const char BasisPxType_STRIKE = 'C'; + const char BasisPxType_VWAP_THROUGH_AN_AFTERNOON_SESSION_EXCEPT_YORI = 'B'; + const char BasisPxType_VWAP_THROUGH_A_MORNING_SESSION_EXCEPT_YORI = 'A'; + const char BasisPxType_VWAP_THROUGH_AN_AFTERNOON_SESSION = '8'; + const int ComplexEventType_ROLLING_BARRIER = 9; + const int ComplexEventType_UNDERLYING = 7; + const int ComplexEventType_KNOCK_OUT_UP = 5; + const int ComplexEventType_KNOCK_IN_UP = 3; + const int ComplexEventType_KOCK_IN_DOWN = 4; + const int ComplexEventType_TRIGGER = 2; + const int ComplexEventType_RESET_BARRIER = 8; + const int ComplexEventType_CAPPED = 1; + const int ComplexEventType_KNOCK_OUT_DOWN = 6; + const int MassActionResponse_REJECTED = 0; + const int MassActionResponse_ACCEPTED = 1; + const int SecurityRequestType_MARKETID_OR_MARKETID_PLUS_MARKETSEGMENTID = 9; + const int SecurityRequestType_REQUEST_LIST_SECURITY_TYPES = 2; + const int SecurityRequestType_REQUEST_LIST_SECURITIES = 3; + const int SecurityRequestType_SYMBOL = 4; + const int SecurityRequestType_SECURITYTYPE_AND_OR_CFICODE = 5; + const int SecurityRequestType_REQUEST_SECURITY_IDENTITY_FOR_THE_SPECIFICATIONS_PROVIDED = 1; + const int SecurityRequestType_TRADINGSESSIONID = 7; + const int SecurityRequestType_PRODUCT = 6; + const int SecurityRequestType_ALL_SECURITIES = 8; + const int SecurityRequestType_REQUEST_SECURITY_IDENTITY_AND_SPECIFICATIONS = 0; + const int ListRejectReason_EXCHANGE_CLOSED = 2; + const int ListRejectReason_UNKNOWN_ORDER = 5; + const int ListRejectReason_UNSUPPORTED_ORDER_CHARACTERISTIC = 11; + const int ListRejectReason_DUPLICATE_ORDER = 6; + const int ListRejectReason_TOO_LATE_TO_ENTER = 4; + const int ListRejectReason_OTHER = 99; + const int ListRejectReason_BROKER = 0; + const char DeskType_PROPRIETARY[] = "PR"; + const char DeskType_ARBITRAGE[] = "AR"; + const char DeskType_TRADING[] = "T"; + const char DeskType_DERIVATIVES[] = "D"; + const char DeskType_SALES[] = "S"; + const char DeskType_INSTITUTIONAL[] = "IS"; + const char DeskType_INTERNATIONAL[] = "IN"; + const char DeskType_AGENCY[] = "A"; + const char DeskType_PREFERRED_TRADING[] = "PF"; + const char DeskType_OTHER[] = "O"; + const char DeskType_PROGRAM_TRADING[] = "PT"; + const char SettlType_WHEN_AND_IF_ISSUED[] = "7"; + const char SettlType_FUTURE[] = "6"; + const char SettlType_BROKEN_DATE[] = "B"; + const char SettlType_SELLERS_OPTION[] = "8"; + const char SettlType_T_PLUS_2[] = "3"; + const char SettlType_T_PLUS_3[] = "4"; + const char SettlType_T_PLUS_4[] = "5"; + const char SettlType_REGULAR[] = "0"; + const char SettlType_FX_SPOT_NEXT_SETTLEMENT[] = "C"; + const char SettlType_T_PLUS_5[] = "9"; + const char SettlType_NEXT_DAY[] = "2"; + const char SettlType_CASH[] = "1"; + const char OpenClose_CLOSE = 'C'; + const char OpenClose_OPEN = 'O'; + const int ContractMultiplierUnit_SHARES = 0; + const int ContractMultiplierUnit_HOURS = 1; + const int ContractMultiplierUnit_DAYS = 2; + const int TrdType_VOLUME_WEIGHTED_AVERAGE_TRADE = 51; + const int TrdType_FUTURES_LARGE_ORDER_EXECUTION = 17; + const int TrdType_EXCHANGE_OF_FUTURES_FOR_FUTURES = 18; + const int TrdType_SPECIAL_EX_CAPITAL_REPAYMENTS = 35; + const int TrdType_BLOCK_TRADE_38 = 38; + const int TrdType_DELTA_NEUTRAL_TRANSACTION = 46; + const int TrdType_LATE_TRADE = 4; + const int TrdType_CASH_SETTLEMENT = 29; + const int TrdType_SPECIAL_CUM_CAPITAL_REPAYMENTS = 34; + const int TrdType_SPECIAL_CUM_BONUS = 36; + const int TrdType_BLOCK_TRADES = 40; + const int TrdType_ALL_OR_NONE = 16; + const int TrdType_OPTION_EXERCISE = 45; + const int TrdType_FINANCING_TRANSACTION = 47; + const int TrdType_TRANSFER = 3; + const int TrdType_TRADING_AT_SETTLEMENT = 15; + const int TrdType_SPECIAL_EX_DIVIDEND = 26; + const int TrdType_SPECIAL_EX_COUPON = 28; + const int TrdType_SPECIAL_PRICE = 30; + const int TrdType_SPECIAL_CUM_RIGHTS = 32; + const int TrdType_SPECIAL_EX_BONUS = 37; + const int TrdType_REGULAR_TRADE = 0; + const int TrdType_EXCHANGE_GRANTED_TRADE = 52; + const int TrdType_EXCHANGE_BASIS_FACILITY = 55; + const int TrdType_BLOCK_TRADE_1 = 1; + const int TrdType_ERROR_TRADE = 24; + const int TrdType_NAME_CHANGE = 41; + const int TrdType_LATE_BUNCHED_TRADE = 8; + const int TrdType_EFP = 2; + const int TrdType_NON_STANDARD_SETTLEMENT = 48; + const int TrdType_EXCHANGE_FOR_RISK = 11; + const int TrdType_EXCHANGE_FOR_SWAP = 12; + const int TrdType_EXCHANGE_OF_FUTURES_FOR = 13; + const int TrdType_OPTION_INTERIM_TRADE = 19; + const int TrdType_PRIVATELY_NEGOTIATED_TRADES = 22; + const int TrdType_SUBSTITUTION_OF_FUTURES_FOR_FORWARDS = 23; + const int TrdType_SPECIAL_CUM_DIVIDEND = 25; + const int TrdType_GUARANTEED_DELIVERY = 31; + const int TrdType_PROROGATION_SELL = 44; + const int TrdType_PRIOR_REFERENCE_PRICE_TRADE = 9; + const int TrdType_PORTFOLIO_TRADE = 50; + const int TrdType_WORKED_PRINCIPAL_TRADE = 39; + const int TrdType_PORTFOLIO_TRANSFER = 42; + const int TrdType_WEIGHTED_AVERAGE_PRICE_TRADE = 6; + const int TrdType_EXCHANGE_OF_OPTIONS_FOR_OPTIONS = 14; + const int TrdType_SPECIAL_CUM_COUPON = 27; + const int TrdType_T_TRADE = 5; + const int TrdType_BLOCK_TRADE = 1; + const int TrdType_OTC = 54; + const int TrdType_AFTER_HOURS_TRADE = 10; + const int TrdType_DERIVATIVE_RELATED_TRANSACTION = 49; + const int TrdType_REPURCHASE_AGREEMENT = 53; + const int TrdType_SPECIAL_EX_RIGHTS = 33; + const int TrdType_PROROGATION_BUY = 43; + const int TrdType_OPTION_CABINET_TRADE = 20; + const int TrdType_BUNCHED_TRADE = 7; + const char RestructuringType_MODIFIED_MOD_RESTRUCTURING[] = "MM"; + const char RestructuringType_FULL_RESTRUCTURING[] = "FR"; + const char RestructuringType_NO_RESTRUCTURING_SPECIFIED[] = "XR"; + const char RestructuringType_MODIFIED_RESTRUCTURING[] = "MR"; + const int ProgRptReqs_REAL_TIME_EXECUTION_REPORTS = 3; + const int ProgRptReqs_BUYSIDE_EXPLICITLY_REQUESTS_STATUS_USING_STATUSREQUEST = 1; + const int ProgRptReqs_SELL_SIDE_PERIODICALLY_SENDS_STATUS_USING_LIST_STATUS_PERIOD_OPTIONALLY_SPECIFIED_IN_PROGRESSPERIOD = 2; + const int ProgRptReqs_BUY_SIDE_EXPLICITLY_REQUESTS_STATUS_USING_STATUE_REQUEST = 1; + const int ProgRptReqs_SELLSIDE_PERIODICALLY_SENDS_STATUS_USING_LISTSTATUS_PERIOD_OPTIONALLY_SPECIFIED_IN_PROGRESSPERIOD = 2; + const char TradingSessionID_EVENING[] = "5"; + const char TradingSessionID_AFTER_HOURS[] = "6"; + const char TradingSessionID_HALFDAY[] = "2"; + const char TradingSessionID_DAY[] = "1"; + const char TradingSessionID_MORNING[] = "3"; + const char TradingSessionID_AFTERNOON[] = "4"; + const int ListOrderStatus_CANCELING = 4; + const int ListOrderStatus_REJECT = 7; + const int ListOrderStatus_ALL_DONE = 6; + const int ListOrderStatus_IN_BIDDING_PROCESS = 1; + const int ListOrderStatus_RECEIVED_FOR_EXECUTION = 2; + const int ListOrderStatus_ALERT = 5; + const int ListOrderStatus_RECEIVEDFOREXECUTION = 2; + const int ListOrderStatus_INBIDDINGPROCESS = 1; + const int ListOrderStatus_CANCELLING = 4; + const int ListOrderStatus_EXECUTING = 3; + const char RegistStatus_REJECT = 'R'; + const char RegistStatus_REMINDER_IE_REGISTRATION_INSTRUCTIONS_ARE_STILL_OUTSTANDING = 'N'; + const char RegistStatus_REJECTED = 'R'; + const char RegistStatus_ACCEPTED = 'A'; + const char RegistStatus_REMINDER = 'N'; + const char RegistStatus_HELD = 'H'; + const char RegistStatus_ACCEPT = 'A'; + const int UnderlyingPriceDeterminationMethod_OPTIMAL_VALUE = 3; + const int UnderlyingPriceDeterminationMethod_SPECIAL_REFERENCE = 2; + const int UnderlyingPriceDeterminationMethod_AVERAGE_VALUE = 4; + const int UnderlyingPriceDeterminationMethod_REGULAR = 1; + const char MassCancelRequestType_CANCEL_ORDERS_FOR_A_SECURITY = '1'; + const char MassCancelRequestType_CANCEL_ORDERS_FOR_A_SECURITY_GROUP = 'A'; + const char MassCancelRequestType_CANCEL_ORDERS_FOR_A_MARKET = '8'; + const char MassCancelRequestType_CANCEL_ORDERS_FOR_A_MARKET_SEGMENT = '9'; + const char MassCancelRequestType_CANCEL_ORDERS_FOR_A_SECURITYTYPE = '5'; + const char MassCancelRequestType_CANCEL_ORDERS_FOR_A_TRADING_SESSION = '6'; + const char MassCancelRequestType_CANCEL_FOR_ISSUER_OF_UNDERLYING_SECURITY = 'C'; + const char MassCancelRequestType_CANCEL_ORDERS_FOR_AN_UNDERLYING_SECURITY = '2'; + const char MassCancelRequestType_CANCEL_ALL_ORDERS = '7'; + const char MassCancelRequestType_CANCEL_FOR_SECURITY_ISSUER = 'B'; + const char MassCancelRequestType_CANCEL_ORDERS_FOR_A_PRODUCT = '3'; + const char MassCancelRequestType_CANCEL_ORDERS_FOR_A_CFICODE = '4'; + const char CxlRejResponseTo_ORDER_CANCEL_REQUEST = '1'; + const char CxlRejResponseTo_ORDER_CANCEL_REPLACE_REQUEST = '2'; + const int QuoteCancelType_CANCEL_BY_QUOTETYPE = 6; + const int QuoteCancelType_CANCEL_FOR_ONE_OR_MORE_SECURITIES = 1; + const int QuoteCancelType_CANCEL_QUOTE_SPECIFIED_IN_QUOTEID = 5; + const int QuoteCancelType_CANCEL_FOR_UNDERLYING_SYMBOL = 3; + const int QuoteCancelType_CANCEL_ALL_QUOTES = 4; + const int QuoteCancelType_CANCEL_FOR_UNDERLYING_SECURITY = 3; + const int QuoteCancelType_CANCEL_FOR_ISSUER_OF_UNDERLYING_SECURITY = 8; + const int QuoteCancelType_CANCEL_FOR_SECURITY_ISSUER = 7; + const int QuoteCancelType_CANCEL_FOR_ALL_QUOTES = 4; + const int QuoteCancelType_CANCEL_FOR_SECURITY_TYPE = 2; + const int QuoteCancelType_CANCEL_FOR_SYMBOL = 1; + const char StipulationType_YIELD_TO_MATURITY[] = "YTM"; + const char StipulationType_ALTERNATIVE_MINIMUM_TAX[] = "AMT"; + const char StipulationType_WEIGHTED_AVERAGE_LIFE_COUPON_VALUE_IN_PERCENT[] = "WAL"; + const char StipulationType_GEOGRAPHICS_AND_RANGE[] = "GEOG"; + const char StipulationType_COUPON_RANGE[] = "COUPON"; + const char StipulationType_BANK_QUALIFIED[] = "BANKQUAL"; + const char StipulationType_RATING_SOURCE_AND_RANGE[] = "RATING"; + const char StipulationType_SUBSTITUTIONS_FREQUENCY[] = "SUBSFREQ"; + const char StipulationType_MINIMUM_DENOMINATION[] = "MINDNOM"; + const char StipulationType_AVAILABLE_OFFER_QUANTITY_TO_BE_SHOWN_TO_THE_STREET[] = "AVAILQTY"; + const char StipulationType_MAXIMUM_ORDER_SIZE[] = "MAXORDQTY"; + const char StipulationType_ABSOLUTE_PREPAYMENT_SPEED[] = "ABS"; + const char StipulationType_PRICING_FREQUENCY[] = "PRICEFREQ"; + const char StipulationType_CONSTANT_PREPAYMENT_YIELD[] = "CPY"; + const char StipulationType_YIELD_RANGE[] = "YIELD"; + const char StipulationType_PRINCIPAL_OF_ROLLING_OR_CLOSING_TRADE[] = "REFPRIN"; + const char StipulationType_BENCHMARK_PRICE_SOURCE[] = "PXSOURCE"; + const char StipulationType_MAXIMUM_SUBSTITUTIONS[] = "MAXSUBS"; + const char StipulationType_PERCENT_OF_PROSPECTUS_PREPAYMENT_CURVE[] = "PPC"; + const char StipulationType_MONTHLY_PREPAYMENT_RATE[] = "MPR"; + const char StipulationType_PURPOSE[] = "PURPOSE"; + const char StipulationType_WHOLE_POOL[] = "WHOLE"; + const char StipulationType_WEIGHTED_AVERAGE_LOAN_AGE[] = "WALA"; + const char StipulationType_WEIGHTED_AVERAGE_LIFE_COUPON[] = "WAL"; + const char StipulationType_POOLS_MAXIMUM[] = "PMAX"; + const char StipulationType_MINIMUM_QUANTITY[] = "MINQTY"; + const char StipulationType_FINAL_CPR_OF_HOME_EQUITY_PREPAYMENT_CURVE[] = "HEP"; + const char StipulationType_VALUATION_DISCOUNT[] = "HAIRCUT"; + const char StipulationType_GEOGRAPHICS[] = "GEOG"; + const char StipulationType_AMT[] = "AMT"; + const char StipulationType_WEIGHTED_AVERAGE_MATURITY[] = "WAM"; + const char StipulationType_CALL_PROTECTION[] = "PROTECT"; + const char StipulationType_EXPLICIT_LOT_IDENTIFIER[] = "LOT"; + const char StipulationType_FREEFORM_TEXT[] = "TEXT"; + const char StipulationType_TRADE_VARIANCE[] = "TRDVAR"; + const char StipulationType_WEIGHTED_AVERAGE_COUPONVALUE_IN_PERCENT[] = "WAC"; + const char StipulationType_OFFER_PRICE_TO_BE_SHOWN_TO_INTERNAL_BROKERS[] = "INTERNALPX"; + const char StipulationType_STRUCTURE[] = "STRUCT"; + const char StipulationType_RESTRICTED[] = "RESTRICTED"; + const char StipulationType_CONSTANT_PREPAYMENT_PENALTY[] = "CPP"; + const char StipulationType_OFFER_QUANTITY_TO_BE_SHOWN_TO_INTERNAL_BROKERS[] = "INTERNALQTY"; + const char StipulationType_REFERENCE_TO_ROLLING_OR_CLOSING_TRADE[] = "REFTRADE"; + const char StipulationType_PERCENT_OF_MANUFACTURED_HOUSING_PREPAYMENT_CURVE[] = "MHP"; + const char StipulationType_TYPE_OF_REDEMPTION[] = "REDEMPTION"; + const char StipulationType_SECURITYTYPE_INCLUDED_OR_EXCLUDED[] = "SECTYPE"; + const char StipulationType_PAYMENT_FREQUENCY_CALENDAR[] = "PAYFREQ"; + const char StipulationType_AUTO_REINVESTMENT_AT_RATE_OR_BETTER[] = "AUTOREINV"; + const char StipulationType_ISSUERS_TICKER[] = "ISSUER"; + const char StipulationType_MAXIMUM_LOAN_BALANCE[] = "MAXBAL"; + const char StipulationType_BROKER_SALES_CREDIT_OVERRIDE[] = "SALESCREDITOVR"; + const char StipulationType_OF_BMA_PREPAYMENT_CURVE[] = "PSA"; + const char StipulationType_ISO_CURRENCY_CODE[] = "CURRENCY"; + const char StipulationType_MARKET_SECTOR[] = "SECTOR"; + const char StipulationType_POOL_IDENTIFIER[] = "POOL"; + const char StipulationType_TYPE_OF_ROLL_TRADE[] = "ROLLTYPE"; + const char StipulationType_SECURITY_TYPE_INCLUDED_OR_EXCLUDED[] = "SECTYPE"; + const char StipulationType_YEAR_OF_ISSUE[] = "ISSUE"; + const char StipulationType_LOOKBACK_DAYS[] = "LOOKBACK"; + const char StipulationType_TYPE_OF_REDEMPTION_VALUES_ARE_NONCALLABLE_CALLABLE_PREFUNDED_ESCROWEDTOMATURITY_PUTABLE_CONVERTIBLE[] = "REDEMPTION"; + const char StipulationType_MATURITY_YEAR[] = "MAT"; + const char StipulationType_CUSTOM_START_END_DATE[] = "CUSTOMDATE"; + const char StipulationType_ORDER_QUANTITY_INCREMENT[] = "ORDRINCR"; + const char StipulationType_DISCOUNT_RATE[] = "DISCOUNT"; + const char StipulationType_PERCENT_OF_BMA_PREPAYMENT_CURVE[] = "PSA"; + const char StipulationType_CONSTANT_PREPAYMENT_RATE[] = "CPR"; + const char StipulationType_OF_PROSPECTUS_PREPAYMENT_CURVE[] = "PPC"; + const char StipulationType_AVERAGE_LOAN_SIZE[] = "AVSIZE"; + const char StipulationType_TRADERS_CREDIT[] = "TRADERCREDIT"; + const char StipulationType_POOLS_PER_LOT[] = "PPL"; + const char StipulationType_WEIGHTED_AVERAGE_LIFE[] = "WAL"; + const char StipulationType_MATURITY_RANGE[] = "MATURITY"; + const char StipulationType_POOLS_PER_MILLION[] = "PPM"; + const char StipulationType_LOT_VARIANCE[] = "LOTVAR"; + const char StipulationType_PRIMARY_OR_SECONDARY_MARKET_INDICATOR[] = "PRIMARY"; + const char StipulationType_AVERAGE_FICO_SCORE[] = "AVFICO"; + const char StipulationType_WEIGHTED_AVERAGE_MATURITY_VALUE_IN_MONTHS[] = "WAM"; + const char StipulationType_PRICE_RANGE[] = "PRICE"; + const char StipulationType_MATURITY_YEAR_AND_MONTH[] = "MAT"; + const char StipulationType_MINIMUM_INCREMENT[] = "MININCR"; + const char StipulationType_WEIGHTED_AVERAGE_COUPON[] = "WAC"; + const char StipulationType_YEAR_OR_YEAR_MONTH_OF_ISSUE[] = "ISSUE"; + const char StipulationType_SUBSTITUTIONS_LEFT[] = "SUBSLEFT"; + const char StipulationType_NUMBER_OF_PIECES[] = "PIECES"; + const char StipulationType_INSURED[] = "INSURED"; + const char StipulationType_OF_MANUFACTURED_HOUSING_PREPAYMENT_CURVE[] = "MHP"; + const char StipulationType_THE_MINIMUM_RESIDUAL_OFFER_QUANTITY[] = "LEAVEQTY"; + const char StipulationType_BARGAIN_CONDITIONS[] = "BGNCON"; + const char StipulationType_POOLS_PER_TRADE[] = "PPT"; + const char StipulationType_WEIGHTED_AVERAGE_LOAN_AGE_VALUE_IN_MONTHS[] = "WALA"; + const char StipulationType_SINGLE_MONTHLY_MORTALITY[] = "SMM"; + const char StipulationType_INTEREST_OF_ROLLING_OR_CLOSING_TRADE[] = "REFINT"; + const char StipulationType_BROKERS_SALES_CREDIT[] = "BROKERCREDIT"; + const char StipulationType_ISSUE_SIZE_RANGE[] = "ISSUESIZE"; + const char StipulationType_BARGAIN_CONDITIONS_SEE[] = "BGNCON"; + const char StipulationType_PRODUCTION_YEAR[] = "PROD"; + const char PriceQuoteMethod_PERCENT_OF_PAR[] = "PCTPAR"; + const char PriceQuoteMethod_STANDARD_MONEY_PER_UNIT_OF_A_PHYSICAL[] = "STD"; + const char PriceQuoteMethod_INDEX[] = "INX"; + const char PriceQuoteMethod_INTEREST_RATE_INDEX[] = "INT"; + const int SessionRejectReason_NON_DATA_VALUE_INCLUDES_FIELD_DELIMITER = 17; + const int SessionRejectReason_COMPID_PROBLEM = 9; + const int SessionRejectReason_SIGNATURE_PROBLEM = 8; + const int SessionRejectReason_TAG_NOT_DEFINED_FOR_THIS_MESSAGE_TYPE = 2; + const int SessionRejectReason_XML_VALIDATION_ERROR = 12; + const int SessionRejectReason_UNDEFINED_TAG = 3; + const int SessionRejectReason_INCORRECT_DATA_FORMAT_FOR_VALUE = 6; + const int SessionRejectReason_REPEATING_GROUP_FIELDS_OUT_OF_ORDER = 15; + const int SessionRejectReason_REQUIRED_TAG_MISSING = 1; + const int SessionRejectReason_OTHER = 99; + const int SessionRejectReason_INCORRECT_NUMINGROUP_COUNT_FOR_REPEATING_GROUP = 16; + const int SessionRejectReason_TAG_APPEARS_MORE_THAN_ONCE = 13; + const int SessionRejectReason_TAG_SPECIFIED_OUT_OF_REQUIRED_ORDER = 14; + const int SessionRejectReason_DECRYPTION_PROBLEM = 7; + const int SessionRejectReason_INVALID_TAG_NUMBER = 0; + const int SessionRejectReason_VALUE_IS_INCORRECT = 5; + const int SessionRejectReason_TAG_SPECIFIED_WITHOUT_A_VALUE = 4; + const int SessionRejectReason_INVALID_MSGTYPE = 11; + const int SessionRejectReason_SENDINGTIME_ACCURACY_PROBLEM = 10; + const int DeliveryType_TRI_PARTY = 2; + const int DeliveryType_HOLD_IN_CUSTODY = 3; + const int DeliveryType_FREE_DELIVER = 1; + const int DeliveryType_VERSUS_PAYMENT_DELIVER = 0; + const char Scope_LOCAL = '1'; + const char Scope_LOCAL_MARKET = '1'; + const char Scope_GLOBAL = '3'; + const char Scope_NATIONAL = '2'; + const char DeleteReason_CANCELLATION = '0'; + const char DeleteReason_CANCELATION = '0'; + const char DeleteReason_ERROR = '1'; + const char InViewOfCommon_NO = 'N'; + const char InViewOfCommon_YES = 'Y'; + const char NoSides_ONE_SIDE = '1'; + const char NoSides_BOTH_SIDES = '2'; + const char SecurityType_EURO_CERTIFICATE_OF_DEPOSIT[] = "EUCD"; + const char SecurityType_MUNICIPAL_BOND[] = "MUNI"; + const char SecurityType_MORTGAGE_INTEREST_ONLY[] = "MIO"; + const char SecurityType_MATURED[] = "MATURED"; + const char SecurityType_FUTURE[] = "FUT"; + const char SecurityType_TREASURY_BILL[] = "TB"; + const char SecurityType_BILL_OF_EXCHANGES[] = "BOX"; + const char SecurityType_TIME_DEPOSIT[] = "TD"; + const char SecurityType_MORTGAGE_IOETTE[] = "IET"; + const char SecurityType_REPURCHASE_AGREEMENT[] = "RP"; + const char SecurityType_SPECIAL_OBLIGATION[] = "SPCLO"; + const char SecurityType_COMMERCIAL_PAPER[] = "CP"; + const char SecurityType_CORPORATE_BOND[] = "CORP"; + const char SecurityType_CORP_MORTGAGE_BACKED_SECURITIES[] = "CMBS"; + const char SecurityType_OTHER_ANTICIPATION_NOTES_BAN_GAN_ETC[] = "AN"; + const char SecurityType_STRUCTURED_NOTES[] = "STRUCT"; + const char SecurityType_REPURCHASE[] = "REPO"; + const char SecurityType_CANADIAN_MORTGAGE_BONDS[] = "CMB"; + const char SecurityType_PRINCIPAL_STRIP_FROM_A_NON_CALLABLE_BOND_OR_NOTE[] = "TPRN"; + const char SecurityType_TREASURIES_PLUS_AGENCY_DEBENTURE[] = "GOVT"; + const char SecurityType_TAX_REVENUE_ANTICIPATION_NOTE[] = "TRAN"; + const char SecurityType_US_TREASURY_BILL[] = "USTB"; + const char SecurityType_PLAZOS_FIJOS[] = "PZFJ"; + const char SecurityType_CANADIAN_TREASURY_NOTES[] = "CAN"; + const char SecurityType_YANKEE_CORPORATE_BOND[] = "YANK"; + const char SecurityType_FEDERAL_AGENCY_DISCOUNT_NOTE[] = "FADN"; + const char SecurityType_BUY_SELLBACK[] = "BUYSELL"; + const char SecurityType_NO_ISITC_SECURITY_TYPE[] = "NONE"; + const char SecurityType_PROMISSORY_NOTE[] = "PN"; + const char SecurityType_PRIVATE_EXPORT_FUNDING[] = "PEF"; + const char SecurityType_CASH[] = "CASH"; + const char SecurityType_DEPOSIT_NOTES[] = "DN"; + const char SecurityType_FOREIGN_EXCHANGE_CONTRACT[] = "FOR"; + const char SecurityType_SECURITIES_PLEDGE[] = "SECPLEDGE"; + const char SecurityType_RETIRED[] = "RETIRED"; + const char SecurityType_OVERNIGHT[] = "ONITE"; + const char SecurityType_REVENUE_ANTICIPATION_NOTE[] = "RAN"; + const char SecurityType_REVERSE_REPURCHASE_AGREEMENT[] = "RVRP"; + const char SecurityType_COLLATERALIZED_MORTGAGE_OBLIGATION[] = "CMO"; + const char SecurityType_WARRANT[] = "WAR"; + const char SecurityType_LIQUIDITY_NOTE[] = "LQN"; + const char SecurityType_MANDATORY_TENDER[] = "MT"; + const char SecurityType_COMMON_STOCK[] = "CS"; + const char SecurityType_EURO_CORPORATE_BOND[] = "EUCORP"; + const char SecurityType_CALL_LOANS[] = "CL"; + const char SecurityType_OPTIONS_ON_PHYSICAL[] = "OOP"; + const char SecurityType_REVOLVER_LOAN[] = "RVLV"; + const char SecurityType_OPTION[] = "OPT"; + const char SecurityType_FEDERAL_AGENCY_COUPON[] = "FAC"; + const char SecurityType_TAX_ALLOCATION[] = "TAXA"; + const char SecurityType_MISCELLANEOUS_PASS_THROUGH[] = "MPT"; + const char SecurityType_VARIABLE_RATE_DEMAND_NOTE[] = "VRDN"; + const char SecurityType_MORTGAGE_PRINCIPAL_ONLY[] = "MPO"; + const char SecurityType_TAXABLE_MUNICIPAL_CP[] = "TMCP"; + const char SecurityType_INTEREST_RATE_SWAP[] = "IRS"; + const char SecurityType_BANK_NOTES[] = "BN"; + const char SecurityType_ASSET_BACKED_SECURITIES[] = "ABS"; + const char SecurityType_MULTILEG_INSTRUMENT[] = "MLEG"; + const char SecurityType_INTEREST_STRIP_FROM_ANY_BOND_OR_NOTE[] = "TINT"; + const char SecurityType_CREDIT_DEFAULT_SWAP[] = "CDS"; + const char SecurityType_FEDERAL_NATIONAL_MORTGAGE_ASSOCIATION[] = "FN"; + const char SecurityType_USD_SUPRANATIONAL_COUPONS[] = "SUPRA"; + const char SecurityType_REVOLVER_TERM_LOAN[] = "RVLVTRM"; + const char SecurityType_MORTGAGE_PRINCIPLE_ONLY[] = "MPO"; + const char SecurityType_REPLACED[] = "REPLACD"; + const char SecurityType_US_TREASURY_BILL_TBILL[] = "TBILL"; + const char SecurityType_CERTIFICATE_OF_DEPOSIT[] = "CD"; + const char SecurityType_SPECIAL_ASSESSMENT[] = "SPCLA"; + const char SecurityType_SHORT_TERM_LOAN_NOTE[] = "STN"; + const char SecurityType_LETTER_OF_CREDIT[] = "LOFC"; + const char SecurityType_OPTIONS_ON_COMBO[] = "OOC"; + const char SecurityType_SPECIAL_TAX[] = "SPCLT"; + const char SecurityType_PREFERRED_STOCK[] = "PS"; + const char SecurityType_US_TREASURY_NOTE_TNOTE[] = "TNOTE"; + const char SecurityType_AGENCY_POOLS[] = "POOL"; + const char SecurityType_MEDIUM_TERM_NOTES[] = "MTN"; + const char SecurityType_CANADIAN_PROVINCIAL_BONDS[] = "PROV"; + const char SecurityType_IOETTE_MORTGAGE[] = "IET"; + const char SecurityType_STUDENT_LOAN_MARKETING_ASSOCIATION[] = "SL"; + const char SecurityType_SECURITIES_LOAN[] = "SECLOAN"; + const char SecurityType_EURO_CORPORATE_FLOATING_RATE_NOTES[] = "EUFRN"; + const char SecurityType_CERTIFICATE_OF_PARTICIPATION[] = "COFP"; + const char SecurityType_FEDERAL_HOME_LOAN[] = "FHL"; + const char SecurityType_US_CORPORATE_FLOATING_RATE_NOTES[] = "FRN"; + const char SecurityType_YANKEE_CERTIFICATE_OF_DEPOSIT[] = "YCD"; + const char SecurityType_MULTI_LEG_INSTRUMENT[] = "MLEG"; + const char SecurityType_WITHDRAWN[] = "WITHDRN"; + const char SecurityType_MISCELLANEOUS_PASS_THRU[] = "MPT"; + const char SecurityType_CANADIAN_MONEY_MARKETS[] = "CAMM"; + const char SecurityType_FORWARD[] = "FORWARD"; + const char SecurityType_EURO_SUPRANATIONAL_COUPONS[] = "EUSUPRA"; + const char SecurityType_PRINCIPAL_STRIP_OF_A_CALLABLE_BOND_OR_NOTE[] = "TCAL"; + const char SecurityType_EURO_SOVEREIGNS[] = "EUSOV"; + const char SecurityType_CERTIFICATE_OF_OBLIGATION[] = "COFO"; + const char SecurityType_BANK_DEPOSITORY_NOTE[] = "BDN"; + const char SecurityType_US_TREASURY_BILL_USTB[] = "USTB"; + const char SecurityType_FX_SWAP[] = "FXSWAP"; + const char SecurityType_WILDCARD_ENTRY[] = "WLD"; + const char SecurityType_SWING_LINE_FACILITY[] = "SWING"; + const char SecurityType_FEDERAL_HOUSING_AUTHORITY[] = "FHA"; + const char SecurityType_CORPORATE_PRIVATE_PLACEMENT[] = "CPP"; + const char SecurityType_GENERAL_OBLIGATION_BONDS[] = "GO"; + const char SecurityType_WILDCARD_ENTRY_FOR_USE_ON_SECURITY_DEFINITION_REQUEST[] = "?"; + const char SecurityType_INDEXED_LINKED[] = "XLINKD"; + const char SecurityType_TO_BE_ANNOUNCED[] = "TBA"; + const char SecurityType_TREASURY_INFLATION_PROTECTED_SECURITIES[] = "TIPS"; + const char SecurityType_NON_DELIVERABLE_FORWARD[] = "FXNDF"; + const char SecurityType_OPTIONS_ON_FUTURES[] = "OOF"; + const char SecurityType_TAX_ANTICIPATION_NOTE[] = "TAN"; + const char SecurityType_TERM_LOAN[] = "TERM"; + const char SecurityType_AMENDED_RESTATED[] = "AMENDED"; + const char SecurityType_FX_FORWARD[] = "FXFWD"; + const char SecurityType_CANADIAN_TREASURY_BILLS[] = "CTB"; + const char SecurityType_DUAL_CURRENCY[] = "DUAL"; + const char SecurityType_MORTGAGE_PRIVATE_PLACEMENT[] = "MPP"; + const char SecurityType_EURO_COMMERCIAL_PAPER[] = "EUCP"; + const char SecurityType_GOVERNMENT_NATIONAL_MORTGAGE_ASSOCIATION[] = "GN"; + const char SecurityType_US_TREASURY_BOND[] = "TBOND"; + const char SecurityType_SECURED_LIQUIDITY_NOTE[] = "SLQN"; + const char SecurityType_MORTGAGE_BACKED_SECURITIES[] = "MBS"; + const char SecurityType_US_TREASURY_NOTE_UST[] = "UST"; + const char SecurityType_DEBTOR_IN_POSSESSION[] = "DINP"; + const char SecurityType_TERM_LIQUIDITY_NOTE[] = "TLQN"; + const char SecurityType_US_TREASURY_NOTE_BOND[] = "UST"; + const char SecurityType_REVENUE_BONDS[] = "REV"; + const char SecurityType_BRIDGE_LOAN[] = "BRIDGE"; + const char SecurityType_CATS_TIGERS_LIONS[] = "ZOO"; + const char SecurityType_BRADY_BOND[] = "BRADY"; + const char SecurityType_NO_SECURITY_TYPE[] = "NONE"; + const char SecurityType_TAX_EXEMPT_COMMERCIAL_PAPER[] = "TECP"; + const char SecurityType_COLLATERALIZE_MORTGAGE_OBLIGATION[] = "CMO"; + const char SecurityType_DEFAULTED[] = "DEFLTED"; + const char SecurityType_OTHER_ANTICIPATION_NOTES[] = "AN"; + const char SecurityType_MUTUAL_FUND[] = "MF"; + const char SecurityType_EXTENDED_COMM_NOTE[] = "XCN"; + const char SecurityType_CONVERTIBLE_BOND[] = "CB"; + const char SecurityType_PFANDBRIEFE[] = "PFAND"; + const char SecurityType_FX_SPOT[] = "FXSPOT"; + const char SecurityType_BANKERS_ACCEPTANCE[] = "BA"; + const char RoundingDirection_ROUND_DOWN = '1'; + const char RoundingDirection_ROUND_TO_NEAREST = '0'; + const char RoundingDirection_ROUND_UP = '2'; + const char TimeUnit_MINUTE[] = "Min"; + const char TimeUnit_WEEK[] = "Wk"; + const char TimeUnit_SECOND[] = "S"; + const char TimeUnit_MONTH[] = "Mo"; + const char TimeUnit_HOUR[] = "H"; + const char TimeUnit_DAY[] = "D"; + const char TimeUnit_YEAR[] = "Yr"; + const int LegSwapType_MODIFIED_DURATION = 2; + const int LegSwapType_RISK = 4; + const int LegSwapType_PAR_FOR_PAR = 1; + const int LegSwapType_PROCEEDS = 5; + const char IOITransType_REPLACE = 'R'; + const char IOITransType_NEW = 'N'; + const char IOITransType_CANCEL = 'C'; + const int PosReqResult_VALID_REQUEST = 0; + const int PosReqResult_NOT_AUTHORIZED_TO_REQUEST_POSITIONS = 3; + const int PosReqResult_NO_POSITIONS_FOUND_THAT_MATCH_CRITERIA = 2; + const int PosReqResult_INVALID_OR_UNSUPPORTED_REQUEST = 1; + const int PosReqResult_OTHER = 99; + const int PosReqResult_REQUEST_FOR_POSITION_NOT_SUPPORTED = 4; + const char SettlInstMode_DEFAULT = '0'; + const char SettlInstMode_REQUEST_REJECT = '5'; + const char SettlInstMode_SPECIFIC_ALLOCATION_ACCOUNT_OVERRIDING = '2'; + const char SettlInstMode_SPECIFIC_ALLOCATION_ACCOUNT_STANDING = '3'; + const char SettlInstMode_SPECIFIC_ORDER_FOR_A_SINGLE_ACCOUNT = '4'; + const char SettlInstMode_STANDING_INSTRUCTIONS_PROVIDED = '1'; + const char PreviouslyReported_NO = 'N'; + const char PreviouslyReported_YES = 'Y'; + const char CustOrderHandlingInst_PEGGED[] = "PEG"; + const char CustOrderHandlingInst_MARKET_ON_OPEN[] = "MOO"; + const char CustOrderHandlingInst_SCALE[] = "SCL"; + const char CustOrderHandlingInst_FILL_OR_KILL[] = "FOK"; + const char CustOrderHandlingInst_ALL_OR_NONE[] = "AON"; + const char CustOrderHandlingInst_NOT_HELD[] = "NH"; + const char CustOrderHandlingInst_DIRECTED_ORDER[] = "DIR"; + const char CustOrderHandlingInst_STOP_STOCK_TRANSACTION[] = "S.W"; + const char CustOrderHandlingInst_OVER_THE_DAY[] = "OVD"; + const char CustOrderHandlingInst_ADD_ON_ORDER[] = "ADD"; + const char CustOrderHandlingInst_MARKET_AT_CLOSE[] = "MAC"; + const char CustOrderHandlingInst_LIMIT_ON_OPEN[] = "LOO"; + const char CustOrderHandlingInst_CASH_NOT_HELD[] = "CNH"; + const char CustOrderHandlingInst_MARKET_ON_CLOSE[] = "MOC"; + const char CustOrderHandlingInst_TIME_ORDER[] = "TMO"; + const char CustOrderHandlingInst_LIMIT_ON_CLOSE[] = "LOC"; + const char CustOrderHandlingInst_IMMEDIATE_OR_CANCEL[] = "IOC"; + const char CustOrderHandlingInst_TRAILING_STOP[] = "TS"; + const char CustOrderHandlingInst_WORK[] = "WRK"; + const char CustOrderHandlingInst_RESERVE_SIZE_ORDER[] = "RSV"; + const char CustOrderHandlingInst_MINIMUM_QUANTITY[] = "MQT"; + const char CustOrderHandlingInst_MARKET_AT_OPEN[] = "MAO"; + const char CustOrderHandlingInst_IMBALANCE_ONLY[] = "IO"; + const char CustOrderHandlingInst_EXCHANGE_FOR_PHYSICAL_TRANSACTION[] = "E.W"; + const char SecurityStatus_INACTIVE[] = "2"; + const char SecurityStatus_ACTIVE[] = "1"; + const char ProcessCode_SOFT_DOLLAR = '1'; + const char ProcessCode_PLAN_SPONSOR = '6'; + const char ProcessCode_STEP_IN = '2'; + const char ProcessCode_REGULAR = '0'; + const char ProcessCode_SOFT_DOLLAR_STEP_OUT = '5'; + const char ProcessCode_STEP_OUT = '3'; + const char ProcessCode_SOFT_DOLLAR_STEP_IN = '4'; + const char ExecInst_TRY_TO_STOP = 'Y'; + const char ExecInst_PEG_TO_LIMIT_PRICE = 'd'; + const char ExecInst_EXECUTE_AS_DURATION_NEUTRAL = 's'; + const char ExecInst_REINSTATE_ON_TRADING_HALT = 'J'; + const char ExecInst_NO_CROSS = 'A'; + const char ExecInst_PEGVWAP = 'W'; + const char ExecInst_STRICT_SCALE = '7'; + const char ExecInst_AON = 'G'; + const char ExecInst_MARKPEG = 'P'; + const char ExecInst_MIDPRCPEG = 'M'; + const char ExecInst_OKCROSS = 'B'; + const char ExecInst_TRAILING_STOP_PEG = 'a'; + const char ExecInst_EXECUTE_AS_FX_NEUTRAL = 't'; + const char ExecInst_CUSTDISPINST = 'U'; + const char ExecInst_OK_TO_CROSS = 'B'; + const char ExecInst_SUSPEND_ON_SYSTEM_FAILURE = 'l'; + const char ExecInst_GO_ALONG = '3'; + const char ExecInst_INSTITONLY = 'I'; + const char ExecInst_DO_NOT_INCREASE = 'E'; + const char ExecInst_SUSPEND = 'S'; + const char ExecInst_TRYTOSTOP = 'Y'; + const char ExecInst_FIXED_PEG_TO_LOCAL_BEST_BID_OR_OFFER_AT_TIME_OF_ORDER = 'T'; + const char ExecInst_REINSTATE_ON_SYSTEM_FAILURE = 'H'; + const char ExecInst_SUSPEND_ON_TRADING_HALT = 'm'; + const char ExecInst_INTERMARKET_SWEEP = 'f'; + const char ExecInst_BEST_EXECUTION = 'k'; + const char ExecInst_PARTICIPATE_DONT_INITIATE = '6'; + const char ExecInst_LASTPEG = 'L'; + const char ExecInst_PEG_TO_VWAP = 'W'; + const char ExecInst_PRIMARY_PEG = 'R'; + const char ExecInst_NONNEGO = 'N'; + const char ExecInst_IGNORE_PRICE_VALIDITY_CHECKS = 'c'; + const char ExecInst_STAY_ON_BID_SIDE = '9'; + const char ExecInst_NOTHELD = '1'; + const char ExecInst_STRICTSCALE = '7'; + const char ExecInst_REINSTATE_ON_CONNECTION_LOSS = 'n'; + const char ExecInst_DNI = 'E'; + const char ExecInst_TRYTOSCALE = '8'; + const char ExecInst_PERCENT_OF_VOLUME = 'D'; + const char ExecInst_GOALONG = '3'; + const char ExecInst_WORK = '2'; + const char ExecInst_HELD = '5'; + const char ExecInst_NOCROSS = 'A'; + const char ExecInst_RELEASE_FROM_SUSPENSION = 'q'; + const char ExecInst_STRICT_LIMIT = 'b'; + const char ExecInst_OPENPEG = 'O'; + const char ExecInst_STAY_ON_BIDSIDE = '9'; + const char ExecInst_STAY_ON_OFFERSIDE = '0'; + const char ExecInst_OVER_THE_DAY = '4'; + const char ExecInst_RESTATEONTRADINGHALT = 'J'; + const char ExecInst_INSTITUTIONS_ONLY = 'I'; + const char ExecInst_NOT_HELD = '1'; + const char ExecInst_CANCELONTRADINGHALT = 'K'; + const char ExecInst_CANCELONSYSFAIL = 'Q'; + const char ExecInst_MARKET_PEG = 'P'; + const char ExecInst_TRADEALONG = 'X'; + const char ExecInst_CALL_FIRST = 'C'; + const char ExecInst_CANCEL_ON_SYSTEM_FAILURE = 'Q'; + const char ExecInst_EXECUTE_AS_DELTA_NEUTRAL_USING_VOLATILITY_PROVIDED = 'r'; + const char ExecInst_SINGLE_EXECUTION_REQUESTED_FOR_BLOCK_TRADE = 'j'; + const char ExecInst_NON_NEGOTIABLE = 'N'; + const char ExecInst_TRY_TO_SCALE = '8'; + const char ExecInst_EXTERNAL_ROUTING_ALLOWED = 'g'; + const char ExecInst_STAY_ON_OFFER_SIDE = '0'; + const char ExecInst_CUSTOMER_DISPLAY_INSTRUCTION = 'U'; + const char ExecInst_WORK_TO_TARGET_STRATEGY = 'e'; + const char ExecInst_OVERDAY = '4'; + const char ExecInst_LAST_PEG = 'L'; + const char ExecInst_CALLFIRST = 'C'; + const char ExecInst_REINSTATE_ON_SYSTEM_FAILUE = 'H'; + const char ExecInst_DO_NOT_REDUCE = 'F'; + const char ExecInst_MID_PRICE_PEG = 'M'; + const char ExecInst_ALL_OR_NONE = 'G'; + const char ExecInst_OPENING_PEG = 'O'; + const char ExecInst_PERCVOL = 'D'; + const char ExecInst_SUSPEND_ON_CONNECTION_LOSS = 'p'; + const char ExecInst_CANCEL_ON_CONNECTION_LOSS = 'o'; + const char ExecInst_EXTERNAL_ROUTING_NOT_ALLOWED = 'h'; + const char ExecInst_CANCEL_IF_NOT_BEST = 'Z'; + const char ExecInst_PARTNOTINIT = '6'; + const char ExecInst_NETTING = 'V'; + const char ExecInst_IMBALANCE_ONLY = 'i'; + const char ExecInst_DNR = 'F'; + const char ExecInst_STAYOFFER = '0'; + const char ExecInst_STAYBID = '9'; + const char ExecInst_TRADE_ALONG = 'X'; + const char ExecInst_CANCEL_ON_TRADING_HALT = 'K'; + const char ExecInst_RESTATEONSYSFAIL = 'H'; + const char ExecInst_PRIMPEG = 'R'; + const char ExecType_REPLACE = '5'; + const char ExecType_NEW = '0'; + const char ExecType_CALCULATED = 'B'; + const char ExecType_PENDING_CANCEL = '6'; + const char ExecType_TRADE_IN_A_CLEARING_HOLD = 'J'; + const char ExecType_TRADE_HAS_BEEN_RELEASED_TO_CLEARING = 'K'; + const char ExecType_ORDER_STATUS = 'I'; + const char ExecType_PENDING_CANCEL_REPLACE = '6'; + const char ExecType_PARTIAL_FILL = '1'; + const char ExecType_PENDING_NEW = 'A'; + const char ExecType_STOPPED = '7'; + const char ExecType_CANCELED = '4'; + const char ExecType_PENDING_REPLACE = 'E'; + const char ExecType_TRADE = 'F'; + const char ExecType_TRADE_CORRECT = 'G'; + const char ExecType_SUSPENDED = '9'; + const char ExecType_FILL = '2'; + const char ExecType_RESTATED = 'D'; + const char ExecType_REJECTED = '8'; + const char ExecType_REPLACED = '5'; + const char ExecType_EXPIRED = 'C'; + const char ExecType_DONE_FOR_DAY = '3'; + const char ExecType_TRIGGERED_OR_ACTIVATED_BY_SYSTEM = 'L'; + const char ExecType_TRADE_CANCEL = 'H'; + const char ExecType_CANCELLED = '4'; + const int MultilegModel_USER_DEFINED_MULTLEG_SECURITY = 1; + const int MultilegModel_PREDEFINED_MULTILEG_SECURITY = 0; + const int MultilegModel_USER_DEFINED_NON_SECURITIZED_MULTILEG = 2; + const int EventType_SWAP_NEXT_START_DATE = 11; + const int EventType_LAST_ELIGIBLE_TRADE_DATE = 7; + const int EventType_FIRST_DELIVERY_DATE = 13; + const int EventType_TENDER = 3; + const int EventType_INITIAL_INVENTORY_DUE_DATE = 15; + const int EventType_FIRST_INTENT_DATE = 17; + const int EventType_ACTIVATION = 5; + const int EventType_PUT = 1; + const int EventType_SWAP_START_DATE = 8; + const int EventType_SWAP_NEXT_ROLL_DATE = 12; + const int EventType_LAST_DELIVERY_DATE = 14; + const int EventType_POSITION_REMOVAL_DATE = 19; + const int EventType_SWAP_ROLL_DATE = 10; + const int EventType_FINAL_INVENTORY_DUE_DATE = 16; + const int EventType_OTHER = 99; + const int EventType_INACTIVIATION = 6; + const int EventType_SWAP_END_DATE = 9; + const int EventType_LAST_INTENT_DATE = 18; + const int EventType_SINKING_FUND_CALL = 4; + const int EventType_CALL = 2; + const int TradeAllocIndicator_ALLOCATION_REQUIRED = 1; + const int TradeAllocIndicator_ALLOCATION_TO_CLAIM_ACCOUNT = 5; + const int TradeAllocIndicator_ALLOCATION_FROM_EXECUTOR = 4; + const int TradeAllocIndicator_USE_ALLOCATION_PROVIDED_WITH_THE_TRADE = 2; + const int TradeAllocIndicator_ALLOCATION_GIVE_UP_EXECUTOR = 3; + const int TradeAllocIndicator_ALLOCATION_NOT_REQUIRED = 0; + const int UserStatus_NOT_LOGGED_IN = 2; + const int UserStatus_PASSWORD_INCORRECT = 4; + const int UserStatus_LOGGED_IN = 1; + const int UserStatus_FORCED_USER_LOGOUT_BY_EXCHANGE = 7; + const int UserStatus_USER_NOT_RECOGNISED = 3; + const int UserStatus_OTHER = 6; + const int UserStatus_PASSWORD_CHANGED = 5; + const int UserStatus_SESSION_SHUTDOWN_WARNING = 8; + const int OrderDelayUnit_WEEKS = 13; + const int OrderDelayUnit_TENTHS_OF_A_SECOND = 1; + const int OrderDelayUnit_SECONDS = 0; + const int OrderDelayUnit_MONTHS = 14; + const int OrderDelayUnit_YEARS = 15; + const int OrderDelayUnit_NANOSECONDS = 5; + const int OrderDelayUnit_HUNDREDTHS_OF_A_SECOND = 2; + const int OrderDelayUnit_HOURS = 11; + const int OrderDelayUnit_MICROSECONDS = 4; + const int OrderDelayUnit_MINUTES = 10; + const int OrderDelayUnit_MILLISECONDS = 3; + const int OrderDelayUnit_DAYS = 12; + const char TradedFlatSwitch_NO = 'N'; + const char TradedFlatSwitch_YES = 'Y'; + const int TrdRptStatus_ACCEPTED_WITH_ERRORS = 3; + const int TrdRptStatus_REJECTED = 1; + const int TrdRptStatus_ACCEPTED = 0; + const int QuoteStatus_PENDING = 10; + const int QuoteStatus_PENDING_END_TRADE = 19; + const int QuoteStatus_CROSS_MARKET_WARNING = 13; + const int QuoteStatus_CANCELED = 17; + const int QuoteStatus_LOCKED_MARKET_WARNING = 12; + const int QuoteStatus_CANCELED_FOR_UNDERLYING = 3; + const int QuoteStatus_UNSOLICITED_QUOTE_REPLENISHMENT = 18; + const int QuoteStatus_TOO_LATE_TO_END = 20; + const int QuoteStatus_CANCELED_DUE_TO_LOCK_MARKET = 14; + const int QuoteStatus_CANCELED_DUE_TO_CROSS_MARKET = 15; + const int QuoteStatus_CANCELED_FOR_SECURITY_TYPE = 2; + const int QuoteStatus_CANCELED_ALL = 4; + const int QuoteStatus_PASS = 11; + const int QuoteStatus_REJECTED = 5; + const int QuoteStatus_QUERY = 8; + const int QuoteStatus_ACCEPTED = 0; + const int QuoteStatus_EXPIRED = 7; + const int QuoteStatus_CANCELED_FOR_SYMBOL = 1; + const int QuoteStatus_REMOVED_FROM_MARKET = 6; + const int QuoteStatus_ACTIVE = 16; + const int QuoteStatus_CANCEL_FOR_SYMBOL = 1; + const int QuoteStatus_QUOTE_NOT_FOUND = 9; + const char SolicitedFlag_NO = 'N'; + const char SolicitedFlag_YES = 'Y'; + const int ShortSaleReason_DEALER_SOLD_SHORT = 0; + const int ShortSaleReason_QSR_OR_AGU_CONTRA_SIDE_SOLD_SHORT_EXEMPT = 5; + const int ShortSaleReason_SELLING_CUSTOMER_SOLD_SHORT_EXEMPT = 3; + const int ShortSaleReason_SELLING_CUSTOMER_SOLD_SHORT = 2; + const int ShortSaleReason_QUALIFED_SERVICE_REPRESENTATIVE = 4; + const int ShortSaleReason_DEALER_SOLD_SHORT_EXEMPT = 1; + const int ShortSaleReason_QUALIFIED_SERVICE_REPRESENTATIVE = 4; + const int PegRoundDirection_MORE_AGGRESSIVE_ON_A_BUY_ORDER_ROUND_THE_PRICE_UP_ROUND_UP_TO_THE_NEAREST_TICK_ON_A_SELL_ROUND_DOWN_TO_THE_NEAREST_TICK = 1; + const int PegRoundDirection_MORE_AGGRESSIVE = 1; + const int PegRoundDirection_MORE_PASSIVE = 2; + const int PegRoundDirection_MORE_PASSIVE_ON_A_BUY_ORDER_ROUND_DOWN_TO_NEAREST_TICK_ON_A_SELL_ORDER_ROUND_UP_TO_NEAREST_TICK = 2; + const int ModelType_PROPRIETARY = 1; + const int ModelType_UTILITY_PROVIDED_STANDARD_MODEL = 0; + const char FuturesValuationMethod_FUTURES_STYLE_WITH_AN_ATTACHED_CASH_ADJUSTMENT[] = "FUTDA"; + const char FuturesValuationMethod_PREMIUM_STYLE[] = "EQTY"; + const char FuturesValuationMethod_FUTURES_STYLE_MARK_TO_MARKET[] = "FUT"; + const char SettlMethod_CASH_SETTLEMENT_REQUIRED = 'C'; + const char SettlMethod_PHYSICAL_SETTLEMENT_REQUIRED = 'P'; + const int ConfirmStatus_CONFIRMED = 4; + const int ConfirmStatus_MISSING_SETTLEMENT_INSTRUCTIONS = 3; + const int ConfirmStatus_REQUEST_REJECTED = 5; + const int ConfirmStatus_MISMATCHED_ACCOUNT = 2; + const int ConfirmStatus_RECEIVED = 1; + const char LocateReqd_NO = 'N'; + const char LocateReqd_YES = 'Y'; + const int Adjustment_CANCEL = 1; + const int Adjustment_CORRECTION = 3; + const int Adjustment_ERROR = 2; + const int StreamAsgnType_ASSIGNMENT = 1; + const int StreamAsgnType_TERMINATE_UNASSIGN = 3; + const int StreamAsgnType_REJECTED = 2; + const char LastRptRequested_NO = 'N'; + const char LastRptRequested_YES = 'Y'; + const char SettlSessID_END_OF_DAY[] = "EOD"; + const char SettlSessID_ELECTRONIC_TRADING_HOURS[] = "ETH"; + const char SettlSessID_REGULAR_TRADING_HOURS[] = "RTH"; + const char SettlSessID_INTRADAY[] = "ITD"; + const int TradeReportType_LOCKED_IN_TRADE_BREAK = 7; + const int TradeReportType_NO_WAS = 5; + const int TradeReportType_ADDENDUM = 4; + const int TradeReportType_7 = 7; + const int TradeReportType_PENDED = 10; + const int TradeReportType_DEFAULTED = 8; + const int TradeReportType_DECLINE = 3; + const int TradeReportType_ALLEGED_NEW = 11; + const int TradeReportType_ALLEGED_TRADE_REPORT_CANCEL = 14; + const int TradeReportType_ALLEGED_15 = 15; + const int TradeReportType_ALLEGED_ADDENDUM = 12; + const int TradeReportType_ALLEGED = 1; + const int TradeReportType_SUBMIT = 0; + const int TradeReportType_ALLEGED_1 = 1; + const int TradeReportType_INVALID_CMTA = 9; + const int TradeReportType_ALLEGED_NO_WAS = 13; + const int TradeReportType_TRADE_REPORT_CANCEL = 6; + const int TradeReportType_ACCEPT = 2; + const int ExerciseStyle_AMERICAN = 1; + const int ExerciseStyle_EUROPEAN = 0; + const int ExerciseStyle_BERMUDA = 2; + const char HaltReasonChar_ADDITIONAL_INFORMATION = 'M'; + const char HaltReasonChar_NEW_PENDING = 'P'; + const char HaltReasonChar_NEWS_PENDING = 'P'; + const char HaltReasonChar_ORDER_INFLUX = 'E'; + const char HaltReasonChar_NEWS_DISSEMINATION = 'D'; + const char HaltReasonChar_EQUIPMENT_CHANGEOVER = 'X'; + const char HaltReasonChar_ORDER_IMBALANCE = 'I'; + const char ExDestination_POSIT = '4'; + const char ExDestination_NONE = '0'; + const int AllocReportType_SELLSIDE_CALCULATED_WITHOUT_PRELIMINARY = 4; + const int AllocReportType_WAREHOUSE_RECAP = 5; + const int AllocReportType_REJECT = 10; + const int AllocReportType_ACCEPT_PENDING = 11; + const int AllocReportType_COMPLETE = 12; + const int AllocReportType_REQUEST_TO_INTERMEDIARY = 8; + const int AllocReportType_PRELIMINARY_REQUEST_TO_INTERMEDIARY = 2; + const int AllocReportType_SELLSIDE_CALCULATED_USING_PRELIMINARY = 3; + const int AllocReportType_REVERSE_PENDING = 14; + const int AllocReportType_ACCEPT = 9; + const int AllocType_SELLSIDE_CALCULATED_WITHOUT_PRELIMINARY = 4; + const int AllocType_INCOMPLETE_GROUP = 12; + const int AllocType_REVERSAL_PENDING = 14; + const int AllocType_CALCULATED = 1; + const int AllocType_REJECT = 10; + const int AllocType_PRELIMINARY = 2; + const int AllocType_ACCEPT_PENDING = 11; + const int AllocType_BUYSIDE_CALCULATED = 1; + const int AllocType_REQUEST_TO_INTERMEDIARY = 8; + const int AllocType_BUYSIDE_READY_TO_BOOK_5 = 5; + const int AllocType_BUYSIDE_READY_TO_BOOK_6 = 6; + const int AllocType_COMPLETE_GROUP = 13; + const int AllocType_SELLSIDE_CALCULATED_USING_PRELIMINARY = 3; + const int AllocType_BUYSIDE_READY_TO_BOOK = 6; + const int AllocType_READY_TO_BOOK = 5; + const int AllocType_WAREHOUSE_INSTRUCTION = 7; + const int AllocType_BUYSIDE_PRELIMINARY = 2; + const int AllocType_ACCEPT = 9; + const int QuoteRequestRejectReason_INSUFFICIENT_CREDIT = 11; + const int QuoteRequestRejectReason_NOT_AUTHORIZED_TO_REQUEST_QUOTE = 6; + const int QuoteRequestRejectReason_INVALID_PRICE = 5; + const int QuoteRequestRejectReason_TOO_LATE_TO_ENTER = 4; + const int QuoteRequestRejectReason_NO_MATCH_FOR_INQUIRY = 7; + const int QuoteRequestRejectReason_EXCHANGE = 2; + const int QuoteRequestRejectReason_NO_MARKET_FOR_INSTRUMENT = 8; + const int QuoteRequestRejectReason_UNKNOWN_SYMBOL = 1; + const int QuoteRequestRejectReason_OTHER = 99; + const int QuoteRequestRejectReason_PASS = 10; + const int QuoteRequestRejectReason_NO_INVENTORY = 9; + const int QuoteRequestRejectReason_QUOTE_REQUEST_EXCEEDS_LIMIT = 3; + const int LiquidityIndType_20_DAY_MOVING_AVERAGE = 2; + const int LiquidityIndType_5_DAY_MOVING_AVERAGE = 1; + const int LiquidityIndType_5DAY_MOVING_AVERAGE = 1; + const int LiquidityIndType_NORMAL_MARKET_SIZE = 3; + const int LiquidityIndType_OTHER = 4; + const int StatusValue_IN_PROCESS = 4; + const int StatusValue_NOT_CONNECTED_DOWN_EXPECTED_DOWN = 3; + const int StatusValue_NOT_CONNECTED_2 = 2; + const int StatusValue_NOT_CONNECTED_DOWN_EXPECTED_UP = 2; + const int StatusValue_CONNECTED = 1; + const int StatusValue_NOT_CONNECTED_3 = 3; + const char PosType_EXCHANGE_FOR_PHYSICAL_QTY[] = "EP"; + const char PosType_TRANSFER_TRADE_QTY[] = "TRF"; + const char PosType_INTER_SPREAD_QTY[] = "IES"; + const char PosType_INTRA_SPREAD_QTY[] = "IAS"; + const char PosType_START_OF_DAY_QTY[] = "SOD"; + const char PosType_DELIVERY_QTY[] = "DLV"; + const char PosType_PIT_TRADE_QTY[] = "PIT"; + const char PosType_TRANSACTION_FROM_ASSIGNMENT[] = "TA"; + const char PosType_TRANSACTION_FROM_EXERCISE[] = "TX"; + const char PosType_OPTION_ASSIGNMENT[] = "AS"; + const char PosType_AS_OF_TRADE_QTY[] = "ASF"; + const char PosType_ELECTRONIC_TRADE_QTY[] = "ETR"; + const char PosType_SUCCESSION_EVENT_ADJUSTMENT[] = "SEA"; + const char PosType_OPTION_EXERCISE_QTY[] = "EX"; + const char PosType_TRANSACTION_QUANTITY[] = "TQ"; + const char PosType_NET_DELTA_QTY[] = "DLT"; + const char PosType_DELIVERY_NOTICE_QTY[] = "DN"; + const char PosType_TOTAL_TRANSACTION_QTY[] = "TOT"; + const char PosType_ADJUSTMENT_QTY[] = "PA"; + const char PosType_END_OF_DAY_QTY[] = "FIN"; + const char PosType_RECEIVE_QUANTITY[] = "RCV"; + const char PosType_CREDIT_EVENT_ADJUSTMENT[] = "CEA"; + const char PosType_PRIVATELY_NEGOTIATED_TRADE_QTY[] = "PNTN"; + const char PosType_CORPORATE_ACTION_ADJUSTMENT[] = "CAA"; + const char PosType_CROSS_MARGIN_QTY[] = "XM"; + const char PosType_INTEGRAL_SPLIT[] = "SPL"; + const char PosType_ALLOCATION_TRADE_QTY[] = "ALC"; + const int StreamAsgnAckType_ASSIGNMENT_REJECTED = 1; + const int StreamAsgnAckType_ASSIGNMENT_ACCEPTED = 0; + const int MiscFeeBasis_ABSOLUTE = 0; + const int MiscFeeBasis_PERCENTAGE = 2; + const int MiscFeeBasis_PER_UNIT = 1; + const char OrdType_FOREX_MARKET = 'C'; + const char OrdType_FOREX_PREVIOUSLY_QUOTED = 'H'; + const char OrdType_PREVIOUS_FUND_VALUATION_POINT = 'L'; + const char OrdType_PEGGED = 'P'; + const char OrdType_LIMIT_WITH_OR_WITHOUT = '8'; + const char OrdType_STOP_LIMIT = '4'; + const char OrdType_FOREX_SWAP = 'G'; + const char OrdType_MARKET_WITH_LEFT_OVER_AS_LIMIT = 'K'; + const char OrdType_PREVIOUSLY_QUOTED = 'D'; + const char OrdType_COUNTER_ORDER_SELECTION = 'Q'; + const char OrdType_MARKET_IF_TOUCHED = 'J'; + const char OrdType_NEXT_FUND_VALUATION_POINT = 'M'; + const char OrdType_FOREX_C = 'C'; + const char OrdType_ON_CLOSE = 'A'; + const char OrdType_STOP = '3'; + const char OrdType_FOREX_LIMIT = 'F'; + const char OrdType_FOREX = 'G'; + const char OrdType_FUNARI = 'I'; + const char OrdType_FOREX_F = 'F'; + const char OrdType_PREVIOUSLY_INDICATED = 'E'; + const char OrdType_WITH_OR_WITHOUT = '6'; + const char OrdType_MARKET_ON_CLOSE = '5'; + const char OrdType_LIMIT = '2'; + const char OrdType_MARKET_WITH_LEFTOVER_AS_LIMIT = 'K'; + const char OrdType_FOREX_G = 'G'; + const char OrdType_LIMIT_ON_CLOSE = 'B'; + const char OrdType_FOREX_H = 'H'; + const char OrdType_ON_BASIS = '9'; + const char OrdType_LIMIT_OR_BETTER = '7'; + const char OrdType_MARKET = '1'; + const char MatchType_COMPARED_RECORDS_RESULTING_FROM_STAMPED_ADVISORIES_OR_SPECIALIST_ACCEPTS_PAIR_OFFS[] = "AQ"; + const char MatchType_SUMMARIZED_MATCH_USING_A4_EXACT_MATCH_CRITERIA_EXCEPT_QUANTITY_IS_SUMMARIZED[] = "S4"; + const char MatchType_NON_ACT[] = "MT"; + const char MatchType_EXACT_MATCH_ON_TRADE_DATE_STOCK_SYMBOL_QUANTITY_PRICE_TRADE_TYPE_AND[] = "A4"; + const char MatchType_SUMMARIZED_MATCH_USING_A1_TO_A5_EXACT_MATCH_CRITERIA_EXCEPT_QUANTITY_IS_SUMMARIZED_S3[] = "S3"; + const char MatchType_AUTO_MATCH[] = "4"; + const char MatchType_EXACT_MATCH_ON_TRADE_DATE_STOCK_SYMBOL_QUANTITY_PRICE_TRADE_TYPE_AND_SPECIAL_TRADE_INDICATOR_PLUS_TWO_BADGES[] = "A4"; + const char MatchType_SUMMARIZED_MATCH_USING_A2_EXACT_MATCH_CRITERIA_EXCEPT_QUANTITY_IS_SUMMARIZED[] = "S2"; + const char MatchType_SUMMARIZED_MATCH_USING_A1_TO_A5_EXACT_MATCH_CRITERIA_EXCEPT_QUANTITY_IS_SUMMARIZED_S4[] = "S4"; + const char MatchType_CALL_AUCTION[] = "7"; + const char MatchType_SUMMARIZED_MATCH_USING_A1_EXACT_MATCH_CRITERIA_EXCEPT_QUANTITY_IS_SUMMARIED[] = "S1"; + const char MatchType_SUMMARIZED_MATCH_USING_A3_EXACT_MATCH_CRITERIA_EXCEPT_QUANTITY_IS_SUMMARIZED[] = "S3"; + const char MatchType_COMPARED_RECORDS_RESULTING_FROM_STAMPED_ADVISORIES_OR_SPECIALIST[] = "AQ"; + const char MatchType_EXACT_MATCH_ON_TRADE_DATE_STOCK_SYMBOL_QUANTITY_PRICE_TRADE_TYPE_AND_SPECIAL_TRADE_INDICATOR_PLUS_FOUR_BADGES[] = "A2"; + const char MatchType_ACT_M2_MATCH[] = "M2"; + const char MatchType_SUMMARIZED_MATCH_USING_A1_TO_A5_EXACT_MATCH_CRITERIA_EXCEPT_QUANTITY_IS_SUMMARIZED_S5[] = "S5"; + const char MatchType_ONE_PARTY_TRADE_REPORT[] = "1"; + const char MatchType_ACT_M1_MATCH[] = "M1"; + const char MatchType_COUNTER_ORDER_SELECTION[] = "6"; + const char MatchType_ISSUING_BUY_BACK_AUCTION[] = "8"; + const char MatchType_TWO_PARTY_PRIVATELY_NEGOTIATED_TRADE_REPORT[] = "61"; + const char MatchType_CROSS_AUCTION_63[] = "63"; + const char MatchType_CROSS_AUCTION_5[] = "5"; + const char MatchType_CALL_AUCTION_7[] = "7"; + const char MatchType_COUNTER_ORDER_SELECTION_64[] = "64"; + const char MatchType_TWO_PARTY_TRADE_REPORT[] = "2"; + const char MatchType_SUMMARIZED_MATCH_MINUS_BADGES_AND_TIMES_ACT_M2_MATCH[] = "M2"; + const char MatchType_EXACT_MATCH_ON_TRADE_DATE_STOCK_SYMBOL_QUANTITY_PRICE_TRADE_TYPE_AND_SPECIAL_TRADE_INDICATOR_PLUS_FOUR_BADGES_AND_EXECUTION_TIME[] = "A1"; + const char MatchType_ACT_DEFAULT_TRADE[] = "M4"; + const char MatchType_ACT_ACCEPTED_TRADE[] = "M3"; + const char MatchType_COUNTER_ORDER_SELECTION_6[] = "6"; + const char MatchType_SUMMARIZED_MATCH_USING_A1_EXACT_MATCH_CRITERIA_EXCEPT_QUANTITY_IS_SUMMARIZED[] = "S1"; + const char MatchType_EXACT_MATCH_ON_TRADE_DATE_STOCK_SYMBOL_QUANTITY_PRICE_TRADE_TYPE_AND_SPECIAL_TRADE_INDICATOR_PLUS_TWO_BADGES_AND_EXECUTION_TIME[] = "A3"; + const char MatchType_EXACT_MATCH_ON_TRADE_DATE_STOCK_SYMBOL_QUANTITY_PRICE_TRADETYPE_AND_SPECIAL_TRADE_INDICATOR_PLUS_EXECUTION_TIME[] = "A5"; + const char MatchType_CROSS_AUCTION[] = "5"; + const char MatchType_CALL_AUCTION_65[] = "65"; + const char MatchType_CONFIRMED_TRADE_REPORT[] = "3"; + const char MatchType_SUMMARIZED_MATCH_USING_A5_EXACT_MATCH_CRITERIA_EXCEPT_QUANTITY_IS_SUMMARIZED[] = "S5"; + const char MatchType_ACT_M6_MATCH[] = "M6"; + const char MatchType_ONE_PARTY_PRIVATELY_NEGOTIATED_TRADE_REPORT[] = "60"; + const char MatchType_CONTINUOUS_AUTO_MATCH[] = "62"; + const char MatchType_OCS_LOCKED_IN_NON_ACT[] = "MT"; + const char MatchType_EXACT_MATCH_ON_TRADE_DATE_STOCK_SYMBOL_QUANTITY_PRICE_TRADE_TYPE_AND_SPECIAL_TRADE_INDICATOR_PLUS_EXECUTION_TIME[] = "A5"; + const char MatchType_SUMMARIZED_MATCH_USING_A1_TO_A5_EXACT_MATCH_CRITERIA_EXCEPT_QUANTITY_IS_SUMMARIZED_S1[] = "S1"; + const char MatchType_EXACT_MATCH_ON_TRADE_DATE_STOCK_SYMBOL_QUANTITY_PRICE_TRADE_TYPE_AND_SPECIAL_TRADE_INDICATOR_MINUS_BADGES_AND_TIMES_ACT_M1_MATCH[] = "M1"; + const char MatchType_SUMMARIZED_MATCH_USING_A1_TO_A5_EXACT_MATCH_CRITERIA_EXCEPT_QUANTITY_IS_SUMMARIZED_S2[] = "S2"; + const char MatchType_ACT_DEFAULT_AFTER_M2[] = "M5"; + const int OptPayoutType_BINARY = 3; + const int OptPayoutType_VANILLA = 1; + const int OptPayoutType_CAPPED = 2; + const char MarketUpdateAction_DELETE = 'D'; + const char MarketUpdateAction_ADD = 'A'; + const char MarketUpdateAction_MODIFY = 'M'; + const int CollAsgnRejectReason_UNAUTHORIZED_TRANSACTION = 2; + const int CollAsgnRejectReason_UNKNOWN_OR_INVALID_INSTRUMENT = 1; + const int CollAsgnRejectReason_UNKNOWN_DEAL = 0; + const int CollAsgnRejectReason_INVALID_TYPE_OF_COLLATERAL = 4; + const int CollAsgnRejectReason_OTHER = 99; + const int CollAsgnRejectReason_EXCESSIVE_SUBSTITUTION = 5; + const int CollAsgnRejectReason_INSUFFICIENT_COLLATERAL = 3; + const int IndividualAllocType_SUB_ALLOCATE = 1; + const int IndividualAllocType_THIRD_PARTY_ALLOCATION = 2; + const int GTBookingInst_BOOK_OUT_ALL_TRADES_ON_DAY_OF_EXECUTION = 0; + const int GTBookingInst_ACCUMULATE_UNTIL_VERBALLY_NOTIFIED_OTHERWISE = 2; + const int GTBookingInst_ACCUMULATE_EXECUTIONS_UNTIL_ORDER_IS_FILLED_OR_EXPIRES = 1; + const int GTBookingInst_ACCUMULATE_UNTIL_VERBALLLY_NOTIFIED_OTHERWISE = 2; + const int GTBookingInst_ACCUMULATE_EXECTUIONS_UNTIL_FORDER_IS_FILLED_OR_EXPIRES = 1; + const int PutOrCall_PUT = 0; + const int PutOrCall_CALL = 1; + const char FundRenewWaiv_NO = 'N'; + const char FundRenewWaiv_YES = 'Y'; + const char ForexReq_NO = 'N'; + const char ForexReq_YES = 'Y'; + const int TickRuleType_TRADED_AS_A_SPREAD_LEG = 3; + const int TickRuleType_REGULAR = 0; + const int TickRuleType_VARIABLE = 1; + const int TickRuleType_SETTLED_AS_A_SPREAD_LEG = 4; + const int TickRuleType_FIXED = 2; + const int DiscretionOffsetType_PRICE = 0; + const int DiscretionOffsetType_PRICE_TIER = 3; + const int DiscretionOffsetType_TICKS = 2; + const int DiscretionOffsetType_BASIS_POINTS = 1; + const int ConfirmTransType_REPLACE = 1; + const int ConfirmTransType_NEW = 0; + const int ConfirmTransType_CANCEL = 2; + const int MDSecSizeType_CUSTOMER = 1; + const int TradSesEvent_CHANGE_OF_TRADING_STATUS = 3; + const int TradSesEvent_CHANGE_OF_TRADING_SESSION = 1; + const int TradSesEvent_CHANGE_OF_TRADING_SUBSESSION = 2; + const int TradSesEvent_TRADING_RESUMES = 0; + const char DlvyInstType_SECURITIES = 'S'; + const char DlvyInstType_CASH = 'C'; + const char TradeCondition_IMPLIED_TRADE[] = "1"; + const char TradeCondition_OPENING_PRICE[] = "R"; + const char TradeCondition_PRIOR_REFERENCE_PRICE[] = "AK"; + const char TradeCondition_CANCEL_LAST_ETH[] = "l"; + const char TradeCondition_SELLER[] = "L"; + const char TradeCondition_DISTRIBUTION[] = "e"; + const char TradeCondition_NEXT_DAY_TRADE[] = "J"; + const char TradeCondition_STRADDLE_ETH[] = "AD"; + const char TradeCondition_SPREAD[] = "AA"; + const char TradeCondition_CROSSED_AO[] = "AO"; + const char TradeCondition_SOLD_LAST_SALE[] = "o"; + const char TradeCondition_OPENED_SALE_ETH[] = "r"; + const char TradeCondition_REOPEN_ETH[] = "x"; + const char TradeCondition_SOLD_LAST_SALE_ETH[] = "m"; + const char TradeCondition_STOPPED_SOLD_LAST[] = "AL"; + const char TradeCondition_TRADES_RESULTING_FROM_INTERMARKET_SWEEP[] = "Z"; + const char TradeCondition_FORM_T[] = "AR"; + const char TradeCondition_ADJUSTED[] = "y"; + const char TradeCondition_CANCEL_ETH[] = "i"; + const char TradeCondition_OUT_OF_SEQUENCE_ETH[] = "k"; + const char TradeCondition_COMBO_ETH[] = "AI"; + const char TradeCondition_CANCEL_ONLY_ETH[] = "t"; + const char TradeCondition_STRADDLE[] = "AC"; + const char TradeCondition_OUTSIDE_SPREAD[] = "AV"; + const char TradeCondition_BUNCHED_SALE[] = "f"; + const char TradeCondition_CANCEL_STOPPED[] = "h"; + const char TradeCondition_LATE_OPEN_ETH[] = "u"; + const char TradeCondition_OPENING_REOPENING_TRADE_DETAIL[] = "E"; + const char TradeCondition_CANCEL[] = "0"; + const char TradeCondition_COMBO[] = "AH"; + const char TradeCondition_OPENING[] = "E"; + const char TradeCondition_ACQUISITION[] = "c"; + const char TradeCondition_OPENED[] = "K"; + const char TradeCondition_CANCEL_ONLY[] = "s"; + const char TradeCondition_NEXT_DAY[] = "D"; + const char TradeCondition_BARGAIN_CONDITION[] = "S"; + const char TradeCondition_STOPPED[] = "AE"; + const char TradeCondition_CONVERTED_PRICE_INDICATOR[] = "T"; + const char TradeCondition_OFFICIAL_CLOSING_PRICE[] = "AJ"; + const char TradeCondition_ADJUSTED_ETH[] = "z"; + const char TradeCondition_RULE_155_TRADE[] = "H"; + const char TradeCondition_AUTOMATIC_EXECUTION[] = "AQ"; + const char TradeCondition_CROSSED_X[] = "X"; + const char TradeCondition_AUTO_EXECUTION_ETH[] = "v"; + const char TradeCondition_MULTILEG_TO_MULTILEG_TRADE[] = "4"; + const char TradeCondition_BASKET_INDEX[] = "AS"; + const char TradeCondition_TRADES_RESULTING_FROM_MANUAL_SLOW_QUOTE[] = "Y"; + const char TradeCondition_FINAL_PRICE_OF_SESSION[] = "V"; + const char TradeCondition_STOPPED_STOCK[] = "N"; + const char TradeCondition_OFFICAL_CLOSING_PRICE[] = "AN"; + const char TradeCondition_MULT_ASSET_CLASS_MULTILEG_TRADE[] = "3"; + const char TradeCondition_CASH[] = "A"; + const char TradeCondition_CANCEL_OPEN[] = "p"; + const char TradeCondition_REGULAR_ETH[] = "AG"; + const char TradeCondition_STOPPED_ETH[] = "AF"; + const char TradeCondition_VOLUME_ONLY[] = "a"; + const char TradeCondition_CANCEL_STOPPED_ETH[] = "j"; + const char TradeCondition_STOPPED_OUT_OF_SEQUENCE[] = "AM"; + const char TradeCondition_CASH_TRADE[] = "C"; + const char TradeCondition_SPLIT_TRADE[] = "g"; + const char TradeCondition_IMBALANCE_MORE_BUYERS[] = "P"; + const char TradeCondition_IMBALANCE_MORE_SELLERS[] = "Q"; + const char TradeCondition_INTRADAY_TRADE_DETAIL[] = "F"; + const char TradeCondition_RULE_127_TRADE[] = "G"; + const char TradeCondition_BUNCHED[] = "d"; + const char TradeCondition_REOPEN[] = "w"; + const char TradeCondition_EX_PIT[] = "W"; + const char TradeCondition_DIRECT_PLUS[] = "b"; + const char TradeCondition_CANCEL_LAST[] = "n"; + const char TradeCondition_AVERAGE_PRICE_TRADE[] = "B"; + const char TradeCondition_SOLD_LAST[] = "I"; + const char TradeCondition_MARKETPLACE_ENTERED_TRADE[] = "2"; + const char TradeCondition_SPREAD_ETH[] = "AB"; + const char TradeCondition_CANCEL_OPEN_ETH[] = "q"; + const char TradeCondition_EXCHANGE_LAST[] = "U"; + const char TradeCondition_FAST_MARKET[] = "AP"; + const char TradeCondition_BURST_BASKET[] = "AT"; + const char TradeCondition_SOLD[] = "M"; + const int PriceLimitType_PRICE = 0; + const int PriceLimitType_TICKS = 1; + const int PriceLimitType_PERCENTAGE = 2; + const char CommType_PER_SHARE = '1'; + const char CommType_POINTS_PER_BOND_OR_CONTRACT_SUPPLY_CONTRACTMULTIPLIER = '6'; + const char CommType_ABSOLUTE = '3'; + const char CommType_PER_BOND = '6'; + const char CommType_PERCENTAGE = '2'; + const char CommType_PERCENTAGE_WAIVED_4 = '4'; + const char CommType_POINTS_PER_BOND_OR_CONTRACT = '6'; + const char CommType_PERCENTAGE_WAIVED_5 = '5'; + const char CommType_PER_UNIT = '1'; + const char CommType_PERCENT = '2'; + const char CommType_4 = '4'; + const char CommType_5 = '5'; + const int RegistRejReasonCode_INVALID_UNACCEPTABLE_NO_DISTRIB_INSTNS = 13; + const int RegistRejReasonCode_INVALID_UNACCEPTABLE_MAILING_DTLS = 7; + const int RegistRejReasonCode_INVALID_UNACCEPTABLE_NO_REG_DETAILS = 4; + const int RegistRejReasonCode_INVALID_UNACCEPTABLE_MAILING_INSTRUCTIONS = 8; + const int RegistRejReasonCode_INVALID_UNACCEPTABLE_TAX_EXEMPT_TYPE = 2; + const int RegistRejReasonCode_INVALID_UNACCEPTABLE_CASH_DISTRIB_AGENT_ACCT_NAME = 16; + const int RegistRejReasonCode_INVALID_UNACEEPTABLE_INVESTOR_ID_SOURCE = 10; + const int RegistRejReasonCode_INVALID_UNACCEPTABLE_INVESTOR_ID_SOURCE = 10; + const int RegistRejReasonCode_INVALID_UNACCEPTABLE_DATE_OF_BIRTH = 11; + const int RegistRejReasonCode_INVALID_UNACCEPTABLE_MAILING_INST = 8; + const int RegistRejReasonCode_INVALID_UNACCEPTABLE_NO_REG_DETLS = 4; + const int RegistRejReasonCode_INVALID_UNACCEPTABLE_DISTRIB_PAYMENT_METHOD = 15; + const int RegistRejReasonCode_INVALID_UNACCEPTABLE_CASH_DISTRIB_AGENT_CODE = 17; + const int RegistRejReasonCode_INVALID_UNACCEPTABLE_REG_DETAILS = 6; + const int RegistRejReasonCode_OTHER = 99; + const int RegistRejReasonCode_INVALID_UNACCEPTABLE_REG_DTLS = 6; + const int RegistRejReasonCode_INVALID_UNACCEPTABLE_ACCOUNT_TYPE = 1; + const int RegistRejReasonCode_INVALID_UNACCEPTABLE_MAILING_DETAILS = 7; + const int RegistRejReasonCode_INVALID_UNACCEPTABLE_INVESTOR_COUNTRY_OF_RESIDENCE = 12; + const int RegistRejReasonCode_INVALID_UNACCEPTABLE_DISTRIB_PERCENTAGE = 14; + const int RegistRejReasonCode_INVALID_UNACCEPTABLE_CASH_DISTRIB_AGENT_ACCT_NUM = 18; + const int RegistRejReasonCode_INVALID_UNACCEPTABLE_REG_SEQ_NO = 5; + const int RegistRejReasonCode_INVALID_UNACCEPTABLE_INVESTOR_ID = 9; + const int RegistRejReasonCode_INVALID_UNACCEPTABLE_OWNERSHIP_TYPE = 3; + const int RegistRejReasonCode_INVALID_UNACCEPTABLE_NODISTRIBINSTNS = 13; + const char FinancialStatus_BANKRUPT = '1'; + const char FinancialStatus_RESTRICTED = '3'; + const char FinancialStatus_PENDING_DELISTING = '2'; + const char LastFragment_NO = 'N'; + const char LastFragment_YES = 'Y'; + const char NotifyBrokerOfCredit_NO = 'N'; + const char NotifyBrokerOfCredit_YES = 'Y'; + const int PartySubIDType_DEPARTMENT = 24; + const int PartySubIDType_FAX_NUMBER = 21; + const int PartySubIDType_CASH_ACCOUNT_NUMBER = 15; + const int PartySubIDType_REGISTERED_ADDRESS_12 = 12; + const int PartySubIDType_CONTACT_NAME = 9; + const int PartySubIDType_PERSON = 2; + const int PartySubIDType_FIRM = 1; + const int PartySubIDType_SECURITY_LOCATE_ID = 27; + const int PartySubIDType_POSITION_ACCOUNT_TYPE = 26; + const int PartySubIDType_CASH_ACCOUNT_NAME = 23; + const int PartySubIDType_POSTAL_ADDRESS = 6; + const int PartySubIDType_PROFESSIONAL_CLIENT = 30; + const int PartySubIDType_LOCATION = 31; + const int PartySubIDType_FUND_ACCOUNT_NAME = 19; + const int PartySubIDType_REGISTRATION_NUMBER = 11; + const int PartySubIDType_SYSTEM = 3; + const int PartySubIDType_CSD_PARTICIPANT_MEMBER_CODE = 17; + const int PartySubIDType_REGULATORY_STATUS = 13; + const int PartySubIDType_CURRENCY_DELIVERY_IDENTIFIER = 33; + const int PartySubIDType_TELEX_NUMBER = 20; + const int PartySubIDType_REGISTERED_ADDRESS_18 = 18; + const int PartySubIDType_BIC = 16; + const int PartySubIDType_REGISTRATION_NAME = 14; + const int PartySubIDType_EMAIL_ADDRESS = 8; + const int PartySubIDType_LOCATION_DESK = 25; + const int PartySubIDType_APPLICATION = 4; + const int PartySubIDType_SECURITIES_ACCOUNT_NAME = 22; + const int PartySubIDType_PHONE_NUMBER = 7; + const int PartySubIDType_ELIGIBLE_COUNTERPARTY = 29; + const int PartySubIDType_MARKET_MAKER = 28; + const int PartySubIDType_EXECUTION_VENUE = 32; + const int PartySubIDType_SECURITIES_ACCOUNT_NUMBER = 10; + const int PartySubIDType_FULL_LEGAL_NAME_OF_FIRM = 5; + const int AllocNoOrdersType_EXPLICIT_LIST_PROVIDED = 1; + const int AllocNoOrdersType_NOT_SPECIFIED = 0; + const int AllocLinkType_FX_SWAP = 1; + const int AllocLinkType_F_X_NETTING = 0; + const int AllocLinkType_FX_NETTING = 0; + const int AllocLinkType_F_X_SWAP = 1; + const int UnderlyingSettlementType_T_PLUS_1 = 2; + const int UnderlyingSettlementType_T_PLUS_3 = 4; + const int UnderlyingSettlementType_T_PLUS_4 = 5; + const char DisplayMethod_NEW = '2'; + const char DisplayMethod_UNDISCLOSED = '4'; + const char DisplayMethod_RANDOM = '3'; + const char DisplayMethod_INITIAL = '1'; + const int CollStatus_PARTIALLY_ASSIGNED = 1; + const int CollStatus_ASSIGNMENT_PROPOSED = 2; + const int CollStatus_CHALLENGED = 4; + const int CollStatus_ASSIGNED = 3; + const int CollStatus_UNASSIGNED = 0; + const int SideValueInd_SIDEVALUE_2 = 2; + const int SideValueInd_SIDEVALUE1 = 1; + const int SideValueInd_SIDE_VALUE_1 = 1; + const int SideValueInd_SIDE_VALUE_2 = 2; + const char MsgDirection_RECEIVE = 'R'; + const char MsgDirection_SEND = 'S'; + const char MDUpdateAction_DELETE = '2'; + const char MDUpdateAction_NEW = '0'; + const char MDUpdateAction_DELETE_THRU = '3'; + const char MDUpdateAction_DELETE_FROM = '4'; + const char MDUpdateAction_OVERLAY = '5'; + const char MDUpdateAction_CHANGE = '1'; + const char MatchStatus_UNCOMPARED_UNMATCHED_OR_UNAFFIRED = '1'; + const char MatchStatus_COMPARED_MATCHED_OR_AFFIRMED = '0'; + const char MatchStatus_ADVISORY_OR_ALERT = '2'; + const char MatchStatus_UNCOMPARED_UNMATCHED_OR_UNAFFIRMED = '1'; + const int RateSource_REUTERS = 1; + const int RateSource_OTHER = 99; + const int RateSource_BLOOMBERG = 0; + const int RateSource_TELERATE = 2; + const char AllocPositionEffect_CLOSE = 'C'; + const char AllocPositionEffect_FIFO = 'F'; + const char AllocPositionEffect_OPEN = 'O'; + const char AllocPositionEffect_ROLLED = 'R'; + const char PartyIDSource_US_EMPLOYER_OR_TAX_ID_NUMBER = '8'; + const char PartyIDSource_PROPRIETARY = 'D'; + const char PartyIDSource_AUSTRALIAN_TAX_FILE_NUMBER = 'A'; + const char PartyIDSource_GENERALLY_ACCEPTED_MARKET_PARTICIPANT_IDENTIFIER = 'C'; + const char PartyIDSource_AUSTRALIAN_BUSINESS_NUMBER = '9'; + const char PartyIDSource_US_EMPLOYER_IDENTIFICATION_NUMBER = '8'; + const char PartyIDSource_TAIWANESE_TRADING_ACCOUNT = '3'; + const char PartyIDSource_TAIWANESE_TRADING_ACCT = '3'; + const char PartyIDSource_MALAYSIAN_CENTRAL_DEPOSITORY = '4'; + const char PartyIDSource_US_SOCIAL_SECURITY_NUMBER = '7'; + const char PartyIDSource_UK_NATIONAL_INSURANCE_OR_PENSION_NUMBER = '6'; + const char PartyIDSource_CSD_PARTICIPANT_MEMBER_CODE = 'H'; + const char PartyIDSource_DIRECTED_BROKER_THREE_CHARACTER_ACRONYM_AS_DEFINED_IN_ISITC_ETC_BEST_PRACTICE_GUIDELINES_DOCUMENT = 'I'; + const char PartyIDSource_TAIWANESE_QUALIFIED_FOREIGN_INVESTOR_ID_QFII = '2'; + const char PartyIDSource_SETTLEMENT_ENTITY_LOCATION = 'F'; + const char PartyIDSource_PROPRIETARY_CUSTOM_CODE = 'D'; + const char PartyIDSource_BIC = 'B'; + const char PartyIDSource_CHINESE_INVESTOR_ID = '5'; + const char PartyIDSource_MIC = 'G'; + const char PartyIDSource_KOREAN_INVESTOR_ID = '1'; + const char PartyIDSource_ISO_COUNTRY_CODE = 'E'; + const char PartyIDSource_TAIWANESE_QUALIFIED_FOREIGN_INVESTOR_ID_QFII_FID = '2'; + const char PartyIDSource_CHINESE_B_SHARE = '5'; + const char ExchangeForPhysical_NO = 'N'; + const char ExchangeForPhysical_YES = 'Y'; + const int SecurityTradingEvent_CHANGE_OF_SECURITY_TRADING_STATUS = 6; + const int SecurityTradingEvent_CHANGE_OF_TRADING_SESSION = 4; + const int SecurityTradingEvent_CHANGE_OF_SECURITY_STATUS = 6; + const int SecurityTradingEvent_PRICE_VOLATILITY_INTERRUPTION = 3; + const int SecurityTradingEvent_CHANGE_OF_BOOK_TYPE = 7; + const int SecurityTradingEvent_CHANGE_OF_TRADING_SUBSESSION = 5; + const int SecurityTradingEvent_CHANGE_OF_MARKET_DEPTH = 8; + const int SecurityTradingEvent_TRADING_RESUMES = 2; + const int SecurityTradingEvent_ORDER_IMBALANCE_AUCTION_IS_EXTENDED = 1; + const int CollAction_ADD = 1; + const int CollAction_REMOVE = 2; + const int CollAction_RETAIN = 0; + const char PossDupFlag_NO = 'N'; + const char PossDupFlag_YES = 'Y'; + const int ListStatusType_ALL_DONE = 5; + const int ListStatusType_TIMED = 3; + const int ListStatusType_EXECSTARTED = 4; + const int ListStatusType_RESPONSE = 2; + const int ListStatusType_ALLDONE = 5; + const int ListStatusType_ALERT = 6; + const int ListStatusType_ACK = 1; + const int ListStatusType_EXEC_STARTED = 4; + const char GapFillFlag_NO = 'N'; + const char GapFillFlag_YES = 'Y'; + const char TradeHandlingInstr_AUTOMATED_FLOOR_ORDER_ROUTING = '4'; + const char TradeHandlingInstr_TWO_PARTY_REPORT = '1'; + const char TradeHandlingInstr_ONE_PARTY_REPORT_FOR_MATCHING = '2'; + const char TradeHandlingInstr_TRADE_CONFIRMATION = '0'; + const char TradeHandlingInstr_ONE_PARTY_REPORT_FOR_PASS_THROUGH = '3'; + const char TradeHandlingInstr_TWO_PARTY_REPORT_FOR_CLAIM = '5'; + const int TradSesMethod_ELECTRONIC = 1; + const int TradSesMethod_TWO_PARTY = 3; + const int TradSesMethod_OPEN_OUTCRY = 2; + const char TradeType_AGENCY = 'A'; + const char TradeType_VWAP_GUARANTEE = 'G'; + const char TradeType_RISK_TRADE = 'R'; + const char TradeType_GUARANTEED_CLOSE = 'J'; + const int ComplexEventCondition_AND = 1; + const int ComplexEventCondition_OR = 2; + const char BenchmarkCurveName_SONIA[] = "SONIA"; + const char BenchmarkCurveName_MUNIAAA[] = "MuniAAA"; + const char BenchmarkCurveName_LIBID[] = "LIBID"; + const char BenchmarkCurveName_PFANDBRIEFE[] = "Pfandbriefe"; + const char BenchmarkCurveName_EUREPO[] = "EUREPO"; + const char BenchmarkCurveName_FUTURESWAP[] = "FutureSWAP"; + const char BenchmarkCurveName_TREASURY[] = "Treasury"; + const char BenchmarkCurveName_OTHER[] = "OTHER"; + const char BenchmarkCurveName_EURIBOR[] = "Euribor"; + const char BenchmarkCurveName_EONIA[] = "EONIA"; + const char BenchmarkCurveName_LIBOR[] = "LIBOR"; + const char BenchmarkCurveName_SWAP[] = "SWAP"; + const char CashMargin_MARGIN_CLOSE = '3'; + const char CashMargin_MARGIN_OPEN = '2'; + const char CashMargin_CASH = '1'; + const char SettlObligTransType_REPLACE = 'R'; + const char SettlObligTransType_NEW = 'N'; + const char SettlObligTransType_RESTATE = 'T'; + const char SettlObligTransType_CANCEL = 'C'; + const char DeskOrderHandlingInst_PEGGED[] = "PEG"; + const char DeskOrderHandlingInst_MARKET_ON_OPEN[] = "MOO"; + const char DeskOrderHandlingInst_SCALE[] = "SCL"; + const char DeskOrderHandlingInst_FILL_OR_KILL[] = "FOK"; + const char DeskOrderHandlingInst_ALL_OR_NONE[] = "AON"; + const char DeskOrderHandlingInst_NOT_HELD[] = "NH"; + const char DeskOrderHandlingInst_DIRECTED_ORDER[] = "DIR"; + const char DeskOrderHandlingInst_STOP_STOCK_TRANSACTION[] = "S.W"; + const char DeskOrderHandlingInst_OVER_THE_DAY[] = "OVD"; + const char DeskOrderHandlingInst_ADD_ON_ORDER[] = "ADD"; + const char DeskOrderHandlingInst_MARKET_AT_CLOSE[] = "MAC"; + const char DeskOrderHandlingInst_LIMIT_ON_OPEN[] = "LOO"; + const char DeskOrderHandlingInst_CASH_NOT_HELD[] = "CNH"; + const char DeskOrderHandlingInst_MARKET_ON_CLOSE[] = "MOC"; + const char DeskOrderHandlingInst_TIME_ORDER[] = "TMO"; + const char DeskOrderHandlingInst_LIMIT_ON_CLOSE[] = "LOC"; + const char DeskOrderHandlingInst_IMMEDIATE_OR_CANCEL[] = "IOC"; + const char DeskOrderHandlingInst_TRAILING_STOP[] = "TS"; + const char DeskOrderHandlingInst_WORK[] = "WRK"; + const char DeskOrderHandlingInst_RESERVE_SIZE_ORDER[] = "RSV"; + const char DeskOrderHandlingInst_MINIMUM_QUANTITY[] = "MQT"; + const char DeskOrderHandlingInst_MARKET_AT_OPEN[] = "MAO"; + const char DeskOrderHandlingInst_IMBALANCE_ONLY[] = "IO"; + const char DeskOrderHandlingInst_EXCHANGE_FOR_PHYSICAL_TRANSACTION[] = "E.W"; + const int PosTransType_POSITION_CHANGE_SUBMISSION_MARGIN_DISPOSITION = 4; + const int PosTransType_DO_NOT_EXERCISE = 2; + const int PosTransType_LARGE_TRADER_SUBMISSION = 6; + const int PosTransType_EXERCISE = 1; + const int PosTransType_PLEDGE = 5; + const int PosTransType_POSITION_ADJUSTMENT = 3; + const char Seniority_SUBORDINATED[] = "SB"; + const char Seniority_SENIOR_SECURED[] = "SD"; + const char Seniority_SENIOR[] = "SR"; + const char SettlCurrFxRateCalc_DIVIDE = 'D'; + const char SettlCurrFxRateCalc_MULTIPLY = 'M'; + const int PosMaintStatus_COMPLETED = 3; + const int PosMaintStatus_ACCEPTED_WITH_WARNINGS = 1; + const int PosMaintStatus_REJECTED = 2; + const int PosMaintStatus_ACCEPTED = 0; + const int PosMaintStatus_COMPLETED_WITH_WARNINGS = 4; + const char Benchmark_6_MO_LIBOR = '9'; + const char Benchmark_OLD_5 = '3'; + const char Benchmark_OLD_30 = '7'; + const char Benchmark_3_MO_LIBOR = '8'; + const char Benchmark_OLD_10 = '5'; + const char Benchmark_CURVE = '1'; + const char Benchmark_30_YR = '6'; + const char Benchmark_10_YR = '4'; + const char Benchmark_5_YR = '2'; + const int MaturityMonthYearFormat_YEARMONTHWEEK = 2; + const int MaturityMonthYearFormat_YEARMONTHDAY = 1; + const int MaturityMonthYearFormat_YEARMONTH_ONLY = 0; + const char LegalConfirm_NO = 'N'; + const char LegalConfirm_YES = 'Y'; + const int ApplReportType_REPORTS_THAT_THE_LAST_MESSAGE_HAS_BEEN_SENT_FOR_THE_APPLIDS_REFER_TO_REFAPPLLASTSEQNUM = 1; + const int ApplReportType_APPLICATION_MESSAGE_RE_SEND_COMPLETED = 3; + const int ApplReportType_RESET_APPLSEQNUM_TO_NEW_VALUE_SPECIFIED_IN_APPLNEWSEQNUM = 0; + const int ApplReportType_HEARTBEAT_MESSAGE_INDICATING_THAT_APPLICATION_IDENTIFIED_BY_REFAPPLID = 2; + const char ReportToExch_NO = 'N'; + const char ReportToExch_YES = 'Y'; + const int AllocRejCode_INCORRECT_ALLOCATED_QUANTITY = 8; + const int AllocRejCode_UNKNOWN_ORDERID = 5; + const int AllocRejCode_INCORRECT_AVERAGEG_PRICE = 2; + const int AllocRejCode_WAREHOUSE_REQUEST_REJECTED = 13; + const int AllocRejCode_OTHER_99 = 99; + const int AllocRejCode_UNKNOWN_LISTID = 6; + const int AllocRejCode_INCORRECT_QUANTITY = 1; + const int AllocRejCode_INCORRECT_AVERAGE_PRICE = 2; + const int AllocRejCode_UNKNOWN_ACCOUNT = 0; + const int AllocRejCode_UNKNOWN_OR_STALE_EXECID = 10; + const int AllocRejCode_MISMATCHED_DATA_VALUE = 11; + const int AllocRejCode_OTHER = 7; + const int AllocRejCode_OTHER_7 = 7; + const int AllocRejCode_UNKNOWN_CLORDID = 12; + const int AllocRejCode_MISMATCHED_DATA = 11; + const int AllocRejCode_CALCULATION_DIFFERENCE = 9; + const int AllocRejCode_COMMISSION_DIFFERENCE = 4; + const int AllocRejCode_UNKNOWN_EXECUTING_BROKER_MNEMONIC = 3; + const int RefOrdIDReason_GTC_FROM_PREVIOUS_DAY = 0; + const int RefOrdIDReason_PARTIAL_FILL_REMAINING = 1; + const int RefOrdIDReason_ORDER_CHANGED = 2; + const char RefOrderIDSource_SECONDARYORDERID = '0'; + const char RefOrderIDSource_ORDERID = '1'; + const char RefOrderIDSource_MDENTRYID = '2'; + const char RefOrderIDSource_ORIGINAL_ORDER_ID = '4'; + const char RefOrderIDSource_MENTRYID = '2'; + const char RefOrderIDSource_QUOTEENTRYID = '3'; + const char RefOrderIDSource_QUOTENTRYID = '3'; + const char RefOrderIDSource_ORDEID = '1'; + const char RefOrderIDSource_SECONDARYORDEID = '0'; + const char LastCapacity_CROSS_AS_PRINCIPAL = '3'; + const char LastCapacity_PRINCIPAL = '4'; + const char LastCapacity_CROSS_AS_AGENT = '2'; + const char LastCapacity_AGENT = '1'; + const int InstrAttribType_INSTRUMENT_STRIKE_PRICE = 28; + const int InstrAttribType_IN_DEFAULT = 15; + const int InstrAttribType_PRE_REFUNDED = 14; + const int InstrAttribType_SUBJECT_TO_ALTERNATIVE_MINIMUM_TAX = 19; + const int InstrAttribType_ORIGINAL_ISSUE_DISCOUNT = 10; + const int InstrAttribType_UNRATED = 16; + const int InstrAttribType_WHEN_AND_IF_ISSUED = 9; + const int InstrAttribType_CALLABLE_WITHOUT_NOTICE_BY_MAIL_TO_HOLDER_UNLESS_REGISTERED = 22; + const int InstrAttribType_ESCROWED_TO_REDEMPTION_DATE_CALLABLE_SUPPLY_REDEMPTION_DATE_IN_THE_INSTRATTRIBVALUE = 13; + const int InstrAttribType_STEPPED_COUPON = 7; + const int InstrAttribType_INSTRUMENT_DENOMINATOR = 25; + const int InstrAttribType_ESCROWED_TO_REDEMPTION_DATE = 13; + const int InstrAttribType_TAXABLE = 17; + const int InstrAttribType_INTEREST_BEARING = 3; + const int InstrAttribType_CALLABLE_BELOW_MATURITY_VALUE = 21; + const int InstrAttribType_PREREFUNDED = 14; + const int InstrAttribType_CALLABLE_PUTTABLE = 11; + const int InstrAttribType_COUPON_PERIOD = 8; + const int InstrAttribType_INSTRUMENT_PRICE_PRECISION = 27; + const int InstrAttribType_TRADEABLE_INDICATOR = 29; + const int InstrAttribType_ORIGINAL_ISSUE_DISCOUNT_PRICE_SUPPLY_PRICE_IN_THE_INSTRATTRIBVALUE = 20; + const int InstrAttribType_VARIABLE_RATE = 5; + const int InstrAttribType_FLAT = 1; + const int InstrAttribType_TRADE_TYPE_ELIGIBILITY_DETAILS_FOR_SECURITY = 24; + const int InstrAttribType_INSTRUMENT_NUMERATOR = 26; + const int InstrAttribType_TEXT_SUPPLY_THE_TEXT_OF_THE_ATTRIBUTE_OR_DISCLAIMER_IN_THE_INSTRATTRIBVALUE = 99; + const int InstrAttribType_INDEXED = 18; + const int InstrAttribType_ESCROWED_TO_MATURITY = 12; + const int InstrAttribType_LESS_FEE_FOR_PUT = 6; + const int InstrAttribType_ZERO_COUPON = 2; + const int InstrAttribType_PRICE_TICK_RULES_FOR_SECURITY = 23; + const int InstrAttribType_NO_PERIODIC_PAYMENTS = 4; + const int Product_FINANCING = 13; + const int Product_COMMODITY = 2; + const int Product_EQUITY = 5; + const int Product_CORPORATE = 3; + const int Product_AGENCY = 1; + const int Product_OTHER = 12; + const int Product_MONEYMARKET = 9; + const int Product_MORTGAGE = 10; + const int Product_CURRENCY = 4; + const int Product_INDEX = 7; + const int Product_MUNICIPAL = 11; + const int Product_LOAN = 8; + const int Product_GOVERNMENT = 6; + const int SecurityTradingStatus_FAST_MARKET = 23; + const int SecurityTradingStatus_NO_OPEN_NO_RESUME = 4; + const int SecurityTradingStatus_TRADING_HALT = 2; + const int SecurityTradingStatus_NOT_AVAILABLE_FOR_TRADING = 18; + const int SecurityTradingStatus_NO_OPEN = 4; + const int SecurityTradingStatus_CROSS = 25; + const int SecurityTradingStatus_RESUME = 3; + const int SecurityTradingStatus_TRADE_DISSEMINATION_TIME = 16; + const int SecurityTradingStatus_NO_MARKET_ON_CLOSE_IMBALANCE = 13; + const int SecurityTradingStatus_POST_CLOSE = 26; + const int SecurityTradingStatus_MARKET_ON_CLOSE_IMBALANCE_BUY = 9; + const int SecurityTradingStatus_MARKET_IMBALANCE_SELL = 8; + const int SecurityTradingStatus_OPENING_DELAY = 1; + const int SecurityTradingStatus_NOT_TRADED_ON_THIS_MARKET = 19; + const int SecurityTradingStatus_ITS_PRE_OPENING = 14; + const int SecurityTradingStatus_PRE_CROSS = 24; + const int SecurityTradingStatus_PRE_OPEN = 21; + const int SecurityTradingStatus_MARKET_IMBALANCE_BUY = 7; + const int SecurityTradingStatus_TRADING_RANGE_INDICATION = 6; + const int SecurityTradingStatus_READY_TO_TRADE = 17; + const int SecurityTradingStatus_NEW_PRICE_INDICATION = 15; + const int SecurityTradingStatus_OPENING_ROTATION = 22; + const int SecurityTradingStatus_PRICE_INDICATION = 5; + const int SecurityTradingStatus_UNKNOWN_OR_INVALID = 20; + const int SecurityTradingStatus_MARKET_ON_CLOSE_IMBALANCE_SELL = 10; + const int SecurityTradingStatus_NO_MARKET_IMBALANCE = 12; + const char Rule80A_TRANSACTIONS_FOR_THE_ACCOUNT_OF_A_NON_MEMBER_COMPETING_MARKET_MAKER = 'R'; + const char Rule80A_SPECIALIST_TRADES = 'S'; + const char Rule80A_PROGRAM_ORDER_INDEX_ARB_FOR_INDIVIDUAL_CUSTOMER = 'J'; + const char Rule80A_PROGRAM_ORDER_INDEX_ARB_FOR_MEMBER_FIRM_ORG = 'D'; + const char Rule80A_SHORT_EXEMPT_TRANSACTION_F = 'F'; + const char Rule80A_COMPETING_DEALER_TRADES_O = 'O'; + const char Rule80A_PROGRAM_ORDER_NON_INDEX_ARB_FOR_INDIVIDUAL_CUSTOMER = 'K'; + const char Rule80A_SHORT_EXEMPT_TRANSACTION_H = 'H'; + const char Rule80A_PRINCIPAL = 'P'; + const char Rule80A_COMPETING_DEALER_TRADES_R = 'R'; + const char Rule80A_INDIVIDUAL_INVESTOR_SINGLE_ORDER = 'I'; + const char Rule80A_PROPRIETARY_TRANSACTIONS_FOR_COMPETING_MARKET_MAKER_THAT_IS_AFFILIATED_WITH_THE_CLEARING_MEMBER = 'O'; + const char Rule80A_SHORT_EXEMPT_TRANSACTION_FOR_MEMBER_COMPETING_MARKET_MAKER_NOT_AFFILIATED_WITH_THE_FIRM_CLEARING_THE_TRADE = 'X'; + const char Rule80A_COMPETING_DEALER_TRADES_T = 'T'; + const char Rule80A_PROGRAM_ORDER_NON_INDEX_ARB_FOR_OTHER_MEMBER = 'N'; + const char Rule80A_SHORT_EXEMPT_TRANSACTION_FOR_NON_MEMBER_COMPETING_MARKET_MAKER = 'Z'; + const char Rule80A_PROGRAM_ORDER_NON_INDEX_ARB_FOR_OTHER_AGENCY = 'Y'; + const char Rule80A_ALL_OTHER_ORDERS_AS_AGENT_FOR_OTHER_MEMBER = 'W'; + const char Rule80A_PROGRAM_ORDER_NON_INDEX_ARB_FOR_MEMBER_FIRM_ORG = 'C'; + const char Rule80A_SHORT_EXEMPT_TRANSACTION_FOR_PRINCIPAL = 'E'; + const char Rule80A_SHORT_EXEMPT_TRANSACTION_B = 'B'; + const char Rule80A_SHORT_EXEMPT_TRANSACTION_FOR_MEMBER_COMPETING_MARKET_MAKER_AFFILIATED_WITH_THE_FIRM_CLEARING_THE_TRADE = 'L'; + const char Rule80A_AGENCY_SINGLE_ORDER = 'A'; + const char Rule80A_TRANSACTIONS_FOR_THE_ACCOUNT_OF_AN_UNAFFILIATED_MEMBERS_COMPETING_MARKET_MAKER = 'T'; + const char Rule80A_REGISTERED_EQUITY_MARKET_MAKER_TRADES = 'E'; + const char Rule80A_PROGRAM_ORDER_INDEX_ARB_FOR_OTHER_AGENCY = 'U'; + const char Rule80A_PROGRAM_ORDER_INDEX_ARB_FOR_OTHER_MEMBER = 'M'; + const char CorporateAction_MERGER_REORGANIZATION = 'M'; + const char CorporateAction_SYMBOL_CONVERSION = 'T'; + const char CorporateAction_NEW = 'D'; + const char CorporateAction_SUCCESSION_EVENT = 'W'; + const char CorporateAction_STOCK_DIVIDEND = 'G'; + const char CorporateAction_REVERSE_STOCK_SPLIT = 'I'; + const char CorporateAction_POSITION_CONSOLIDATION = 'K'; + const char CorporateAction_SPINOFF = 'P'; + const char CorporateAction_EX_INTEREST = 'E'; + const char CorporateAction_LIQUIDATION_REORGANIZATION = 'L'; + const char CorporateAction_CASH_DIVIDEND = 'F'; + const char CorporateAction_STANDARD_INTEGER_STOCK_SPLIT = 'J'; + const char CorporateAction_RIGHTS_OFFERING = 'N'; + const char CorporateAction_SHAREHOLDER_MEETING = 'O'; + const char CorporateAction_WARRANT = 'R'; + const char CorporateAction_EX_RIGHTS = 'C'; + const char CorporateAction_EX_DISTRIBUTION = 'B'; + const char CorporateAction_EX_DIVIDEND = 'A'; + const char CorporateAction_TENDER_OFFER = 'Q'; + const char CorporateAction_SPECIAL_ACTION = 'S'; + const char CorporateAction_NON_INTEGER_STOCK_SPLIT = 'H'; + const char CorporateAction_CUSIP = 'U'; + const char CorporateAction_LEAP_ROLLOVER = 'V'; + const int TerminationType_TERM = 2; + const int TerminationType_FLEXIBLE = 3; + const int TerminationType_OPEN = 4; + const int TerminationType_OVERNIGHT = 1; + const int PosMaintAction_NEW = 1; + const int PosMaintAction_REPLACE = 2; + const int PosMaintAction_REVERSE = 4; + const int PosMaintAction_CANCEL_USED_TO_REMOVE_THE_OVERALL_TRANSACTION_OR_SPECIFIC_ADD_MESSAGES_BASED_ON_REFERENCE_ID = 3; + const int PosMaintAction_REPLACE_USED_TO_OVERRIDE_THE_OVERALL_TRANSACTION_QUANTITY_OR_SPECIFIC_ADD_MESSAGES_BASED_ON_THE_REFERENCE_ID = 2; + const int PosMaintAction_CANCEL = 3; + const int PosMaintAction_NEW_USED_TO_INCREMENT_THE_OVERALL_TRANSACTION_QUANTITY = 1; + const int ComplexEventPriceTimeType_SPECIFIED_DATE_TIME = 3; + const int ComplexEventPriceTimeType_EXPIRATION = 1; + const int ComplexEventPriceTimeType_IMMEDIATE = 2; + const char UnderlyingFXRateCalc_DIVIDE = 'D'; + const char UnderlyingFXRateCalc_MULTIPLY = 'M'; + const char OddLot_NO = 'N'; + const char OddLot_YES = 'Y'; + const char BookingUnit_AGGREGATE_EXECUTIONS_FOR_THIS_SYMBOL_SIDE_AND_SETTLEMENT_DATE = '2'; + const char BookingUnit_AGGREGATE_PARTIAL_EXECUTIONS_ON_THIS_ORDER_AND_BOOK_ONE_TRADE_PER_ORDER = '1'; + const char BookingUnit_EACH_PARTIAL_EXECUTION_IS_A_BOOKABLE_UNIT = '0'; + const int AllocStatus_REJECTED_BY_INTERMEDIARY = 5; + const int AllocStatus_BLOCK_LEVEL_REJECT = 1; + const int AllocStatus_ACCOUNT_LEVEL_REJECT = 2; + const int AllocStatus_INCOMPLETE = 4; + const int AllocStatus_ALLOCATION_PENDING = 6; + const int AllocStatus_REVERSED = 7; + const int AllocStatus_RECEIVED = 3; + const int AllocStatus_PARTIAL_ACCEPT = 2; + const int AllocStatus_REJECTED = 1; + const int AllocStatus_ACCEPTED = 0; + const int IncTaxInd_NET = 1; + const int IncTaxInd_GROSS = 2; + const int PosReqStatus_COMPLETED = 0; + const int PosReqStatus_REJECTED = 2; + const int PosReqStatus_COMPLETED_WITH_WARNINGS = 1; + const int PriorityIndicator_PRIORITY_UNCHANGED = 0; + const int PriorityIndicator_LOST_PRIORITY_AS_RESULT_OF_ORDER_CHANGE = 1; + const char MoneyLaunderingStatus_EXEMPT_BELOW_THE_LIMIT = '1'; + const char MoneyLaunderingStatus_EXEMPT_CLIENT_MONEY_TYPE_EXEMPTION = '2'; + const char MoneyLaunderingStatus_EXEMPT_AUTHORISED_CREDIT_OR_FINANCIAL_INSTITUTION = '3'; + const char MoneyLaunderingStatus_NOT_CHECKED = 'N'; + const char MoneyLaunderingStatus_PASSED = 'Y'; + const char MoneyLaunderingStatus_EXEMPT_1 = '1'; + const char MoneyLaunderingStatus_EXEMPT_2 = '2'; + const char MoneyLaunderingStatus_EXEMPT_3 = '3'; + const char LotType_ROUND_LOT_BASED_UPON_UNITOFMEASURE = '4'; + const char LotType_ROUND_LOT = '2'; + const char LotType_ODD_LOT = '1'; + const char LotType_BLOCK_LOT = '3'; + const char QuoteCondition_FLAT_CURVE[] = "7"; + const char QuoteCondition_REST_OF_BOOK_VWAP[] = "3"; + const char QuoteCondition_BETTER_PRICES_IN_CONDITIONAL_ORDERS[] = "4"; + const char QuoteCondition_TRADING_RANGE[] = "Q"; + const char QuoteCondition_HALT_ETH[] = "k"; + const char QuoteCondition_BID_OFFER_SPECIALIST[] = "r"; + const char QuoteCondition_CROSSED[] = "F"; + const char QuoteCondition_NO_OPEN[] = "b"; + const char QuoteCondition_HALT[] = "j"; + const char QuoteCondition_PREOPENING_SAM[] = "v"; + const char QuoteCondition_OPEN_SAM[] = "x"; + const char QuoteCondition_RESERVED_SAM[] = "0"; + const char QuoteCondition_OUTRIGHT_PRICE[] = "J"; + const char QuoteCondition_IMPLIED_PRICE[] = "K"; + const char QuoteCondition_DEPTH_ON_OFFER[] = "M"; + const char QuoteCondition_ADDITIONAL_INFO_DUE_TO_RELATED[] = "V"; + const char QuoteCondition_REGULAR_ETH[] = "c"; + const char QuoteCondition_ROTATION_ETH[] = "i"; + const char QuoteCondition_EXCHANGE_BEST[] = "C"; + const char QuoteCondition_DEPTH_ON_BID[] = "N"; + const char QuoteCondition_CLOSING[] = "O"; + const char QuoteCondition_VIEW_OF_COMMON[] = "X"; + const char QuoteCondition_FORBIDDEN_SAM[] = "t"; + const char QuoteCondition_LOCKED[] = "E"; + const char QuoteCondition_ORDER_INFLUX[] = "R"; + const char QuoteCondition_NEWS_PENDING[] = "T"; + const char QuoteCondition_RESUME[] = "W"; + const char QuoteCondition_TRADING_RESUME[] = "n"; + const char QuoteCondition_OUT_OF_SEQUENCE[] = "o"; + const char QuoteCondition_END_OF_DAY_SAM[] = "s"; + const char QuoteCondition_FROZEN_SAM[] = "u"; + const char QuoteCondition_OPENING_SAM[] = "w"; + const char QuoteCondition_MANUAL_SLOW_QUOTE[] = "L"; + const char QuoteCondition_NEWS_DISSEMINATION[] = "P"; + const char QuoteCondition_DUE_TO_RELATED[] = "S"; + const char QuoteCondition_VOLUME_ALERT[] = "Y"; + const char QuoteCondition_FAST_MARKET_ETH[] = "f "; + const char QuoteCondition_INACTIVE_ETH[] = "g"; + const char QuoteCondition_DUE_TO_NEWS_DISSEMINATION[] = "l"; + const char QuoteCondition_SURVEILLANCE_SAM[] = "y"; + const char QuoteCondition_DEPTH[] = "G"; + const char QuoteCondition_OPEN[] = "A"; + const char QuoteCondition_AUTOMATIC_EXECUTION[] = "d"; + const char QuoteCondition_DUE_TO_NEWS_PENDING[] = "m"; + const char QuoteCondition_NO_ACTIVE_SAM[] = "1"; + const char QuoteCondition_OFFER_SPECIALIST[] = "q"; + const char QuoteCondition_SUSPENDED_SAM[] = "z"; + const char QuoteCondition_RESTRICTED[] = "2"; + const char QuoteCondition_NON_FIRM[] = "I"; + const char QuoteCondition_CLOSED_INACTIVE[] = "B"; + const char QuoteCondition_ADDITIONAL_INFO[] = "U"; + const char QuoteCondition_EQUIPMENT_CHANGEOVER[] = "a"; + const char QuoteCondition_FAST_TRADING[] = "H"; + const char QuoteCondition_FULL_CURVE[] = "6"; + const char QuoteCondition_MEDIAN_PRICE[] = "5"; + const char QuoteCondition_OPEN_ACTIVE[] = "A"; + const char QuoteCondition_ORDER_IMBALANCE[] = "Z"; + const char QuoteCondition_AUTOMATIC_EXECUTION_ETH[] = "e"; + const char QuoteCondition_ROTATION[] = "h"; + const char QuoteCondition_BID_SPECIALIST[] = "p"; + const char QuoteCondition_CONSOLIDATED_BEST[] = "D"; + const char QuoteCondition_CLOSED[] = "B"; + const char SettlLocation_EUROCLEAR[] = "EUR"; + const char SettlLocation_CEDEL[] = "CED"; + const char SettlLocation_PARTICIPANT_TRUST_COMPANY[] = "PTC"; + const char SettlLocation_PHYSICAL[] = "PNY"; + const char SettlLocation_DEPOSITORY_TRUST_COMPANY[] = "DTC"; + const char SettlLocation_LOCAL_MARKET_SETTLE_LOCATION[] = "ISO Country Code"; + const char SettlLocation_FEDERAL_BOOK_ENTRY[] = "FED"; + const int DiscretionScope_NATIONAL_EXCLUDING_LOCAL = 4; + const int DiscretionScope_LOCAL = 1; + const int DiscretionScope_GLOBAL = 3; + const int DiscretionScope_NATIONAL = 2; + const int OwnerType_PUBLIC_COMPANY = 2; + const int OwnerType_INDIVIDUAL_TRUSTEE = 4; + const int OwnerType_CUSTODIAN_UNDER_GIFTS_TO_MINORS_ACT = 7; + const int OwnerType_INDIVIDUAL_INVESTOR = 1; + const int OwnerType_COMPANY_TRUSTEE = 5; + const int OwnerType_PRIVATE_COMPANY = 3; + const int OwnerType_NETWORKING_SUB_ACCOUNT = 10; + const int OwnerType_PENSION_PLAN = 6; + const int OwnerType_TRUSTS = 8; + const int OwnerType_FIDUCIARIES = 9; + const int OwnerType_NON_PROFIT_ORGANIZATION = 11; + const int OwnerType_CORPORATE_BODY = 12; + const int OwnerType_NOMINEE = 13; + const int ApplQueueResolution_END_SESSION = 3; + const int ApplQueueResolution_QUEUE_FLUSHED = 1; + const int ApplQueueResolution_OVERLAY_LAST = 2; + const int ApplQueueResolution_NO_ACTION_TAKEN = 0; + const int QuoteResponseLevel_SUMMARY_ACKNOWLEDGEMENT = 3; + const int QuoteResponseLevel_ACKNOWLEDGE_ONLY_NEGATIVE_OR_ERRONEOUS_QUOTES = 1; + const int QuoteResponseLevel_ACKNOWLEDGE_EACH_QUOTE_MESSAGE = 2; + const int QuoteResponseLevel_ACKNOWLEDGE_EACH_QUOTE_MESSAGES = 2; + const int QuoteResponseLevel_NO_ACKNOWLEDGEMENT = 0; + const char ExecAckStatus_RECEIVED_NOT_YET_PROCESSED = '0'; + const char ExecAckStatus_DONT_KNOW = '2'; + const char ExecAckStatus_ACCEPTED = '1'; + const int NetGrossInd_NET = 1; + const int NetGrossInd_GROSS = 2; + const char CxlType_PARTIAL_CANCEL = 'P'; + const char CxlType_FULL_REMAINING_QUANTITY = 'F'; + const int DeskTypeSource_NASD_OATS = 1; + const int DiscretionRoundDirection_MORE_AGGRESSIVE_ON_A_BUY_ORDER_ROUND_THE_PRICE_UP_ROUND_UP_TO_THE_NEAREST_TICK_ON_A_SELL_ROUND_DOWN_TO_THE_NEAREST_TICK = 1; + const int DiscretionRoundDirection_MORE_AGGRESSIVE = 1; + const int DiscretionRoundDirection_MORE_PASSIVE = 2; + const int DiscretionRoundDirection_MORE_PASSIVE_ON_A_BUY_ORDER_ROUND_DOWN_TO_NEAREST_TICK_ON_A_SELL_ORDER_ROUND_UP_TO_NEAREST_TICK = 2; + const int BidDescriptorType_COUNTRY = 2; + const int BidDescriptorType_INDEX = 3; + const int BidDescriptorType_SECTOR = 1; + const int NetworkStatusResponseType_INCREMENTAL_UPDATE = 2; + const int NetworkStatusResponseType_FULL = 1; + const int QuoteType_INDICATIVE = 0; + const int QuoteType_RESTRICTED_TRADEABLE = 2; + const int QuoteType_TRADEABLE = 1; + const int QuoteType_COUNTER = 3; + const char DiscretionInst_RELATED_TO_MARKET_PRICE = '1'; + const char DiscretionInst_RELATED_TO_VWAP = '6'; + const char DiscretionInst_RELATED_TO_MIDPOINT_PRICE = '4'; + const char DiscretionInst_RELATED_TO_DISPLAYED_PRICE = '0'; + const char DiscretionInst_RELATED_TO_PRIMARY_PRICE = '2'; + const char DiscretionInst_AVERAGE_PRICE_GUARANTEE = '7'; + const char DiscretionInst_RELATED_TO_LAST_TRADE_PRICE = '5'; + const char DiscretionInst_RELATED_TO_LOCAL_PRIMARY_PRICE = '3'; + const int CrossPrioritization_BUY_SIDE_IS_PRIORITIZED = 1; + const int CrossPrioritization_SELL_SIDE_IS_PRIORITIZED = 2; + const int CrossPrioritization_NONE = 0; + const int CrossPrioritization_SELLSIDE_PRIORITIZED = 2; + const int CrossPrioritization_BUYSIDE_PRIORITIZED = 1; + const char IOIOthSvc_AUTEX = 'A'; + const char IOIOthSvc_BRIDGE = 'B'; + const char MDReqRejReason_UNSUPPORTED_MDENTRYTYPE = '8'; + const char MDReqRejReason_INSUFFICIENT_CREDIT = 'D'; + const char MDReqRejReason_INSUFFICIENT_BANDWIDTH = '2'; + const char MDReqRejReason_UNSUPPORTED_SCOPE = 'A'; + const char MDReqRejReason_UNSUPPORTED_TRADINGSESSIONID = '9'; + const char MDReqRejReason_DUPLICATE_MDREQID = '1'; + const char MDReqRejReason_UNSUPPORTED_AGGREGATEDBOOK = '7'; + const char MDReqRejReason_UNSUPPORTED_MDUPDATETYPE = '6'; + const char MDReqRejReason_UNSUPPORTED_SUBSCRIPTIONREQUESTTYPE = '4'; + const char MDReqRejReason_UNKNOWN_SYMBOL = '0'; + const char MDReqRejReason_UNSUPPORTED_OPENCLOSESETTLEFLAG = 'B'; + const char MDReqRejReason_UNSUPPORTED_MARKETDEPTH = '5'; + const char MDReqRejReason_INSUFFICIENT_PERMISSIONS = '3'; + const char MDReqRejReason_UNSUPPORTED_MDIMPLICITDELETE = 'C'; + const int ApplReqType_REQUEST_FOR_THE_LAST_APPLLASTSEQNUM_PUBLISHED_FOR_THE_SPECIFIED_APPLICATIONS = 2; + const int ApplReqType_UNSUBSCRIBE_TO_THE_SPECIFIED_APPLICATIONS = 4; + const int ApplReqType_CANCEL_RETRANSMISSION_AND_UNSUBSCRIBE_TO_THE_SPECIFIED_APPLICATIONS = 6; + const int ApplReqType_SUBSCRIPTION_TO_THE_SPECIFIED_APPLICATIONS = 1; + const int ApplReqType_RETRANSMISSION_OF_APPLICATION_MESSAGES_FOR_THE_SPECIFIED_APPLICATIONS = 0; + const int ApplReqType_REQUEST_VALID_SET_OF_APPLICATIONS = 3; + const int ApplReqType_CANCEL_RETRANSMISSION = 5; + const char AggressorIndicator_NO = 'N'; + const char AggressorIndicator_YES = 'Y'; + const int BusinessRejectReason_UNKNOWN_SECURITY = 2; + const int BusinessRejectReason_APPLICATION_NOT_AVAILABLE = 4; + const int BusinessRejectReason_INVALID_PRICE_INCREMENT = 18; + const int BusinessRejectReason_DELIVERTO_FIRM_NOT_AVAILABLE_AT_THIS_TIME = 7; + const int BusinessRejectReason_CONDITIONALLY_REQUIRED_FIELD_MISSING = 5; + const int BusinessRejectReason_UNKNOWN_ID = 1; + const int BusinessRejectReason_OTHER = 0; + const int BusinessRejectReason_UNSUPPORTED_MESSAGE_TYPE = 3; + const int BusinessRejectReason_UNKNOWN_MESSAGE_TYPE = 3; + const int BusinessRejectReason_NOT_AUTHORIZED = 6; + const int BusinessRejectReason_UNKOWN_ID = 1; + const int BookingType_REGULAR_BOOKING = 0; + const int BookingType_CFD = 1; + const int BookingType_TOTAL_RETURN_SWAP = 2; + } + #endif //FIX_VALUES_H diff --git a/linux/include/quickfix/FlexLexer.h b/linux/include/quickfix/FlexLexer.h new file mode 100644 index 000000000..73d2c4a82 --- /dev/null +++ b/linux/include/quickfix/FlexLexer.h @@ -0,0 +1,188 @@ +// FlexLexer.h -- define interfaces for lexical analyzer classes generated +// by flex + +// Copyright (c) 1993 The Regents of the University of California. +// All rights reserved. +// +// This code is derived from software contributed to Berkeley by +// Kent Williams and Tom Epperly. +// +// Redistribution and use in source and binary forms with or without +// modification are permitted provided that: (1) source distributions retain +// this entire copyright notice and comment, and (2) distributions including +// binaries display the following acknowledgement: ``This product includes +// software developed by the University of California, Berkeley and its +// contributors'' in the documentation or other materials provided with the +// distribution and in all advertising materials mentioning features or use +// of this software. Neither the name of the University nor the names of +// its contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. + +// THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED +// WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + +// This file defines FlexLexer, an abstract class which specifies the +// external interface provided to flex C++ lexer objects, and yyFlexLexer, +// which defines a particular lexer class. +// +// If you want to create multiple lexer classes, you use the -P flag +// to rename each yyFlexLexer to some other xxFlexLexer. You then +// include in your other sources once per lexer class: +// +//#undef yyFlexLexer +//#define yyFlexLexer xxFlexLexer +//#include +// +//#undef yyFlexLexer +//#define yyFlexLexer zzFlexLexer +//#include +//... + +#ifndef __FLEX_LEXER_H +// Never included before - need to define base class. +#define __FLEX_LEXER_H +#include + +extern "C++" +{ + + struct yy_buffer_state; + typedef int yy_state_type; + + class FlexLexer + { + public: + virtual ~FlexLexer() { } + + const char* YYText() { return yytext; } + int YYLeng() { return yyleng; } + + virtual void + yy_switch_to_buffer( struct yy_buffer_state* new_buffer ) = 0; + virtual struct yy_buffer_state* + yy_create_buffer( std::istream* s, int size ) = 0; + virtual void yy_delete_buffer( struct yy_buffer_state* b ) = 0; + virtual void yyrestart( std::istream* s ) = 0; + + virtual int yylex() = 0; + + // Call yylex with new input/output sources. + int yylex( std::istream* new_in, std::ostream* new_out = 0 ) +{ + switch_streams( new_in, new_out ); + return yylex(); + } + + // Switch to new input/output streams. A nil stream pointer + // indicates "keep the current one". + virtual void switch_streams( std::istream* new_in = 0, + std::ostream* new_out = 0 ) = 0; + + int lineno() const{ return yylineno; } + + int debug() const{ return yy_flex_debug; } + void set_debug( int flag ) { yy_flex_debug = flag; } + + protected: + char* yytext; + int yyleng; + int yylineno; // only maintained if you use %option yylineno + int yy_flex_debug; // only has effect with -d or "%option debug" + } + ; + +} +#endif + +#if defined(yyFlexLexer) || ! defined(yyFlexLexerOnce) +// Either this is the first time through (yyFlexLexerOnce not defined), +// or this is a repeated include to define a different flavor of +// yyFlexLexer, as discussed in the flex man page. +#define yyFlexLexerOnce + +class yyFlexLexer : public FlexLexer +{ +public: + // arg_yyin and arg_yyout default to the cin and cout, but we + // only make that assignment when initializing in yylex(). + yyFlexLexer( std::istream* arg_yyin = 0, std::ostream* arg_yyout = 0 ); + + virtual ~yyFlexLexer(); + + void yy_switch_to_buffer( struct yy_buffer_state* new_buffer ); + struct yy_buffer_state* yy_create_buffer( std::istream* s, int size ); + void yy_delete_buffer( struct yy_buffer_state* b ); + void yyrestart( std::istream* s ); + + virtual int yylex(); + virtual void switch_streams( std::istream* new_in, std::ostream* new_out ); + +protected: + virtual int LexerInput( char* buf, int max_size ); + virtual void LexerOutput( const char* buf, int size ); + virtual void LexerError( const char* msg ); + + void yyunput( int c, char* buf_ptr ); + int yyinput(); + + void yy_load_buffer_state(); + void yy_init_buffer( struct yy_buffer_state* b, std::istream* s ); + void yy_flush_buffer( struct yy_buffer_state* b ); + + int yy_start_stack_ptr; + int yy_start_stack_depth; + int* yy_start_stack; + + void yy_push_state( int new_state ); + void yy_pop_state(); + int yy_top_state(); + + yy_state_type yy_get_previous_state(); + yy_state_type yy_try_NUL_trans( yy_state_type current_state ); + int yy_get_next_buffer(); + + std::istream* yyin; // input source for default LexerInput + std::ostream* yyout; // output sink for default LexerOutput + + struct yy_buffer_state* yy_current_buffer; + + // yy_hold_char holds the character lost when yytext is formed. + char yy_hold_char; + + // Number of characters read into yy_ch_buf. + int yy_n_chars; + + // Points to current character in buffer. + char* yy_c_buf_p; + + int yy_init; // whether we need to initialize + int yy_start; // start state number + + // Flag which is used to allow yywrap()'s to do buffer switches + // instead of setting up a fresh yyin. A bit of a hack ... + int yy_did_buffer_switch_on_eof; + + // The following are not always needed, but may be depending + // on use of certain flex features (like REJECT or yymore()). + + yy_state_type yy_last_accepting_state; + char* yy_last_accepting_cpos; + + yy_state_type* yy_state_buf; + yy_state_type* yy_state_ptr; + + char* yy_full_match; + int* yy_full_state; + int yy_full_lp; + + int yy_lp; + int yy_looking_for_trail_begin; + + int yy_more_flag; + int yy_more_len; + int yy_more_offset; + int yy_prev_more_offset; +}; + +#endif diff --git a/linux/include/quickfix/Group.h b/linux/include/quickfix/Group.h new file mode 100644 index 000000000..64111dc83 --- /dev/null +++ b/linux/include/quickfix/Group.h @@ -0,0 +1,73 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_GROUP +#define FIX_GROUP + +#ifdef _MSC_VER +#pragma warning( disable: 4786 ) +#endif + +#include "FieldMap.h" +#include "Fields.h" +#include + +namespace FIX +{ +/** + * Base class for all %FIX repeating groups. + * + * A group consists of a count field, deliminator, and a sorting order. + */ +class Group : public FieldMap +{ +public: + Group( int field, int delim ) + : FieldMap( message_order( delim, 0 ) ), + m_field( field ), m_delim( delim ) {} + + Group( int field, int delim, const int order[] ) + : FieldMap( order ), m_field( field ), m_delim( delim ) {} + + Group( int field, int delim, const message_order& order ) + : FieldMap( order ), m_field( field ), m_delim( delim ) {} + + Group( const Group& copy ) + : FieldMap( copy ), m_field( copy.m_field ), m_delim( copy.m_delim ) {} + + int field() const { return m_field; } + int delim() const { return m_delim; } + + void addGroup( const Group& group ); + void replaceGroup( unsigned num, const Group& group ); + Group& getGroup( unsigned num, Group& group ) const throw( FieldNotFound ); + void removeGroup( unsigned num, const Group& group ); + void removeGroup( const Group& group ); + bool hasGroup( const Group& group ); + bool hasGroup( unsigned num, const Group& group ); + +private: + int m_field; + int m_delim; +}; +} + +#endif //FIX_GROUP diff --git a/linux/include/quickfix/HtmlBuilder.h b/linux/include/quickfix/HtmlBuilder.h new file mode 100644 index 000000000..dab2c7fd4 --- /dev/null +++ b/linux/include/quickfix/HtmlBuilder.h @@ -0,0 +1,186 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef HTML_BUILDER_H +#define HTML_BUILDER_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include + +namespace HTML +{ +class TAG +{ +public: + TAG( const std::string& tag, std::ostream& stream ) + : m_tag( tag ), m_stream( stream ) + { + m_stream << "<" << m_tag; + } + + virtual ~TAG() + { + m_stream << m_value.str(); + m_stream << ""; + } + + TAG& text() + { m_stream << ">"; return *this; } + TAG& text( const std::string& value ) + { m_value << value; text(); return *this; } + TAG& text( int value ) + { m_value << value; text(); return *this; } + + private: + std::string m_tag; + std::stringstream m_value; + + protected: + std::ostream& m_stream; +}; + +class SPECIAL +{ + public: + SPECIAL( const std::string& value, std::ostream& stream ) + { + stream << "&" << value << ";"; + } +}; + +class A : public TAG +{ +public: + A( std::ostream& stream ) + : TAG( "A", stream ) {} + + A& href( const std::string& value ) + { m_stream << " href='" << value << "'"; return *this; } +}; + +class BODY : public TAG +{ +public: + BODY( std::ostream& stream ) + : TAG( "BODY", stream ) {} +}; + +class BR : public TAG +{ +public: + BR( std::ostream& stream ) + : TAG( "BR", stream ) {} +}; + +class CAPTION : public TAG +{ +public: + CAPTION( std::ostream& stream ) + : TAG( "CAPTION", stream ) {} +}; + +class CENTER : public TAG +{ +public: + CENTER( std::ostream& stream ) + : TAG( "CENTER", stream ) {} +}; + +class EM : public TAG +{ +public: + EM( std::ostream& stream ) + : TAG( "EM", stream ) {} +}; + +class H1 : public TAG +{ +public: + H1( std::ostream& stream ) + : TAG( "H1", stream ) {} +}; + +class H2 : public TAG +{ +public: + H2( std::ostream& stream ) + : TAG( "H2", stream ) {} +}; + +class HEAD : public TAG +{ +public: + HEAD( std::ostream& stream ) + : TAG( "HEAD", stream ) {} +}; + +class HR : public TAG +{ +public: + HR( std::ostream& stream ) + : TAG( "HR", stream ) {} +}; + +const char* NBSP = " "; + +class TABLE : public TAG +{ +public: + TABLE( std::ostream& stream ) + : TAG( "TABLE", stream ) {} + + TABLE& border( int value ) + { m_stream << " border='" << value << "'"; return *this; } + TABLE& cellspacing( int value ) + { m_stream << " cellspacing='" << value << "'"; return *this; } + TABLE& width( int value ) + { m_stream << " width='" << value << "%'"; return *this; } +}; + +class TD : public TAG +{ +public: + TD( std::ostream& stream ) + : TAG( "TD", stream ) {} + + TD& align( const std::string& value ) + { m_stream << " align='" << value << "'"; return *this; } +}; + +class TITLE : public TAG +{ +public: + TITLE( std::ostream& stream ) + : TAG( "TITLE", stream ) {} +}; + +class TR : public TAG +{ +public: + TR( std::ostream& stream ) + : TAG( "TR", stream ) {} +}; +} + +#endif diff --git a/linux/include/quickfix/HttpConnection.h b/linux/include/quickfix/HttpConnection.h new file mode 100644 index 000000000..203b445ee --- /dev/null +++ b/linux/include/quickfix/HttpConnection.h @@ -0,0 +1,78 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_HTTPCONNECTION_H +#define FIX_HTTPCONNECTION_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "HttpParser.h" +#include + +namespace FIX +{ +class HttpMessage; + +/// Encapsulates a HTTP socket file descriptor +class HttpConnection +{ +public: + HttpConnection( int s ); + + int getSocket() const { return m_socket; } + bool read(); + +private: + bool readMessage( std::string& msg ) throw( SocketRecvFailed ); + void processStream(); + void processRequest( const HttpMessage& ); + void processRoot( const HttpMessage&, std::stringstream& h, std::stringstream& b ); + void processResetSessions( const HttpMessage&, std::stringstream& h, std::stringstream& b ); + void processRefreshSessions( const HttpMessage&, std::stringstream& h, std::stringstream& b ); + void processEnableSessions( const HttpMessage&, std::stringstream& h, std::stringstream& b ); + void processDisableSessions( const HttpMessage&, std::stringstream& h, std::stringstream& b ); + void processSession( const HttpMessage&, std::stringstream& h, std::stringstream& b ); + void processResetSession( const HttpMessage&, std::stringstream& h, std::stringstream& b ); + void processRefreshSession( const HttpMessage&, std::stringstream& h, std::stringstream& b ); + + void showToggle + ( std::stringstream& s, const std::string& name, bool value, const std::string& url ); + void showRow + ( std::stringstream& s, const std::string& name, bool value, const std::string& url = "" ); + void showRow + ( std::stringstream& s, const std::string& name, const std::string& value, const std::string& url = "" ); + void showRow + ( std::stringstream& s, const std::string& name, int value, const std::string& url = "" ); + + bool send( const std::string& ); + void disconnect( int error = 0 ); + + int m_socket; + char m_buffer[BUFSIZ]; + + HttpParser m_parser; + fd_set m_fds; +}; +} + +#endif diff --git a/linux/include/quickfix/HttpMessage.h b/linux/include/quickfix/HttpMessage.h new file mode 100644 index 000000000..bccbde70b --- /dev/null +++ b/linux/include/quickfix/HttpMessage.h @@ -0,0 +1,133 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_HTTPMESSAGE +#define FIX_HTTPMESSAGE + +#ifdef _MSC_VER +#pragma warning( disable: 4786 ) +#endif + +#include "Exceptions.h" +#include + +namespace FIX +{ +/** + * HTTP Message that implemented GET functionality + */ +class HttpMessage +{ +public: + typedef std::map Parameters; + + HttpMessage(); + + /// Construct a message from a string + HttpMessage( const std::string& string ) + throw( InvalidMessage ); + + HttpMessage( const HttpMessage& copy ) + { + m_root = copy.m_root; + m_parameters = copy.m_parameters; + } + +public: + /// Get a string representation of the message + std::string toString() const; + /// Get a string representation without making a copy + std::string& toString( std::string& ) const; + + void setString( const std::string& string ) + throw( InvalidMessage ); + + void clear() + { +#if defined(_MSC_VER) && _MSC_VER < 1300 + m_root = ""; +#else + m_root.clear(); +#endif + m_parameters.clear(); + } + + const std::string& getRootString() const + { return m_root; } + + const std::string getParameterString() const + { + std::string result; + Parameters::const_iterator i; + for( i = m_parameters.begin(); i != m_parameters.end(); ++i ) + { + result += (i == m_parameters.begin()) ? "?" : "&"; + result += i->first + "=" + i->second; + } + return result; + } + + const Parameters& getParameters() const + { return m_parameters; } + + bool hasParameter( const std::string& key ) const + { + Parameters::const_iterator find = m_parameters.find( key ); + return find != m_parameters.end(); + } + + const std::string& getParameter( const std::string& key ) const + throw( std::logic_error ) + { + Parameters::const_iterator find = m_parameters.find( key ); + if( find == m_parameters.end() ) + throw std::logic_error( "Parameter " + key + " not found" ); + return find->second; + } + + void addParameter( const std::string& key, const std::string& value ) + { + m_parameters[key] = value; + } + + void removeParameter( const std::string& key ) + { + m_parameters.erase( key ); + } + + static std::string createResponse( int error = 0, const std::string& text = "" ); + +private: + std::string m_root; + Parameters m_parameters; +}; +/*! @} */ + +inline std::ostream& operator << +( std::ostream& stream, const HttpMessage& message ) +{ + std::string str; + stream << message.toString( str ); + return stream; +} +} + +#endif //FIX_HTTPMESSAGE diff --git a/linux/include/quickfix/HttpParser.h b/linux/include/quickfix/HttpParser.h new file mode 100644 index 000000000..a79640f77 --- /dev/null +++ b/linux/include/quickfix/HttpParser.h @@ -0,0 +1,54 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_HTTPPARSER_H +#define FIX_HTTPPARSER_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "Exceptions.h" +#include +#include + +namespace FIX +{ +/// Parses HTTP messages off an input stream. +class HttpParser +{ +public: + HttpParser() {} + ~HttpParser() {} + + bool readHttpMessage( std::string& str ) + throw ( MessageParseError ); + + void addToStream( const char* str, size_t len ) + { m_buffer.append( str, len ); } + void addToStream( const std::string& str ) + { m_buffer.append( str ); } + +private: + std::string m_buffer; +}; +} +#endif //FIX_HTTPPARSER_H diff --git a/linux/include/quickfix/HttpServer.h b/linux/include/quickfix/HttpServer.h new file mode 100644 index 000000000..88287e501 --- /dev/null +++ b/linux/include/quickfix/HttpServer.h @@ -0,0 +1,78 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_HTTPSERVER_H +#define FIX_HTTPSERVER_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "SocketServer.h" +#include "SessionSettings.h" +#include "Exceptions.h" +#include "Mutex.h" + +namespace FIX +{ +/// Basic HTTP Server +class HttpServer : public SocketServer::Strategy +{ +public: + HttpServer( const SessionSettings& ) throw( ConfigError ); + + static void startGlobal( const SessionSettings& ) throw ( ConfigError, RuntimeError ); + static void stopGlobal(); + + void start() throw ( ConfigError, RuntimeError ); + void stop(); + +private: + void onConfigure( const SessionSettings& ) throw ( ConfigError ); + void onInitialize( const SessionSettings& ) throw ( RuntimeError ); + + void onStart(); + bool onPoll(); + void onStop(); + + void onConnect( SocketServer&, int, int ); + void onWrite( SocketServer&, int ); + bool onData( SocketServer&, int ); + void onDisconnect( SocketServer&, int ); + void onError( SocketServer& ); + void onTimeout( SocketServer& ); + + static THREAD_PROC startThread( void* p ); + + SocketServer* m_pServer; + SessionSettings m_settings; + thread_id m_threadid; + int m_port; + bool m_stop; + + static Mutex s_mutex; + static int s_count; + static HttpServer* s_pServer; +}; +/*! @} */ +} + +#endif //FIX_HTTPSERVER_H diff --git a/linux/include/quickfix/Initiator.h b/linux/include/quickfix/Initiator.h new file mode 100644 index 000000000..a7e2bf742 --- /dev/null +++ b/linux/include/quickfix/Initiator.h @@ -0,0 +1,149 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_INITIATOR_H +#define FIX_INITIATOR_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "Application.h" +#include "MessageStore.h" +#include "Log.h" +#include "Responder.h" +#include "SessionSettings.h" +#include "Exceptions.h" +#include "Mutex.h" +#include "Session.h" +#include +#include +#include + +namespace FIX +{ +class Client; + +/** + * Base for classes which act as an initiator for establishing connections. + * + * Most users will not need to implement one of these. The default + * SocketInitiator implementation will be used in most cases. + */ +class Initiator +{ +public: + Initiator( Application&, MessageStoreFactory&, + const SessionSettings& ) throw( ConfigError ); + Initiator( Application&, MessageStoreFactory&, + const SessionSettings&, LogFactory& ) throw( ConfigError ); + + virtual ~Initiator(); + + /// Start initiator. + void start() throw ( ConfigError, RuntimeError ); + /// Block on the initiator + void block() throw ( ConfigError, RuntimeError ); + /// Poll the initiator + bool poll( double timeout = 0.0 ) throw ( ConfigError, RuntimeError ); + + /// Stop initiator. + void stop( bool force = false ); + + /// Check to see if any sessions are currently logged on + bool isLoggedOn(); + + Session* getSession( const SessionID& sessionID, Responder& ); + + const std::set& getSessions() const { return m_sessionIDs; } + Session* getSession( const SessionID& sessionID ) const; + const Dictionary* const getSessionSettings( const SessionID& sessionID ) const; + + bool has( const SessionID& id ) + { return m_sessions.find( id ) != m_sessions.end(); } + + bool isStopped() { return m_stop; } + +public: + Application& getApplication() { return m_application; } + MessageStoreFactory& getMessageStoreFactory() + { return m_messageStoreFactory; } + + Log* getLog() + { + if( m_pLog ) return m_pLog; + return &m_nullLog; + } + +protected: + void setPending( const SessionID& ); + void setConnected( const SessionID& ); + void setDisconnected( const SessionID& ); + + bool isPending( const SessionID& ); + bool isConnected( const SessionID& ); + bool isDisconnected( const SessionID& ); + void connect(); + +private: + void initialize() throw ( ConfigError ); + + /// Implemented to configure acceptor + virtual void onConfigure( const SessionSettings& ) throw ( ConfigError ) {}; + /// Implemented to initialize initiator + virtual void onInitialize( const SessionSettings& ) throw ( RuntimeError ) {}; + /// Implemented to start connecting to targets. + virtual void onStart() = 0; + /// Implemented to connect and poll for events. + virtual bool onPoll( double timeout ) = 0; + /// Implemented to stop a running initiator. + virtual void onStop() = 0; + /// Implemented to connect a session to its target. + virtual void doConnect( const SessionID&, const Dictionary& ) = 0; + + static THREAD_PROC startThread( void* p ); + + typedef std::set < SessionID > SessionIDs; + typedef std::map < SessionID, int > SessionState; + typedef std::map < SessionID, Session* > Sessions; + + Sessions m_sessions; + SessionIDs m_sessionIDs; + SessionIDs m_pending; + SessionIDs m_connected; + SessionIDs m_disconnected; + SessionState m_sessionState; + + thread_id m_threadid; + Application& m_application; + MessageStoreFactory& m_messageStoreFactory; + SessionSettings m_settings; + LogFactory* m_pLogFactory; + Log* m_pLog; + NullLog m_nullLog; + bool m_firstPoll; + bool m_stop; + Mutex m_mutex; +}; +/*! @} */ +} + +#endif // FIX_INITIATOR_H diff --git a/linux/include/quickfix/Log.h b/linux/include/quickfix/Log.h new file mode 100644 index 000000000..f0b6ce9d9 --- /dev/null +++ b/linux/include/quickfix/Log.h @@ -0,0 +1,179 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_LOG_H +#define FIX_LOG_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "Message.h" +#include "Mutex.h" +#include "SessionSettings.h" +#include +#include + +namespace FIX +{ +class Log; + +/** + * This interface must be implemented to create a Log. + */ +class LogFactory +{ +public: + virtual ~LogFactory() {} + virtual Log* create() = 0; + virtual Log* create( const SessionID& ) = 0; + virtual void destroy( Log* ) = 0; +}; + +/** + * Creates a screen based implementation of Log. + * + * This displays all log events onto the standard output + */ +class ScreenLogFactory : public LogFactory +{ +public: + ScreenLogFactory( const SessionSettings& settings ) +: m_useSettings( true ), m_settings( settings ) {}; + ScreenLogFactory( bool incoming, bool outgoing, bool event ) +: m_incoming( incoming ), m_outgoing( outgoing ), m_event( event ), m_useSettings( false ) {} + + Log* create(); + Log* create( const SessionID& ); + void destroy( Log* log ); + +private: + void init( const Dictionary& settings, bool& incoming, bool& outgoing, bool& event ); + + bool m_incoming; + bool m_outgoing; + bool m_event; + bool m_useSettings; + SessionSettings m_settings; +}; + +/** + * This interface must be implemented to log messages and events + */ +class Log +{ +public: + virtual ~Log() {} + + virtual void clear() = 0; + virtual void backup() = 0; + virtual void onIncoming( const std::string& ) = 0; + virtual void onOutgoing( const std::string& ) = 0; + virtual void onEvent( const std::string& ) = 0; +}; +/*! @} */ + +/** + * Null implementation of Log + * + * This is only for internal use. Used when no log factory is + * passed to the initiator or acceptor. + */ +class NullLog : public Log +{ +public: + void clear() {} + void backup() {} + void onIncoming( const std::string& ) {} + void onOutgoing( const std::string& ) {} + void onEvent( const std::string& ) {} +}; + +/** + * Screen based implementation of Log. + * + * This will display all log information onto the standard output + */ +class ScreenLog : public Log +{ +public: + ScreenLog( bool incoming, bool outgoing, bool event ) +: m_prefix( "GLOBAL" ), + m_incoming( incoming ), m_outgoing( outgoing ), m_event( event ), m_millisecondsInTimeStamp( true ) {} + + ScreenLog( const SessionID& sessionID, + bool incoming, bool outgoing, bool event ) +: m_prefix( sessionID.toString() ), + m_incoming( incoming ), m_outgoing( outgoing ), m_event( event ), m_millisecondsInTimeStamp( true ) {} + + void clear() {} + void backup() {} + + void onIncoming( const std::string& value ) + { + if ( !m_incoming ) return ; + Locker l( s_mutex ); + m_time.setCurrent(); + std::cout << "<" << UtcTimeStampConvertor::convert(m_time, m_millisecondsInTimeStamp) + << ", " << m_prefix + << ", " << "incoming>" << std::endl + << " (" << value << ")" << std::endl; + } + + void onOutgoing( const std::string& value ) + { + if ( !m_outgoing ) return ; + Locker l( s_mutex ); + m_time.setCurrent(); + std::cout << "<" << UtcTimeStampConvertor::convert(m_time, m_millisecondsInTimeStamp) + << ", " << m_prefix + << ", " << "outgoing>" << std::endl + << " (" << value << ")" << std::endl; + } + + void onEvent( const std::string& value ) + { + if ( !m_event ) return ; + Locker l( s_mutex ); + m_time.setCurrent(); + std::cout << "<" << UtcTimeStampConvertor::convert(m_time, m_millisecondsInTimeStamp) + << ", " << m_prefix + << ", " << "event>" << std::endl + << " (" << value << ")" << std::endl; + } + + bool getMillisecondsInTimeStamp() const + { return m_millisecondsInTimeStamp; } + void setMillisecondsInTimeStamp ( bool value ) + { m_millisecondsInTimeStamp = value; } + +private: + std::string m_prefix; + UtcTimeStamp m_time; + bool m_incoming; + bool m_outgoing; + bool m_event; + static Mutex s_mutex; + bool m_millisecondsInTimeStamp; +}; +} + +#endif //FIX_LOG_H diff --git a/linux/include/quickfix/Message.h b/linux/include/quickfix/Message.h new file mode 100644 index 000000000..c84a1bb37 --- /dev/null +++ b/linux/include/quickfix/Message.h @@ -0,0 +1,370 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_MESSAGE +#define FIX_MESSAGE + +#ifdef _MSC_VER +#pragma warning( disable: 4786 ) +#endif + +#include "FieldMap.h" +#include "Fields.h" +#include "Group.h" +#include "SessionID.h" +#include "DataDictionary.h" +#include "Values.h" +#include +#include + +namespace FIX +{ +static int const headerOrder[] = + { + FIELD::BeginString, + FIELD::BodyLength, + FIELD::MsgType + }; + +class Header : public FieldMap +{ +public: + Header() : FieldMap(message_order( message_order::header ) ) + {} +}; + +class Trailer : public FieldMap +{ +public: + Trailer() : FieldMap(message_order( message_order::trailer ) ) + {} +}; + +/** + * Base class for all %FIX messages. + * + * A message consists of three field maps. One for the header, the body, + * and the trailer. + */ +class Message : public FieldMap +{ + friend class DataDictionary; + friend class Session; + + enum field_type { header, body, trailer }; + +public: + Message(); + + /// Construct a message from a string + Message( const std::string& string, bool validate = true ) + throw( InvalidMessage ); + + /// Construct a message from a string using a data dictionary + Message( const std::string& string, const FIX::DataDictionary& dataDictionary, + bool validate = true ) + throw( InvalidMessage ); + + /// Construct a message from a string using a session and application data dictionary + Message( const std::string& string, const FIX::DataDictionary& sessionDataDictionary, + const FIX::DataDictionary& applicationDataDictionary, bool validate = true ) + throw( InvalidMessage ); + + Message( const Message& copy ) + : FieldMap( copy ) + { + m_header = copy.m_header; + m_trailer = copy.m_trailer; + m_validStructure = copy.m_validStructure; + m_field = copy.m_field; + } + + /// Set global data dictionary for encoding messages into XML + static bool InitializeXML( const std::string& string ); + + void addGroup( const FIX::Group& group ) + { FieldMap::addGroup( group.field(), group ); } + + void replaceGroup( unsigned num, const FIX::Group& group ) + { FieldMap::replaceGroup( num, group.field(), group ); } + + Group& getGroup( unsigned num, FIX::Group& group ) const throw( FieldNotFound ) + { group.clear(); + return static_cast < Group& > + ( FieldMap::getGroup( num, group.field(), group ) ); + } + + void removeGroup( unsigned num, const FIX::Group& group ) + { FieldMap::removeGroup( num, group.field() ); } + void removeGroup( const FIX::Group& group ) + { FieldMap::removeGroup( group.field() ); } + + bool hasGroup( const FIX::Group& group ) const + { return FieldMap::hasGroup( group.field() ); } + bool hasGroup( unsigned num, const FIX::Group& group ) const + { return FieldMap::hasGroup( num, group.field() ); } + +protected: + // Constructor for derived classes + Message( const BeginString& beginString, const MsgType& msgType ) + : m_validStructure( true ) + { + m_header.setField( beginString ); + m_header.setField( msgType ); + } + +public: + /// Get a string representation of the message + std::string toString( int beginStringField = FIELD::BeginString, + int bodyLengthField = FIELD::BodyLength, + int checkSumField = FIELD::CheckSum ) const; + /// Get a string representation without making a copy + std::string& toString( std::string&, + int beginStringField = FIELD::BeginString, + int bodyLengthField = FIELD::BodyLength, + int checkSumField = FIELD::CheckSum ) const; + /// Get a XML representation of the message + std::string toXML() const; + /// Get a XML representation without making a copy + std::string& toXML( std::string& ) const; + + /** + * Add header informations depending on a source message. + * This can be used to add routing informations like OnBehalfOfCompID + * and DeliverToCompID to a message. + */ + void reverseRoute( const Header& ); + + /** + * Set a message based on a string representation + * This will fill in the fields on the message by parsing out the string + * that is passed in. It will return true on success and false + * on failure. + */ + void setString( const std::string& string ) + throw( InvalidMessage ) + { setString(string, true); } + void setString( const std::string& string, bool validate ) + throw( InvalidMessage ) + { setString(string, validate, 0); } + void setString( const std::string& string, + bool validate, + const FIX::DataDictionary* pDataDictionary ) + throw( InvalidMessage ) + { setString(string, validate, pDataDictionary, pDataDictionary); } + + void setString( const std::string& string, + bool validate, + const FIX::DataDictionary* pSessionDataDictionary, + const FIX::DataDictionary* pApplicationDataDictionary ) + throw( InvalidMessage ); + + void setGroup( const std::string& msg, const FieldBase& field, + const std::string& string, std::string::size_type& pos, + FieldMap& map, const DataDictionary& dataDictionary ); + + /** + * Set a messages header from a string + * This is an optimization that can be used to get useful information + * from the header of a FIX string without parsing the whole thing. + */ + bool setStringHeader( const std::string& string ); + + /// Getter for the message header + const Header& getHeader() const { return m_header; } + /// Mutable getter for the message header + Header& getHeader() { return m_header; } + /// Getter for the message trailer + const Trailer& getTrailer() const { return m_trailer; } + /// Mutable getter for the message trailer + Trailer& getTrailer() { return m_trailer; } + + bool hasValidStructure(int& field) const + { field = m_field; + return m_validStructure; + } + + int bodyLength( int beginStringField = FIELD::BeginString, + int bodyLengthField = FIELD::BodyLength, + int checkSumField = FIELD::CheckSum ) const + { return m_header.calculateLength(beginStringField, bodyLengthField, checkSumField) + + calculateLength(beginStringField, bodyLengthField, checkSumField) + + m_trailer.calculateLength(beginStringField, bodyLengthField, checkSumField); + } + + int checkSum( int checkSumField = FIELD::CheckSum ) const + { return ( m_header.calculateTotal(checkSumField) + + calculateTotal(checkSumField) + + m_trailer.calculateTotal(checkSumField) ) % 256; + } + + bool isAdmin() const + { + if( m_header.isSetField(FIELD::MsgType) ) + { + const MsgType& msgType = FIELD_GET_REF( m_header, MsgType ); + return isAdminMsgType( msgType ); + } + return false; + } + + bool isApp() const + { + if( m_header.isSetField(FIELD::MsgType) ) + { + const MsgType& msgType = FIELD_GET_REF( m_header, MsgType ); + return !isAdminMsgType( msgType ); + } + return false; + } + + bool isEmpty() + { return m_header.isEmpty() && FieldMap::isEmpty() && m_trailer.isEmpty(); } + + void clear() + { + m_field = 0; + m_header.clear(); + FieldMap::clear(); + m_trailer.clear(); + } + + static bool isAdminMsgType( const MsgType& msgType ) + { if ( msgType.getValue().length() != 1 ) return false; + return strchr + ( "0A12345", + msgType.getValue().c_str() [ 0 ] ) != 0; + } + + static ApplVerID toApplVerID(const BeginString& value) + { + if( value == BeginString_FIX40 ) + return ApplVerID(ApplVerID_FIX40); + if( value == BeginString_FIX41 ) + return ApplVerID(ApplVerID_FIX41); + if( value == BeginString_FIX42 ) + return ApplVerID(ApplVerID_FIX42); + if( value == BeginString_FIX43 ) + return ApplVerID(ApplVerID_FIX43); + if( value == BeginString_FIX44 ) + return ApplVerID(ApplVerID_FIX44); + if( value == BeginString_FIX50 ) + return ApplVerID(ApplVerID_FIX50); + if( value == "FIX.5.0SP1" ) + return ApplVerID(ApplVerID_FIX50SP1); + if( value == "FIX.5.0SP2" ) + return ApplVerID(ApplVerID_FIX50SP2); + return ApplVerID(ApplVerID(value)); + } + + static BeginString toBeginString( const ApplVerID& applVerID ) + { + if( applVerID == ApplVerID_FIX40 ) + return BeginString(BeginString_FIX40); + else if( applVerID == ApplVerID_FIX41 ) + return BeginString(BeginString_FIX41); + else if( applVerID == ApplVerID_FIX42 ) + return BeginString(BeginString_FIX42); + else if( applVerID == ApplVerID_FIX43 ) + return BeginString(BeginString_FIX43); + else if( applVerID == ApplVerID_FIX44 ) + return BeginString(BeginString_FIX44); + else if( applVerID == ApplVerID_FIX50 ) + return BeginString(BeginString_FIX50); + else if( applVerID == ApplVerID_FIX50SP1 ) + return BeginString(BeginString_FIX50); + else if( applVerID == ApplVerID_FIX50SP2 ) + return BeginString(BeginString_FIX50); + else + return BeginString(""); + } + + static bool isHeaderField( int field ); + static bool isHeaderField( const FieldBase& field, + const DataDictionary* pD = 0 ); + + static bool isTrailerField( int field ); + static bool isTrailerField( const FieldBase& field, + const DataDictionary* pD = 0 ); + + /// Returns the session ID of the intended recipient + SessionID getSessionID( const std::string& qualifier = "" ) const + throw( FieldNotFound ); + /// Sets the session ID of the intended recipient + void setSessionID( const SessionID& sessionID ); + +private: + FieldBase extractField( + const std::string& string, std::string::size_type& pos, + const DataDictionary* pSessionDD = 0, const DataDictionary* pAppDD = 0, + const Group* pGroup = 0); + + static bool IsDataField( + int field, + const DataDictionary* pSessionDD, + const DataDictionary* pAppDD ) + { + if( (pSessionDD && pSessionDD->isDataField( field )) || + (pAppDD && pAppDD != pSessionDD && pAppDD->isDataField( field )) ) + { + return true; + } + + return false; + } + + void validate(); + std::string toXMLFields(const FieldMap& fields, int space) const; + +protected: + mutable Header m_header; + mutable Trailer m_trailer; + bool m_validStructure; + int m_field; + static std::auto_ptr s_dataDictionary; +}; +/*! @} */ + +inline std::ostream& operator << +( std::ostream& stream, const Message& message ) +{ + std::string str; + stream << message.toString( str ); + return stream; +} + +/// Parse the type of a message from a string. +inline MsgType identifyType( const std::string& message ) +throw( MessageParseError ) +{ + std::string::size_type pos = message.find( "\001" "35=" ); + if ( pos == std::string::npos ) throw MessageParseError(); + + std::string::size_type startValue = pos + 4; + std::string::size_type soh = message.find_first_of( '\001', startValue ); + if ( soh == std::string::npos ) throw MessageParseError(); + + std::string value = message.substr( startValue, soh - startValue ); + return MsgType( value ); +} +} + +#endif //FIX_MESSAGE diff --git a/linux/include/quickfix/MessageCracker.h b/linux/include/quickfix/MessageCracker.h new file mode 100644 index 000000000..75c1259ac --- /dev/null +++ b/linux/include/quickfix/MessageCracker.h @@ -0,0 +1,188 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_MESSAGECRACKER_H +#define FIX_MESSAGECRACKER_H + +#include "fix40/MessageCracker.h" +#include "fix41/MessageCracker.h" +#include "fix42/MessageCracker.h" +#include "fix43/MessageCracker.h" +#include "fix44/MessageCracker.h" +#include "fix50/MessageCracker.h" +#include "fix50sp1/MessageCracker.h" +#include "fix50sp2/MessageCracker.h" +#include "fixt11/MessageCracker.h" +#include "Values.h" +#include "Session.h" + +namespace FIX +{ +/** Takes in a generic Message and produces an object that represents + * its specific version and message type. + */ +class MessageCracker + : + public FIX40::MessageCracker, + public FIX41::MessageCracker, + public FIX42::MessageCracker, + public FIX43::MessageCracker, + public FIX44::MessageCracker, + public FIX50::MessageCracker, + public FIX50SP1::MessageCracker, + public FIX50SP2::MessageCracker, + public FIXT11::MessageCracker +{ +public: + void crack( const Message& message, + const SessionID& sessionID ) + { + const FIX::BeginString& beginString = + FIELD_GET_REF( message.getHeader(), BeginString ); + + crack( message, sessionID, beginString ); + } + + void crack( const Message& message, + const SessionID& sessionID, + const BeginString& beginString ) + { + if ( beginString == BeginString_FIX40 ) + ((FIX40::MessageCracker&)(*this)).crack((const FIX40::Message&) message, sessionID); + else if ( beginString == BeginString_FIX41 ) + ((FIX41::MessageCracker&)(*this)).crack((const FIX41::Message&) message, sessionID); + else if ( beginString == BeginString_FIX42 ) + ((FIX42::MessageCracker&)(*this)).crack((const FIX42::Message&) message, sessionID); + else if ( beginString == BeginString_FIX43 ) + ((FIX43::MessageCracker&)(*this)).crack((const FIX43::Message&) message, sessionID); + else if ( beginString == BeginString_FIX44 ) + ((FIX44::MessageCracker&)(*this)).crack((const FIX44::Message&) message, sessionID); + else if ( beginString == BeginString_FIXT11 ) + { + if( message.isAdmin() ) + { + ((FIXT11::MessageCracker&)(*this)).crack((const FIXT11::Message&) message, sessionID); + } + else + { + ApplVerID applVerID; + if(!message.getHeader().getFieldIfSet(applVerID)) + { + Session* pSession = Session::lookupSession( sessionID ); + applVerID = pSession->getSenderDefaultApplVerID(); + } + + crack( message, sessionID, applVerID ); + } + } + } + + void crack( const Message& message, + const SessionID& sessionID, + const ApplVerID& applVerID ) + { + if ( applVerID == ApplVerID_FIX40 ) + ((FIX40::MessageCracker&)(*this)).crack((const FIX40::Message&) message, sessionID); + if ( applVerID == ApplVerID_FIX41 ) + ((FIX41::MessageCracker&)(*this)).crack((const FIX41::Message&) message, sessionID); + if ( applVerID == ApplVerID_FIX42 ) + ((FIX42::MessageCracker&)(*this)).crack((const FIX42::Message&) message, sessionID); + if ( applVerID == ApplVerID_FIX43 ) + ((FIX43::MessageCracker&)(*this)).crack((const FIX43::Message&) message, sessionID); + if ( applVerID == ApplVerID_FIX44 ) + ((FIX44::MessageCracker&)(*this)).crack((const FIX44::Message&) message, sessionID); + if ( applVerID == ApplVerID_FIX50 ) + ((FIX50::MessageCracker&)(*this)).crack((const FIX50::Message&) message, sessionID); + if ( applVerID == ApplVerID_FIX50SP1 ) + ((FIX50SP1::MessageCracker&)(*this)).crack((const FIX50SP1::Message&) message, sessionID); + if ( applVerID == ApplVerID_FIX50SP2 ) + ((FIX50SP2::MessageCracker&)(*this)).crack((const FIX50SP2::Message&) message, sessionID); + } + + void crack( Message& message, + const SessionID& sessionID ) + { + const FIX::BeginString& beginString = + FIELD_GET_REF( message.getHeader(), BeginString ); + + crack( message, sessionID, beginString ); + } + + void crack( Message& message, + const SessionID& sessionID, + const BeginString& beginString ) + { + if ( beginString == BeginString_FIX40 ) + ((FIX40::MessageCracker&)(*this)).crack((FIX40::Message&) message, sessionID); + else if ( beginString == BeginString_FIX41 ) + ((FIX41::MessageCracker&)(*this)).crack((FIX41::Message&) message, sessionID); + else if ( beginString == BeginString_FIX42 ) + ((FIX42::MessageCracker&)(*this)).crack((FIX42::Message&) message, sessionID); + else if ( beginString == BeginString_FIX43 ) + ((FIX43::MessageCracker&)(*this)).crack((FIX43::Message&) message, sessionID); + else if ( beginString == BeginString_FIX44 ) + ((FIX44::MessageCracker&)(*this)).crack((FIX44::Message&) message, sessionID); + else if ( beginString == BeginString_FIXT11 ) + { + if( message.isAdmin() ) + { + ((FIXT11::MessageCracker&)(*this)).crack((FIXT11::Message&) message, sessionID); + } + else + { + ApplVerID applVerID; + if(!message.getHeader().getFieldIfSet(applVerID)) + { + Session* pSession = Session::lookupSession( sessionID ); + applVerID = pSession->getSenderDefaultApplVerID(); + } + + crack( message, sessionID, applVerID ); + } + } + } + + void crack( Message& message, + const SessionID& sessionID, + const ApplVerID& applVerID ) + { + if ( applVerID == ApplVerID_FIX40 ) + ((FIX40::MessageCracker&)(*this)).crack((FIX40::Message&) message, sessionID); + if ( applVerID == ApplVerID_FIX41 ) + ((FIX41::MessageCracker&)(*this)).crack((FIX41::Message&) message, sessionID); + if ( applVerID == ApplVerID_FIX42 ) + ((FIX42::MessageCracker&)(*this)).crack((FIX42::Message&) message, sessionID); + if ( applVerID == ApplVerID_FIX43 ) + ((FIX43::MessageCracker&)(*this)).crack((FIX43::Message&) message, sessionID); + if ( applVerID == ApplVerID_FIX44 ) + ((FIX44::MessageCracker&)(*this)).crack((FIX44::Message&) message, sessionID); + if ( applVerID == ApplVerID_FIX50 ) + ((FIX50::MessageCracker&)(*this)).crack((FIX50::Message&) message, sessionID); + if ( applVerID == ApplVerID_FIX50SP1 ) + ((FIX50SP1::MessageCracker&)(*this)).crack((FIX50SP1::Message&) message, sessionID); + if ( applVerID == ApplVerID_FIX50SP2 ) + ((FIX50SP2::MessageCracker&)(*this)).crack((FIX50SP2::Message&) message, sessionID); + } + +}; +} + +#endif //FIX_MESSAGECRACKER_H diff --git a/linux/include/quickfix/MessageSorters.h b/linux/include/quickfix/MessageSorters.h new file mode 100644 index 000000000..44f07139d --- /dev/null +++ b/linux/include/quickfix/MessageSorters.h @@ -0,0 +1,156 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_MESSAGESORTERS_H +#define FIX_MESSAGESORTERS_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "FieldNumbers.h" +#include "SharedArray.h" +#include +#include +#include + +namespace FIX +{ +/// Sorts fields in correct header order. +struct header_order +{ + static bool compare( const int x, const int y ) + { + int orderedX = getOrderedPosition( x ); + int orderedY = getOrderedPosition( y ); + + if ( orderedX && orderedY ) + return orderedX < orderedY; + else + if ( orderedX ) + return true; + else + if ( orderedY ) + return false; + else + return x < y; + } + + static int getOrderedPosition( const int field ) + { + switch ( field ) + { + case FIELD::BeginString: return 1; + case FIELD::BodyLength: return 2; + case FIELD::MsgType: return 3; + default: return 0; + }; + } +}; + +/// Sorts fields in correct trailer order. +struct trailer_order +{ + static bool compare( const int x, const int y ) + { + if ( x == FIELD::CheckSum ) return false; + else + if ( y == FIELD::CheckSum ) return true; + else return x < y; + } +}; + +/// Sorts fields in correct group order +struct group_order +{ + static bool compare( const int x, const int y, int* order, int largest ) + { + if ( x <= largest && y <= largest ) + { + int iX = order[ x ]; + int iY = order[ y ]; + if ( iX == 0 && iY == 0 ) + return x < y; + else if ( iX == 0 ) + return false; + else if ( iY == 0 ) + return true; + else + return iX < iY; + } + else if ( x <= largest ) return true; + else if ( y <= largest ) return false; + else return x < y; + } +}; + +typedef std::less < int > normal_order; + +/** + * Sorts fields in header, normal, or trailer order. + * + * Used as a dynamic sorter to create Header, Trailer, and Message + * FieldMaps while maintaining the same base type. + */ +struct message_order +{ +public: + enum cmp_mode { header, trailer, normal, group }; + + message_order( cmp_mode mode = normal ) + : m_mode( mode ), m_delim( 0 ), m_largest( 0 ) {} + message_order( int first, ... ); + message_order( const int order[] ); + message_order( const message_order& copy ) + { *this = copy; } + + bool operator() ( const int x, const int y ) const + { + switch ( m_mode ) + { + case header: + return header_order::compare( x, y ); + case trailer: + return trailer_order::compare( x, y ); + case group: + return group_order::compare( x, y, m_groupOrder, m_largest ); + case normal: default: + return x < y; + } + } + + message_order& operator=( const message_order& rhs ); + + operator bool() const + { return !m_groupOrder.empty(); } + +private: + void setOrder( int size, const int order[] ); + + cmp_mode m_mode; + int m_delim; + shared_array m_groupOrder; + int m_largest; +}; +} + +#endif //FIX_MESSAGESORTERS_H + diff --git a/linux/include/quickfix/MessageStore.h b/linux/include/quickfix/MessageStore.h new file mode 100644 index 000000000..bd00a3af6 --- /dev/null +++ b/linux/include/quickfix/MessageStore.h @@ -0,0 +1,174 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_MESSAGESTORE_H +#define FIX_MESSAGESTORE_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "Message.h" +#include +#include +#include + +namespace FIX +{ +class MessageStore; + +/** + * This interface must be implemented to create a MessageStore. + */ +class MessageStoreFactory +{ +public: + virtual ~MessageStoreFactory() {} + virtual MessageStore* create( const SessionID& ) = 0; + virtual void destroy( MessageStore* ) = 0; +}; + +/** + * Creates a memory based implementation of MessageStore. + * + * This will lose all data on process termination. This class should only + * be used for test applications, never in production. + */ +class MemoryStoreFactory : public MessageStoreFactory +{ +public: + MessageStore* create( const SessionID& ); + void destroy( MessageStore* ); +}; + +/** + * This interface must be implemented to store and retrieve messages and + * sequence numbers. + */ +class MessageStore +{ +public: + virtual ~MessageStore() {} + + virtual bool set( int, const std::string& ) + throw ( IOException ) = 0; + virtual void get( int, int, std::vector < std::string > & ) const + throw ( IOException ) = 0; + + virtual int getNextSenderMsgSeqNum() const throw ( IOException ) = 0; + virtual int getNextTargetMsgSeqNum() const throw ( IOException ) = 0; + virtual void setNextSenderMsgSeqNum( int ) throw ( IOException ) = 0; + virtual void setNextTargetMsgSeqNum( int ) throw ( IOException ) = 0; + virtual void incrNextSenderMsgSeqNum() throw ( IOException ) = 0; + virtual void incrNextTargetMsgSeqNum() throw ( IOException ) = 0; + + virtual UtcTimeStamp getCreationTime() const throw ( IOException ) = 0; + + virtual void reset() throw ( IOException ) = 0; + virtual void refresh() throw ( IOException ) = 0; +}; +/*! @} */ + +/** + * Memory based implementation of MessageStore. + * + * This will lose all data on process terminition. This class should only + * be used for test applications, never in production. + */ +class MemoryStore : public MessageStore +{ +public: + MemoryStore() : m_nextSenderMsgSeqNum( 1 ), m_nextTargetMsgSeqNum( 1 ) {} + + bool set( int, const std::string& ) throw ( IOException ); + void get( int, int, std::vector < std::string > & ) const throw ( IOException ); + + int getNextSenderMsgSeqNum() const throw ( IOException ) + { return m_nextSenderMsgSeqNum; } + int getNextTargetMsgSeqNum() const throw ( IOException ) + { return m_nextTargetMsgSeqNum; } + void setNextSenderMsgSeqNum( int value ) throw ( IOException ) + { m_nextSenderMsgSeqNum = value; } + void setNextTargetMsgSeqNum( int value ) throw ( IOException ) + { m_nextTargetMsgSeqNum = value; } + void incrNextSenderMsgSeqNum() throw ( IOException ) + { ++m_nextSenderMsgSeqNum; } + void incrNextTargetMsgSeqNum() throw ( IOException ) + { ++m_nextTargetMsgSeqNum; } + + void setCreationTime( const UtcTimeStamp& creationTime ) throw ( IOException ) + { m_creationTime = creationTime; } + UtcTimeStamp getCreationTime() const throw ( IOException ) + { return m_creationTime; } + + void reset() throw ( IOException ) + { + m_nextSenderMsgSeqNum = 1; m_nextTargetMsgSeqNum = 1; + m_messages.clear(); m_creationTime.setCurrent(); + } + void refresh() throw ( IOException ) {} + +private: + typedef std::map < int, std::string > Messages; + + Messages m_messages; + int m_nextSenderMsgSeqNum; + int m_nextTargetMsgSeqNum; + UtcTimeStamp m_creationTime; +}; + +class MessageStoreFactoryExceptionWrapper +{ +private: + MessageStoreFactory* m_pFactory; +public: + MessageStoreFactoryExceptionWrapper( MessageStoreFactory* pFactory ) + : m_pFactory( pFactory ) {} + + MessageStore* create( const SessionID&, bool&, ConfigError& ); + void destroy( MessageStore* ); +}; + +class MessageStoreExceptionWrapper +{ +private: + MessageStore* m_pStore; +public: + MessageStoreExceptionWrapper( MessageStore* pStore ) : m_pStore( pStore ) {} + ~MessageStoreExceptionWrapper() { delete m_pStore; } + + bool set( int, const std::string&, bool&, IOException& ); + void get( int, int, std::vector < std::string > &, bool&, IOException& ) const; + int getNextSenderMsgSeqNum( bool&, IOException& ) const; + int getNextTargetMsgSeqNum( bool&, IOException& ) const; + void setNextSenderMsgSeqNum( int, bool&, IOException& ); + void setNextTargetMsgSeqNum( int, bool&, IOException& ); + void incrNextSenderMsgSeqNum( bool&, IOException& ); + void incrNextTargetMsgSeqNum( bool&, IOException& ); + + UtcTimeStamp getCreationTime( bool&, IOException& ); + + void reset( bool&, IOException& ); + void refresh( bool&, IOException& ); +}; +} + +#endif //FIX_MESSAGESTORE_H diff --git a/linux/include/quickfix/Mutex.h b/linux/include/quickfix/Mutex.h new file mode 100644 index 000000000..46d583520 --- /dev/null +++ b/linux/include/quickfix/Mutex.h @@ -0,0 +1,131 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_MUTEX_H +#define FIX_MUTEX_H + +#include "Utility.h" + +namespace FIX +{ +/// Portable implementation of a mutex. +class Mutex +{ +public: + Mutex() + { +#ifdef _MSC_VER + InitializeCriticalSection( &m_mutex ); +#else + m_count = 0; + m_threadID = 0; + //pthread_mutexattr_t attr; + //pthread_mutexattr_init(&attr); + //pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); + //pthread_mutex_init(&m_mutex, &attr); + pthread_mutex_init( &m_mutex, 0 ); +#endif + } + + ~Mutex() + { +#ifdef _MSC_VER + DeleteCriticalSection( &m_mutex ); +#else + pthread_mutex_destroy( &m_mutex ); +#endif + } + + void lock() + { +#ifdef _MSC_VER + EnterCriticalSection( &m_mutex ); +#else + if ( m_count && m_threadID == pthread_self() ) + { ++m_count; return ; } + pthread_mutex_lock( &m_mutex ); + ++m_count; + m_threadID = pthread_self(); +#endif + } + + void unlock() + { +#ifdef _MSC_VER + LeaveCriticalSection( &m_mutex ); +#else + if ( m_count > 1 ) + { m_count--; return ; } + --m_count; + m_threadID = 0; + pthread_mutex_unlock( &m_mutex ); +#endif + } + +private: + +#ifdef _MSC_VER + CRITICAL_SECTION m_mutex; +#else + pthread_mutex_t m_mutex; + pthread_t m_threadID; + int m_count; +#endif +}; + +/// Locks/Unlocks a mutex using RAII. +class Locker +{ +public: + Locker( Mutex& mutex ) + : m_mutex( mutex ) + { + m_mutex.lock(); + } + + ~Locker() + { + m_mutex.unlock(); + } +private: + Mutex& m_mutex; +}; + +/// Does the opposite of the Locker to ensure mutex ends up in a locked state. +class ReverseLocker +{ +public: + ReverseLocker( Mutex& mutex ) + : m_mutex( mutex ) + { + m_mutex.unlock(); + } + + ~ReverseLocker() + { + m_mutex.lock(); + } +private: + Mutex& m_mutex; +}; +} + +#endif diff --git a/linux/include/quickfix/MySQLConnection.h b/linux/include/quickfix/MySQLConnection.h new file mode 100644 index 000000000..64dfda909 --- /dev/null +++ b/linux/include/quickfix/MySQLConnection.h @@ -0,0 +1,194 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef HAVE_MYSQL +#error MySQLConnection.h included, but HAVE_MYSQL not defined +#endif + +#ifdef HAVE_MYSQL +#ifndef FIX_MYSQLCONNECTION_H +#define FIX_MYSQLCONNECTION_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#pragma comment( lib, "libMySQL" ) +#endif + +#include +#include +#include "DatabaseConnectionID.h" +#include "DatabaseConnectionPool.h" +#include "Mutex.h" + +#undef MYSQL_PORT + +namespace FIX +{ +class MySQLQuery +{ +public: + MySQLQuery( const std::string& query ) + : m_result( 0 ), m_query( query ) + {} + + ~MySQLQuery() + { + if( m_result ) + mysql_free_result( m_result ); + } + + bool execute( MYSQL* pConnection ) + { + int retry = 0; + + do + { + if( m_result ) mysql_free_result( m_result ); + int errcode = mysql_query( pConnection, m_query.c_str() ); + m_result = mysql_store_result( pConnection ); + if( errcode == 0 ) + return true; + m_status = mysql_errno( pConnection ); + m_reason = mysql_error( pConnection ); + mysql_ping( pConnection ); + retry++; + } while( retry <= 1 ); + return success(); + } + + bool success() + { + return m_status == 0; + } + + int rows() + { + return (int)mysql_num_rows( m_result ); + } + + const std::string& reason() + { + return m_reason; + } + + char* getValue( int row, int column ) + { + if( m_rows.empty() ) + { + MYSQL_ROW row = 0; + while( (row = mysql_fetch_row( m_result )) ) + m_rows.push_back(row); + } + return m_rows[row][column]; + } + + void throwException() throw( IOException ) + { + if( !success() ) + throw IOException( "Query failed [" + m_query + "] " + reason() ); + } + +private: + MYSQL_RES* m_result; + int m_status; + std::string m_query; + std::string m_reason; + std::vector m_rows; +}; + +class MySQLConnection +{ +public: + MySQLConnection + ( const DatabaseConnectionID& id ) + : m_connectionID( id ) + { + connect(); + } + + MySQLConnection + ( const std::string& database, const std::string& user, + const std::string& password, const std::string& host, short port ) + : m_connectionID( database, user, password, host, port ) + { + connect(); + } + + ~MySQLConnection() + { + if( m_pConnection ) + mysql_close( m_pConnection ); + } + + const DatabaseConnectionID& connectionID() + { + return m_connectionID; + } + + bool connected() + { + Locker locker( m_mutex ); + return mysql_ping( m_pConnection ) == 0; + } + + bool reconnect() + { + Locker locker( m_mutex ); + return mysql_ping( m_pConnection ) == 0; + } + + bool execute( MySQLQuery& pQuery ) + { + Locker locker( m_mutex ); + return pQuery.execute( m_pConnection ); + } + +private: + void connect() + { + short port = m_connectionID.getPort(); + m_pConnection = mysql_init( NULL ); + if( !mysql_real_connect + ( m_pConnection, m_connectionID.getHost().c_str(), m_connectionID.getUser().c_str(), + m_connectionID.getPassword().c_str(), m_connectionID.getDatabase().c_str(), port, 0, 0 ) ) + { + if( !connected() ) + throw ConfigError( std::string("Unable to connect to database [") + mysql_error(m_pConnection) + "]" ); + } + #if( MYSQL_VERSION_ID > 50000 ) + my_bool reconnect = 1; + mysql_options( m_pConnection, MYSQL_OPT_RECONNECT, static_cast(&reconnect) ); + #endif + } + + MYSQL* m_pConnection; + DatabaseConnectionID m_connectionID; + Mutex m_mutex; +}; + +typedef DatabaseConnectionPool + MySQLConnectionPool; +typedef std::auto_ptr< MySQLConnectionPool > + MySQLConnectionPoolPtr; +} + +#endif //FIX_MYSQLCONNECTION_H +#endif //HAVE_MYSQL diff --git a/linux/include/quickfix/MySQLLog.h b/linux/include/quickfix/MySQLLog.h new file mode 100644 index 000000000..e6c95a529 --- /dev/null +++ b/linux/include/quickfix/MySQLLog.h @@ -0,0 +1,145 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef HAVE_MYSQL +#error MySQLLog.h included, but HAVE_MYSQL not defined +#endif + +#ifdef HAVE_MYSQL +#ifndef FIX_MYSQLLOG_H +#define FIX_MYSQLLOG_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#pragma comment( lib, "libMySQL" ) +#endif + +#include "Log.h" +#include "SessionSettings.h" +#include "MySQLConnection.h" +#include +#include + +namespace FIX +{ +/// MySQL based implementation of Log. +class MySQLLog : public Log +{ +public: + MySQLLog( const SessionID& s, const DatabaseConnectionID& d, MySQLConnectionPool* p ); + MySQLLog( const DatabaseConnectionID& d, MySQLConnectionPool* p ); + MySQLLog( const SessionID& s, const std::string& database, const std::string& user, + const std::string& password, const std::string& host, short port ); + MySQLLog( const std::string& database, const std::string& user, + const std::string& password, const std::string& host, short port ); + + ~MySQLLog(); + + void clear(); + void backup(); + void setIncomingTable( const std::string& incomingTable ) + { m_incomingTable = incomingTable; } + void setOutgoingTable( const std::string& outgoingTable ) + { m_outgoingTable = outgoingTable; } + void setEventTable( const std::string& eventTable ) + { m_eventTable = eventTable; } + + void onIncoming( const std::string& value ) + { insert( m_incomingTable, value ); } + void onOutgoing( const std::string& value ) + { insert( m_outgoingTable, value ); } + void onEvent( const std::string& value ) + { insert( m_eventTable, value ); } + +private: + void init(); + void insert( const std::string& table, const std::string value ); + + std::string m_incomingTable; + std::string m_outgoingTable; + std::string m_eventTable; + MySQLConnection* m_pConnection; + MySQLConnectionPool* m_pConnectionPool; + SessionID* m_pSessionID; +}; + +/// Creates a MySQL based implementation of Log. +class MySQLLogFactory : public LogFactory +{ +public: + static const std::string DEFAULT_DATABASE; + static const std::string DEFAULT_USER; + static const std::string DEFAULT_PASSWORD; + static const std::string DEFAULT_HOST; + static const short DEFAULT_PORT; + + MySQLLogFactory( const SessionSettings& settings ) +: m_settings( settings ), m_useSettings( true ) + { + bool poolConnections = false; + try { poolConnections = settings.get().getBool(MYSQL_LOG_USECONNECTIONPOOL); } + catch( ConfigError& ) {} + + m_connectionPoolPtr = MySQLConnectionPoolPtr + ( new MySQLConnectionPool(poolConnections) ); + } + + MySQLLogFactory( const std::string& database, const std::string& user, + const std::string& password, const std::string& host, + short port ) +: m_database( database ), m_user( user ), m_password( password ), m_host( host ), m_port( port ), + m_useSettings( false ) + { + m_connectionPoolPtr = MySQLConnectionPoolPtr + ( new MySQLConnectionPool(false) ); + } + + MySQLLogFactory() +: m_database( DEFAULT_DATABASE ), m_user( DEFAULT_USER ), m_password( DEFAULT_PASSWORD ), + m_host( DEFAULT_HOST ), m_port( DEFAULT_PORT ), m_useSettings( false ) + { + m_connectionPoolPtr = MySQLConnectionPoolPtr + ( new MySQLConnectionPool(false) ); + } + + Log* create(); + Log* create( const SessionID& ); + void destroy( Log* ); +private: + void init( const Dictionary& settings, std::string& database, + std::string& user, std::string& password, + std::string& host, short& port ); + + void initLog( const Dictionary& settings, MySQLLog& log ); + + MySQLConnectionPoolPtr m_connectionPoolPtr; + SessionSettings m_settings; + std::string m_database; + std::string m_user; + std::string m_password; + std::string m_host; + short m_port; + bool m_useSettings; +}; +} + +#endif //FIX_MYSQLLOG_H +#endif //HAVE_MYSQL diff --git a/linux/include/quickfix/MySQLStore.h b/linux/include/quickfix/MySQLStore.h new file mode 100644 index 000000000..33102c711 --- /dev/null +++ b/linux/include/quickfix/MySQLStore.h @@ -0,0 +1,142 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef HAVE_MYSQL +#error MySQLStore.h included, but HAVE_MYSQL not defined +#endif + +#ifdef HAVE_MYSQL +#ifndef FIX_MYSQLSTORE_H +#define FIX_MYSQLSTORE_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#pragma comment( lib, "libMySQL" ) +#endif + +#include "MessageStore.h" +#include "SessionSettings.h" +#include "MySQLConnection.h" +#include +#include + +namespace FIX +{ +/// Creates a MySQL based implementation of MessageStore. +class MySQLStoreFactory : public MessageStoreFactory +{ +public: + static const std::string DEFAULT_DATABASE; + static const std::string DEFAULT_USER; + static const std::string DEFAULT_PASSWORD; + static const std::string DEFAULT_HOST; + static const short DEFAULT_PORT; + + MySQLStoreFactory( const SessionSettings& settings ) +: m_settings( settings ), m_useSettings( true ), m_useDictionary( false ) + { + bool poolConnections = false; + try { poolConnections = settings.get().getBool(MYSQL_STORE_USECONNECTIONPOOL); } + catch( ConfigError& ) {} + + m_connectionPoolPtr = MySQLConnectionPoolPtr + ( new MySQLConnectionPool(poolConnections) ); + } + + MySQLStoreFactory( const Dictionary& dictionary ) +: m_dictionary( dictionary ), m_useSettings( false ), m_useDictionary( true ) + { + m_connectionPoolPtr = MySQLConnectionPoolPtr + ( new MySQLConnectionPool(false) ); + } + + MySQLStoreFactory( const std::string& database, const std::string& user, + const std::string& password, const std::string& host, + short port ) +: m_database( database ), m_user( user ), m_password( password ), m_host( host ), m_port( port ), + m_useSettings( false ), m_useDictionary( false ) + { + m_connectionPoolPtr = MySQLConnectionPoolPtr + ( new MySQLConnectionPool(false) ); + } + + MySQLStoreFactory() +: m_database( DEFAULT_DATABASE ), m_user( DEFAULT_USER ), m_password( DEFAULT_PASSWORD ), + m_host( DEFAULT_HOST ), m_port( DEFAULT_PORT ), m_useSettings( false ), m_useDictionary( false ) + { + m_connectionPoolPtr = MySQLConnectionPoolPtr + ( new MySQLConnectionPool(false) ); + } + + MessageStore* create( const SessionID& ); + void destroy( MessageStore* ); +private: + MessageStore* create( const SessionID& s, const Dictionary& ); + + MySQLConnectionPoolPtr m_connectionPoolPtr; + SessionSettings m_settings; + Dictionary m_dictionary; + std::string m_database; + std::string m_user; + std::string m_password; + std::string m_host; + short m_port; + bool m_useSettings; + bool m_useDictionary; +}; +/*! @} */ + +/// MySQL based implementation of MessageStore. +class MySQLStore : public MessageStore +{ +public: + MySQLStore( const SessionID& s, const DatabaseConnectionID& d, MySQLConnectionPool* p ); + MySQLStore( const SessionID& s, const std::string& database, const std::string& user, + const std::string& password, const std::string& host, short port ); + ~MySQLStore(); + + bool set( int, const std::string& ) throw ( IOException ); + void get( int, int, std::vector < std::string > & ) const throw ( IOException ); + + int getNextSenderMsgSeqNum() const throw ( IOException ); + int getNextTargetMsgSeqNum() const throw ( IOException ); + void setNextSenderMsgSeqNum( int value ) throw ( IOException ); + void setNextTargetMsgSeqNum( int value ) throw ( IOException ); + void incrNextSenderMsgSeqNum() throw ( IOException ); + void incrNextTargetMsgSeqNum() throw ( IOException ); + + UtcTimeStamp getCreationTime() const throw ( IOException ); + + void reset() throw ( IOException ); + void refresh() throw ( IOException ); + +private: + void populateCache(); + + MemoryStore m_cache; + MySQLConnection* m_pConnection; + MySQLConnectionPool* m_pConnectionPool; + SessionID m_sessionID; +}; +} + +#endif //FIX_MYSQLSTORE_H +#endif //HAVE_MYSQL diff --git a/linux/include/quickfix/NullStore.h b/linux/include/quickfix/NullStore.h new file mode 100644 index 000000000..43d008910 --- /dev/null +++ b/linux/include/quickfix/NullStore.h @@ -0,0 +1,99 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_NULLSTORE_H +#define FIX_NULLSTORE_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "MessageStore.h" +#include "SessionSettings.h" +#include + +namespace FIX +{ +class Session; + +/** + * Null implementation of MessageStore. + * + * Will not actually store messages. Useful for admin-only or market + * data-only applications. + */ +class NullStoreFactory : public MessageStoreFactory +{ +public: + MessageStore* create( const SessionID& ); + void destroy( MessageStore* ); +}; +/*! @} */ + + +/** + * Null implementation of MessageStore. + * + * Will not actually store messages. Useful for admin-only or market + * data-only applications. + */ +class NullStore : public MessageStore +{ +public: + NullStore() : m_nextSenderMsgSeqNum( 1 ), m_nextTargetMsgSeqNum( 1 ) {} + + bool set( int, const std::string& ) throw ( IOException ); + void get( int, int, std::vector < std::string > & ) const throw ( IOException ); + + int getNextSenderMsgSeqNum() const throw ( IOException ) + { return m_nextSenderMsgSeqNum; } + int getNextTargetMsgSeqNum() const throw ( IOException ) + { return m_nextTargetMsgSeqNum; } + void setNextSenderMsgSeqNum( int value ) throw ( IOException ) + { m_nextSenderMsgSeqNum = value; } + void setNextTargetMsgSeqNum( int value ) throw ( IOException ) + { m_nextTargetMsgSeqNum = value; } + void incrNextSenderMsgSeqNum() throw ( IOException ) + { ++m_nextSenderMsgSeqNum; } + void incrNextTargetMsgSeqNum() throw ( IOException ) + { ++m_nextTargetMsgSeqNum; } + + void setCreationTime( const UtcTimeStamp& creationTime ) throw ( IOException ) + { m_creationTime = creationTime; } + UtcTimeStamp getCreationTime() const throw ( IOException ) + { return m_creationTime; } + + void reset() throw ( IOException ) + { + m_nextSenderMsgSeqNum = 1; m_nextTargetMsgSeqNum = 1; + m_creationTime.setCurrent(); + } + void refresh() throw ( IOException ) {} + +private: + int m_nextSenderMsgSeqNum; + int m_nextTargetMsgSeqNum; + UtcTimeStamp m_creationTime; +}; +} + +#endif // FIX_NULLSTORE_H + diff --git a/linux/include/quickfix/OdbcConnection.h b/linux/include/quickfix/OdbcConnection.h new file mode 100644 index 000000000..d8358d311 --- /dev/null +++ b/linux/include/quickfix/OdbcConnection.h @@ -0,0 +1,266 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef HAVE_ODBC +#error OdbcConnection.h included, but HAVE_ODBC not defined +#endif + +#ifdef HAVE_ODBC +#ifndef FIX_ODBCCONNECTION_H +#define FIX_ODBCCONNECTION_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#pragma comment( lib, "Odbc32" ) +#endif + +#include "Utility.h" +#include +#include +#include +#include +#include "DatabaseConnectionID.h" +#include "DatabaseConnectionPool.h" +#include "Exceptions.h" +#include "Mutex.h" + +namespace FIX +{ + +inline std::string odbcError( SQLSMALLINT statementType, SQLHANDLE handle ) +{ + SQLCHAR state[6]; + SQLINTEGER error; + SQLCHAR text[SQL_MAX_MESSAGE_LENGTH]; + SQLSMALLINT textLength; + RETCODE result = SQLGetDiagRec + ( statementType, handle, 1, state, &error, text, sizeof(text), &textLength ); + if( result == SQL_SUCCESS || result == SQL_SUCCESS_WITH_INFO ) + return std::string( (char*)text ); + return ""; +} + +inline bool odbcSuccess( RETCODE result ) +{ + return result == SQL_SUCCESS || result == SQL_SUCCESS_WITH_INFO; +} + +class OdbcQuery +{ +public: + OdbcQuery( const std::string& query ) + : m_statement( 0 ), m_result( 0 ), m_query( query ) + {} + + ~OdbcQuery() + { + close(); + } + + void close() + { + if( m_statement ) + { + SQLFreeHandle( SQL_HANDLE_STMT, m_statement ); + m_statement = 0; + m_result = 0; + } + } + + bool execute( HDBC connection ) + { + if( m_statement ) SQLFreeHandle( SQL_HANDLE_STMT, m_statement ); + SQLAllocHandle( SQL_HANDLE_STMT, connection, &m_statement ); + m_result = SQLExecDirect( m_statement, (SQLCHAR*)m_query.c_str(), m_query.size() ); + if( success() || m_result == SQL_NO_DATA ) + return true; + m_reason = odbcError( SQL_HANDLE_STMT, m_statement ); + SQLFreeHandle( SQL_HANDLE_STMT, m_statement ); + m_statement = 0; + return success(); + } + + bool success() + { + return odbcSuccess( m_result ); + } + + /*int rows() + { + return (int)mysql_num_rows( m_result ); + }*/ + + const std::string& reason() + { + return m_reason; + } + + bool fetch() + { + return odbcSuccess( SQLFetch(m_statement) ); + } + + /*char* getValue( int row, int column ) + { + if( m_rows.empty() ) + { + MYSQL_ROW row = 0; + while( row = mysql_fetch_row( m_result ) ) + m_rows.push_back(row); + } + return m_rows[row][column]; + }*/ + + HSTMT statement() + { + return m_statement; + } + + void throwException() throw( IOException ) + { + if( !success() ) + throw IOException( "Query failed [" + m_query + "] " + reason() ); + } + +private: + HSTMT m_statement; + RETCODE m_result; + std::string m_query; + std::string m_reason; +}; + +class OdbcConnection +{ +public: + OdbcConnection + ( const DatabaseConnectionID& id ) + : m_connection( 0 ), m_environment( 0 ), m_connectionID( id ) + { + connect(); + } + + OdbcConnection + ( const std::string& user, const std::string& password, + const std::string& connectionString ) + : m_connection( 0 ), m_environment( 0 ), m_connectionID( "", user, password, connectionString, 0 ) + { + connect(); + } + + ~OdbcConnection() + { + if( m_connection ) + { + SQLDisconnect( m_connection ); + SQLFreeHandle( SQL_HANDLE_DBC, m_connection ); + SQLFreeHandle( SQL_HANDLE_ENV, m_environment ); + } + } + + const DatabaseConnectionID& connectionID() + { + return m_connectionID; + } + + bool connected() + { + Locker locker( m_mutex ); + return m_connected; + } + + bool reconnect() + { + Locker locker( m_mutex ); + SQLDisconnect( m_connection ); + SQLFreeHandle( SQL_HANDLE_DBC, m_connection ); + m_connection = 0; + connect(); + return true; + } + + bool execute( OdbcQuery& pQuery ) + { + Locker locker( m_mutex ); + if( !pQuery.execute( m_connection ) ) + { + reconnect(); + return pQuery.execute( m_connection ); + } + return true; + } + +private: + void connect() + { + m_connected = false; + + RETCODE result; + if(!m_environment) + { + result = SQLAllocHandle( SQL_HANDLE_ENV, SQL_NULL_HANDLE, &m_environment ); + if( !odbcSuccess(result) ) + throw ConfigError( "Unable to allocate ODBC environment" ); + + result = SQLSetEnvAttr(m_environment, SQL_ATTR_ODBC_VERSION, (void*)SQL_OV_ODBC3, 0); + if( !odbcSuccess(result) ) + throw ConfigError( "Unable to find ODBC version 3.0" ); + } + + result = SQLAllocHandle( SQL_HANDLE_DBC, m_environment, &m_connection ); + if( !odbcSuccess(result) ) + throw ConfigError( "Unable to allocate ODBC connection" ); + + std::stringstream connectionStream; + std::string connectionString = m_connectionID.getHost(); + if( m_connectionID.getHost().find("UID=") == std::string::npos ) + connectionStream << "UID=" << m_connectionID.getUser() << ";"; + if( m_connectionID.getHost().find("PWD=") == std::string::npos ) + connectionStream << "PWD=" << m_connectionID.getPassword() << ";"; + connectionStream << m_connectionID.getHost(); + connectionString = connectionStream.str(); + + SQLCHAR connectionStringOut[255]; + + result = SQLDriverConnect( + m_connection, NULL, + (SQLCHAR*)connectionString.c_str(), SQL_NTS, + connectionStringOut, 255, + 0, SQL_DRIVER_NOPROMPT ); + + if( !odbcSuccess(result) ) + { + std::string error = odbcError( SQL_HANDLE_DBC, m_connection ); + throw ConfigError( error ); + } + + m_connected = true; + } + + HENV m_environment; + HDBC m_connection; + bool m_connected; + DatabaseConnectionID m_connectionID; + Mutex m_mutex; +}; +} + +#endif +#endif diff --git a/linux/include/quickfix/OdbcLog.h b/linux/include/quickfix/OdbcLog.h new file mode 100644 index 000000000..4c2f9418f --- /dev/null +++ b/linux/include/quickfix/OdbcLog.h @@ -0,0 +1,117 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef HAVE_ODBC +#error OdbcLog.h included, but HAVE_ODBC not defined +#endif + +#ifdef HAVE_ODBC +#ifndef FIX_ODBCLOG_H +#define FIX_ODBCLOG_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "OdbcConnection.h" +#include "Log.h" +#include "SessionSettings.h" +#include +#include + +namespace FIX +{ +/// ODBC based implementation of Log. +class OdbcLog : public Log +{ +public: + OdbcLog( const SessionID& s, const std::string& user, const std::string& password, + const std::string& connectionString ); + OdbcLog( const std::string& user, const std::string& password, + const std::string& connectionString ); + + ~OdbcLog(); + + void clear(); + void backup(); + void setIncomingTable( const std::string& incomingTable ) + { m_incomingTable = incomingTable; } + void setOutgoingTable( const std::string& outgoingTable ) + { m_outgoingTable = outgoingTable; } + void setEventTable( const std::string& eventTable ) + { m_eventTable = eventTable; } + + void onIncoming( const std::string& value ) + { insert( m_incomingTable, value ); } + void onOutgoing( const std::string& value ) + { insert( m_outgoingTable, value ); } + void onEvent( const std::string& value ) + { insert( m_eventTable, value ); } + +private: + void init(); + void insert( const std::string& table, const std::string value ); + + std::string m_incomingTable; + std::string m_outgoingTable; + std::string m_eventTable; + OdbcConnection* m_pConnection; + SessionID* m_pSessionID; +}; + +/// Creates a ODBC based implementation of Log. +class OdbcLogFactory : public LogFactory +{ +public: + static const std::string DEFAULT_USER; + static const std::string DEFAULT_PASSWORD; + static const std::string DEFAULT_CONNECTION_STRING; + + OdbcLogFactory( const SessionSettings& settings ) + : m_settings( settings ), m_useSettings( true ) {} + + OdbcLogFactory( const std::string& user, const std::string& password, + const std::string& connectionString ); + + OdbcLogFactory(); + + ~OdbcLogFactory(); + + Log* create(); + Log* create( const SessionID& ); + void destroy( Log* ); +private: + void init( const Dictionary& settings, + std::string& user, std::string& password, + std::string& connectionString ); + + void initLog( const Dictionary& settings, OdbcLog& log ); + + SessionSettings m_settings; + std::string m_user; + std::string m_password; + std::string m_connectionString; + bool m_useSettings; +}; +} + +#endif +#endif diff --git a/linux/include/quickfix/OdbcStore.h b/linux/include/quickfix/OdbcStore.h new file mode 100644 index 000000000..a89ab29bd --- /dev/null +++ b/linux/include/quickfix/OdbcStore.h @@ -0,0 +1,113 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef HAVE_ODBC +#error OdbcStore.h included, but HAVE_ODBC not defined +#endif + +#ifdef HAVE_ODBC +#ifndef FIX_ODBCSTORE_H +#define FIX_ODBCSTORE_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "OdbcConnection.h" +#include "MessageStore.h" +#include "SessionSettings.h" +#include +#include + +namespace FIX +{ +/// Creates a Odbc based implementation of MessageStore. +class OdbcStoreFactory : public MessageStoreFactory +{ +public: + static const std::string DEFAULT_USER; + static const std::string DEFAULT_PASSWORD; + static const std::string DEFAULT_CONNECTION_STRING; + + OdbcStoreFactory( const SessionSettings& settings ) +: m_settings( settings ), m_useSettings( true ), m_useDictionary( false ) {} + + OdbcStoreFactory( const Dictionary& dictionary ) +: m_dictionary( dictionary ), m_useSettings( false ), m_useDictionary( true ) {} + + OdbcStoreFactory( const std::string& user, const std::string& password, + const std::string& connectionString ) +: m_user( user ), m_password( password ), m_connectionString( connectionString ), + m_useSettings( false ), m_useDictionary( false ) {} + + OdbcStoreFactory() +: m_user( DEFAULT_USER ), m_password( DEFAULT_PASSWORD ), + m_connectionString( DEFAULT_CONNECTION_STRING ), m_useSettings( false ), m_useDictionary( false ) {} + + MessageStore* create( const SessionID& ); + void destroy( MessageStore* ); +private: + MessageStore* create( const SessionID& s, const Dictionary& ); + + Dictionary m_dictionary; + SessionSettings m_settings; + std::string m_user; + std::string m_password; + std::string m_connectionString; + bool m_useSettings; + bool m_useDictionary; +}; +/*! @} */ + +/// Odbc based implementation of MessageStore. +class OdbcStore : public MessageStore +{ +public: + OdbcStore( const SessionID& s, const std::string& user, const std::string& password, + const std::string& connectionString ); + ~OdbcStore(); + + bool set( int, const std::string& ) throw ( IOException ); + void get( int, int, std::vector < std::string > & ) const throw ( IOException ); + + int getNextSenderMsgSeqNum() const throw ( IOException ); + int getNextTargetMsgSeqNum() const throw ( IOException ); + void setNextSenderMsgSeqNum( int value ) throw ( IOException ); + void setNextTargetMsgSeqNum( int value ) throw ( IOException ); + void incrNextSenderMsgSeqNum() throw ( IOException ); + void incrNextTargetMsgSeqNum() throw ( IOException ); + + UtcTimeStamp getCreationTime() const throw ( IOException ); + + void reset() throw ( IOException ); + void refresh() throw ( IOException ); + +private: + void populateCache(); + + OdbcConnection* m_pConnection; + MemoryStore m_cache; + SessionID m_sessionID; +}; +} + +#endif +#endif diff --git a/linux/include/quickfix/PUGIXML_DOMDocument.h b/linux/include/quickfix/PUGIXML_DOMDocument.h new file mode 100644 index 000000000..088b9d64a --- /dev/null +++ b/linux/include/quickfix/PUGIXML_DOMDocument.h @@ -0,0 +1,81 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_PUGIXMLDOMDOCUMENT_H +#define FIX_PUGIXMLDOMDOCUMENT_H + +#include "DOMDocument.h" +#include "Exceptions.h" +#include "pugixml.hpp" + +namespace FIX +{ + /// XML attribute as represented by pugixml. + class PUGIXML_DOMAttributes : public DOMAttributes + { + public: + PUGIXML_DOMAttributes( pugi::xml_node pNode ) + : m_pNode(pNode) {} + + bool get( const std::string&, std::string& ); + DOMAttributes::map toMap(); + + private: + pugi::xml_node m_pNode; + }; + + /// XML node as represented by pugixml. + class PUGIXML_DOMNode : public DOMNode + { + public: + PUGIXML_DOMNode( pugi::xml_node pNode ) + : m_pNode(pNode) {} + ~PUGIXML_DOMNode() {} + + DOMNodePtr getFirstChildNode(); + DOMNodePtr getNextSiblingNode(); + DOMAttributesPtr getAttributes(); + std::string getName(); + std::string getText(); + + private: + pugi::xml_node m_pNode; + }; + + /// XML document as represented by pugixml. + class PUGIXML_DOMDocument : public DOMDocument + { + public: + PUGIXML_DOMDocument() throw( ConfigError ); + ~PUGIXML_DOMDocument(); + + bool load( std::istream& ); + bool load( const std::string& ); + bool xml( std::ostream& ); + + DOMNodePtr getNode( const std::string& ); + + private: + pugi::xml_document m_pDoc; + }; +} + +#endif diff --git a/linux/include/quickfix/Parser.h b/linux/include/quickfix/Parser.h new file mode 100644 index 000000000..10f07d7e9 --- /dev/null +++ b/linux/include/quickfix/Parser.h @@ -0,0 +1,57 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_PARSER_H +#define FIX_PARSER_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "Exceptions.h" +#include +#include + +namespace FIX +{ +/// Parses %FIX messages off an input stream. +class Parser +{ +public: + Parser() {} + ~Parser() {} + + bool extractLength( int& length, std::string::size_type& pos, + const std::string& buffer ) + throw ( MessageParseError ); + bool readFixMessage( std::string& str ) + throw ( MessageParseError ); + + void addToStream( const char* str, size_t len ) + { m_buffer.append( str, len ); } + void addToStream( const std::string& str ) + { m_buffer.append( str ); } + +private: + std::string m_buffer; +}; +} +#endif //FIX_PARSER_H diff --git a/linux/include/quickfix/PostgreSQLConnection.h b/linux/include/quickfix/PostgreSQLConnection.h new file mode 100644 index 000000000..cf4525ec3 --- /dev/null +++ b/linux/include/quickfix/PostgreSQLConnection.h @@ -0,0 +1,176 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef HAVE_POSTGRESQL +#error PostgreSQLConnection.h included, but HAVE_POSTGRESQL not defined +#endif + +#ifdef HAVE_POSTGRESQL +#ifndef FIX_POSTGRESQLCONNECTION_H +#define FIX_POSTGRESQLCONNECTION_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#pragma comment( lib, "libpq" ) +#endif + +#include +#include "DatabaseConnectionID.h" +#include "DatabaseConnectionPool.h" +#include "Mutex.h" + +namespace FIX +{ +class PostgreSQLQuery +{ +public: + PostgreSQLQuery( const std::string& query ) + : m_result( 0 ), m_query( query ) + {} + + ~PostgreSQLQuery() + { + if( m_result ) + PQclear( m_result ); + } + + bool execute( PGconn* pConnection ) + { + int retry = 0; + + do + { + if( m_result ) PQclear( m_result ); + m_result = PQexec( pConnection, m_query.c_str() ); + m_status = PQresultStatus( m_result ); + if( success() ) return true; + PQreset( pConnection ); + retry++; + } while( retry <= 1 ); + return success(); + } + + bool success() + { + return m_status == PGRES_TUPLES_OK + || m_status == PGRES_COMMAND_OK; + } + + int rows() + { + return PQntuples( m_result ); + } + + char* reason() + { + return PQresultErrorMessage( m_result ); + } + + char* getValue( int row, int column ) + { + return PQgetvalue( m_result, row, column ); + } + + void throwException() throw( IOException ) + { + if( !success() ) + throw IOException( "Query failed [" + m_query + "] " ); + } + +private: + PGresult* m_result; + ExecStatusType m_status; + std::string m_query; +}; + +class PostgreSQLConnection +{ +public: + PostgreSQLConnection + ( const DatabaseConnectionID& id ) + : m_connectionID( id ) + { + connect(); + } + + PostgreSQLConnection + ( const std::string& database, const std::string& user, + const std::string& password, const std::string& host, short port ) + : m_connectionID( database, user, password, host, port ) + { + connect(); + } + + ~PostgreSQLConnection() + { + if( m_pConnection ) + PQfinish( m_pConnection ); + } + + const DatabaseConnectionID& connectionID() + { + return m_connectionID; + } + + bool connected() + { + Locker locker( m_mutex ); + return PQstatus( m_pConnection ) == CONNECTION_OK; + } + + bool reconnect() + { + Locker locker( m_mutex ); + PQreset( m_pConnection ); + return connected(); + } + + bool execute( PostgreSQLQuery& pQuery ) + { + Locker locker( m_mutex ); + return pQuery.execute( m_pConnection ); + } + +private: + void connect() + { + short port = m_connectionID.getPort(); + m_pConnection = PQsetdbLogin + ( m_connectionID.getHost().c_str(), port == 0 ? "" : IntConvertor::convert( port ).c_str(), + "", "", m_connectionID.getDatabase().c_str(), m_connectionID.getUser().c_str(), m_connectionID.getPassword().c_str() ); + + if( !connected() ) + throw ConfigError( "Unable to connect to database" ); + } + + PGconn* m_pConnection; + DatabaseConnectionID m_connectionID; + Mutex m_mutex; +}; + +typedef DatabaseConnectionPool + PostgreSQLConnectionPool; +typedef std::auto_ptr< PostgreSQLConnectionPool > + PostgreSQLConnectionPoolPtr; +} + +#endif //FIX_POSTGRESQLCONNECTION_H +#endif //HAVE_POSTGRESQL diff --git a/linux/include/quickfix/PostgreSQLLog.h b/linux/include/quickfix/PostgreSQLLog.h new file mode 100644 index 000000000..5a60568a4 --- /dev/null +++ b/linux/include/quickfix/PostgreSQLLog.h @@ -0,0 +1,144 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef HAVE_POSTGRESQL +#error PostgreSQLLog.h included, but HAVE_POSTGRESQL not defined +#endif + +#ifdef HAVE_POSTGRESQL +#ifndef FIX_POSTGRESQLLOG_H +#define FIX_POSTGRESQLLOG_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "Log.h" +#include "SessionSettings.h" +#include "PostgreSQLConnection.h" +#include +#include + +namespace FIX +{ +/// PostgreSQL based implementation of Log. +class PostgreSQLLog : public Log +{ +public: + PostgreSQLLog( const SessionID& s, const DatabaseConnectionID& d, PostgreSQLConnectionPool* p ); + PostgreSQLLog( const DatabaseConnectionID& d, PostgreSQLConnectionPool* p ); + PostgreSQLLog( const SessionID& s, const std::string& database, const std::string& user, + const std::string& password, const std::string& host, short port ); + PostgreSQLLog( const std::string& database, const std::string& user, + const std::string& password, const std::string& host, short port ); + + ~PostgreSQLLog(); + + void clear(); + void backup(); + void setIncomingTable( const std::string& incomingTable ) + { m_incomingTable = incomingTable; } + void setOutgoingTable( const std::string& outgoingTable ) + { m_outgoingTable = outgoingTable; } + void setEventTable( const std::string& eventTable ) + { m_eventTable = eventTable; } + + void onIncoming( const std::string& value ) + { insert( m_incomingTable, value ); } + void onOutgoing( const std::string& value ) + { insert( m_outgoingTable, value ); } + void onEvent( const std::string& value ) + { insert( m_eventTable, value ); } + +private: + void init(); + void insert( const std::string& table, const std::string value ); + + std::string m_incomingTable; + std::string m_outgoingTable; + std::string m_eventTable; + PostgreSQLConnection* m_pConnection; + PostgreSQLConnectionPool* m_pConnectionPool; + SessionID* m_pSessionID; +}; + +/// Creates a MySQL based implementation of Log. +class PostgreSQLLogFactory : public LogFactory +{ +public: + static const std::string DEFAULT_DATABASE; + static const std::string DEFAULT_USER; + static const std::string DEFAULT_PASSWORD; + static const std::string DEFAULT_HOST; + static const short DEFAULT_PORT; + + PostgreSQLLogFactory( const SessionSettings& settings ) +: m_settings( settings ), m_useSettings( true ) + { + bool poolConnections = false; + try { poolConnections = settings.get().getBool(POSTGRESQL_LOG_USECONNECTIONPOOL); } + catch( ConfigError& ) {} + + m_connectionPoolPtr = PostgreSQLConnectionPoolPtr + ( new PostgreSQLConnectionPool(poolConnections) ); + } + + PostgreSQLLogFactory( const std::string& database, const std::string& user, + const std::string& password, const std::string& host, + short port ) +: m_database( database ), m_user( user ), m_password( password ), m_host( host ), m_port( port ), + m_useSettings( false ) + { + m_connectionPoolPtr = PostgreSQLConnectionPoolPtr + ( new PostgreSQLConnectionPool(false) ); + } + + PostgreSQLLogFactory() +: m_database( DEFAULT_DATABASE ), m_user( DEFAULT_USER ), m_password( DEFAULT_PASSWORD ), + m_host( DEFAULT_HOST ), m_port( DEFAULT_PORT ), m_useSettings( false ) + { + m_connectionPoolPtr = PostgreSQLConnectionPoolPtr + ( new PostgreSQLConnectionPool(false) ); + } + + Log* create(); + Log* create( const SessionID& ); + void destroy( Log* ); +private: + void init( const Dictionary& settings, std::string& database, + std::string& user, std::string& password, + std::string& host, short& port ); + + void initLog( const Dictionary& settings, PostgreSQLLog& log ); + + PostgreSQLConnectionPoolPtr m_connectionPoolPtr; + SessionSettings m_settings; + std::string m_database; + std::string m_user; + std::string m_password; + std::string m_host; + short m_port; + bool m_useSettings; +}; +} + +#endif //FIX_POSTGRESQLLOG_H +#endif //HAVE_POSTGRESQL diff --git a/linux/include/quickfix/PostgreSQLStore.h b/linux/include/quickfix/PostgreSQLStore.h new file mode 100644 index 000000000..de436048e --- /dev/null +++ b/linux/include/quickfix/PostgreSQLStore.h @@ -0,0 +1,141 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef HAVE_POSTGRESQL +#error PostgreSQLStore.h included, but HAVE_POSTGRESQL not defined +#endif + +#ifdef HAVE_POSTGRESQL +#ifndef FIX_POSTGRESQLSTORE_H +#define FIX_POSTGRESQLSTORE_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "MessageStore.h" +#include "SessionSettings.h" +#include "PostgreSQLConnection.h" +#include +#include + +namespace FIX +{ +/// Creates a PostgreSQL based implementation of MessageStore. +class PostgreSQLStoreFactory : public MessageStoreFactory +{ +public: + static const std::string DEFAULT_DATABASE; + static const std::string DEFAULT_USER; + static const std::string DEFAULT_PASSWORD; + static const std::string DEFAULT_HOST; + static const short DEFAULT_PORT; + + PostgreSQLStoreFactory( const SessionSettings& settings ) +: m_settings( settings ), m_useSettings( true ), m_useDictionary( false ) + { + bool poolConnections = false; + try { poolConnections = settings.get().getBool(POSTGRESQL_STORE_USECONNECTIONPOOL); } + catch( ConfigError& ) {} + + m_connectionPoolPtr = PostgreSQLConnectionPoolPtr + ( new PostgreSQLConnectionPool(poolConnections) ); + } + + PostgreSQLStoreFactory( const Dictionary& dictionary ) +: m_dictionary( dictionary ), m_useSettings( false ), m_useDictionary( true ) + { + m_connectionPoolPtr = PostgreSQLConnectionPoolPtr + ( new PostgreSQLConnectionPool(false) ); + } + + PostgreSQLStoreFactory( const std::string& database, const std::string& user, + const std::string& password, const std::string& host, + short port ) +: m_database( database ), m_user( user ), m_password( password ), m_host( host ), m_port( port ), + m_useSettings( false ), m_useDictionary( false ) + { + m_connectionPoolPtr = PostgreSQLConnectionPoolPtr + ( new PostgreSQLConnectionPool(false) ); + } + + PostgreSQLStoreFactory() +: m_database( DEFAULT_DATABASE ), m_user( DEFAULT_USER ), m_password( DEFAULT_PASSWORD ), + m_host( DEFAULT_HOST ), m_port( DEFAULT_PORT ), m_useSettings( false ), m_useDictionary( false ) + { + m_connectionPoolPtr = PostgreSQLConnectionPoolPtr + ( new PostgreSQLConnectionPool(false) ); + } + + MessageStore* create( const SessionID& ); + void destroy( MessageStore* ); +private: + MessageStore* create( const SessionID& s, const Dictionary& ); + + PostgreSQLConnectionPoolPtr m_connectionPoolPtr; + SessionSettings m_settings; + Dictionary m_dictionary; + std::string m_database; + std::string m_user; + std::string m_password; + std::string m_host; + short m_port; + bool m_useSettings; + bool m_useDictionary; +}; +/*! @} */ + +/// PostgreSQL based implementation of MessageStore. +class PostgreSQLStore : public MessageStore +{ +public: + PostgreSQLStore( const SessionID& s, const DatabaseConnectionID& d, PostgreSQLConnectionPool* p ); + PostgreSQLStore( const SessionID& s, const std::string& database, const std::string& user, + const std::string& password, const std::string& host, short port ); + ~PostgreSQLStore(); + + bool set( int, const std::string& ) throw ( IOException ); + void get( int, int, std::vector < std::string > & ) const throw ( IOException ); + + int getNextSenderMsgSeqNum() const throw ( IOException ); + int getNextTargetMsgSeqNum() const throw ( IOException ); + void setNextSenderMsgSeqNum( int value ) throw ( IOException ); + void setNextTargetMsgSeqNum( int value ) throw ( IOException ); + void incrNextSenderMsgSeqNum() throw ( IOException ); + void incrNextTargetMsgSeqNum() throw ( IOException ); + + UtcTimeStamp getCreationTime() const throw ( IOException ); + + void reset() throw ( IOException ); + void refresh() throw ( IOException ); + +private: + void populateCache(); + + MemoryStore m_cache; + PostgreSQLConnection* m_pConnection; + PostgreSQLConnectionPool* m_pConnectionPool; + SessionID m_sessionID; +}; +} + +#endif //FIX_POSTGRESQLSTORE_H +#endif //HAVE_POSTGRESQL diff --git a/linux/include/quickfix/Queue.h b/linux/include/quickfix/Queue.h new file mode 100644 index 000000000..0605c5a92 --- /dev/null +++ b/linux/include/quickfix/Queue.h @@ -0,0 +1,75 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_QUEUE_H +#define FIX_QUEUE_H + +#include "Utility.h" +#include "Event.h" +#include "Mutex.h" +#include + +namespace FIX +{ +/// A thread safe monitored queue +template < typename T > class Queue +{ +public: + void push( const T& value ) + { + Locker locker( m_mutex ); + m_queue.push( value ); + signal(); + } + + bool pop( T& value ) + { + Locker locker( m_mutex ); + if ( !m_queue.size() ) return false; + value = m_queue.front(); + m_queue.pop(); + return true; + } + + int size() + { + Locker locker( m_mutex ); + return m_queue.size(); + } + + void wait( double s ) + { + m_event.wait( s ); + } + + void signal() + { + m_event.signal(); + } + +private: + Event m_event; + Mutex m_mutex; + std::queue < T > m_queue; +}; +} + +#endif diff --git a/linux/include/quickfix/Responder.h b/linux/include/quickfix/Responder.h new file mode 100644 index 000000000..8a3914547 --- /dev/null +++ b/linux/include/quickfix/Responder.h @@ -0,0 +1,43 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_RESPONDER_H +#define FIX_RESPONDER_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include + +namespace FIX +{ + /// Interface implements sending on and disconnecting a transport. + class Responder + { + public: + virtual ~Responder() {} + virtual bool send( const std::string& ) = 0; + virtual void disconnect() = 0; + }; +} + +#endif diff --git a/linux/include/quickfix/Session.h b/linux/include/quickfix/Session.h new file mode 100644 index 000000000..ac913d5d9 --- /dev/null +++ b/linux/include/quickfix/Session.h @@ -0,0 +1,335 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_SESSION_H +#define FIX_SESSION_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "SessionState.h" +#include "TimeRange.h" +#include "SessionID.h" +#include "Responder.h" +#include "Fields.h" +#include "DataDictionaryProvider.h" +#include "Application.h" +#include "Mutex.h" +#include "Log.h" +#include +#include +#include + +namespace FIX +{ +/// Maintains the state and implements the logic of a %FIX %session. +class Session +{ +public: + Session( Application&, MessageStoreFactory&, + const SessionID&, + const DataDictionaryProvider&, + const TimeRange&, + int heartBtInt, LogFactory* pLogFactory ); + virtual ~Session(); + + void logon() + { m_state.enabled( true ); m_state.logoutReason( "" ); } + void logout( const std::string& reason = "" ) + { m_state.enabled( false ); m_state.logoutReason( reason ); } + bool isEnabled() + { return m_state.enabled(); } + + bool sentLogon() { return m_state.sentLogon(); } + bool sentLogout() { return m_state.sentLogout(); } + bool receivedLogon() { return m_state.receivedLogon(); } + bool isLoggedOn() { return receivedLogon() && sentLogon(); } + void reset() throw( IOException ) + { generateLogout(); disconnect(); m_state.reset(); } + void refresh() throw( IOException ) + { m_state.refresh(); } + void setNextSenderMsgSeqNum( int num ) throw( IOException ) + { m_state.setNextSenderMsgSeqNum( num ); } + void setNextTargetMsgSeqNum( int num ) throw( IOException ) + { m_state.setNextTargetMsgSeqNum( num ); } + + const SessionID& getSessionID() const + { return m_sessionID; } + void setDataDictionaryProvider( const DataDictionaryProvider& dataDictionaryProvider ) + { m_dataDictionaryProvider = dataDictionaryProvider; } + const DataDictionaryProvider& getDataDictionaryProvider() const + { return m_dataDictionaryProvider; } + + static bool sendToTarget( Message& message, + const std::string& qualifier = "" ) + throw( SessionNotFound ); + static bool sendToTarget( Message& message, const SessionID& sessionID ) + throw( SessionNotFound ); + static bool sendToTarget( Message&, + const SenderCompID& senderCompID, + const TargetCompID& targetCompID, + const std::string& qualifier = "" ) + throw( SessionNotFound ); + static bool sendToTarget( Message& message, + const std::string& senderCompID, + const std::string& targetCompID, + const std::string& qualifier = "" ) + throw( SessionNotFound ); + + static std::set getSessions(); + static bool doesSessionExist( const SessionID& ); + static Session* lookupSession( const SessionID& ); + static Session* lookupSession( const std::string&, bool reverse = false ); + static bool isSessionRegistered( const SessionID& ); + static Session* registerSession( const SessionID& ); + static void unregisterSession( const SessionID& ); + + static size_t numSessions(); + + bool isSessionTime(const UtcTimeStamp& time) + { return m_sessionTime.isInRange(time); } + bool isLogonTime(const UtcTimeStamp& time) + { return m_logonTime.isInRange(time); } + bool isInitiator() + { return m_state.initiate(); } + bool isAcceptor() + { return !m_state.initiate(); } + + const TimeRange& getLogonTime() + { return m_logonTime; } + void setLogonTime( const TimeRange& value ) + { m_logonTime = value; } + + const std::string& getSenderDefaultApplVerID() + { return m_senderDefaultApplVerID; } + void setSenderDefaultApplVerID( const std::string& senderDefaultApplVerID ) + { m_senderDefaultApplVerID = senderDefaultApplVerID; } + + const std::string& getTargetDefaultApplVerID() + { return m_targetDefaultApplVerID; } + void setTargetDefaultApplVerID( const std::string& targetDefaultApplVerID ) + { m_targetDefaultApplVerID = targetDefaultApplVerID; } + + bool getSendRedundantResendRequests() + { return m_sendRedundantResendRequests; } + void setSendRedundantResendRequests ( bool value ) + { m_sendRedundantResendRequests = value; } + + bool getCheckCompId() + { return m_checkCompId; } + void setCheckCompId ( bool value ) + { m_checkCompId = value; } + + bool getCheckLatency() + { return m_checkLatency; } + void setCheckLatency ( bool value ) + { m_checkLatency = value; } + + int getMaxLatency() + { return m_maxLatency; } + void setMaxLatency ( int value ) + { m_maxLatency = value; } + + int getLogonTimeout() + { return m_state.logonTimeout(); } + void setLogonTimeout ( int value ) + { m_state.logonTimeout( value ); } + + int getLogoutTimeout() + { return m_state.logoutTimeout(); } + void setLogoutTimeout ( int value ) + { m_state.logoutTimeout( value ); } + + bool getResetOnLogon() + { return m_resetOnLogon; } + void setResetOnLogon ( bool value ) + { m_resetOnLogon = value; } + + bool getResetOnLogout() + { return m_resetOnLogout; } + void setResetOnLogout ( bool value ) + { m_resetOnLogout = value; } + + bool getResetOnDisconnect() + { return m_resetOnDisconnect; } + void setResetOnDisconnect( bool value ) + { m_resetOnDisconnect = value; } + + bool getRefreshOnLogon() + { return m_refreshOnLogon; } + void setRefreshOnLogon( bool value ) + { m_refreshOnLogon = value; } + + bool getMillisecondsInTimeStamp() + { return m_millisecondsInTimeStamp; } + void setMillisecondsInTimeStamp ( bool value ) + { m_millisecondsInTimeStamp = value; } + + bool getPersistMessages() + { return m_persistMessages; } + void setPersistMessages ( bool value ) + { m_persistMessages = value; } + + bool getValidateLengthAndChecksum() + { return m_validateLengthAndChecksum; } + void setValidateLengthAndChecksum ( bool value ) + { m_validateLengthAndChecksum = value; } + + void setResponder( Responder* pR ) + { + if( !checkSessionTime(UtcTimeStamp()) ) + reset(); + m_pResponder = pR; + } + + bool send( Message& ); + void next(); + void next( const UtcTimeStamp& timeStamp ); + void next( const std::string&, const UtcTimeStamp& timeStamp, bool queued = false ); + void next( const Message&, const UtcTimeStamp& timeStamp, bool queued = false ); + void disconnect(); + + int getExpectedSenderNum() { return m_state.getNextSenderMsgSeqNum(); } + int getExpectedTargetNum() { return m_state.getNextTargetMsgSeqNum(); } + + Log* getLog() { return &m_state; } + const MessageStore* getStore() { return &m_state; } + +private: + typedef std::map < SessionID, Session* > Sessions; + typedef std::set < SessionID > SessionIDs; + + static bool addSession( Session& ); + static void removeSession( Session& ); + + bool send( const std::string& ); + bool sendRaw( Message&, int msgSeqNum = 0 ); + bool resend( Message& message ); + void persist( const Message&, const std::string& ) throw ( IOException ); + + void insertSendingTime( Header& ); + void insertOrigSendingTime( Header&, + const UtcTimeStamp& when = UtcTimeStamp () ); + void fill( Header& ); + + bool isGoodTime( const SendingTime& sendingTime ) + { + if ( !m_checkLatency ) return true; + UtcTimeStamp now; + return labs( now - sendingTime ) <= m_maxLatency; + } + bool checkSessionTime( const UtcTimeStamp& timeStamp ) + { + UtcTimeStamp creationTime = m_state.getCreationTime(); + return m_sessionTime.isInSameRange( timeStamp, creationTime ); + } + bool isTargetTooHigh( const MsgSeqNum& msgSeqNum ) + { return msgSeqNum > ( m_state.getNextTargetMsgSeqNum() ); } + bool isTargetTooLow( const MsgSeqNum& msgSeqNum ) + { return msgSeqNum < ( m_state.getNextTargetMsgSeqNum() ); } + bool isCorrectCompID( const SenderCompID& senderCompID, + const TargetCompID& targetCompID ) + { + if( !m_checkCompId ) return true; + + return + m_sessionID.getSenderCompID().getValue() == targetCompID.getValue() + && m_sessionID.getTargetCompID().getValue() == senderCompID.getValue(); + } + bool shouldSendReset(); + + bool validLogonState( const MsgType& msgType ); + void fromCallback( const MsgType& msgType, const Message& msg, + const SessionID& sessionID ); + + void doBadTime( const Message& msg ); + void doBadCompID( const Message& msg ); + bool doPossDup( const Message& msg ); + bool doTargetTooLow( const Message& msg ); + void doTargetTooHigh( const Message& msg ); + void nextQueued( const UtcTimeStamp& timeStamp ); + bool nextQueued( int num, const UtcTimeStamp& timeStamp ); + + void nextLogon( const Message&, const UtcTimeStamp& timeStamp ); + void nextHeartbeat( const Message&, const UtcTimeStamp& timeStamp ); + void nextTestRequest( const Message&, const UtcTimeStamp& timeStamp ); + void nextLogout( const Message&, const UtcTimeStamp& timeStamp ); + void nextReject( const Message&, const UtcTimeStamp& timeStamp ); + void nextSequenceReset( const Message&, const UtcTimeStamp& timeStamp ); + void nextResendRequest( const Message&, const UtcTimeStamp& timeStamp ); + + void generateLogon(); + void generateLogon( const Message& ); + void generateResendRequest( const BeginString&, const MsgSeqNum& ); + void generateSequenceReset( int, int ); + void generateHeartbeat(); + void generateHeartbeat( const Message& ); + void generateTestRequest( const std::string& ); + void generateReject( const Message&, int err, int field = 0 ); + void generateReject( const Message&, const std::string& ); + void generateBusinessReject( const Message&, int err, int field = 0 ); + void generateLogout( const std::string& text = "" ); + + void populateRejectReason( Message&, int field, const std::string& ); + void populateRejectReason( Message&, const std::string& ); + + bool verify( const Message& msg, + bool checkTooHigh = true, bool checkTooLow = true ); + + bool set( int s, const Message& m ); + bool get( int s, Message& m ) const; + + Application& m_application; + SessionID m_sessionID; + TimeRange m_sessionTime; + TimeRange m_logonTime; + + std::string m_senderDefaultApplVerID; + std::string m_targetDefaultApplVerID; + bool m_sendRedundantResendRequests; + bool m_checkCompId; + bool m_checkLatency; + int m_maxLatency; + bool m_resetOnLogon; + bool m_resetOnLogout; + bool m_resetOnDisconnect; + bool m_refreshOnLogon; + bool m_millisecondsInTimeStamp; + bool m_persistMessages; + bool m_validateLengthAndChecksum; + + SessionState m_state; + DataDictionaryProvider m_dataDictionaryProvider; + MessageStoreFactory& m_messageStoreFactory; + LogFactory* m_pLogFactory; + Responder* m_pResponder; + Mutex m_mutex; + + static Sessions s_sessions; + static SessionIDs s_sessionIDs; + static Sessions s_registered; + static Mutex s_mutex; + +}; +} + +#endif //FIX_SESSION_H diff --git a/linux/include/quickfix/SessionFactory.h b/linux/include/quickfix/SessionFactory.h new file mode 100644 index 000000000..1cc0f42b1 --- /dev/null +++ b/linux/include/quickfix/SessionFactory.h @@ -0,0 +1,86 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_SESSIONFACTORY_H +#define FIX_SESSIONFACTORY_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "Log.h" +#include "Exceptions.h" +#include "Dictionary.h" + +namespace FIX +{ +class SessionID; +class Session; +class Application; +class MessageStoreFactory; +class DataDictionaryProvider; + +/** Responsible for creating Session objects. This factory will use + * QuickFIX SessionID, Dictionary settings, MessageStoreFactory, and + * optional LogFactory to create all the required sessions for an + * Application. + */ +class SessionFactory +{ +public: + SessionFactory( Application& application, + MessageStoreFactory& messageStoreFactory, + LogFactory* pLogFactory ) +: m_application( application ), + m_messageStoreFactory( messageStoreFactory ), + m_pLogFactory( pLogFactory ) {} + + ~SessionFactory(); + + Session* create( const SessionID& sessionID, + const Dictionary& settings ) throw( ConfigError ); + void destroy( Session* pSession ); + +private: + typedef std::map < std::string, ptr::shared_ptr > Dictionaries; + + ptr::shared_ptr createDataDictionary(const SessionID& sessionID, + const Dictionary& settings, + const std::string& settingsKey) throw(ConfigError); + + void processFixtDataDictionaries(const SessionID& sessionID, + const Dictionary& settings, + DataDictionaryProvider& provider) throw(ConfigError); + + void processFixDataDictionary(const SessionID& sessionID, + const Dictionary& settings, + DataDictionaryProvider& provider) throw(ConfigError); + + std::string toApplVerID(const std::string& value); + + Application& m_application; + MessageStoreFactory& m_messageStoreFactory; + LogFactory* m_pLogFactory; + Dictionaries m_dictionaries; +}; +} + +#endif diff --git a/linux/include/quickfix/SessionID.h b/linux/include/quickfix/SessionID.h new file mode 100644 index 000000000..cc743243f --- /dev/null +++ b/linux/include/quickfix/SessionID.h @@ -0,0 +1,170 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_SESSIONID_H +#define FIX_SESSIONID_H + +#include "Fields.h" + +namespace FIX +{ +/// Unique session id consists of BeginString, SenderCompID and TargetCompID. +class SessionID +{ +public: + SessionID() + { + toString(m_frozenString); + } + + SessionID( const std::string& beginString, + const std::string& senderCompID, + const std::string& targetCompID, + const std::string& sessionQualifier = "" ) + : m_beginString( BeginString(beginString) ), + m_senderCompID( SenderCompID(senderCompID) ), + m_targetCompID( TargetCompID(targetCompID) ), + m_sessionQualifier( sessionQualifier ), + m_isFIXT(false) + { + toString(m_frozenString); + if( beginString.substr(0, 4) == "FIXT" ) + m_isFIXT = true; + } + + const BeginString& getBeginString() const + { return m_beginString; } + const SenderCompID& getSenderCompID() const + { return m_senderCompID; } + const TargetCompID& getTargetCompID() const + { return m_targetCompID; } + const std::string& getSessionQualifier() const + { return m_sessionQualifier; } + const bool isFIXT() const + { return m_isFIXT; } + + /// Get a string representation of the SessionID + std::string toString() const + { + return m_frozenString; + } + + // Return a reference for a high-performance scenario + const std::string& toStringFrozen() const + { + return m_frozenString; + } + + /// Build from string representation of SessionID + void fromString( const std::string& str ) + { + std::string::size_type first = + str.find_first_of(':'); + std::string::size_type second = + str.find("->"); + std::string::size_type third = + str.find_last_of(':'); + if( first == std::string::npos ) + return; + if( second == std::string::npos ) + return; + m_beginString = str.substr(0, first); + m_senderCompID = str.substr(first+1, second - first - 1); + if( first == third ) + { + m_targetCompID = str.substr(second+2); + m_sessionQualifier = ""; + } + else + { + m_targetCompID = str.substr(second+2, third - second - 2); + m_sessionQualifier = str.substr(third+1); + } + toString(m_frozenString); + } + + /// Get a string representation without making a copy + std::string& toString( std::string& str ) const + { + str = getBeginString().getValue() + ":" + + getSenderCompID().getValue() + "->" + + getTargetCompID().getValue(); + if( m_sessionQualifier.size() ) + str += ":" + m_sessionQualifier; + return str; + } + + friend bool operator<( const SessionID&, const SessionID& ); + friend bool operator==( const SessionID&, const SessionID& ); + friend bool operator!=( const SessionID&, const SessionID& ); + friend std::ostream& operator<<( std::ostream&, const SessionID& ); + friend std::ostream& operator>>( std::ostream&, const SessionID& ); + + SessionID operator~() const + { + return SessionID( m_beginString, SenderCompID( m_targetCompID ), + TargetCompID( m_senderCompID ), m_sessionQualifier ); + } + +private: + BeginString m_beginString; + SenderCompID m_senderCompID; + TargetCompID m_targetCompID; + std::string m_sessionQualifier; + bool m_isFIXT; + std::string m_frozenString; +}; +/*! @} */ + +inline bool operator<( const SessionID& lhs, const SessionID& rhs ) +{ + return lhs.toStringFrozen() < rhs.toStringFrozen(); +} + +inline bool operator==( const SessionID& lhs, const SessionID& rhs ) +{ + return lhs.toStringFrozen() == rhs.toStringFrozen(); +} + +inline bool operator!=( const SessionID& lhs, const SessionID& rhs ) +{ + return !( lhs == rhs ); +} + +inline std::ostream& operator<< +( std::ostream& stream, const SessionID& sessionID ) +{ + stream << sessionID.toStringFrozen(); + return stream; +} + +inline std::istream& operator>> +( std::istream& stream, SessionID& sessionID ) +{ + std::string str; + stream >> str; + sessionID.fromString( str ); + return stream; +} + +} +#endif //FIX_SESSIONID_H + diff --git a/linux/include/quickfix/SessionSettings.h b/linux/include/quickfix/SessionSettings.h new file mode 100644 index 000000000..30aae387a --- /dev/null +++ b/linux/include/quickfix/SessionSettings.h @@ -0,0 +1,171 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_SESSIONSETTINGS_H +#define FIX_SESSIONSETTINGS_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "Dictionary.h" +#include "SessionID.h" +#include "Exceptions.h" +#include +#include + +namespace FIX +{ +const char BEGINSTRING[] = "BeginString"; +const char SENDERCOMPID[] = "SenderCompID"; +const char TARGETCOMPID[] = "TargetCompID"; +const char SESSION_QUALIFIER[] = "SessionQualifier"; +const char DEFAULT_APPLVERID[] = "DefaultApplVerID"; +const char CONNECTION_TYPE[] = "ConnectionType"; +const char USE_DATA_DICTIONARY[] = "UseDataDictionary"; +const char SEND_RESETSEQNUMFLAG[] = "SendResetSeqNumFlag"; +const char SEND_REDUNDANT_RESENDREQUESTS[] = "SendRedundantResendRequests"; +const char DATA_DICTIONARY[] = "DataDictionary"; +const char TRANSPORT_DATA_DICTIONARY[] = "TransportDataDictionary"; +const char APP_DATA_DICTIONARY[] = "AppDataDictionary"; +const char USE_LOCAL_TIME[] = "UseLocalTime"; +const char START_TIME[] = "StartTime"; +const char END_TIME[] = "EndTime"; +const char START_DAY[] = "StartDay"; +const char END_DAY[] = "EndDay"; +const char LOGON_TIME[] = "LogonTime"; +const char LOGOUT_TIME[] = "LogoutTime"; +const char LOGON_DAY[] = "LogonDay"; +const char LOGOUT_DAY[] = "LogoutDay"; +const char CHECK_COMPID[] = "CheckCompID"; +const char CHECK_LATENCY[] = "CheckLatency"; +const char MAX_LATENCY[] = "MaxLatency"; +const char HEARTBTINT[] = "HeartBtInt"; +const char SOCKET_ACCEPT_PORT[] = "SocketAcceptPort"; +const char SOCKET_REUSE_ADDRESS[] = "SocketReuseAddress"; +const char SOCKET_CONNECT_HOST[] = "SocketConnectHost"; +const char SOCKET_CONNECT_PORT[] = "SocketConnectPort"; +const char SOCKET_NODELAY[] = "SocketNodelay"; +const char SOCKET_SEND_BUFFER_SIZE[] = "SendBufferSize"; +const char SOCKET_RECEIVE_BUFFER_SIZE[] = "ReceiveBufferSize"; +const char RECONNECT_INTERVAL[] = "ReconnectInterval"; +const char VALIDATE_LENGTH_AND_CHECKSUM[] = "ValidateLengthAndChecksum"; +const char VALIDATE_FIELDS_OUT_OF_ORDER[] = "ValidateFieldsOutOfOrder"; +const char VALIDATE_FIELDS_HAVE_VALUES[] = "ValidateFieldsHaveValues"; +const char VALIDATE_USER_DEFINED_FIELDS[] = "ValidateUserDefinedFields"; +const char LOGON_TIMEOUT[] = "LogonTimeout"; +const char LOGOUT_TIMEOUT[] = "LogoutTimeout"; +const char FILE_STORE_PATH[] = "FileStorePath"; +const char MYSQL_STORE_USECONNECTIONPOOL[] = "MySQLStoreUseConnectionPool"; +const char MYSQL_STORE_DATABASE[] = "MySQLStoreDatabase"; +const char MYSQL_STORE_USER[] = "MySQLStoreUser"; +const char MYSQL_STORE_PASSWORD[] = "MySQLStorePassword"; +const char MYSQL_STORE_HOST[] = "MySQLStoreHost"; +const char MYSQL_STORE_PORT[] = "MySQLStorePort"; +const char POSTGRESQL_STORE_USECONNECTIONPOOL[] = "PostgreSQLStoreUseConnectionPool"; +const char POSTGRESQL_STORE_DATABASE[] = "PostgreSQLStoreDatabase"; +const char POSTGRESQL_STORE_USER[] = "PostgreSQLStoreUser"; +const char POSTGRESQL_STORE_PASSWORD[] = "PostgreSQLStorePassword"; +const char POSTGRESQL_STORE_HOST[] = "PostgreSQLStoreHost"; +const char POSTGRESQL_STORE_PORT[] = "PostgreSQLStorePort"; +const char ODBC_STORE_USER[] = "OdbcStoreUser"; +const char ODBC_STORE_PASSWORD[] = "OdbcStorePassword"; +const char ODBC_STORE_CONNECTION_STRING[] = "OdbcStoreConnectionString"; +const char FILE_LOG_PATH[] = "FileLogPath"; +const char FILE_LOG_BACKUP_PATH[] = "FileLogBackupPath"; +const char SCREEN_LOG_SHOW_INCOMING[] = "ScreenLogShowIncoming"; +const char SCREEN_LOG_SHOW_OUTGOING[] = "ScreenLogShowOutgoing"; +const char SCREEN_LOG_SHOW_EVENTS[] = "ScreenLogShowEvents"; +const char MYSQL_LOG_USECONNECTIONPOOL[] = "MySQLLogUseConnectionPool"; +const char MYSQL_LOG_DATABASE[] = "MySQLLogDatabase"; +const char MYSQL_LOG_USER[] = "MySQLLogUser"; +const char MYSQL_LOG_PASSWORD[] = "MySQLLogPassword"; +const char MYSQL_LOG_HOST[] = "MySQLLogHost"; +const char MYSQL_LOG_PORT[] = "MySQLLogPort"; +const char MYSQL_LOG_INCOMING_TABLE[] = "MySQLLogIncomingTable"; +const char MYSQL_LOG_OUTGOING_TABLE[] = "MySQLLogOutgoingTable"; +const char MYSQL_LOG_EVENT_TABLE[] = "MySQLLogEventTable"; +const char POSTGRESQL_LOG_USECONNECTIONPOOL[] = "PostgreSQLLogUseConnectionPool"; +const char POSTGRESQL_LOG_DATABASE[] = "PostgreSQLLogDatabase"; +const char POSTGRESQL_LOG_USER[] = "PostgreSQLLogUser"; +const char POSTGRESQL_LOG_PASSWORD[] = "PostgreSQLLogPassword"; +const char POSTGRESQL_LOG_HOST[] = "PostgreSQLLogHost"; +const char POSTGRESQL_LOG_PORT[] = "PostgreSQLLogPort"; +const char POSTGRESQL_LOG_INCOMING_TABLE[] = "PostgreSQLLogIncomingTable"; +const char POSTGRESQL_LOG_OUTGOING_TABLE[] = "PostgreSQLLogOutgoingTable"; +const char POSTGRESQL_LOG_EVENT_TABLE[] = "PostgreSQLLogEventTable"; +const char ODBC_LOG_USER[] = "OdbcLogUser"; +const char ODBC_LOG_PASSWORD[] = "OdbcLogPassword"; +const char ODBC_LOG_CONNECTION_STRING[] = "OdbcLogConnectionString"; +const char ODBC_LOG_INCOMING_TABLE[] = "OdbcLogIncomingTable"; +const char ODBC_LOG_OUTGOING_TABLE[] = "OdbcLogOutgoingTable"; +const char ODBC_LOG_EVENT_TABLE[] = "OdbcLogEventTable"; +const char RESET_ON_LOGON[] = "ResetOnLogon"; +const char RESET_ON_LOGOUT[] = "ResetOnLogout"; +const char RESET_ON_DISCONNECT[] = "ResetOnDisconnect"; +const char REFRESH_ON_LOGON[] = "RefreshOnLogon"; +const char MILLISECONDS_IN_TIMESTAMP[] = "MillisecondsInTimeStamp"; +const char HTTP_ACCEPT_PORT[] = "HttpAcceptPort"; +const char PERSIST_MESSAGES[] = "PersistMessages"; + +/// Container for setting dictionaries mapped to sessions. +class SessionSettings +{ +public: + SessionSettings() {} + SessionSettings( std::istream& stream ) throw( ConfigError ); + SessionSettings( const std::string& file ) throw( ConfigError ); + + /// Check if session setings are present + const bool has( const SessionID& ) const; + + /// Get a dictionary for a session. + const Dictionary& get( const SessionID& ) const throw( ConfigError ); + /// Set a dictionary for a session + void set( const SessionID&, Dictionary ) throw( ConfigError ); + + /// Get global default settings + const Dictionary& get() const { return m_defaults; } + /// Set global default settings + void set( const Dictionary& defaults ) throw( ConfigError ); + + /// Number of session settings + size_t size() const { return m_settings.size(); } + + typedef std::map < SessionID, Dictionary > Dictionaries; + std::set < SessionID > getSessions() const; + +private: + void validate( const Dictionary& ) const throw( ConfigError ); + + Dictionaries m_settings; + Dictionary m_defaults; + + friend std::ostream& operator<<( std::ostream&, const SessionSettings& ); +}; +/*! @} */ + +std::istream& operator>>( std::istream&, SessionSettings& ) +throw( ConfigError ); +std::ostream& operator<<( std::ostream&, const SessionSettings& ); +} + +#endif //FIX_SESSIONSETTINGS_H diff --git a/linux/include/quickfix/SessionState.h b/linux/include/quickfix/SessionState.h new file mode 100644 index 000000000..d3c049b15 --- /dev/null +++ b/linux/include/quickfix/SessionState.h @@ -0,0 +1,231 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_SESSIONSTATE_H +#define FIX_SESSIONSTATE_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "FieldTypes.h" +#include "MessageStore.h" +#include "Log.h" +#include "Mutex.h" + +namespace FIX +{ +/// Maintains all of state for the Session class. +class SessionState : public MessageStore, public Log +{ + typedef std::map < int, Message > Messages; + +public: + SessionState() +: m_enabled( true ), m_receivedLogon( false ), + m_sentLogout( false ), m_sentLogon( false ), + m_sentReset( false ), m_receivedReset( false ), + m_initiate( false ), m_logonTimeout( 10 ), + m_logoutTimeout( 2 ), m_testRequest( 0 ), + m_pStore( 0 ), m_pLog( 0 ) {} + + bool enabled() const { return m_enabled; } + void enabled( bool value ) { m_enabled = value; } + + bool receivedLogon() const { return m_receivedLogon; } + void receivedLogon( bool value ) { m_receivedLogon = value; } + + bool sentLogout() const { return m_sentLogout; } + void sentLogout( bool value ) { m_sentLogout = value; } + + bool sentLogon() const { return m_sentLogon; } + void sentLogon( bool value ) { m_sentLogon = value; } + + bool receivedReset() const { return m_receivedReset; } + void receivedReset( bool value ) { m_receivedReset = value; } + + bool sentReset() const { return m_sentReset; } + void sentReset( bool value ) { m_sentReset = value; } + + bool initiate() const { return m_initiate; } + void initiate( bool value ) { m_initiate = value; } + + int logonTimeout() const { return m_logonTimeout; } + void logonTimeout( int value ) { m_logonTimeout = value; } + + int logoutTimeout() const { return m_logoutTimeout; } + void logoutTimeout( int value ) { m_logoutTimeout = value; } + + int testRequest() const { return m_testRequest; } + void testRequest( int value ) { m_testRequest = value; } + + bool resendRequested() const + { return !(m_resendRange.first == 0 && m_resendRange.second == 0); } + + typedef std::pair ResendRange; + + ResendRange resendRange () const { return m_resendRange; } + void resendRange (int begin, int end) + { m_resendRange = std::make_pair( begin, end ); } + + MessageStore* store() { return m_pStore; } + void store( MessageStore* pValue ) { m_pStore = pValue; } + Log* log() { return m_pLog ? m_pLog : &m_nullLog; } + void log( Log* pValue ) { m_pLog = pValue; } + + void heartBtInt( const HeartBtInt& value ) + { m_heartBtInt = value; } + HeartBtInt& heartBtInt() + { return m_heartBtInt; } + const HeartBtInt& heartBtInt() const + { return m_heartBtInt; } + + void lastSentTime( const UtcTimeStamp& value ) + { m_lastSentTime = value; } + UtcTimeStamp& lastSentTime() + { return m_lastSentTime; } + const UtcTimeStamp& lastSentTime() const + { return m_lastSentTime; } + + void lastReceivedTime( const UtcTimeStamp& value ) + { m_lastReceivedTime = value; } + UtcTimeStamp& lastReceivedTime() + { return m_lastReceivedTime; } + const UtcTimeStamp& lastReceivedTime() const + { return m_lastReceivedTime; } + + bool shouldSendLogon() const { return initiate() && !sentLogon(); } + bool alreadySentLogon() const { return initiate() && sentLogon(); } + bool logonTimedOut() const + { + UtcTimeStamp now; + return now - lastReceivedTime() >= logonTimeout(); + } + bool logoutTimedOut() const + { + UtcTimeStamp now; + return sentLogout() && ( ( now - lastSentTime() ) >= logoutTimeout() ); + } + bool withinHeartBeat() const + { + UtcTimeStamp now; + return ( ( now - lastSentTime() ) < heartBtInt() ) && + ( ( now - lastReceivedTime() ) < heartBtInt() ); + } + bool timedOut() const + { + UtcTimeStamp now; + return ( now - lastReceivedTime() ) >= ( 2.4 * ( double ) heartBtInt() ); + } + bool needHeartbeat() const + { + UtcTimeStamp now; + return ( ( now - lastSentTime() ) >= heartBtInt() ) && !testRequest(); + } + bool needTestRequest() const + { + UtcTimeStamp now; + return ( now - lastReceivedTime() ) >= + ( ( 1.2 * ( ( double ) testRequest() + 1 ) ) * ( double ) heartBtInt() ); + } + + std::string logoutReason() const + { Locker l( m_mutex ); return m_logoutReason; } + void logoutReason( const std::string& value ) + { Locker l( m_mutex ); m_logoutReason = value; } + + void queue( int msgSeqNum, const Message& message ) + { Locker l( m_mutex ); m_queue[ msgSeqNum ] = message; } + bool retrieve( int msgSeqNum, Message& message ) + { + Locker l( m_mutex ); + Messages::iterator i = m_queue.find( msgSeqNum ); + if ( i != m_queue.end() ) + { + message = i->second; + m_queue.erase( i ); + return true; + } + return false; + } + void clearQueue() + { Locker l( m_mutex ); m_queue.clear(); } + + bool set( int s, const std::string& m ) throw ( IOException ) + { Locker l( m_mutex ); return m_pStore->set( s, m ); } + void get( int b, int e, std::vector < std::string > &m ) const + throw ( IOException ) + { Locker l( m_mutex ); m_pStore->get( b, e, m ); } + int getNextSenderMsgSeqNum() const throw ( IOException ) + { Locker l( m_mutex ); return m_pStore->getNextSenderMsgSeqNum(); } + int getNextTargetMsgSeqNum() const throw ( IOException ) + { Locker l( m_mutex ); return m_pStore->getNextTargetMsgSeqNum(); } + void setNextSenderMsgSeqNum( int n ) throw ( IOException ) + { Locker l( m_mutex ); m_pStore->setNextSenderMsgSeqNum( n ); } + void setNextTargetMsgSeqNum( int n ) throw ( IOException ) + { Locker l( m_mutex ); m_pStore->setNextTargetMsgSeqNum( n ); } + void incrNextSenderMsgSeqNum() throw ( IOException ) + { Locker l( m_mutex ); m_pStore->incrNextSenderMsgSeqNum(); } + void incrNextTargetMsgSeqNum() throw ( IOException ) + { Locker l( m_mutex ); m_pStore->incrNextTargetMsgSeqNum(); } + UtcTimeStamp getCreationTime() const throw ( IOException ) + { Locker l( m_mutex ); return m_pStore->getCreationTime(); } + void reset() throw ( IOException ) + { Locker l( m_mutex ); m_pStore->reset(); } + void refresh() throw ( IOException ) + { Locker l( m_mutex ); m_pStore->refresh(); } + + void clear() + { if ( !m_pLog ) return ; Locker l( m_mutex ); m_pLog->clear(); } + void backup() + { if ( !m_pLog ) return ; Locker l( m_mutex ); m_pLog->backup(); } + void onIncoming( const std::string& string ) + { if ( !m_pLog ) return ; Locker l( m_mutex ); m_pLog->onIncoming( string ); } + void onOutgoing( const std::string& string ) + { if ( !m_pLog ) return ; Locker l( m_mutex ); m_pLog->onOutgoing( string ); } + void onEvent( const std::string& string ) + { if ( !m_pLog ) return ; Locker l( m_mutex ); m_pLog->onEvent( string ); } + +private: + bool m_enabled; + bool m_receivedLogon; + bool m_sentLogout; + bool m_sentLogon; + bool m_sentReset; + bool m_receivedReset; + bool m_initiate; + int m_logonTimeout; + int m_logoutTimeout; + int m_testRequest; + ResendRange m_resendRange; + HeartBtInt m_heartBtInt; + UtcTimeStamp m_lastSentTime; + UtcTimeStamp m_lastReceivedTime; + std::string m_logoutReason; + Messages m_queue; + MessageStore* m_pStore; + Log* m_pLog; + NullLog m_nullLog; + mutable Mutex m_mutex; +}; +} + +#endif //FIX_SESSIONSTATE_H diff --git a/linux/include/quickfix/Settings.h b/linux/include/quickfix/Settings.h new file mode 100644 index 000000000..54123e681 --- /dev/null +++ b/linux/include/quickfix/Settings.h @@ -0,0 +1,53 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_SETTINGS_H +#define FIX_SETTINGS_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "Dictionary.h" +#include +#include +#include +#include + +namespace FIX +{ +/// Internal representation of QuickFIX configuration settings. +class Settings +{ +public: + typedef std::vector < Dictionary > Sections; + + Sections get( const std::string& name ) const; + + friend std::istream& operator>>( std::istream&, Settings& ); +private: + Sections m_sections; +}; + +std::istream& operator>>( std::istream&, Settings& ); +} + +#endif //FIX_SETTINGS_H diff --git a/linux/include/quickfix/SharedArray.h b/linux/include/quickfix/SharedArray.h new file mode 100644 index 000000000..926a2bd4f --- /dev/null +++ b/linux/include/quickfix/SharedArray.h @@ -0,0 +1,150 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef SHARED_ARRAY +#define SHARED_ARRAY + +#include "AtomicCount.h" + +namespace FIX +{ + /// Shared array with atomic reference count + template + class shared_array + { + public: + shared_array() + : m_size(0) + , m_buffer(0) + {} + + shared_array(const shared_array& rhs) + : m_size(rhs.m_size) + , m_buffer(rhs.m_buffer) + { + rhs.attach(); + } + + ~shared_array() + { release(); } + + shared_array& operator=(const shared_array& rhs) + { + if( &rhs == this ) + return *this; + + rhs.attach(); + release(); + + m_size = rhs.m_size; + m_buffer = rhs.m_buffer; + + return *this; + } + + std::size_t size() const + { return m_size; } + + bool empty() const + { return m_buffer == 0; } + + operator T* () const + { return m_buffer; } + + //optimized function to allocate storage for buffer and counter object at once + static shared_array create(const std::size_t nSize) + { + if(nSize <= 0) + return shared_array(); + + //verify the needed buffer size to allocate counter object and nSize elements + const std::size_t sizeToAllocate = nSize + ( sizeof(atomic_count) / sizeof(T) + 1 ); + + //allocate and zero-fill the buffer + T* storage = new T[ sizeToAllocate ]; + memset(storage, 0, sizeToAllocate * sizeof(T)); + + // create the counter object at the end of the storage + // with initial reference count set to 1 + new (&storage[nSize]) atomic_count( 1 ); + + return shared_array(storage, nSize); + } + + private: + + shared_array( T * buff, std::size_t nSize ) + : m_size(nSize) + , m_buffer(buff) + { + + } + + atomic_count* get_counter() const + { + return reinterpret_cast( &m_buffer[ size() ] ); + } + + void increment_reference_count() const + { + atomic_count* counter = get_counter(); + ++(*counter); + } + + long decrement_reference_count() + { + atomic_count* counter = get_counter(); + return --(*counter); + } + + void attach() const + { + if( !empty() ) + increment_reference_count(); + } + + void release() + { + if( empty() ) + return; + + //free object if reference count has decreased to zero + if( decrement_reference_count() == 0) + { + T * tmpBuff = m_buffer; + atomic_count* tmpCounter = get_counter(); + + m_buffer = 0; + m_size = 0; + + //explicitly call destructor for the counter object + tmpCounter->~atomic_count(); + + delete [] tmpBuff; + } + } + + std::size_t m_size; + T * m_buffer; + }; +} + +#endif diff --git a/linux/include/quickfix/SocketAcceptor.h b/linux/include/quickfix/SocketAcceptor.h new file mode 100644 index 000000000..de3efd3a7 --- /dev/null +++ b/linux/include/quickfix/SocketAcceptor.h @@ -0,0 +1,75 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_SOCKETACCEPTOR_H +#define FIX_SOCKETACCEPTOR_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "Acceptor.h" +#include "SocketServer.h" +#include "SocketConnection.h" + +namespace FIX +{ +/// Socket implementation of Acceptor. +class SocketAcceptor : public Acceptor, SocketServer::Strategy +{ + friend class SocketConnection; +public: + SocketAcceptor( Application&, MessageStoreFactory&, + const SessionSettings& ) throw( ConfigError ); + SocketAcceptor( Application&, MessageStoreFactory&, + const SessionSettings&, LogFactory& ) throw( ConfigError ); + + virtual ~SocketAcceptor(); + +private: + bool readSettings( const SessionSettings& ); + + typedef std::set < SessionID > Sessions; + typedef std::map < int, Sessions > PortToSessions; + typedef std::map < int, SocketConnection* > SocketConnections; + + void onConfigure( const SessionSettings& ) throw ( ConfigError ); + void onInitialize( const SessionSettings& ) throw ( RuntimeError ); + + void onStart(); + bool onPoll( double timeout ); + void onStop(); + + void onConnect( SocketServer&, int, int ); + void onWrite( SocketServer&, int ); + bool onData( SocketServer&, int ); + void onDisconnect( SocketServer&, int ); + void onError( SocketServer& ); + void onTimeout( SocketServer& ); + + SocketServer* m_pServer; + PortToSessions m_portToSessions; + SocketConnections m_connections; +}; +/*! @} */ +} + +#endif //FIX_SOCKETACCEPTOR_H diff --git a/linux/include/quickfix/SocketConnection.h b/linux/include/quickfix/SocketConnection.h new file mode 100644 index 000000000..ec7d9e2d8 --- /dev/null +++ b/linux/include/quickfix/SocketConnection.h @@ -0,0 +1,103 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_SOCKETCONNECTION_H +#define FIX_SOCKETCONNECTION_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "Parser.h" +#include "Responder.h" +#include "SessionID.h" +#include "SocketMonitor.h" +#include "Utility.h" +#include "Mutex.h" +#include + +namespace FIX +{ +class SocketAcceptor; +class SocketServer; +class SocketConnector; +class SocketInitiator; +class Session; + +/// Encapsulates a socket file descriptor (single-threaded). +class SocketConnection : Responder +{ +public: + typedef std::set Sessions; + + SocketConnection( int s, Sessions sessions, SocketMonitor* pMonitor ); + SocketConnection( SocketInitiator&, const SessionID&, int, SocketMonitor* ); + virtual ~SocketConnection(); + + int getSocket() const { return m_socket; } + Session* getSession() const { return m_pSession; } + + bool read( SocketConnector& s ); + bool read( SocketAcceptor&, SocketServer& ); + bool processQueue(); + + void signal() + { + Locker l( m_mutex ); + if( m_sendQueue.size() == 1 ) + m_pMonitor->signal( m_socket ); + } + + void unsignal() + { + Locker l( m_mutex ); + if( m_sendQueue.size() == 0 ) + m_pMonitor->unsignal( m_socket ); + } + + void onTimeout(); + +private: + typedef std::deque > + Queue; + + bool isValidSession(); + void readFromSocket() throw( SocketRecvFailed ); + bool readMessage( std::string& msg ); + void readMessages( SocketMonitor& s ); + bool send( const std::string& ); + void disconnect(); + + int m_socket; + char m_buffer[BUFSIZ]; + + Parser m_parser; + Queue m_sendQueue; + unsigned m_sendLength; + Sessions m_sessions; + Session* m_pSession; + SocketMonitor* m_pMonitor; + Mutex m_mutex; + fd_set m_fds; +}; +} + +#endif //FIX_SOCKETCONNECTION_H diff --git a/linux/include/quickfix/SocketConnector.h b/linux/include/quickfix/SocketConnector.h new file mode 100644 index 000000000..a5bd12f19 --- /dev/null +++ b/linux/include/quickfix/SocketConnector.h @@ -0,0 +1,67 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_SOCKETCONNECTOR_H +#define FIX_SOCKETCONNECTOR_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "SocketMonitor.h" +#include + +namespace FIX +{ +/// Connects sockets to remote ports and addresses. +class SocketConnector +{ +public: + class Strategy; + + SocketConnector( int timeout = 0 ); + + int connect( const std::string& address, int port, bool noDelay, + int sendBufSize, int rcvBufSize ); + int connect( const std::string& address, int port, bool noDelay, + int sendBufSize, int rcvBufSize, Strategy& ); + void block( Strategy& strategy, bool poll = 0, double timeout = 0.0 ); + SocketMonitor& getMonitor() { return m_monitor; } + +private: + SocketMonitor m_monitor; + +public: + class Strategy + { + public: + virtual ~Strategy() {} + virtual void onConnect( SocketConnector&, int socket ) = 0; + virtual void onWrite( SocketConnector&, int socket ) = 0; + virtual bool onData( SocketConnector&, int socket ) = 0; + virtual void onDisconnect( SocketConnector&, int socket ) = 0; + virtual void onError( SocketConnector& ) = 0; + virtual void onTimeout( SocketConnector& ) {}; + }; +}; +} + +#endif //FIX_SOCKETCONNECTOR_H diff --git a/linux/include/quickfix/SocketInitiator.h b/linux/include/quickfix/SocketInitiator.h new file mode 100644 index 000000000..d731fe76a --- /dev/null +++ b/linux/include/quickfix/SocketInitiator.h @@ -0,0 +1,81 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_SOCKETINITIATOR_H +#define FIX_SOCKETINITIATOR_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "Initiator.h" +#include "SocketConnector.h" +#include "SocketConnection.h" + +namespace FIX +{ +/// Socket implementation of Initiator. +class SocketInitiator : public Initiator, SocketConnector::Strategy +{ +public: + SocketInitiator( Application&, MessageStoreFactory&, + const SessionSettings& ) throw( ConfigError ); + SocketInitiator( Application&, MessageStoreFactory&, + const SessionSettings&, LogFactory& ) throw( ConfigError ); + + virtual ~SocketInitiator(); + +private: + typedef std::map < int, SocketConnection* > SocketConnections; + typedef std::map < SessionID, int > SessionToHostNum; + + void onConfigure( const SessionSettings& ) throw ( ConfigError ); + void onInitialize( const SessionSettings& ) throw ( RuntimeError ); + + void onStart(); + bool onPoll( double timeout ); + void onStop(); + + void doConnect( const SessionID&, const Dictionary& d ); + void onConnect( SocketConnector&, int ); + void onWrite( SocketConnector&, int ); + bool onData( SocketConnector&, int ); + void onDisconnect( SocketConnector&, int ); + void onError( SocketConnector& ); + void onTimeout( SocketConnector& ); + + void getHost( const SessionID&, const Dictionary&, std::string&, short& ); + + SessionSettings m_settings; + SessionToHostNum m_sessionToHostNum; + SocketConnector m_connector; + SocketConnections m_pendingConnections; + SocketConnections m_connections; + time_t m_lastConnect; + int m_reconnectInterval; + bool m_noDelay; + int m_sendBufSize; + int m_rcvBufSize; +}; +/*! @} */ +} + +#endif //FIX_SOCKETINITIATOR_H diff --git a/linux/include/quickfix/SocketMonitor.h b/linux/include/quickfix/SocketMonitor.h new file mode 100644 index 000000000..35c548829 --- /dev/null +++ b/linux/include/quickfix/SocketMonitor.h @@ -0,0 +1,111 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_SOCKETMONITOR_H +#define FIX_SOCKETMONITOR_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#ifdef _MSC_VER +#include +typedef int socklen_t; +#else +#include +#include +#include +#include +#include +#endif + +#include +#include +#include + +namespace FIX +{ +/// Monitors events on a collection of sockets. +class SocketMonitor +{ +public: + class Strategy; + + SocketMonitor( int timeout = 0 ); + virtual ~SocketMonitor(); + + bool addConnect( int socket ); + bool addRead( int socket ); + bool addWrite( int socket ); + bool drop( int socket ); + void signal( int socket ); + void unsignal( int socket ); + void block( Strategy& strategy, bool poll = 0, double timeout = 0.0 ); + + size_t numSockets() + { return m_readSockets.size() - 1; } + +private: + typedef std::set < int > Sockets; + typedef std::queue < int > Queue; + + void setsockopt(); + bool bind(); + bool listen(); + void buildSet( const Sockets&, fd_set& ); + inline timeval* getTimeval( bool poll, double timeout ); + inline bool sleepIfEmpty( bool poll ); + + void processReadSet( Strategy&, fd_set& ); + void processWriteSet( Strategy&, fd_set& ); + void processExceptSet( Strategy&, fd_set& ); + + int m_timeout; + timeval m_timeval; +#ifndef SELECT_DECREMENTS_TIME + clock_t m_ticks; +#endif + + int m_signal; + int m_interrupt; + Sockets m_connectSockets; + Sockets m_readSockets; + Sockets m_writeSockets; + Queue m_dropped; + +public: + class Strategy + { + public: + virtual ~Strategy() + {} + virtual void onConnect( SocketMonitor&, int socket ) = 0; + virtual void onEvent( SocketMonitor&, int socket ) = 0; + virtual void onWrite( SocketMonitor&, int socket ) = 0; + virtual void onError( SocketMonitor&, int socket ) = 0; + virtual void onError( SocketMonitor& ) = 0; + virtual void onTimeout( SocketMonitor& ) + {}} + ; +}; +} + +#endif //FIX_SOCKETMONITOR_H diff --git a/linux/include/quickfix/SocketServer.h b/linux/include/quickfix/SocketServer.h new file mode 100644 index 000000000..6a5967906 --- /dev/null +++ b/linux/include/quickfix/SocketServer.h @@ -0,0 +1,100 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_SOCKETSERVER_H +#define FIX_SOCKETSERVER_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "SocketMonitor.h" +#include "Exceptions.h" +#include +#include +#include + +namespace FIX +{ +/// Information about listening socket +struct SocketInfo +{ + SocketInfo() + : m_socket( -1 ), m_port( 0 ), m_noDelay( false ), + m_sendBufSize( 0 ), m_rcvBufSize( 0 ) {} + + SocketInfo( int socket, short port, bool noDelay, int sendBufSize, int rcvBufSize ) + : m_socket( socket ), m_port( port ), m_noDelay( noDelay ), + m_sendBufSize( sendBufSize ), m_rcvBufSize( rcvBufSize ) {} + + int m_socket; + short m_port; + bool m_noDelay; + int m_sendBufSize; + int m_rcvBufSize; +}; + +/// Listens for and accepts incoming socket connections on a port. +class SocketServer +{ +public: + class Strategy; + + SocketServer( int timeout = 0 ); + + int add( int port, bool reuse = false, bool noDelay = false, + int sendBufSize = 0, int rcvBufSize = 0 ) throw( SocketException& ); + int accept( int socket ); + void close(); + bool block( Strategy& strategy, bool poll = 0, double timeout = 0.0 ); + + size_t numConnections() { return m_monitor.numSockets() - 1; } + SocketMonitor& getMonitor() { return m_monitor; } + + int socketToPort( int socket ); + int portToSocket( int port ); + +private: + typedef std::map + SocketToInfo; + typedef std::map + PortToInfo; + + SocketToInfo m_socketToInfo; + PortToInfo m_portToInfo; + SocketMonitor m_monitor; + +public: + class Strategy + { + public: + virtual ~Strategy() {} + virtual void onConnect( SocketServer&, int acceptSocket, int socket ) = 0; + virtual void onWrite( SocketServer&, int socket ) = 0; + virtual bool onData( SocketServer&, int socket ) = 0; + virtual void onDisconnect( SocketServer&, int socket ) = 0; + virtual void onError( SocketServer& ) = 0; + virtual void onTimeout( SocketServer& ) {}; + }; +}; +} + +#endif //FIX_SOCKETSERVER_H diff --git a/linux/include/quickfix/ThreadedSocketAcceptor.h b/linux/include/quickfix/ThreadedSocketAcceptor.h new file mode 100644 index 000000000..63d4f7ef5 --- /dev/null +++ b/linux/include/quickfix/ThreadedSocketAcceptor.h @@ -0,0 +1,98 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_THREADEDSOCKETACCEPTOR_H +#define FIX_THREADEDSOCKETACCEPTOR_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "Acceptor.h" +#include "ThreadedSocketConnection.h" +#include "Mutex.h" + +namespace FIX +{ +/// Threaded Socket implementation of Acceptor. +class ThreadedSocketAcceptor : public Acceptor +{ + friend class SocketConnection; +public: + ThreadedSocketAcceptor( Application&, MessageStoreFactory&, + const SessionSettings& ) throw( ConfigError ); + ThreadedSocketAcceptor( Application&, MessageStoreFactory&, + const SessionSettings&, + LogFactory& ) throw( ConfigError ); + + virtual ~ThreadedSocketAcceptor(); + +private: + struct AcceptorThreadInfo + { + AcceptorThreadInfo( ThreadedSocketAcceptor* pAcceptor, int socket, int port ) + : m_pAcceptor( pAcceptor ), m_socket( socket ), m_port( port ) {} + + ThreadedSocketAcceptor* m_pAcceptor; + int m_socket; + int m_port; + }; + + struct ConnectionThreadInfo + { + ConnectionThreadInfo( ThreadedSocketAcceptor* pAcceptor, + ThreadedSocketConnection* pConnection ) + : m_pAcceptor( pAcceptor ), m_pConnection( pConnection ) {} + + ThreadedSocketAcceptor* m_pAcceptor; + ThreadedSocketConnection* m_pConnection; + }; + + bool readSettings( const SessionSettings& ); + + typedef std::set < int > Sockets; + typedef std::set < SessionID > Sessions; + typedef std::map < int, Sessions > PortToSessions; + typedef std::map < int, int > SocketToPort; + typedef std::map < int, thread_id > SocketToThread; + + void onConfigure( const SessionSettings& ) throw ( ConfigError ); + void onInitialize( const SessionSettings& ) throw ( RuntimeError ); + + void onStart(); + bool onPoll( double timeout ); + void onStop(); + + void addThread( int s, thread_id t ); + void removeThread( int s ); + static THREAD_PROC socketAcceptorThread( void* p ); + static THREAD_PROC socketConnectionThread( void* p ); + + Sockets m_sockets; + PortToSessions m_portToSessions; + SocketToPort m_socketToPort; + SocketToThread m_threads; + Mutex m_mutex; +}; +/*! @} */ +} + +#endif //FIX_THREADEDSOCKETACCEPTOR_H diff --git a/linux/include/quickfix/ThreadedSocketConnection.h b/linux/include/quickfix/ThreadedSocketConnection.h new file mode 100644 index 000000000..e8618ab0c --- /dev/null +++ b/linux/include/quickfix/ThreadedSocketConnection.h @@ -0,0 +1,82 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_THREADEDSOCKETCONNECTION_H +#define FIX_THREADEDSOCKETCONNECTION_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "Parser.h" +#include "Responder.h" +#include "SessionID.h" +#include +#include + +namespace FIX +{ +class ThreadedSocketAcceptor; +class ThreadedSocketInitiator; +class Session; +class Application; +class Log; + +/// Encapsulates a socket file descriptor (multi-threaded). +class ThreadedSocketConnection : Responder +{ +public: + typedef std::set Sessions; + + ThreadedSocketConnection( int s, Sessions sessions, Log* pLog ); + ThreadedSocketConnection( const SessionID&, int s, + const std::string& address, short port, + Log* pLog ); + virtual ~ThreadedSocketConnection() ; + + Session* getSession() const { return m_pSession; } + int getSocket() const { return m_socket; } + bool connect(); + void disconnect(); + bool read(); + +private: + bool readMessage( std::string& msg ) throw( SocketRecvFailed ); + void processStream(); + bool send( const std::string& ); + bool setSession( const std::string& msg ); + + int m_socket; + char m_buffer[BUFSIZ]; + + std::string m_address; + int m_port; + + Log* m_pLog; + Parser m_parser; + Sessions m_sessions; + Session* m_pSession; + bool m_disconnect; + fd_set m_fds; +}; +} + +#endif //FIX_THREADEDSOCKETCONNECTION_H diff --git a/linux/include/quickfix/ThreadedSocketInitiator.h b/linux/include/quickfix/ThreadedSocketInitiator.h new file mode 100644 index 000000000..ce8a31418 --- /dev/null +++ b/linux/include/quickfix/ThreadedSocketInitiator.h @@ -0,0 +1,84 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_THREADEDSOCKETINITIATOR_H +#define FIX_THREADEDSOCKETINITIATOR_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "Initiator.h" +#include "ThreadedSocketConnection.h" +#include + +namespace FIX +{ +/*! \addtogroup user + * @{ + */ +/// Threaded Socket implementation of Initiator. +class ThreadedSocketInitiator : public Initiator +{ +public: + ThreadedSocketInitiator( Application&, MessageStoreFactory&, + const SessionSettings& ) throw( ConfigError ); + ThreadedSocketInitiator( Application&, MessageStoreFactory&, + const SessionSettings&, + LogFactory& ) throw( ConfigError ); + + virtual ~ThreadedSocketInitiator(); + +private: + typedef std::map < int, thread_id > SocketToThread; + typedef std::map < SessionID, int > SessionToHostNum; + typedef std::pair < ThreadedSocketInitiator*, ThreadedSocketConnection* > ThreadPair; + + void onConfigure( const SessionSettings& ) throw ( ConfigError ); + void onInitialize( const SessionSettings& ) throw ( RuntimeError ); + + void onStart(); + bool onPoll( double timeout ); + void onStop(); + + void doConnect( const SessionID& s, const Dictionary& d ); + + void addThread( int s, thread_id t ); + void removeThread( int s ); + void lock() { Locker l(m_mutex); } + static THREAD_PROC socketThread( void* p ); + + void getHost( const SessionID&, const Dictionary&, std::string&, short& ); + + SessionSettings m_settings; + SessionToHostNum m_sessionToHostNum; + time_t m_lastConnect; + int m_reconnectInterval; + bool m_noDelay; + int m_sendBufSize; + int m_rcvBufSize; + SocketToThread m_threads; + Mutex m_mutex; +}; +/*! @} */ +} + +#endif //FIX_THREADEDSOCKETINITIATOR_H diff --git a/linux/include/quickfix/TimeRange.h b/linux/include/quickfix/TimeRange.h new file mode 100644 index 000000000..4037fc699 --- /dev/null +++ b/linux/include/quickfix/TimeRange.h @@ -0,0 +1,258 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_TIMERANGE_H +#define FIX_TIMERANGE_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#include "FieldTypes.h" + +namespace FIX +{ +/// Keeps track of when session is active +class TimeRange +{ +public: + TimeRange( const UtcTimeOnly& startTime, const UtcTimeOnly& endTime, + int startDay = -1, int endDay = -1 ); + + TimeRange( const LocalTimeOnly& startTime, const LocalTimeOnly& endTime, + int startDay = -1, int endDay = -1 ); + + static bool isInRange( const UtcTimeOnly& start, + const UtcTimeOnly& end, + const DateTime& time ) + { + return isInRange + ( (DateTime)start, (DateTime)end, (DateTime)time ); + } + + static bool isInRange( const UtcTimeOnly& startTime, + const UtcTimeOnly& endTime, + int startDay, + int endDay, + const DateTime& time, + int day ) + { + return isInRange + ( (DateTime)startTime, (DateTime)endTime, + startDay, endDay, + (DateTime)time, day ); + } + + static bool isInRange( const UtcTimeOnly& startTime, + const UtcTimeOnly& endTime, + int startDay, + int endDay, + const DateTime& time ) + { + return isInRange + ( (DateTime)startTime, (DateTime)endTime, + startDay, endDay, + (DateTime)time ); + } + + static bool isInSameRange( const UtcTimeOnly& start, + const UtcTimeOnly& end, + const DateTime& time1, + const DateTime& time2 ) + { + return isInSameRange + ( (DateTime)start, (DateTime)end, + (DateTime)time1, (DateTime)time2 ); + } + + static bool isInSameRange( const UtcTimeOnly& startTime, + const UtcTimeOnly& endTime, + int startDay, + int endDay, + const DateTime& time1, + const DateTime& time2 ) + { + return isInSameRange + ( (DateTime)startTime, (DateTime)endTime, + startDay, endDay, + (DateTime)time1, (DateTime)time2 ); + } + + static bool isInRange( const LocalTimeOnly& start, + const LocalTimeOnly& end, + const DateTime& time ) + { + return isInRange + ( (DateTime)start, (DateTime)end, (DateTime)time ); + } + + static bool isInRange( const LocalTimeOnly& startTime, + const LocalTimeOnly& endTime, + int startDay, + int endDay, + const DateTime& time, + int day ) + { + return isInRange + ( (DateTime)startTime, (DateTime)endTime, + startDay, endDay, + (DateTime)time, day ); + } + + static bool isInRange( const LocalTimeOnly& startTime, + const LocalTimeOnly& endTime, + int startDay, + int endDay, + const DateTime& time ) + { + return isInRange + ( (DateTime)startTime, (DateTime)endTime, + startDay, endDay, + (DateTime)time ); + } + + static bool isInSameRange( const LocalTimeOnly& start, + const LocalTimeOnly& end, + const DateTime& time1, + const DateTime& time2 ) + { + return isInSameRange + ( (DateTime)start, (DateTime)end, + (DateTime)time1, (DateTime)time2 ); + } + + static bool isInSameRange( const LocalTimeOnly& startTime, + const LocalTimeOnly& endTime, + int startDay, + int endDay, + const DateTime& time1, + const DateTime& time2 ) + { + return isInSameRange + ( (DateTime)startTime, (DateTime)endTime, + startDay, endDay, + (DateTime)time1, (DateTime)time2 ); + } + +private: + static bool isInRange( const DateTime& start, + const DateTime& end, + const DateTime& time ); + + static bool isInRange( const DateTime& startTime, + const DateTime& endTime, + int startDay, + int endDay, + const DateTime& time, + int day ); + + static bool isInRange( const DateTime& startTime, + const DateTime& endTime, + int startDay, + int endDay, + const DateTime& time ); + + static bool isInSameRange( const DateTime& start, + const DateTime& end, + const DateTime& time1, + const DateTime& time2 ); + + static bool isInSameRange( const DateTime& startTime, + const DateTime& endTime, + int startDay, + int endDay, + const DateTime& time1, + const DateTime& time2 ); +public: + bool isInRange( const DateTime& dateTime, int day ) + { + if( m_startDay < 0 && m_endDay < 0 ) + return isInRange( m_startTime, m_endTime, dateTime ); + else + return isInRange + ( m_startTime, m_endTime, m_startDay, m_endDay, dateTime, day ); + } + + bool isInRange( const UtcTimeStamp& dateTime ) + { + if( m_useLocalTime ) + { + LocalTimeStamp localDateTime( dateTime.getTimeT() ); + return isInRange( localDateTime, localDateTime.getWeekDay() ); + } + + return isInRange( dateTime, dateTime.getWeekDay() ); + } + + bool isInRange( const LocalTimeStamp& dateTime ) + { + if( !m_useLocalTime ) + { + LocalTimeStamp utcDateTime( dateTime.getTimeT() ); + return isInRange( utcDateTime, utcDateTime.getWeekDay() ); + } + + return isInRange( dateTime, dateTime.getWeekDay() ); + } + + bool isInSameRange( const UtcTimeStamp& time1, const UtcTimeStamp& time2 ) + { + if( m_useLocalTime ) + { + LocalTimeStamp localTime1( time1.getTimeT() ); + LocalTimeStamp localTime2( time2.getTimeT() ); + return isInSameRange( (DateTime)localTime1, (DateTime)localTime2 ); + } + + return isInSameRange( (DateTime)time1, (DateTime)time2 ); + } + + bool isInSameRange( const LocalTimeStamp& time1, const LocalTimeStamp& time2 ) + { + if( !m_useLocalTime ) + { + UtcTimeStamp utcTime1( time1.getTimeT() ); + UtcTimeStamp utcTime2( time2.getTimeT() ); + return isInSameRange( (DateTime)utcTime1, (DateTime)utcTime2 ); + } + + return isInSameRange( (DateTime)time1, (DateTime)time2 ); + } + +private: + bool isInSameRange( const DateTime& time1, const DateTime& time2 ) + { + if( m_startDay < 0 && m_endDay < 0 ) + return isInSameRange( m_startTime, m_endTime, time1, time2 ); + else + return isInSameRange + ( m_startTime, m_endTime, m_startDay, m_endDay, time1, time2 ); + } + + UtcTimeOnly m_startTime; + UtcTimeOnly m_endTime; + int m_startDay; + int m_endDay; + bool m_useLocalTime; +}; +} + +#endif diff --git a/linux/include/quickfix/Utility.h b/linux/include/quickfix/Utility.h new file mode 100644 index 000000000..add33e39f --- /dev/null +++ b/linux/include/quickfix/Utility.h @@ -0,0 +1,219 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_UTILITY_H +#define FIX_UTILITY_H + +#ifdef _MSC_VER +#pragma warning( disable : 4503 4355 4786 4290 ) +#endif + +#ifndef _MSC_VER +#include "Allocator.h" +#endif + +#ifdef HAVE_STLPORT + #define ALLOCATOR std::allocator +#elif ENABLE_DEBUG_ALLOCATOR + #include + #define ALLOCATOR __gnu_cxx::debug_allocator +#elif ENABLE_NEW_ALLOCATOR + #include + #define ALLOCATOR __gnu_cxx::new_allocator +#elif ENABLE_BOOST_FAST_POOL_ALLOCATOR + #include + #define ALLOCATOR boost::fast_pool_allocator +#elif ENABLE_MT_ALLOCATOR + #include + #define ALLOCATOR __gnu_cxx::__mt_alloc +#elif ENABLE_BOOST_POOL_ALLOCATOR + #include + #define ALLOCATOR boost::pool_allocator +#elif ENABLE_POOL_ALLOCATOR + #include + #define ALLOCATOR __gnu_cxx::__pool_alloc +#elif ENABLE_BITMAP_ALLOCATOR + #include + #define ALLOCATOR __gnu_cxx::bitmap_allocator +#elif ENABLE_TBB_ALLOCATOR + #include + #define ALLOCATOR tbb::scalable_allocator +#else + #define ALLOCATOR std::allocator +#endif + +#ifdef _MSC_VER +///////////////////////////////////////////// +#include +#include +#include +#include +typedef int socklen_t; +typedef int ssize_t; +///////////////////////////////////////////// +#else +///////////////////////////////////////////// +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +///////////////////////////////////////////// +#endif + +#include +#include +#include +#include +#include +#include +#include + +#if defined(HAVE_STD_SHARED_PTR) + namespace ptr = std; +#elif defined(HAVE_STD_TR1_SHARED_PTR) + #include + namespace ptr = std::tr1; +#else + namespace ptr = std; +#endif + +namespace FIX +{ +void string_replace( const std::string& oldValue, + const std::string& newValue, + std::string& value ); + +std::string string_toLower( const std::string& value ); +std::string string_toUpper( const std::string& value ); +std::string string_strip( const std::string& value ); + +void socket_init(); +void socket_term(); +int socket_createAcceptor( int port, bool reuse = false ); +int socket_createConnector(); +int socket_connect( int s, const char* address, int port ); +int socket_accept( int s ); +ssize_t socket_send( int s, const char* msg, size_t length ); +void socket_close( int s ); +bool socket_fionread( int s, int& bytes ); +bool socket_disconnected( int s ); +int socket_setsockopt( int s, int opt ); +int socket_setsockopt( int s, int opt, int optval ); +int socket_getsockopt( int s, int opt, int& optval ); +#ifndef _MSC_VER +int socket_fcntl( int s, int opt, int arg ); +int socket_getfcntlflag( int s, int arg ); +int socket_setfcntlflag( int s, int arg ); +#endif +void socket_setnonblock( int s ); +bool socket_isValid( int socket ); +#ifndef _MSC_VER +bool socket_isBad( int s ); +#endif +void socket_invalidate( int& socket ); +short socket_hostport( int socket ); +const char* socket_hostname( int socket ); +const char* socket_hostname( const char* name ); +const char* socket_peername( int socket ); +std::pair socket_createpair(); + +tm time_gmtime( const time_t* t ); +tm time_localtime( const time_t* t ); + +#ifdef _MSC_VER +typedef unsigned int (_stdcall THREAD_START_ROUTINE)(void *); +#define THREAD_PROC unsigned int _stdcall +#else +extern "C" { typedef void * (THREAD_START_ROUTINE)(void *); } +#define THREAD_PROC void * +#endif + +#ifdef _MSC_VER +typedef unsigned thread_id; +#else +typedef pthread_t thread_id; +#endif + +bool thread_spawn( THREAD_START_ROUTINE func, void* var, thread_id& thread ); +bool thread_spawn( THREAD_START_ROUTINE func, void* var ); +void thread_join( thread_id thread ); +void thread_detach( thread_id thread ); +thread_id thread_self(); + +void process_sleep( double s ); + +std::string file_separator(); +void file_mkdir( const char* path ); +FILE* file_fopen( const char* path, const char* mode ); +void file_fclose( FILE* file ); +bool file_exists( const char* path ); +void file_unlink( const char* path ); +int file_rename( const char* oldpath, const char* newpath ); +std::string file_appendpath( const std::string& path, const std::string& file ); +} + +#if( _MSC_VER >= 1400 ) +#define HAVE_FSCANF_S 1 +#define FILE_FSCANF fscanf_s +#else +#define FILE_FSCANF fscanf +#endif + +#if( _MSC_VER >= 1400 ) +#define HAVE_SPRINTF_S 1 +#define STRING_SPRINTF sprintf_s +#else +#define STRING_SPRINTF sprintf +#endif + +#if (!defined(_MSC_VER) || (_MSC_VER >= 1300)) && !defined(HAVE_STLPORT) +using std::abort; +using std::sprintf; +using std::atoi; +using std::atol; +using std::atof; +using std::isdigit; +using std::strcmp; +using std::strftime; +using std::strlen; +using std::abs; +using std::labs; +using std::memcpy; +using std::memset; +using std::exit; +using std::strtod; +using std::strtol; +using std::strerror; +#endif + +#endif diff --git a/linux/include/quickfix/Values.h b/linux/include/quickfix/Values.h new file mode 100644 index 000000000..eb088c204 --- /dev/null +++ b/linux/include/quickfix/Values.h @@ -0,0 +1,62 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX_VALUES_BASE_H +#define FIX_VALUES_BASE_H + +#include "FixValues.h" +#include + +namespace FIX +{ + const char BeginString_FIXT11[] = "FIXT.1.1"; + const char BeginString_FIX50[] = "FIX.5.0"; + const char BeginString_FIX44[] = "FIX.4.4"; + const char BeginString_FIX43[] = "FIX.4.3"; + const char BeginString_FIX42[] = "FIX.4.2"; + const char BeginString_FIX41[] = "FIX.4.1"; + const char BeginString_FIX40[] = "FIX.4.0"; + + const char SessionRejectReason_INVALID_TAG_NUMBER_TEXT[] = "Invalid tag number"; + const char SessionRejectReason_REQUIRED_TAG_MISSING_TEXT[] = "Required tag missing"; + const char SessionRejectReason_TAG_NOT_DEFINED_FOR_THIS_MESSAGE_TYPE_TEXT[] = "Tag not defined for this message type"; + const char SessionRejectReason_UNDEFINED_TAG_TEXT[] = "Undefined Tag"; + const char SessionRejectReason_TAG_SPECIFIED_WITHOUT_A_VALUE_TEXT[] = "Tag specified without a value"; + const char SessionRejectReason_VALUE_IS_INCORRECT_TEXT[] = "Value is incorrect (out of range) for this tag"; + const char SessionRejectReason_INCORRECT_DATA_FORMAT_FOR_VALUE_TEXT[] = "Incorrect data format for value"; + const char SessionRejectReason_DECRYPTION_PROBLEM_TEXT[] = "Decryption problem"; + const char SessionRejectReason_SIGNATURE_PROBLEM_TEXT[] = "Signature problem"; + const char SessionRejectReason_COMPID_PROBLEM_TEXT[] = "CompID problem"; + const char SessionRejectReason_SENDINGTIME_ACCURACY_PROBLEM_TEXT[] = "SendingTime accuracy problem"; + const char SessionRejectReason_INVALID_MSGTYPE_TEXT[] = "Invalid MsgType"; + const char SessionRejectReason_TAG_APPEARS_MORE_THAN_ONCE_TEXT[] = "Tag appears more than once"; + const char SessionRejectReason_TAG_SPECIFIED_OUT_OF_REQUIRED_ORDER_TEXT[] = "Tag specified out of required order"; + const char SessionRejectReason_INCORRECT_NUMINGROUP_COUNT_FOR_REPEATING_GROUP_TEXT[] = "Incorrect NumInGroup count for repeating group"; + const char BusinessRejectReason_OTHER_TEXT[] = "Other"; + const char BusinessRejectReason_UNKNOWN_ID_TEXT[] = "Unknown ID"; + const char BusinessRejectReason_UNKNOWN_SECURITY_TEXT[] = "Unknown Security"; + const char BusinessRejectReason_UNSUPPORTED_MESSAGE_TYPE_TEXT[] = "Unsupported Message Type"; + const char BusinessRejectReason_APPLICATION_NOT_AVAILABLE_TEXT[] = "Application Not Available"; + const char BusinessRejectReason_CONDITIONALLY_REQUIRED_FIELD_MISSING_TEXT[] = "Conditionally Required Field Missing"; + const char BusinessRejectReason_NOT_AUTHORIZED_TEXT[] = "Not Authorized"; + const char BusinessRejectReason_DELIVERTO_FIRM_NOT_AVAILABLE_AT_THIS_TIME_TEXT[] = "Deliver to firm not available at this time"; +} +#endif //FIX_VALUES_BASE_H diff --git a/linux/include/quickfix/fix40/Advertisement.h b/linux/include/quickfix/fix40/Advertisement.h new file mode 100644 index 000000000..00cbb88ca --- /dev/null +++ b/linux/include/quickfix/fix40/Advertisement.h @@ -0,0 +1,52 @@ +#ifndef FIX40_ADVERTISEMENT_H +#define FIX40_ADVERTISEMENT_H + +#include "Message.h" + +namespace FIX40 +{ + + class Advertisement : public Message + { + public: + Advertisement() : Message(MsgType()) {} + Advertisement(const FIX::Message& m) : Message(m) {} + Advertisement(const Message& m) : Message(m) {} + Advertisement(const Advertisement& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("7"); } + + Advertisement( + const FIX::AdvId& aAdvId, + const FIX::AdvTransType& aAdvTransType, + const FIX::Symbol& aSymbol, + const FIX::AdvSide& aAdvSide, + const FIX::Shares& aShares ) + : Message(MsgType()) + { + set(aAdvId); + set(aAdvTransType); + set(aSymbol); + set(aAdvSide); + set(aShares); + } + + FIELD_SET(*this, FIX::AdvId); + FIELD_SET(*this, FIX::AdvTransType); + FIELD_SET(*this, FIX::AdvRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::AdvSide); + FIELD_SET(*this, FIX::Shares); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/Allocation.h b/linux/include/quickfix/fix40/Allocation.h new file mode 100644 index 000000000..8f440a184 --- /dev/null +++ b/linux/include/quickfix/fix40/Allocation.h @@ -0,0 +1,109 @@ +#ifndef FIX40_ALLOCATION_H +#define FIX40_ALLOCATION_H + +#include "Message.h" + +namespace FIX40 +{ + + class Allocation : public Message + { + public: + Allocation() : Message(MsgType()) {} + Allocation(const FIX::Message& m) : Message(m) {} + Allocation(const Message& m) : Message(m) {} + Allocation(const Allocation& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("J"); } + + Allocation( + const FIX::AllocID& aAllocID, + const FIX::AllocTransType& aAllocTransType, + const FIX::Side& aSide, + const FIX::Symbol& aSymbol, + const FIX::Shares& aShares, + const FIX::AvgPx& aAvgPx, + const FIX::TradeDate& aTradeDate ) + : Message(MsgType()) + { + set(aAllocID); + set(aAllocTransType); + set(aSide); + set(aSymbol); + set(aShares); + set(aAvgPx); + set(aTradeDate); + } + + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::AllocTransType); + FIELD_SET(*this, FIX::RefAllocID); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::Shares); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::AvgPrxPrecision); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::OpenClose); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,66,105,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::WaveNo); + }; + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,32,31,30,0)) {} + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::LastShares); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::LastMkt); + }; + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + }; + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,80,81,76,109,12,13,85,92,86,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocShares); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::NoDlvyInst); + FIELD_SET(*this, FIX::BrokerOfCredit); + FIELD_SET(*this, FIX::DlvyInst); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/AllocationInstructionAck.h b/linux/include/quickfix/fix40/AllocationInstructionAck.h new file mode 100644 index 000000000..9da8c3abe --- /dev/null +++ b/linux/include/quickfix/fix40/AllocationInstructionAck.h @@ -0,0 +1,41 @@ +#ifndef FIX40_ALLOCATIONINSTRUCTIONACK_H +#define FIX40_ALLOCATIONINSTRUCTIONACK_H + +#include "Message.h" + +namespace FIX40 +{ + + class AllocationInstructionAck : public Message + { + public: + AllocationInstructionAck() : Message(MsgType()) {} + AllocationInstructionAck(const FIX::Message& m) : Message(m) {} + AllocationInstructionAck(const Message& m) : Message(m) {} + AllocationInstructionAck(const AllocationInstructionAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("P"); } + + AllocationInstructionAck( + const FIX::AllocID& aAllocID, + const FIX::TradeDate& aTradeDate, + const FIX::AllocStatus& aAllocStatus ) + : Message(MsgType()) + { + set(aAllocID); + set(aTradeDate); + set(aAllocStatus); + } + + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::AllocStatus); + FIELD_SET(*this, FIX::AllocRejCode); + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/DontKnowTrade.h b/linux/include/quickfix/fix40/DontKnowTrade.h new file mode 100644 index 000000000..8ef7f7133 --- /dev/null +++ b/linux/include/quickfix/fix40/DontKnowTrade.h @@ -0,0 +1,48 @@ +#ifndef FIX40_DONTKNOWTRADE_H +#define FIX40_DONTKNOWTRADE_H + +#include "Message.h" + +namespace FIX40 +{ + + class DontKnowTrade : public Message + { + public: + DontKnowTrade() : Message(MsgType()) {} + DontKnowTrade(const FIX::Message& m) : Message(m) {} + DontKnowTrade(const Message& m) : Message(m) {} + DontKnowTrade(const DontKnowTrade& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("Q"); } + + DontKnowTrade( + const FIX::DKReason& aDKReason, + const FIX::Symbol& aSymbol, + const FIX::Side& aSide, + const FIX::OrderQty& aOrderQty, + const FIX::LastShares& aLastShares, + const FIX::LastPx& aLastPx ) + : Message(MsgType()) + { + set(aDKReason); + set(aSymbol); + set(aSide); + set(aOrderQty); + set(aLastShares); + set(aLastPx); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::DKReason); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::LastShares); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/Email.h b/linux/include/quickfix/fix40/Email.h new file mode 100644 index 000000000..cc009f9c7 --- /dev/null +++ b/linux/include/quickfix/fix40/Email.h @@ -0,0 +1,42 @@ +#ifndef FIX40_EMAIL_H +#define FIX40_EMAIL_H + +#include "Message.h" + +namespace FIX40 +{ + + class Email : public Message + { + public: + Email() : Message(MsgType()) {} + Email(const FIX::Message& m) : Message(m) {} + Email(const Message& m) : Message(m) {} + Email(const Email& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("C"); } + + Email( + const FIX::EmailType& aEmailType, + const FIX::LinesOfText& aLinesOfText, + const FIX::Text& aText ) + : Message(MsgType()) + { + set(aEmailType); + set(aLinesOfText); + set(aText); + } + + FIELD_SET(*this, FIX::EmailType); + FIELD_SET(*this, FIX::OrigTime); + FIELD_SET(*this, FIX::RelatdSym); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::LinesOfText); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/ExecutionReport.h b/linux/include/quickfix/fix40/ExecutionReport.h new file mode 100644 index 000000000..e20e0985a --- /dev/null +++ b/linux/include/quickfix/fix40/ExecutionReport.h @@ -0,0 +1,102 @@ +#ifndef FIX40_EXECUTIONREPORT_H +#define FIX40_EXECUTIONREPORT_H + +#include "Message.h" + +namespace FIX40 +{ + + class ExecutionReport : public Message + { + public: + ExecutionReport() : Message(MsgType()) {} + ExecutionReport(const FIX::Message& m) : Message(m) {} + ExecutionReport(const Message& m) : Message(m) {} + ExecutionReport(const ExecutionReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("8"); } + + ExecutionReport( + const FIX::OrderID& aOrderID, + const FIX::ExecID& aExecID, + const FIX::ExecTransType& aExecTransType, + const FIX::OrdStatus& aOrdStatus, + const FIX::Symbol& aSymbol, + const FIX::Side& aSide, + const FIX::OrderQty& aOrderQty, + const FIX::LastShares& aLastShares, + const FIX::LastPx& aLastPx, + const FIX::CumQty& aCumQty, + const FIX::AvgPx& aAvgPx ) + : Message(MsgType()) + { + set(aOrderID); + set(aExecID); + set(aExecTransType); + set(aOrdStatus); + set(aSymbol); + set(aSide); + set(aOrderQty); + set(aLastShares); + set(aLastPx); + set(aCumQty); + set(aAvgPx); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::ExecTransType); + FIELD_SET(*this, FIX::ExecRefID); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::OrdRejReason); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::Rule80A); + FIELD_SET(*this, FIX::LastShares); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::LastCapacity); + FIELD_SET(*this, FIX::CumQty); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::ReportToExch); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/Heartbeat.h b/linux/include/quickfix/fix40/Heartbeat.h new file mode 100644 index 000000000..14425634b --- /dev/null +++ b/linux/include/quickfix/fix40/Heartbeat.h @@ -0,0 +1,23 @@ +#ifndef FIX40_HEARTBEAT_H +#define FIX40_HEARTBEAT_H + +#include "Message.h" + +namespace FIX40 +{ + + class Heartbeat : public Message + { + public: + Heartbeat() : Message(MsgType()) {} + Heartbeat(const FIX::Message& m) : Message(m) {} + Heartbeat(const Message& m) : Message(m) {} + Heartbeat(const Heartbeat& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("0"); } + + FIELD_SET(*this, FIX::TestReqID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/IOI.h b/linux/include/quickfix/fix40/IOI.h new file mode 100644 index 000000000..298b16881 --- /dev/null +++ b/linux/include/quickfix/fix40/IOI.h @@ -0,0 +1,56 @@ +#ifndef FIX40_IOI_H +#define FIX40_IOI_H + +#include "Message.h" + +namespace FIX40 +{ + + class IOI : public Message + { + public: + IOI() : Message(MsgType()) {} + IOI(const FIX::Message& m) : Message(m) {} + IOI(const Message& m) : Message(m) {} + IOI(const IOI& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("6"); } + + IOI( + const FIX::IOIid& aIOIid, + const FIX::IOITransType& aIOITransType, + const FIX::Symbol& aSymbol, + const FIX::Side& aSide, + const FIX::IOIShares& aIOIShares ) + : Message(MsgType()) + { + set(aIOIid); + set(aIOITransType); + set(aSymbol); + set(aSide); + set(aIOIShares); + } + + FIELD_SET(*this, FIX::IOIid); + FIELD_SET(*this, FIX::IOITransType); + FIELD_SET(*this, FIX::IOIRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::IOIShares); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::IOIQltyInd); + FIELD_SET(*this, FIX::IOIOthSvc); + FIELD_SET(*this, FIX::IOINaturalFlag); + FIELD_SET(*this, FIX::IOIQualifier); + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/ListCancelRequest.h b/linux/include/quickfix/fix40/ListCancelRequest.h new file mode 100644 index 000000000..2725bbc11 --- /dev/null +++ b/linux/include/quickfix/fix40/ListCancelRequest.h @@ -0,0 +1,32 @@ +#ifndef FIX40_LISTCANCELREQUEST_H +#define FIX40_LISTCANCELREQUEST_H + +#include "Message.h" + +namespace FIX40 +{ + + class ListCancelRequest : public Message + { + public: + ListCancelRequest() : Message(MsgType()) {} + ListCancelRequest(const FIX::Message& m) : Message(m) {} + ListCancelRequest(const Message& m) : Message(m) {} + ListCancelRequest(const ListCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("K"); } + + ListCancelRequest( + const FIX::ListID& aListID ) + : Message(MsgType()) + { + set(aListID); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::WaveNo); + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/ListExecute.h b/linux/include/quickfix/fix40/ListExecute.h new file mode 100644 index 000000000..107efcaff --- /dev/null +++ b/linux/include/quickfix/fix40/ListExecute.h @@ -0,0 +1,32 @@ +#ifndef FIX40_LISTEXECUTE_H +#define FIX40_LISTEXECUTE_H + +#include "Message.h" + +namespace FIX40 +{ + + class ListExecute : public Message + { + public: + ListExecute() : Message(MsgType()) {} + ListExecute(const FIX::Message& m) : Message(m) {} + ListExecute(const Message& m) : Message(m) {} + ListExecute(const ListExecute& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("L"); } + + ListExecute( + const FIX::ListID& aListID ) + : Message(MsgType()) + { + set(aListID); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::WaveNo); + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/ListStatus.h b/linux/include/quickfix/fix40/ListStatus.h new file mode 100644 index 000000000..e7ee81340 --- /dev/null +++ b/linux/include/quickfix/fix40/ListStatus.h @@ -0,0 +1,47 @@ +#ifndef FIX40_LISTSTATUS_H +#define FIX40_LISTSTATUS_H + +#include "Message.h" + +namespace FIX40 +{ + + class ListStatus : public Message + { + public: + ListStatus() : Message(MsgType()) {} + ListStatus(const FIX::Message& m) : Message(m) {} + ListStatus(const Message& m) : Message(m) {} + ListStatus(const ListStatus& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("N"); } + + ListStatus( + const FIX::ListID& aListID, + const FIX::NoRpts& aNoRpts, + const FIX::RptSeq& aRptSeq ) + : Message(MsgType()) + { + set(aListID); + set(aNoRpts); + set(aRptSeq); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::WaveNo); + FIELD_SET(*this, FIX::NoRpts); + FIELD_SET(*this, FIX::RptSeq); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,14,84,6,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::CumQty); + FIELD_SET(*this, FIX::CxlQty); + FIELD_SET(*this, FIX::AvgPx); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/ListStatusRequest.h b/linux/include/quickfix/fix40/ListStatusRequest.h new file mode 100644 index 000000000..45c9209c4 --- /dev/null +++ b/linux/include/quickfix/fix40/ListStatusRequest.h @@ -0,0 +1,32 @@ +#ifndef FIX40_LISTSTATUSREQUEST_H +#define FIX40_LISTSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX40 +{ + + class ListStatusRequest : public Message + { + public: + ListStatusRequest() : Message(MsgType()) {} + ListStatusRequest(const FIX::Message& m) : Message(m) {} + ListStatusRequest(const Message& m) : Message(m) {} + ListStatusRequest(const ListStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("M"); } + + ListStatusRequest( + const FIX::ListID& aListID ) + : Message(MsgType()) + { + set(aListID); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::WaveNo); + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/Logon.h b/linux/include/quickfix/fix40/Logon.h new file mode 100644 index 000000000..95a73cb21 --- /dev/null +++ b/linux/include/quickfix/fix40/Logon.h @@ -0,0 +1,35 @@ +#ifndef FIX40_LOGON_H +#define FIX40_LOGON_H + +#include "Message.h" + +namespace FIX40 +{ + + class Logon : public Message + { + public: + Logon() : Message(MsgType()) {} + Logon(const FIX::Message& m) : Message(m) {} + Logon(const Message& m) : Message(m) {} + Logon(const Logon& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("A"); } + + Logon( + const FIX::EncryptMethod& aEncryptMethod, + const FIX::HeartBtInt& aHeartBtInt ) + : Message(MsgType()) + { + set(aEncryptMethod); + set(aHeartBtInt); + } + + FIELD_SET(*this, FIX::EncryptMethod); + FIELD_SET(*this, FIX::HeartBtInt); + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/Logout.h b/linux/include/quickfix/fix40/Logout.h new file mode 100644 index 000000000..05e12b26e --- /dev/null +++ b/linux/include/quickfix/fix40/Logout.h @@ -0,0 +1,23 @@ +#ifndef FIX40_LOGOUT_H +#define FIX40_LOGOUT_H + +#include "Message.h" + +namespace FIX40 +{ + + class Logout : public Message + { + public: + Logout() : Message(MsgType()) {} + Logout(const FIX::Message& m) : Message(m) {} + Logout(const Message& m) : Message(m) {} + Logout(const Logout& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("5"); } + + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/Message.h b/linux/include/quickfix/fix40/Message.h new file mode 100644 index 000000000..7bf99fd48 --- /dev/null +++ b/linux/include/quickfix/fix40/Message.h @@ -0,0 +1,58 @@ +#ifndef FIX40_MESSAGES_H +#define FIX40_MESSAGES_H + +#include "../Message.h" +#include "../Group.h" + +namespace FIX40 +{ + class Header : public FIX::Header + { + public: + FIELD_SET(*this, FIX::BeginString); + FIELD_SET(*this, FIX::BodyLength); + FIELD_SET(*this, FIX::MsgType); + FIELD_SET(*this, FIX::SenderCompID); + FIELD_SET(*this, FIX::TargetCompID); + FIELD_SET(*this, FIX::OnBehalfOfCompID); + FIELD_SET(*this, FIX::DeliverToCompID); + FIELD_SET(*this, FIX::SecureDataLen); + FIELD_SET(*this, FIX::SecureData); + FIELD_SET(*this, FIX::MsgSeqNum); + FIELD_SET(*this, FIX::SenderSubID); + FIELD_SET(*this, FIX::TargetSubID); + FIELD_SET(*this, FIX::OnBehalfOfSubID); + FIELD_SET(*this, FIX::DeliverToSubID); + FIELD_SET(*this, FIX::PossDupFlag); + FIELD_SET(*this, FIX::PossResend); + FIELD_SET(*this, FIX::SendingTime); + FIELD_SET(*this, FIX::OrigSendingTime); + }; + + class Trailer : public FIX::Trailer + { + public: + FIELD_SET(*this, FIX::SignatureLength); + FIELD_SET(*this, FIX::Signature); + FIELD_SET(*this, FIX::CheckSum); + }; + + class Message : public FIX::Message + { + public: + Message( const FIX::MsgType& msgtype ) + : FIX::Message( + FIX::BeginString("FIX.4.0"), msgtype ) + {} + + Message(const FIX::Message& m) : FIX::Message(m) {} + Message(const Message& m) : FIX::Message(m) {} + Header& getHeader() { return (Header&)m_header; } + const Header& getHeader() const { return (Header&)m_header; } + Trailer& getTrailer() { return (Trailer&)m_trailer; } + const Trailer& getTrailer() const { return (Trailer&)m_trailer; } + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/MessageCracker.h b/linux/include/quickfix/fix40/MessageCracker.h new file mode 100644 index 000000000..633281d17 --- /dev/null +++ b/linux/include/quickfix/fix40/MessageCracker.h @@ -0,0 +1,334 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX40_MESSAGECRACKER_H +#define FIX40_MESSAGECRACKER_H + + +#include "../SessionID.h" +#include "../Exceptions.h" + +#include "../fix40/Message.h" + +namespace FIX40 +{ + class Heartbeat; + class TestRequest; + class ResendRequest; + class Reject; + class SequenceReset; + class Logout; + class IOI; + class Advertisement; + class ExecutionReport; + class OrderCancelReject; + class Logon; + class News; + class Email; + class NewOrderSingle; + class NewOrderList; + class OrderCancelRequest; + class OrderCancelReplaceRequest; + class OrderStatusRequest; + class Allocation; + class ListCancelRequest; + class ListExecute; + class ListStatusRequest; + class ListStatus; + class AllocationInstructionAck; + class DontKnowTrade; + class QuoteRequest; + class Quote; + + class MessageCracker + { + public: + virtual ~MessageCracker() {} + virtual void onMessage( const Message&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( Message&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Heartbeat&, const FIX::SessionID& ) + {} + virtual void onMessage( const TestRequest&, const FIX::SessionID& ) + {} + virtual void onMessage( const ResendRequest&, const FIX::SessionID& ) + {} + virtual void onMessage( const Reject&, const FIX::SessionID& ) + {} + virtual void onMessage( const SequenceReset&, const FIX::SessionID& ) + {} + virtual void onMessage( const Logout&, const FIX::SessionID& ) + {} + virtual void onMessage( const IOI&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Advertisement&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ExecutionReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelReject&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Logon&, const FIX::SessionID& ) + {} + virtual void onMessage( const News&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Email&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderSingle&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderList&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelReplaceRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Allocation&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListExecute&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListStatus&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AllocationInstructionAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const DontKnowTrade&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Quote&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( Heartbeat&, const FIX::SessionID& ) {} + virtual void onMessage( TestRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ResendRequest&, const FIX::SessionID& ) {} + virtual void onMessage( Reject&, const FIX::SessionID& ) {} + virtual void onMessage( SequenceReset&, const FIX::SessionID& ) {} + virtual void onMessage( Logout&, const FIX::SessionID& ) {} + virtual void onMessage( IOI&, const FIX::SessionID& ) {} + virtual void onMessage( Advertisement&, const FIX::SessionID& ) {} + virtual void onMessage( ExecutionReport&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelReject&, const FIX::SessionID& ) {} + virtual void onMessage( Logon&, const FIX::SessionID& ) {} + virtual void onMessage( News&, const FIX::SessionID& ) {} + virtual void onMessage( Email&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderSingle&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderList&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelReplaceRequest&, const FIX::SessionID& ) {} + virtual void onMessage( OrderStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( Allocation&, const FIX::SessionID& ) {} + virtual void onMessage( ListCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ListExecute&, const FIX::SessionID& ) {} + virtual void onMessage( ListStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ListStatus&, const FIX::SessionID& ) {} + virtual void onMessage( AllocationInstructionAck&, const FIX::SessionID& ) {} + virtual void onMessage( DontKnowTrade&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteRequest&, const FIX::SessionID& ) {} + virtual void onMessage( Quote&, const FIX::SessionID& ) {} + +public: + void crack( const Message& message, + const FIX::SessionID& sessionID ) + { + const std::string& msgTypeValue + = message.getHeader().getField( FIX::FIELD::MsgType ); + + if( msgTypeValue == "0" ) + onMessage( (const Heartbeat&)message, sessionID ); + else + if( msgTypeValue == "1" ) + onMessage( (const TestRequest&)message, sessionID ); + else + if( msgTypeValue == "2" ) + onMessage( (const ResendRequest&)message, sessionID ); + else + if( msgTypeValue == "3" ) + onMessage( (const Reject&)message, sessionID ); + else + if( msgTypeValue == "4" ) + onMessage( (const SequenceReset&)message, sessionID ); + else + if( msgTypeValue == "5" ) + onMessage( (const Logout&)message, sessionID ); + else + if( msgTypeValue == "6" ) + onMessage( (const IOI&)message, sessionID ); + else + if( msgTypeValue == "7" ) + onMessage( (const Advertisement&)message, sessionID ); + else + if( msgTypeValue == "8" ) + onMessage( (const ExecutionReport&)message, sessionID ); + else + if( msgTypeValue == "9" ) + onMessage( (const OrderCancelReject&)message, sessionID ); + else + if( msgTypeValue == "A" ) + onMessage( (const Logon&)message, sessionID ); + else + if( msgTypeValue == "B" ) + onMessage( (const News&)message, sessionID ); + else + if( msgTypeValue == "C" ) + onMessage( (const Email&)message, sessionID ); + else + if( msgTypeValue == "D" ) + onMessage( (const NewOrderSingle&)message, sessionID ); + else + if( msgTypeValue == "E" ) + onMessage( (const NewOrderList&)message, sessionID ); + else + if( msgTypeValue == "F" ) + onMessage( (const OrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "G" ) + onMessage( (const OrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "H" ) + onMessage( (const OrderStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "J" ) + onMessage( (const Allocation&)message, sessionID ); + else + if( msgTypeValue == "K" ) + onMessage( (const ListCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "L" ) + onMessage( (const ListExecute&)message, sessionID ); + else + if( msgTypeValue == "M" ) + onMessage( (const ListStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "N" ) + onMessage( (const ListStatus&)message, sessionID ); + else + if( msgTypeValue == "P" ) + onMessage( (const AllocationInstructionAck&)message, sessionID ); + else + if( msgTypeValue == "Q" ) + onMessage( (const DontKnowTrade&)message, sessionID ); + else + if( msgTypeValue == "R" ) + onMessage( (const QuoteRequest&)message, sessionID ); + else + if( msgTypeValue == "S" ) + onMessage( (const Quote&)message, sessionID ); + else onMessage( message, sessionID ); + } + +void crack( Message& message, + const FIX::SessionID& sessionID ) + { + FIX::MsgType msgType; + message.getHeader().getField(msgType); + std::string msgTypeValue = msgType.getValue(); + + if( msgTypeValue == "0" ) + onMessage( (Heartbeat&)message, sessionID ); + else + if( msgTypeValue == "1" ) + onMessage( (TestRequest&)message, sessionID ); + else + if( msgTypeValue == "2" ) + onMessage( (ResendRequest&)message, sessionID ); + else + if( msgTypeValue == "3" ) + onMessage( (Reject&)message, sessionID ); + else + if( msgTypeValue == "4" ) + onMessage( (SequenceReset&)message, sessionID ); + else + if( msgTypeValue == "5" ) + onMessage( (Logout&)message, sessionID ); + else + if( msgTypeValue == "6" ) + onMessage( (IOI&)message, sessionID ); + else + if( msgTypeValue == "7" ) + onMessage( (Advertisement&)message, sessionID ); + else + if( msgTypeValue == "8" ) + onMessage( (ExecutionReport&)message, sessionID ); + else + if( msgTypeValue == "9" ) + onMessage( (OrderCancelReject&)message, sessionID ); + else + if( msgTypeValue == "A" ) + onMessage( (Logon&)message, sessionID ); + else + if( msgTypeValue == "B" ) + onMessage( (News&)message, sessionID ); + else + if( msgTypeValue == "C" ) + onMessage( (Email&)message, sessionID ); + else + if( msgTypeValue == "D" ) + onMessage( (NewOrderSingle&)message, sessionID ); + else + if( msgTypeValue == "E" ) + onMessage( (NewOrderList&)message, sessionID ); + else + if( msgTypeValue == "F" ) + onMessage( (OrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "G" ) + onMessage( (OrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "H" ) + onMessage( (OrderStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "J" ) + onMessage( (Allocation&)message, sessionID ); + else + if( msgTypeValue == "K" ) + onMessage( (ListCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "L" ) + onMessage( (ListExecute&)message, sessionID ); + else + if( msgTypeValue == "M" ) + onMessage( (ListStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "N" ) + onMessage( (ListStatus&)message, sessionID ); + else + if( msgTypeValue == "P" ) + onMessage( (AllocationInstructionAck&)message, sessionID ); + else + if( msgTypeValue == "Q" ) + onMessage( (DontKnowTrade&)message, sessionID ); + else + if( msgTypeValue == "R" ) + onMessage( (QuoteRequest&)message, sessionID ); + else + if( msgTypeValue == "S" ) + onMessage( (Quote&)message, sessionID ); + else onMessage( message, sessionID ); + } + + }; +} + +#endif diff --git a/linux/include/quickfix/fix40/NewOrderList.h b/linux/include/quickfix/fix40/NewOrderList.h new file mode 100644 index 000000000..ab62e783b --- /dev/null +++ b/linux/include/quickfix/fix40/NewOrderList.h @@ -0,0 +1,84 @@ +#ifndef FIX40_NEWORDERLIST_H +#define FIX40_NEWORDERLIST_H + +#include "Message.h" + +namespace FIX40 +{ + + class NewOrderList : public Message + { + public: + NewOrderList() : Message(MsgType()) {} + NewOrderList(const FIX::Message& m) : Message(m) {} + NewOrderList(const Message& m) : Message(m) {} + NewOrderList(const NewOrderList& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("E"); } + + NewOrderList( + const FIX::ListID& aListID, + const FIX::ListSeqNo& aListSeqNo, + const FIX::ListNoOrds& aListNoOrds, + const FIX::ClOrdID& aClOrdID, + const FIX::HandlInst& aHandlInst, + const FIX::Symbol& aSymbol, + const FIX::Side& aSide, + const FIX::OrderQty& aOrderQty, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aListID); + set(aListSeqNo); + set(aListNoOrds); + set(aClOrdID); + set(aHandlInst); + set(aSymbol); + set(aSide); + set(aOrderQty); + set(aOrdType); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::WaveNo); + FIELD_SET(*this, FIX::ListSeqNo); + FIELD_SET(*this, FIX::ListNoOrds); + FIELD_SET(*this, FIX::ListExecInst); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::Rule80A); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/NewOrderSingle.h b/linux/include/quickfix/fix40/NewOrderSingle.h new file mode 100644 index 000000000..3ffb2da5d --- /dev/null +++ b/linux/include/quickfix/fix40/NewOrderSingle.h @@ -0,0 +1,75 @@ +#ifndef FIX40_NEWORDERSINGLE_H +#define FIX40_NEWORDERSINGLE_H + +#include "Message.h" + +namespace FIX40 +{ + + class NewOrderSingle : public Message + { + public: + NewOrderSingle() : Message(MsgType()) {} + NewOrderSingle(const FIX::Message& m) : Message(m) {} + NewOrderSingle(const Message& m) : Message(m) {} + NewOrderSingle(const NewOrderSingle& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("D"); } + + NewOrderSingle( + const FIX::ClOrdID& aClOrdID, + const FIX::HandlInst& aHandlInst, + const FIX::Symbol& aSymbol, + const FIX::Side& aSide, + const FIX::OrderQty& aOrderQty, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aClOrdID); + set(aHandlInst); + set(aSymbol); + set(aSide); + set(aOrderQty); + set(aOrdType); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::IOIid); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::Rule80A); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/News.h b/linux/include/quickfix/fix40/News.h new file mode 100644 index 000000000..5ed5975d8 --- /dev/null +++ b/linux/include/quickfix/fix40/News.h @@ -0,0 +1,38 @@ +#ifndef FIX40_NEWS_H +#define FIX40_NEWS_H + +#include "Message.h" + +namespace FIX40 +{ + + class News : public Message + { + public: + News() : Message(MsgType()) {} + News(const FIX::Message& m) : Message(m) {} + News(const Message& m) : Message(m) {} + News(const News& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("B"); } + + News( + const FIX::LinesOfText& aLinesOfText, + const FIX::Text& aText ) + : Message(MsgType()) + { + set(aLinesOfText); + set(aText); + } + + FIELD_SET(*this, FIX::OrigTime); + FIELD_SET(*this, FIX::Urgency); + FIELD_SET(*this, FIX::RelatdSym); + FIELD_SET(*this, FIX::LinesOfText); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/OrderCancelReject.h b/linux/include/quickfix/fix40/OrderCancelReject.h new file mode 100644 index 000000000..000570f71 --- /dev/null +++ b/linux/include/quickfix/fix40/OrderCancelReject.h @@ -0,0 +1,38 @@ +#ifndef FIX40_ORDERCANCELREJECT_H +#define FIX40_ORDERCANCELREJECT_H + +#include "Message.h" + +namespace FIX40 +{ + + class OrderCancelReject : public Message + { + public: + OrderCancelReject() : Message(MsgType()) {} + OrderCancelReject(const FIX::Message& m) : Message(m) {} + OrderCancelReject(const Message& m) : Message(m) {} + OrderCancelReject(const OrderCancelReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("9"); } + + OrderCancelReject( + const FIX::OrderID& aOrderID, + const FIX::ClOrdID& aClOrdID ) + : Message(MsgType()) + { + set(aOrderID); + set(aClOrdID); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::CxlRejReason); + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/OrderCancelReplaceRequest.h b/linux/include/quickfix/fix40/OrderCancelReplaceRequest.h new file mode 100644 index 000000000..b8436fbbc --- /dev/null +++ b/linux/include/quickfix/fix40/OrderCancelReplaceRequest.h @@ -0,0 +1,75 @@ +#ifndef FIX40_ORDERCANCELREPLACEREQUEST_H +#define FIX40_ORDERCANCELREPLACEREQUEST_H + +#include "Message.h" + +namespace FIX40 +{ + + class OrderCancelReplaceRequest : public Message + { + public: + OrderCancelReplaceRequest() : Message(MsgType()) {} + OrderCancelReplaceRequest(const FIX::Message& m) : Message(m) {} + OrderCancelReplaceRequest(const Message& m) : Message(m) {} + OrderCancelReplaceRequest(const OrderCancelReplaceRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("G"); } + + OrderCancelReplaceRequest( + const FIX::OrigClOrdID& aOrigClOrdID, + const FIX::ClOrdID& aClOrdID, + const FIX::HandlInst& aHandlInst, + const FIX::Symbol& aSymbol, + const FIX::Side& aSide, + const FIX::OrderQty& aOrderQty, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aOrigClOrdID); + set(aClOrdID); + set(aHandlInst); + set(aSymbol); + set(aSide); + set(aOrderQty); + set(aOrdType); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::Rule80A); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/OrderCancelRequest.h b/linux/include/quickfix/fix40/OrderCancelRequest.h new file mode 100644 index 000000000..5437449b8 --- /dev/null +++ b/linux/include/quickfix/fix40/OrderCancelRequest.h @@ -0,0 +1,55 @@ +#ifndef FIX40_ORDERCANCELREQUEST_H +#define FIX40_ORDERCANCELREQUEST_H + +#include "Message.h" + +namespace FIX40 +{ + + class OrderCancelRequest : public Message + { + public: + OrderCancelRequest() : Message(MsgType()) {} + OrderCancelRequest(const FIX::Message& m) : Message(m) {} + OrderCancelRequest(const Message& m) : Message(m) {} + OrderCancelRequest(const OrderCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("F"); } + + OrderCancelRequest( + const FIX::OrigClOrdID& aOrigClOrdID, + const FIX::ClOrdID& aClOrdID, + const FIX::CxlType& aCxlType, + const FIX::Symbol& aSymbol, + const FIX::Side& aSide, + const FIX::OrderQty& aOrderQty ) + : Message(MsgType()) + { + set(aOrigClOrdID); + set(aClOrdID); + set(aCxlType); + set(aSymbol); + set(aSide); + set(aOrderQty); + } + + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::CxlType); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/OrderStatusRequest.h b/linux/include/quickfix/fix40/OrderStatusRequest.h new file mode 100644 index 000000000..5fbd18ffd --- /dev/null +++ b/linux/include/quickfix/fix40/OrderStatusRequest.h @@ -0,0 +1,42 @@ +#ifndef FIX40_ORDERSTATUSREQUEST_H +#define FIX40_ORDERSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX40 +{ + + class OrderStatusRequest : public Message + { + public: + OrderStatusRequest() : Message(MsgType()) {} + OrderStatusRequest(const FIX::Message& m) : Message(m) {} + OrderStatusRequest(const Message& m) : Message(m) {} + OrderStatusRequest(const OrderStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("H"); } + + OrderStatusRequest( + const FIX::ClOrdID& aClOrdID, + const FIX::Symbol& aSymbol, + const FIX::Side& aSide ) + : Message(MsgType()) + { + set(aClOrdID); + set(aSymbol); + set(aSide); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::Side); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/Quote.h b/linux/include/quickfix/fix40/Quote.h new file mode 100644 index 000000000..6dd99c3ef --- /dev/null +++ b/linux/include/quickfix/fix40/Quote.h @@ -0,0 +1,46 @@ +#ifndef FIX40_QUOTE_H +#define FIX40_QUOTE_H + +#include "Message.h" + +namespace FIX40 +{ + + class Quote : public Message + { + public: + Quote() : Message(MsgType()) {} + Quote(const FIX::Message& m) : Message(m) {} + Quote(const Message& m) : Message(m) {} + Quote(const Quote& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("S"); } + + Quote( + const FIX::QuoteID& aQuoteID, + const FIX::Symbol& aSymbol, + const FIX::BidPx& aBidPx ) + : Message(MsgType()) + { + set(aQuoteID); + set(aSymbol); + set(aBidPx); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/QuoteRequest.h b/linux/include/quickfix/fix40/QuoteRequest.h new file mode 100644 index 000000000..4b309e3e0 --- /dev/null +++ b/linux/include/quickfix/fix40/QuoteRequest.h @@ -0,0 +1,41 @@ +#ifndef FIX40_QUOTEREQUEST_H +#define FIX40_QUOTEREQUEST_H + +#include "Message.h" + +namespace FIX40 +{ + + class QuoteRequest : public Message + { + public: + QuoteRequest() : Message(MsgType()) {} + QuoteRequest(const FIX::Message& m) : Message(m) {} + QuoteRequest(const Message& m) : Message(m) {} + QuoteRequest(const QuoteRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("R"); } + + QuoteRequest( + const FIX::QuoteReqID& aQuoteReqID, + const FIX::Symbol& aSymbol ) + : Message(MsgType()) + { + set(aQuoteReqID); + set(aSymbol); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/Reject.h b/linux/include/quickfix/fix40/Reject.h new file mode 100644 index 000000000..9d2056ffc --- /dev/null +++ b/linux/include/quickfix/fix40/Reject.h @@ -0,0 +1,31 @@ +#ifndef FIX40_REJECT_H +#define FIX40_REJECT_H + +#include "Message.h" + +namespace FIX40 +{ + + class Reject : public Message + { + public: + Reject() : Message(MsgType()) {} + Reject(const FIX::Message& m) : Message(m) {} + Reject(const Message& m) : Message(m) {} + Reject(const Reject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("3"); } + + Reject( + const FIX::RefSeqNum& aRefSeqNum ) + : Message(MsgType()) + { + set(aRefSeqNum); + } + + FIELD_SET(*this, FIX::RefSeqNum); + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/ResendRequest.h b/linux/include/quickfix/fix40/ResendRequest.h new file mode 100644 index 000000000..4841215ea --- /dev/null +++ b/linux/include/quickfix/fix40/ResendRequest.h @@ -0,0 +1,33 @@ +#ifndef FIX40_RESENDREQUEST_H +#define FIX40_RESENDREQUEST_H + +#include "Message.h" + +namespace FIX40 +{ + + class ResendRequest : public Message + { + public: + ResendRequest() : Message(MsgType()) {} + ResendRequest(const FIX::Message& m) : Message(m) {} + ResendRequest(const Message& m) : Message(m) {} + ResendRequest(const ResendRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("2"); } + + ResendRequest( + const FIX::BeginSeqNo& aBeginSeqNo, + const FIX::EndSeqNo& aEndSeqNo ) + : Message(MsgType()) + { + set(aBeginSeqNo); + set(aEndSeqNo); + } + + FIELD_SET(*this, FIX::BeginSeqNo); + FIELD_SET(*this, FIX::EndSeqNo); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/SequenceReset.h b/linux/include/quickfix/fix40/SequenceReset.h new file mode 100644 index 000000000..1b571b589 --- /dev/null +++ b/linux/include/quickfix/fix40/SequenceReset.h @@ -0,0 +1,31 @@ +#ifndef FIX40_SEQUENCERESET_H +#define FIX40_SEQUENCERESET_H + +#include "Message.h" + +namespace FIX40 +{ + + class SequenceReset : public Message + { + public: + SequenceReset() : Message(MsgType()) {} + SequenceReset(const FIX::Message& m) : Message(m) {} + SequenceReset(const Message& m) : Message(m) {} + SequenceReset(const SequenceReset& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("4"); } + + SequenceReset( + const FIX::NewSeqNo& aNewSeqNo ) + : Message(MsgType()) + { + set(aNewSeqNo); + } + + FIELD_SET(*this, FIX::GapFillFlag); + FIELD_SET(*this, FIX::NewSeqNo); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix40/TestRequest.h b/linux/include/quickfix/fix40/TestRequest.h new file mode 100644 index 000000000..f5a6383d6 --- /dev/null +++ b/linux/include/quickfix/fix40/TestRequest.h @@ -0,0 +1,30 @@ +#ifndef FIX40_TESTREQUEST_H +#define FIX40_TESTREQUEST_H + +#include "Message.h" + +namespace FIX40 +{ + + class TestRequest : public Message + { + public: + TestRequest() : Message(MsgType()) {} + TestRequest(const FIX::Message& m) : Message(m) {} + TestRequest(const Message& m) : Message(m) {} + TestRequest(const TestRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("1"); } + + TestRequest( + const FIX::TestReqID& aTestReqID ) + : Message(MsgType()) + { + set(aTestReqID); + } + + FIELD_SET(*this, FIX::TestReqID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/Advertisement.h b/linux/include/quickfix/fix41/Advertisement.h new file mode 100644 index 000000000..aaff056eb --- /dev/null +++ b/linux/include/quickfix/fix41/Advertisement.h @@ -0,0 +1,62 @@ +#ifndef FIX41_ADVERTISEMENT_H +#define FIX41_ADVERTISEMENT_H + +#include "Message.h" + +namespace FIX41 +{ + + class Advertisement : public Message + { + public: + Advertisement() : Message(MsgType()) {} + Advertisement(const FIX::Message& m) : Message(m) {} + Advertisement(const Message& m) : Message(m) {} + Advertisement(const Advertisement& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("7"); } + + Advertisement( + const FIX::AdvId& aAdvId, + const FIX::AdvTransType& aAdvTransType, + const FIX::Symbol& aSymbol, + const FIX::AdvSide& aAdvSide, + const FIX::Shares& aShares ) + : Message(MsgType()) + { + set(aAdvId); + set(aAdvTransType); + set(aSymbol); + set(aAdvSide); + set(aShares); + } + + FIELD_SET(*this, FIX::AdvId); + FIELD_SET(*this, FIX::AdvTransType); + FIELD_SET(*this, FIX::AdvRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::AdvSide); + FIELD_SET(*this, FIX::Shares); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::URLLink); + FIELD_SET(*this, FIX::LastMkt); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/Allocation.h b/linux/include/quickfix/fix41/Allocation.h new file mode 100644 index 000000000..65d2a7bf9 --- /dev/null +++ b/linux/include/quickfix/fix41/Allocation.h @@ -0,0 +1,129 @@ +#ifndef FIX41_ALLOCATION_H +#define FIX41_ALLOCATION_H + +#include "Message.h" + +namespace FIX41 +{ + + class Allocation : public Message + { + public: + Allocation() : Message(MsgType()) {} + Allocation(const FIX::Message& m) : Message(m) {} + Allocation(const Message& m) : Message(m) {} + Allocation(const Allocation& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("J"); } + + Allocation( + const FIX::AllocID& aAllocID, + const FIX::AllocTransType& aAllocTransType, + const FIX::Side& aSide, + const FIX::Symbol& aSymbol, + const FIX::Shares& aShares, + const FIX::AvgPx& aAvgPx, + const FIX::TradeDate& aTradeDate ) + : Message(MsgType()) + { + set(aAllocID); + set(aAllocTransType); + set(aSide); + set(aSymbol); + set(aShares); + set(aAvgPx); + set(aTradeDate); + } + + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::AllocTransType); + FIELD_SET(*this, FIX::RefAllocID); + FIELD_SET(*this, FIX::AllocLinkID); + FIELD_SET(*this, FIX::AllocLinkType); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::Shares); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::AvgPrxPrecision); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::OpenClose); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,66,105,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::WaveNo); + }; + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,32,FIX::message_order(32,17,31,29,0)) {} + FIELD_SET(*this, FIX::LastShares); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::LastCapacity); + }; + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,80,81,92,208,209,161,76,109,12,13,153,154,119,120,155,156,159,160,136,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocShares); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::BrokerOfCredit); + FIELD_SET(*this, FIX::NotifyBrokerOfCredit); + FIELD_SET(*this, FIX::AllocHandlInst); + FIELD_SET(*this, FIX::AllocText); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::AllocAvgPx); + FIELD_SET(*this, FIX::AllocNetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::SettlInstMode); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/AllocationInstructionAck.h b/linux/include/quickfix/fix41/AllocationInstructionAck.h new file mode 100644 index 000000000..4e860376f --- /dev/null +++ b/linux/include/quickfix/fix41/AllocationInstructionAck.h @@ -0,0 +1,41 @@ +#ifndef FIX41_ALLOCATIONINSTRUCTIONACK_H +#define FIX41_ALLOCATIONINSTRUCTIONACK_H + +#include "Message.h" + +namespace FIX41 +{ + + class AllocationInstructionAck : public Message + { + public: + AllocationInstructionAck() : Message(MsgType()) {} + AllocationInstructionAck(const FIX::Message& m) : Message(m) {} + AllocationInstructionAck(const Message& m) : Message(m) {} + AllocationInstructionAck(const AllocationInstructionAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("P"); } + + AllocationInstructionAck( + const FIX::AllocID& aAllocID, + const FIX::TradeDate& aTradeDate, + const FIX::AllocStatus& aAllocStatus ) + : Message(MsgType()) + { + set(aAllocID); + set(aTradeDate); + set(aAllocStatus); + } + + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::AllocStatus); + FIELD_SET(*this, FIX::AllocRejCode); + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/DontKnowTrade.h b/linux/include/quickfix/fix41/DontKnowTrade.h new file mode 100644 index 000000000..eb517d124 --- /dev/null +++ b/linux/include/quickfix/fix41/DontKnowTrade.h @@ -0,0 +1,55 @@ +#ifndef FIX41_DONTKNOWTRADE_H +#define FIX41_DONTKNOWTRADE_H + +#include "Message.h" + +namespace FIX41 +{ + + class DontKnowTrade : public Message + { + public: + DontKnowTrade() : Message(MsgType()) {} + DontKnowTrade(const FIX::Message& m) : Message(m) {} + DontKnowTrade(const Message& m) : Message(m) {} + DontKnowTrade(const DontKnowTrade& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("Q"); } + + DontKnowTrade( + const FIX::DKReason& aDKReason, + const FIX::Symbol& aSymbol, + const FIX::Side& aSide ) + : Message(MsgType()) + { + set(aDKReason); + set(aSymbol); + set(aSide); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::DKReason); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::LastShares); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/Email.h b/linux/include/quickfix/fix41/Email.h new file mode 100644 index 000000000..70d10416f --- /dev/null +++ b/linux/include/quickfix/fix41/Email.h @@ -0,0 +1,67 @@ +#ifndef FIX41_EMAIL_H +#define FIX41_EMAIL_H + +#include "Message.h" + +namespace FIX41 +{ + + class Email : public Message + { + public: + Email() : Message(MsgType()) {} + Email(const FIX::Message& m) : Message(m) {} + Email(const Message& m) : Message(m) {} + Email(const Email& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("C"); } + + Email( + const FIX::EmailThreadID& aEmailThreadID, + const FIX::EmailType& aEmailType, + const FIX::Subject& aSubject ) + : Message(MsgType()) + { + set(aEmailThreadID); + set(aEmailType); + set(aSubject); + } + + FIELD_SET(*this, FIX::EmailThreadID); + FIELD_SET(*this, FIX::EmailType); + FIELD_SET(*this, FIX::OrigTime); + FIELD_SET(*this, FIX::Subject); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,46,FIX::message_order(46,65,48,22,167,200,205,201,202,206,207,106,107,0)) {} + FIELD_SET(*this, FIX::RelatdSym); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + }; + FIELD_SET(*this, FIX::LinesOfText); + class LinesOfText: public FIX::Group + { + public: + LinesOfText() : FIX::Group(33,58,FIX::message_order(58,0)) {} + FIELD_SET(*this, FIX::Text); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/ExecutionReport.h b/linux/include/quickfix/fix41/ExecutionReport.h new file mode 100644 index 000000000..2f83590d1 --- /dev/null +++ b/linux/include/quickfix/fix41/ExecutionReport.h @@ -0,0 +1,112 @@ +#ifndef FIX41_EXECUTIONREPORT_H +#define FIX41_EXECUTIONREPORT_H + +#include "Message.h" + +namespace FIX41 +{ + + class ExecutionReport : public Message + { + public: + ExecutionReport() : Message(MsgType()) {} + ExecutionReport(const FIX::Message& m) : Message(m) {} + ExecutionReport(const Message& m) : Message(m) {} + ExecutionReport(const ExecutionReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("8"); } + + ExecutionReport( + const FIX::OrderID& aOrderID, + const FIX::ExecID& aExecID, + const FIX::ExecTransType& aExecTransType, + const FIX::ExecType& aExecType, + const FIX::OrdStatus& aOrdStatus, + const FIX::Symbol& aSymbol, + const FIX::Side& aSide, + const FIX::OrderQty& aOrderQty, + const FIX::LastShares& aLastShares, + const FIX::LastPx& aLastPx, + const FIX::LeavesQty& aLeavesQty, + const FIX::CumQty& aCumQty, + const FIX::AvgPx& aAvgPx ) + : Message(MsgType()) + { + set(aOrderID); + set(aExecID); + set(aExecTransType); + set(aExecType); + set(aOrdStatus); + set(aSymbol); + set(aSide); + set(aOrderQty); + set(aLastShares); + set(aLastPx); + set(aLeavesQty); + set(aCumQty); + set(aAvgPx); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::ExecTransType); + FIELD_SET(*this, FIX::ExecRefID); + FIELD_SET(*this, FIX::ExecType); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::OrdRejReason); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::PegDifference); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::Rule80A); + FIELD_SET(*this, FIX::LastShares); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::LastSpotRate); + FIELD_SET(*this, FIX::LastForwardPoints); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::LastCapacity); + FIELD_SET(*this, FIX::LeavesQty); + FIELD_SET(*this, FIX::CumQty); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::ReportToExch); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/Heartbeat.h b/linux/include/quickfix/fix41/Heartbeat.h new file mode 100644 index 000000000..404f5b74d --- /dev/null +++ b/linux/include/quickfix/fix41/Heartbeat.h @@ -0,0 +1,23 @@ +#ifndef FIX41_HEARTBEAT_H +#define FIX41_HEARTBEAT_H + +#include "Message.h" + +namespace FIX41 +{ + + class Heartbeat : public Message + { + public: + Heartbeat() : Message(MsgType()) {} + Heartbeat(const FIX::Message& m) : Message(m) {} + Heartbeat(const Message& m) : Message(m) {} + Heartbeat(const Heartbeat& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("0"); } + + FIELD_SET(*this, FIX::TestReqID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/IOI.h b/linux/include/quickfix/fix41/IOI.h new file mode 100644 index 000000000..7acceb94c --- /dev/null +++ b/linux/include/quickfix/fix41/IOI.h @@ -0,0 +1,71 @@ +#ifndef FIX41_IOI_H +#define FIX41_IOI_H + +#include "Message.h" + +namespace FIX41 +{ + + class IOI : public Message + { + public: + IOI() : Message(MsgType()) {} + IOI(const FIX::Message& m) : Message(m) {} + IOI(const Message& m) : Message(m) {} + IOI(const IOI& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("6"); } + + IOI( + const FIX::IOIid& aIOIid, + const FIX::IOITransType& aIOITransType, + const FIX::Symbol& aSymbol, + const FIX::Side& aSide, + const FIX::IOIShares& aIOIShares ) + : Message(MsgType()) + { + set(aIOIid); + set(aIOITransType); + set(aSymbol); + set(aSide); + set(aIOIShares); + } + + FIELD_SET(*this, FIX::IOIid); + FIELD_SET(*this, FIX::IOITransType); + FIELD_SET(*this, FIX::IOIRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::IOIShares); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::IOIQltyInd); + FIELD_SET(*this, FIX::IOIOthSvc); + FIELD_SET(*this, FIX::IOINaturalFlag); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::URLLink); + FIELD_SET(*this, FIX::NoIOIQualifiers); + class NoIOIQualifiers: public FIX::Group + { + public: + NoIOIQualifiers() : FIX::Group(199,104,FIX::message_order(104,0)) {} + FIELD_SET(*this, FIX::IOIQualifier); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/ListCancelRequest.h b/linux/include/quickfix/fix41/ListCancelRequest.h new file mode 100644 index 000000000..a25fd2cee --- /dev/null +++ b/linux/include/quickfix/fix41/ListCancelRequest.h @@ -0,0 +1,32 @@ +#ifndef FIX41_LISTCANCELREQUEST_H +#define FIX41_LISTCANCELREQUEST_H + +#include "Message.h" + +namespace FIX41 +{ + + class ListCancelRequest : public Message + { + public: + ListCancelRequest() : Message(MsgType()) {} + ListCancelRequest(const FIX::Message& m) : Message(m) {} + ListCancelRequest(const Message& m) : Message(m) {} + ListCancelRequest(const ListCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("K"); } + + ListCancelRequest( + const FIX::ListID& aListID ) + : Message(MsgType()) + { + set(aListID); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::WaveNo); + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/ListExecute.h b/linux/include/quickfix/fix41/ListExecute.h new file mode 100644 index 000000000..064677316 --- /dev/null +++ b/linux/include/quickfix/fix41/ListExecute.h @@ -0,0 +1,32 @@ +#ifndef FIX41_LISTEXECUTE_H +#define FIX41_LISTEXECUTE_H + +#include "Message.h" + +namespace FIX41 +{ + + class ListExecute : public Message + { + public: + ListExecute() : Message(MsgType()) {} + ListExecute(const FIX::Message& m) : Message(m) {} + ListExecute(const Message& m) : Message(m) {} + ListExecute(const ListExecute& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("L"); } + + ListExecute( + const FIX::ListID& aListID ) + : Message(MsgType()) + { + set(aListID); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::WaveNo); + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/ListStatus.h b/linux/include/quickfix/fix41/ListStatus.h new file mode 100644 index 000000000..fd052d42d --- /dev/null +++ b/linux/include/quickfix/fix41/ListStatus.h @@ -0,0 +1,48 @@ +#ifndef FIX41_LISTSTATUS_H +#define FIX41_LISTSTATUS_H + +#include "Message.h" + +namespace FIX41 +{ + + class ListStatus : public Message + { + public: + ListStatus() : Message(MsgType()) {} + ListStatus(const FIX::Message& m) : Message(m) {} + ListStatus(const Message& m) : Message(m) {} + ListStatus(const ListStatus& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("N"); } + + ListStatus( + const FIX::ListID& aListID, + const FIX::NoRpts& aNoRpts, + const FIX::RptSeq& aRptSeq ) + : Message(MsgType()) + { + set(aListID); + set(aNoRpts); + set(aRptSeq); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::WaveNo); + FIELD_SET(*this, FIX::NoRpts); + FIELD_SET(*this, FIX::RptSeq); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,14,151,84,6,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::CumQty); + FIELD_SET(*this, FIX::LeavesQty); + FIELD_SET(*this, FIX::CxlQty); + FIELD_SET(*this, FIX::AvgPx); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/ListStatusRequest.h b/linux/include/quickfix/fix41/ListStatusRequest.h new file mode 100644 index 000000000..3f52707a5 --- /dev/null +++ b/linux/include/quickfix/fix41/ListStatusRequest.h @@ -0,0 +1,32 @@ +#ifndef FIX41_LISTSTATUSREQUEST_H +#define FIX41_LISTSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX41 +{ + + class ListStatusRequest : public Message + { + public: + ListStatusRequest() : Message(MsgType()) {} + ListStatusRequest(const FIX::Message& m) : Message(m) {} + ListStatusRequest(const Message& m) : Message(m) {} + ListStatusRequest(const ListStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("M"); } + + ListStatusRequest( + const FIX::ListID& aListID ) + : Message(MsgType()) + { + set(aListID); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::WaveNo); + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/Logon.h b/linux/include/quickfix/fix41/Logon.h new file mode 100644 index 000000000..d3fc8c3d8 --- /dev/null +++ b/linux/include/quickfix/fix41/Logon.h @@ -0,0 +1,36 @@ +#ifndef FIX41_LOGON_H +#define FIX41_LOGON_H + +#include "Message.h" + +namespace FIX41 +{ + + class Logon : public Message + { + public: + Logon() : Message(MsgType()) {} + Logon(const FIX::Message& m) : Message(m) {} + Logon(const Message& m) : Message(m) {} + Logon(const Logon& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("A"); } + + Logon( + const FIX::EncryptMethod& aEncryptMethod, + const FIX::HeartBtInt& aHeartBtInt ) + : Message(MsgType()) + { + set(aEncryptMethod); + set(aHeartBtInt); + } + + FIELD_SET(*this, FIX::EncryptMethod); + FIELD_SET(*this, FIX::HeartBtInt); + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + FIELD_SET(*this, FIX::ResetSeqNumFlag); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/Logout.h b/linux/include/quickfix/fix41/Logout.h new file mode 100644 index 000000000..2c24f78c2 --- /dev/null +++ b/linux/include/quickfix/fix41/Logout.h @@ -0,0 +1,23 @@ +#ifndef FIX41_LOGOUT_H +#define FIX41_LOGOUT_H + +#include "Message.h" + +namespace FIX41 +{ + + class Logout : public Message + { + public: + Logout() : Message(MsgType()) {} + Logout(const FIX::Message& m) : Message(m) {} + Logout(const Message& m) : Message(m) {} + Logout(const Logout& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("5"); } + + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/Message.h b/linux/include/quickfix/fix41/Message.h new file mode 100644 index 000000000..a24642141 --- /dev/null +++ b/linux/include/quickfix/fix41/Message.h @@ -0,0 +1,62 @@ +#ifndef FIX41_MESSAGES_H +#define FIX41_MESSAGES_H + +#include "../Message.h" +#include "../Group.h" + +namespace FIX41 +{ + class Header : public FIX::Header + { + public: + FIELD_SET(*this, FIX::BeginString); + FIELD_SET(*this, FIX::BodyLength); + FIELD_SET(*this, FIX::MsgType); + FIELD_SET(*this, FIX::SenderCompID); + FIELD_SET(*this, FIX::TargetCompID); + FIELD_SET(*this, FIX::OnBehalfOfCompID); + FIELD_SET(*this, FIX::DeliverToCompID); + FIELD_SET(*this, FIX::SecureDataLen); + FIELD_SET(*this, FIX::SecureData); + FIELD_SET(*this, FIX::MsgSeqNum); + FIELD_SET(*this, FIX::SenderSubID); + FIELD_SET(*this, FIX::SenderLocationID); + FIELD_SET(*this, FIX::TargetSubID); + FIELD_SET(*this, FIX::TargetLocationID); + FIELD_SET(*this, FIX::OnBehalfOfSubID); + FIELD_SET(*this, FIX::OnBehalfOfLocationID); + FIELD_SET(*this, FIX::DeliverToSubID); + FIELD_SET(*this, FIX::DeliverToLocationID); + FIELD_SET(*this, FIX::PossDupFlag); + FIELD_SET(*this, FIX::PossResend); + FIELD_SET(*this, FIX::SendingTime); + FIELD_SET(*this, FIX::OrigSendingTime); + }; + + class Trailer : public FIX::Trailer + { + public: + FIELD_SET(*this, FIX::SignatureLength); + FIELD_SET(*this, FIX::Signature); + FIELD_SET(*this, FIX::CheckSum); + }; + + class Message : public FIX::Message + { + public: + Message( const FIX::MsgType& msgtype ) + : FIX::Message( + FIX::BeginString("FIX.4.1"), msgtype ) + {} + + Message(const FIX::Message& m) : FIX::Message(m) {} + Message(const Message& m) : FIX::Message(m) {} + Header& getHeader() { return (Header&)m_header; } + const Header& getHeader() const { return (Header&)m_header; } + Trailer& getTrailer() { return (Trailer&)m_trailer; } + const Trailer& getTrailer() const { return (Trailer&)m_trailer; } + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/MessageCracker.h b/linux/include/quickfix/fix41/MessageCracker.h new file mode 100644 index 000000000..e2f2ebefd --- /dev/null +++ b/linux/include/quickfix/fix41/MessageCracker.h @@ -0,0 +1,344 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX41_MESSAGECRACKER_H +#define FIX41_MESSAGECRACKER_H + + +#include "../SessionID.h" +#include "../Exceptions.h" + +#include "../fix41/Message.h" + +namespace FIX41 +{ + class Heartbeat; + class TestRequest; + class ResendRequest; + class Reject; + class SequenceReset; + class Logout; + class IOI; + class Advertisement; + class ExecutionReport; + class OrderCancelReject; + class Logon; + class News; + class Email; + class NewOrderSingle; + class NewOrderList; + class OrderCancelRequest; + class OrderCancelReplaceRequest; + class OrderStatusRequest; + class Allocation; + class ListCancelRequest; + class ListExecute; + class ListStatusRequest; + class ListStatus; + class AllocationInstructionAck; + class DontKnowTrade; + class QuoteRequest; + class Quote; + class SettlementInstructions; + + class MessageCracker + { + public: + virtual ~MessageCracker() {} + virtual void onMessage( const Message&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( Message&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Heartbeat&, const FIX::SessionID& ) + {} + virtual void onMessage( const TestRequest&, const FIX::SessionID& ) + {} + virtual void onMessage( const ResendRequest&, const FIX::SessionID& ) + {} + virtual void onMessage( const Reject&, const FIX::SessionID& ) + {} + virtual void onMessage( const SequenceReset&, const FIX::SessionID& ) + {} + virtual void onMessage( const Logout&, const FIX::SessionID& ) + {} + virtual void onMessage( const IOI&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Advertisement&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ExecutionReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelReject&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Logon&, const FIX::SessionID& ) + {} + virtual void onMessage( const News&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Email&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderSingle&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderList&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelReplaceRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Allocation&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListExecute&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListStatus&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AllocationInstructionAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const DontKnowTrade&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Quote&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SettlementInstructions&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( Heartbeat&, const FIX::SessionID& ) {} + virtual void onMessage( TestRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ResendRequest&, const FIX::SessionID& ) {} + virtual void onMessage( Reject&, const FIX::SessionID& ) {} + virtual void onMessage( SequenceReset&, const FIX::SessionID& ) {} + virtual void onMessage( Logout&, const FIX::SessionID& ) {} + virtual void onMessage( IOI&, const FIX::SessionID& ) {} + virtual void onMessage( Advertisement&, const FIX::SessionID& ) {} + virtual void onMessage( ExecutionReport&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelReject&, const FIX::SessionID& ) {} + virtual void onMessage( Logon&, const FIX::SessionID& ) {} + virtual void onMessage( News&, const FIX::SessionID& ) {} + virtual void onMessage( Email&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderSingle&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderList&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelReplaceRequest&, const FIX::SessionID& ) {} + virtual void onMessage( OrderStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( Allocation&, const FIX::SessionID& ) {} + virtual void onMessage( ListCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ListExecute&, const FIX::SessionID& ) {} + virtual void onMessage( ListStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ListStatus&, const FIX::SessionID& ) {} + virtual void onMessage( AllocationInstructionAck&, const FIX::SessionID& ) {} + virtual void onMessage( DontKnowTrade&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteRequest&, const FIX::SessionID& ) {} + virtual void onMessage( Quote&, const FIX::SessionID& ) {} + virtual void onMessage( SettlementInstructions&, const FIX::SessionID& ) {} + +public: + void crack( const Message& message, + const FIX::SessionID& sessionID ) + { + const std::string& msgTypeValue + = message.getHeader().getField( FIX::FIELD::MsgType ); + + if( msgTypeValue == "0" ) + onMessage( (const Heartbeat&)message, sessionID ); + else + if( msgTypeValue == "1" ) + onMessage( (const TestRequest&)message, sessionID ); + else + if( msgTypeValue == "2" ) + onMessage( (const ResendRequest&)message, sessionID ); + else + if( msgTypeValue == "3" ) + onMessage( (const Reject&)message, sessionID ); + else + if( msgTypeValue == "4" ) + onMessage( (const SequenceReset&)message, sessionID ); + else + if( msgTypeValue == "5" ) + onMessage( (const Logout&)message, sessionID ); + else + if( msgTypeValue == "6" ) + onMessage( (const IOI&)message, sessionID ); + else + if( msgTypeValue == "7" ) + onMessage( (const Advertisement&)message, sessionID ); + else + if( msgTypeValue == "8" ) + onMessage( (const ExecutionReport&)message, sessionID ); + else + if( msgTypeValue == "9" ) + onMessage( (const OrderCancelReject&)message, sessionID ); + else + if( msgTypeValue == "A" ) + onMessage( (const Logon&)message, sessionID ); + else + if( msgTypeValue == "B" ) + onMessage( (const News&)message, sessionID ); + else + if( msgTypeValue == "C" ) + onMessage( (const Email&)message, sessionID ); + else + if( msgTypeValue == "D" ) + onMessage( (const NewOrderSingle&)message, sessionID ); + else + if( msgTypeValue == "E" ) + onMessage( (const NewOrderList&)message, sessionID ); + else + if( msgTypeValue == "F" ) + onMessage( (const OrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "G" ) + onMessage( (const OrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "H" ) + onMessage( (const OrderStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "J" ) + onMessage( (const Allocation&)message, sessionID ); + else + if( msgTypeValue == "K" ) + onMessage( (const ListCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "L" ) + onMessage( (const ListExecute&)message, sessionID ); + else + if( msgTypeValue == "M" ) + onMessage( (const ListStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "N" ) + onMessage( (const ListStatus&)message, sessionID ); + else + if( msgTypeValue == "P" ) + onMessage( (const AllocationInstructionAck&)message, sessionID ); + else + if( msgTypeValue == "Q" ) + onMessage( (const DontKnowTrade&)message, sessionID ); + else + if( msgTypeValue == "R" ) + onMessage( (const QuoteRequest&)message, sessionID ); + else + if( msgTypeValue == "S" ) + onMessage( (const Quote&)message, sessionID ); + else + if( msgTypeValue == "T" ) + onMessage( (const SettlementInstructions&)message, sessionID ); + else onMessage( message, sessionID ); + } + +void crack( Message& message, + const FIX::SessionID& sessionID ) + { + FIX::MsgType msgType; + message.getHeader().getField(msgType); + std::string msgTypeValue = msgType.getValue(); + + if( msgTypeValue == "0" ) + onMessage( (Heartbeat&)message, sessionID ); + else + if( msgTypeValue == "1" ) + onMessage( (TestRequest&)message, sessionID ); + else + if( msgTypeValue == "2" ) + onMessage( (ResendRequest&)message, sessionID ); + else + if( msgTypeValue == "3" ) + onMessage( (Reject&)message, sessionID ); + else + if( msgTypeValue == "4" ) + onMessage( (SequenceReset&)message, sessionID ); + else + if( msgTypeValue == "5" ) + onMessage( (Logout&)message, sessionID ); + else + if( msgTypeValue == "6" ) + onMessage( (IOI&)message, sessionID ); + else + if( msgTypeValue == "7" ) + onMessage( (Advertisement&)message, sessionID ); + else + if( msgTypeValue == "8" ) + onMessage( (ExecutionReport&)message, sessionID ); + else + if( msgTypeValue == "9" ) + onMessage( (OrderCancelReject&)message, sessionID ); + else + if( msgTypeValue == "A" ) + onMessage( (Logon&)message, sessionID ); + else + if( msgTypeValue == "B" ) + onMessage( (News&)message, sessionID ); + else + if( msgTypeValue == "C" ) + onMessage( (Email&)message, sessionID ); + else + if( msgTypeValue == "D" ) + onMessage( (NewOrderSingle&)message, sessionID ); + else + if( msgTypeValue == "E" ) + onMessage( (NewOrderList&)message, sessionID ); + else + if( msgTypeValue == "F" ) + onMessage( (OrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "G" ) + onMessage( (OrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "H" ) + onMessage( (OrderStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "J" ) + onMessage( (Allocation&)message, sessionID ); + else + if( msgTypeValue == "K" ) + onMessage( (ListCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "L" ) + onMessage( (ListExecute&)message, sessionID ); + else + if( msgTypeValue == "M" ) + onMessage( (ListStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "N" ) + onMessage( (ListStatus&)message, sessionID ); + else + if( msgTypeValue == "P" ) + onMessage( (AllocationInstructionAck&)message, sessionID ); + else + if( msgTypeValue == "Q" ) + onMessage( (DontKnowTrade&)message, sessionID ); + else + if( msgTypeValue == "R" ) + onMessage( (QuoteRequest&)message, sessionID ); + else + if( msgTypeValue == "S" ) + onMessage( (Quote&)message, sessionID ); + else + if( msgTypeValue == "T" ) + onMessage( (SettlementInstructions&)message, sessionID ); + else onMessage( message, sessionID ); + } + + }; +} + +#endif diff --git a/linux/include/quickfix/fix41/NewOrderList.h b/linux/include/quickfix/fix41/NewOrderList.h new file mode 100644 index 000000000..d34c693a6 --- /dev/null +++ b/linux/include/quickfix/fix41/NewOrderList.h @@ -0,0 +1,98 @@ +#ifndef FIX41_NEWORDERLIST_H +#define FIX41_NEWORDERLIST_H + +#include "Message.h" + +namespace FIX41 +{ + + class NewOrderList : public Message + { + public: + NewOrderList() : Message(MsgType()) {} + NewOrderList(const FIX::Message& m) : Message(m) {} + NewOrderList(const Message& m) : Message(m) {} + NewOrderList(const NewOrderList& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("E"); } + + NewOrderList( + const FIX::ListID& aListID, + const FIX::ListSeqNo& aListSeqNo, + const FIX::ListNoOrds& aListNoOrds, + const FIX::ClOrdID& aClOrdID, + const FIX::HandlInst& aHandlInst, + const FIX::Symbol& aSymbol, + const FIX::Side& aSide, + const FIX::OrderQty& aOrderQty, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aListID); + set(aListSeqNo); + set(aListNoOrds); + set(aClOrdID); + set(aHandlInst); + set(aSymbol); + set(aSide); + set(aOrderQty); + set(aOrdType); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::WaveNo); + FIELD_SET(*this, FIX::ListSeqNo); + FIELD_SET(*this, FIX::ListNoOrds); + FIELD_SET(*this, FIX::ListExecInst); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::PegDifference); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::Rule80A); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::FutSettDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::OpenClose); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::CustomerOrFirm); + FIELD_SET(*this, FIX::MaxShow); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/NewOrderSingle.h b/linux/include/quickfix/fix41/NewOrderSingle.h new file mode 100644 index 000000000..d020cfe82 --- /dev/null +++ b/linux/include/quickfix/fix41/NewOrderSingle.h @@ -0,0 +1,88 @@ +#ifndef FIX41_NEWORDERSINGLE_H +#define FIX41_NEWORDERSINGLE_H + +#include "Message.h" + +namespace FIX41 +{ + + class NewOrderSingle : public Message + { + public: + NewOrderSingle() : Message(MsgType()) {} + NewOrderSingle(const FIX::Message& m) : Message(m) {} + NewOrderSingle(const Message& m) : Message(m) {} + NewOrderSingle(const NewOrderSingle& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("D"); } + + NewOrderSingle( + const FIX::ClOrdID& aClOrdID, + const FIX::HandlInst& aHandlInst, + const FIX::Symbol& aSymbol, + const FIX::Side& aSide, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aClOrdID); + set(aHandlInst); + set(aSymbol); + set(aSide); + set(aOrdType); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::IOIid); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::Rule80A); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::FutSettDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::OpenClose); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::CustomerOrFirm); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegDifference); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/News.h b/linux/include/quickfix/fix41/News.h new file mode 100644 index 000000000..f8c52abe4 --- /dev/null +++ b/linux/include/quickfix/fix41/News.h @@ -0,0 +1,61 @@ +#ifndef FIX41_NEWS_H +#define FIX41_NEWS_H + +#include "Message.h" + +namespace FIX41 +{ + + class News : public Message + { + public: + News() : Message(MsgType()) {} + News(const FIX::Message& m) : Message(m) {} + News(const Message& m) : Message(m) {} + News(const News& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("B"); } + + News( + const FIX::Headline& aHeadline ) + : Message(MsgType()) + { + set(aHeadline); + } + + FIELD_SET(*this, FIX::OrigTime); + FIELD_SET(*this, FIX::Urgency); + FIELD_SET(*this, FIX::Headline); + FIELD_SET(*this, FIX::URLLink); + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,46,FIX::message_order(46,65,48,22,167,200,205,201,202,206,207,106,107,0)) {} + FIELD_SET(*this, FIX::RelatdSym); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + }; + FIELD_SET(*this, FIX::LinesOfText); + class LinesOfText: public FIX::Group + { + public: + LinesOfText() : FIX::Group(33,58,FIX::message_order(58,0)) {} + FIELD_SET(*this, FIX::Text); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/OrderCancelReject.h b/linux/include/quickfix/fix41/OrderCancelReject.h new file mode 100644 index 000000000..f71024859 --- /dev/null +++ b/linux/include/quickfix/fix41/OrderCancelReject.h @@ -0,0 +1,45 @@ +#ifndef FIX41_ORDERCANCELREJECT_H +#define FIX41_ORDERCANCELREJECT_H + +#include "Message.h" + +namespace FIX41 +{ + + class OrderCancelReject : public Message + { + public: + OrderCancelReject() : Message(MsgType()) {} + OrderCancelReject(const FIX::Message& m) : Message(m) {} + OrderCancelReject(const Message& m) : Message(m) {} + OrderCancelReject(const OrderCancelReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("9"); } + + OrderCancelReject( + const FIX::OrderID& aOrderID, + const FIX::ClOrdID& aClOrdID, + const FIX::OrigClOrdID& aOrigClOrdID, + const FIX::OrdStatus& aOrdStatus ) + : Message(MsgType()) + { + set(aOrderID); + set(aClOrdID); + set(aOrigClOrdID); + set(aOrdStatus); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::CxlRejReason); + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/OrderCancelReplaceRequest.h b/linux/include/quickfix/fix41/OrderCancelReplaceRequest.h new file mode 100644 index 000000000..1d525531c --- /dev/null +++ b/linux/include/quickfix/fix41/OrderCancelReplaceRequest.h @@ -0,0 +1,89 @@ +#ifndef FIX41_ORDERCANCELREPLACEREQUEST_H +#define FIX41_ORDERCANCELREPLACEREQUEST_H + +#include "Message.h" + +namespace FIX41 +{ + + class OrderCancelReplaceRequest : public Message + { + public: + OrderCancelReplaceRequest() : Message(MsgType()) {} + OrderCancelReplaceRequest(const FIX::Message& m) : Message(m) {} + OrderCancelReplaceRequest(const Message& m) : Message(m) {} + OrderCancelReplaceRequest(const OrderCancelReplaceRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("G"); } + + OrderCancelReplaceRequest( + const FIX::OrigClOrdID& aOrigClOrdID, + const FIX::ClOrdID& aClOrdID, + const FIX::HandlInst& aHandlInst, + const FIX::Symbol& aSymbol, + const FIX::Side& aSide, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aOrigClOrdID); + set(aClOrdID); + set(aHandlInst); + set(aSymbol); + set(aSide); + set(aOrdType); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::PegDifference); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::Rule80A); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::FutSettDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::OpenClose); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::CustomerOrFirm); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::LocateReqd); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/OrderCancelRequest.h b/linux/include/quickfix/fix41/OrderCancelRequest.h new file mode 100644 index 000000000..af3c3be83 --- /dev/null +++ b/linux/include/quickfix/fix41/OrderCancelRequest.h @@ -0,0 +1,58 @@ +#ifndef FIX41_ORDERCANCELREQUEST_H +#define FIX41_ORDERCANCELREQUEST_H + +#include "Message.h" + +namespace FIX41 +{ + + class OrderCancelRequest : public Message + { + public: + OrderCancelRequest() : Message(MsgType()) {} + OrderCancelRequest(const FIX::Message& m) : Message(m) {} + OrderCancelRequest(const Message& m) : Message(m) {} + OrderCancelRequest(const OrderCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("F"); } + + OrderCancelRequest( + const FIX::OrigClOrdID& aOrigClOrdID, + const FIX::ClOrdID& aClOrdID, + const FIX::Symbol& aSymbol, + const FIX::Side& aSide ) + : Message(MsgType()) + { + set(aOrigClOrdID); + set(aClOrdID); + set(aSymbol); + set(aSide); + } + + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/OrderStatusRequest.h b/linux/include/quickfix/fix41/OrderStatusRequest.h new file mode 100644 index 000000000..90ba989e2 --- /dev/null +++ b/linux/include/quickfix/fix41/OrderStatusRequest.h @@ -0,0 +1,51 @@ +#ifndef FIX41_ORDERSTATUSREQUEST_H +#define FIX41_ORDERSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX41 +{ + + class OrderStatusRequest : public Message + { + public: + OrderStatusRequest() : Message(MsgType()) {} + OrderStatusRequest(const FIX::Message& m) : Message(m) {} + OrderStatusRequest(const Message& m) : Message(m) {} + OrderStatusRequest(const OrderStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("H"); } + + OrderStatusRequest( + const FIX::ClOrdID& aClOrdID, + const FIX::Symbol& aSymbol, + const FIX::Side& aSide ) + : Message(MsgType()) + { + set(aClOrdID); + set(aSymbol); + set(aSide); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::Side); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/Quote.h b/linux/include/quickfix/fix41/Quote.h new file mode 100644 index 000000000..215ac595c --- /dev/null +++ b/linux/include/quickfix/fix41/Quote.h @@ -0,0 +1,60 @@ +#ifndef FIX41_QUOTE_H +#define FIX41_QUOTE_H + +#include "Message.h" + +namespace FIX41 +{ + + class Quote : public Message + { + public: + Quote() : Message(MsgType()) {} + Quote(const FIX::Message& m) : Message(m) {} + Quote(const Message& m) : Message(m) {} + Quote(const Quote& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("S"); } + + Quote( + const FIX::QuoteID& aQuoteID, + const FIX::Symbol& aSymbol ) + : Message(MsgType()) + { + set(aQuoteID); + set(aSymbol); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::FutSettDate2); + FIELD_SET(*this, FIX::OrderQty2); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/QuoteRequest.h b/linux/include/quickfix/fix41/QuoteRequest.h new file mode 100644 index 000000000..f5837f909 --- /dev/null +++ b/linux/include/quickfix/fix41/QuoteRequest.h @@ -0,0 +1,52 @@ +#ifndef FIX41_QUOTEREQUEST_H +#define FIX41_QUOTEREQUEST_H + +#include "Message.h" + +namespace FIX41 +{ + + class QuoteRequest : public Message + { + public: + QuoteRequest() : Message(MsgType()) {} + QuoteRequest(const FIX::Message& m) : Message(m) {} + QuoteRequest(const Message& m) : Message(m) {} + QuoteRequest(const QuoteRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("R"); } + + QuoteRequest( + const FIX::QuoteReqID& aQuoteReqID, + const FIX::Symbol& aSymbol ) + : Message(MsgType()) + { + set(aQuoteReqID); + set(aSymbol); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::FutSettDate2); + FIELD_SET(*this, FIX::OrderQty2); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/Reject.h b/linux/include/quickfix/fix41/Reject.h new file mode 100644 index 000000000..3fb33575a --- /dev/null +++ b/linux/include/quickfix/fix41/Reject.h @@ -0,0 +1,31 @@ +#ifndef FIX41_REJECT_H +#define FIX41_REJECT_H + +#include "Message.h" + +namespace FIX41 +{ + + class Reject : public Message + { + public: + Reject() : Message(MsgType()) {} + Reject(const FIX::Message& m) : Message(m) {} + Reject(const Message& m) : Message(m) {} + Reject(const Reject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("3"); } + + Reject( + const FIX::RefSeqNum& aRefSeqNum ) + : Message(MsgType()) + { + set(aRefSeqNum); + } + + FIELD_SET(*this, FIX::RefSeqNum); + FIELD_SET(*this, FIX::Text); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/ResendRequest.h b/linux/include/quickfix/fix41/ResendRequest.h new file mode 100644 index 000000000..21eaebd9c --- /dev/null +++ b/linux/include/quickfix/fix41/ResendRequest.h @@ -0,0 +1,33 @@ +#ifndef FIX41_RESENDREQUEST_H +#define FIX41_RESENDREQUEST_H + +#include "Message.h" + +namespace FIX41 +{ + + class ResendRequest : public Message + { + public: + ResendRequest() : Message(MsgType()) {} + ResendRequest(const FIX::Message& m) : Message(m) {} + ResendRequest(const Message& m) : Message(m) {} + ResendRequest(const ResendRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("2"); } + + ResendRequest( + const FIX::BeginSeqNo& aBeginSeqNo, + const FIX::EndSeqNo& aEndSeqNo ) + : Message(MsgType()) + { + set(aBeginSeqNo); + set(aEndSeqNo); + } + + FIELD_SET(*this, FIX::BeginSeqNo); + FIELD_SET(*this, FIX::EndSeqNo); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/SequenceReset.h b/linux/include/quickfix/fix41/SequenceReset.h new file mode 100644 index 000000000..2e46e9fad --- /dev/null +++ b/linux/include/quickfix/fix41/SequenceReset.h @@ -0,0 +1,31 @@ +#ifndef FIX41_SEQUENCERESET_H +#define FIX41_SEQUENCERESET_H + +#include "Message.h" + +namespace FIX41 +{ + + class SequenceReset : public Message + { + public: + SequenceReset() : Message(MsgType()) {} + SequenceReset(const FIX::Message& m) : Message(m) {} + SequenceReset(const Message& m) : Message(m) {} + SequenceReset(const SequenceReset& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("4"); } + + SequenceReset( + const FIX::NewSeqNo& aNewSeqNo ) + : Message(MsgType()) + { + set(aNewSeqNo); + } + + FIELD_SET(*this, FIX::GapFillFlag); + FIELD_SET(*this, FIX::NewSeqNo); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/SettlementInstructions.h b/linux/include/quickfix/fix41/SettlementInstructions.h new file mode 100644 index 000000000..b80a0f068 --- /dev/null +++ b/linux/include/quickfix/fix41/SettlementInstructions.h @@ -0,0 +1,73 @@ +#ifndef FIX41_SETTLEMENTINSTRUCTIONS_H +#define FIX41_SETTLEMENTINSTRUCTIONS_H + +#include "Message.h" + +namespace FIX41 +{ + + class SettlementInstructions : public Message + { + public: + SettlementInstructions() : Message(MsgType()) {} + SettlementInstructions(const FIX::Message& m) : Message(m) {} + SettlementInstructions(const Message& m) : Message(m) {} + SettlementInstructions(const SettlementInstructions& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("T"); } + + SettlementInstructions( + const FIX::SettlInstID& aSettlInstID, + const FIX::SettlInstTransType& aSettlInstTransType, + const FIX::SettlInstMode& aSettlInstMode, + const FIX::SettlInstSource& aSettlInstSource, + const FIX::AllocAccount& aAllocAccount, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aSettlInstID); + set(aSettlInstTransType); + set(aSettlInstMode); + set(aSettlInstSource); + set(aAllocAccount); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::SettlInstID); + FIELD_SET(*this, FIX::SettlInstTransType); + FIELD_SET(*this, FIX::SettlInstMode); + FIELD_SET(*this, FIX::SettlInstSource); + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::SettlLocation); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::SettlDepositoryCode); + FIELD_SET(*this, FIX::SettlBrkrCode); + FIELD_SET(*this, FIX::SettlInstCode); + FIELD_SET(*this, FIX::SecuritySettlAgentName); + FIELD_SET(*this, FIX::SecuritySettlAgentCode); + FIELD_SET(*this, FIX::SecuritySettlAgentAcctNum); + FIELD_SET(*this, FIX::SecuritySettlAgentAcctName); + FIELD_SET(*this, FIX::SecuritySettlAgentContactName); + FIELD_SET(*this, FIX::SecuritySettlAgentContactPhone); + FIELD_SET(*this, FIX::CashSettlAgentName); + FIELD_SET(*this, FIX::CashSettlAgentCode); + FIELD_SET(*this, FIX::CashSettlAgentAcctNum); + FIELD_SET(*this, FIX::CashSettlAgentAcctName); + FIELD_SET(*this, FIX::CashSettlAgentContactName); + FIELD_SET(*this, FIX::CashSettlAgentContactPhone); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix41/TestRequest.h b/linux/include/quickfix/fix41/TestRequest.h new file mode 100644 index 000000000..b5904bedc --- /dev/null +++ b/linux/include/quickfix/fix41/TestRequest.h @@ -0,0 +1,30 @@ +#ifndef FIX41_TESTREQUEST_H +#define FIX41_TESTREQUEST_H + +#include "Message.h" + +namespace FIX41 +{ + + class TestRequest : public Message + { + public: + TestRequest() : Message(MsgType()) {} + TestRequest(const FIX::Message& m) : Message(m) {} + TestRequest(const Message& m) : Message(m) {} + TestRequest(const TestRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("1"); } + + TestRequest( + const FIX::TestReqID& aTestReqID ) + : Message(MsgType()) + { + set(aTestReqID); + } + + FIELD_SET(*this, FIX::TestReqID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/Advertisement.h b/linux/include/quickfix/fix42/Advertisement.h new file mode 100644 index 000000000..71391afc6 --- /dev/null +++ b/linux/include/quickfix/fix42/Advertisement.h @@ -0,0 +1,71 @@ +#ifndef FIX42_ADVERTISEMENT_H +#define FIX42_ADVERTISEMENT_H + +#include "Message.h" + +namespace FIX42 +{ + + class Advertisement : public Message + { + public: + Advertisement() : Message(MsgType()) {} + Advertisement(const FIX::Message& m) : Message(m) {} + Advertisement(const Message& m) : Message(m) {} + Advertisement(const Advertisement& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("7"); } + + Advertisement( + const FIX::AdvId& aAdvId, + const FIX::AdvTransType& aAdvTransType, + const FIX::Symbol& aSymbol, + const FIX::AdvSide& aAdvSide, + const FIX::Shares& aShares ) + : Message(MsgType()) + { + set(aAdvId); + set(aAdvTransType); + set(aSymbol); + set(aAdvSide); + set(aShares); + } + + FIELD_SET(*this, FIX::AdvId); + FIELD_SET(*this, FIX::AdvTransType); + FIELD_SET(*this, FIX::AdvRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::AdvSide); + FIELD_SET(*this, FIX::Shares); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::URLLink); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradingSessionID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/Allocation.h b/linux/include/quickfix/fix42/Allocation.h new file mode 100644 index 000000000..d5d876e0a --- /dev/null +++ b/linux/include/quickfix/fix42/Allocation.h @@ -0,0 +1,142 @@ +#ifndef FIX42_ALLOCATION_H +#define FIX42_ALLOCATION_H + +#include "Message.h" + +namespace FIX42 +{ + + class Allocation : public Message + { + public: + Allocation() : Message(MsgType()) {} + Allocation(const FIX::Message& m) : Message(m) {} + Allocation(const Message& m) : Message(m) {} + Allocation(const Allocation& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("J"); } + + Allocation( + const FIX::AllocID& aAllocID, + const FIX::AllocTransType& aAllocTransType, + const FIX::Side& aSide, + const FIX::Symbol& aSymbol, + const FIX::Shares& aShares, + const FIX::AvgPx& aAvgPx, + const FIX::TradeDate& aTradeDate ) + : Message(MsgType()) + { + set(aAllocID); + set(aAllocTransType); + set(aSide); + set(aSymbol); + set(aShares); + set(aAvgPx); + set(aTradeDate); + } + + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::AllocTransType); + FIELD_SET(*this, FIX::RefAllocID); + FIELD_SET(*this, FIX::AllocLinkID); + FIELD_SET(*this, FIX::AllocLinkType); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Shares); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::AvgPrxPrecision); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::OpenClose); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,66,105,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::WaveNo); + }; + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,32,FIX::message_order(32,17,31,29,0)) {} + FIELD_SET(*this, FIX::LastShares); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::LastCapacity); + }; + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,366,80,81,92,208,209,161,360,361,76,109,12,13,153,154,119,120,155,156,159,160,136,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocPrice); + FIELD_SET(*this, FIX::AllocShares); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::BrokerOfCredit); + FIELD_SET(*this, FIX::NotifyBrokerOfCredit); + FIELD_SET(*this, FIX::AllocHandlInst); + FIELD_SET(*this, FIX::AllocText); + FIELD_SET(*this, FIX::EncodedAllocTextLen); + FIELD_SET(*this, FIX::EncodedAllocText); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::AllocAvgPx); + FIELD_SET(*this, FIX::AllocNetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::SettlInstMode); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/AllocationInstructionAck.h b/linux/include/quickfix/fix42/AllocationInstructionAck.h new file mode 100644 index 000000000..9dc62be5c --- /dev/null +++ b/linux/include/quickfix/fix42/AllocationInstructionAck.h @@ -0,0 +1,43 @@ +#ifndef FIX42_ALLOCATIONINSTRUCTIONACK_H +#define FIX42_ALLOCATIONINSTRUCTIONACK_H + +#include "Message.h" + +namespace FIX42 +{ + + class AllocationInstructionAck : public Message + { + public: + AllocationInstructionAck() : Message(MsgType()) {} + AllocationInstructionAck(const FIX::Message& m) : Message(m) {} + AllocationInstructionAck(const Message& m) : Message(m) {} + AllocationInstructionAck(const AllocationInstructionAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("P"); } + + AllocationInstructionAck( + const FIX::AllocID& aAllocID, + const FIX::TradeDate& aTradeDate, + const FIX::AllocStatus& aAllocStatus ) + : Message(MsgType()) + { + set(aAllocID); + set(aTradeDate); + set(aAllocStatus); + } + + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::AllocStatus); + FIELD_SET(*this, FIX::AllocRejCode); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/BidRequest.h b/linux/include/quickfix/fix42/BidRequest.h new file mode 100644 index 000000000..b61157047 --- /dev/null +++ b/linux/include/quickfix/fix42/BidRequest.h @@ -0,0 +1,96 @@ +#ifndef FIX42_BIDREQUEST_H +#define FIX42_BIDREQUEST_H + +#include "Message.h" + +namespace FIX42 +{ + + class BidRequest : public Message + { + public: + BidRequest() : Message(MsgType()) {} + BidRequest(const FIX::Message& m) : Message(m) {} + BidRequest(const Message& m) : Message(m) {} + BidRequest(const BidRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("k"); } + + BidRequest( + const FIX::ClientBidID& aClientBidID, + const FIX::BidRequestTransType& aBidRequestTransType, + const FIX::TotalNumSecurities& aTotalNumSecurities, + const FIX::BidType& aBidType, + const FIX::TradeType& aTradeType, + const FIX::BasisPxType& aBasisPxType ) + : Message(MsgType()) + { + set(aClientBidID); + set(aBidRequestTransType); + set(aTotalNumSecurities); + set(aBidType); + set(aTradeType); + set(aBasisPxType); + } + + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::BidRequestTransType); + FIELD_SET(*this, FIX::ListName); + FIELD_SET(*this, FIX::TotalNumSecurities); + FIELD_SET(*this, FIX::BidType); + FIELD_SET(*this, FIX::NumTickets); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SideValue1); + FIELD_SET(*this, FIX::SideValue2); + FIELD_SET(*this, FIX::LiquidityIndType); + FIELD_SET(*this, FIX::WtAverageLiquidity); + FIELD_SET(*this, FIX::ExchangeForPhysical); + FIELD_SET(*this, FIX::OutMainCntryUIndex); + FIELD_SET(*this, FIX::CrossPercent); + FIELD_SET(*this, FIX::ProgRptReqs); + FIELD_SET(*this, FIX::ProgPeriodInterval); + FIELD_SET(*this, FIX::IncTaxInd); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::NumBidders); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TradeType); + FIELD_SET(*this, FIX::BasisPxType); + FIELD_SET(*this, FIX::StrikeTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoBidDescriptors); + class NoBidDescriptors: public FIX::Group + { + public: + NoBidDescriptors() : FIX::Group(398,399,FIX::message_order(399,400,401,404,441,402,403,405,406,407,408,0)) {} + FIELD_SET(*this, FIX::BidDescriptorType); + FIELD_SET(*this, FIX::BidDescriptor); + FIELD_SET(*this, FIX::SideValueInd); + FIELD_SET(*this, FIX::LiquidityValue); + FIELD_SET(*this, FIX::LiquidityNumSecurities); + FIELD_SET(*this, FIX::LiquidityPctLow); + FIELD_SET(*this, FIX::LiquidityPctHigh); + FIELD_SET(*this, FIX::EFPTrackingError); + FIELD_SET(*this, FIX::FairValue); + FIELD_SET(*this, FIX::OutsideIndexPct); + FIELD_SET(*this, FIX::ValueOfFutures); + }; + FIELD_SET(*this, FIX::NoBidComponents); + class NoBidComponents: public FIX::Group + { + public: + NoBidComponents() : FIX::Group(420,66,FIX::message_order(66,54,336,430,63,64,1,0)) {} + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::NetGrossInd); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::Account); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/BidResponse.h b/linux/include/quickfix/fix42/BidResponse.h new file mode 100644 index 000000000..b1e3b2607 --- /dev/null +++ b/linux/include/quickfix/fix42/BidResponse.h @@ -0,0 +1,45 @@ +#ifndef FIX42_BIDRESPONSE_H +#define FIX42_BIDRESPONSE_H + +#include "Message.h" + +namespace FIX42 +{ + + class BidResponse : public Message + { + public: + BidResponse() : Message(MsgType()) {} + BidResponse(const FIX::Message& m) : Message(m) {} + BidResponse(const Message& m) : Message(m) {} + BidResponse(const BidResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("l"); } + + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::NoBidComponents); + class NoBidComponents: public FIX::Group + { + public: + NoBidComponents() : FIX::Group(420,12,FIX::message_order(12,13,66,421,54,44,423,406,430,63,64,336,58,354,355,0)) {} + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Country); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::FairValue); + FIELD_SET(*this, FIX::NetGrossInd); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/BusinessMessageReject.h b/linux/include/quickfix/fix42/BusinessMessageReject.h new file mode 100644 index 000000000..e808a4770 --- /dev/null +++ b/linux/include/quickfix/fix42/BusinessMessageReject.h @@ -0,0 +1,38 @@ +#ifndef FIX42_BUSINESSMESSAGEREJECT_H +#define FIX42_BUSINESSMESSAGEREJECT_H + +#include "Message.h" + +namespace FIX42 +{ + + class BusinessMessageReject : public Message + { + public: + BusinessMessageReject() : Message(MsgType()) {} + BusinessMessageReject(const FIX::Message& m) : Message(m) {} + BusinessMessageReject(const Message& m) : Message(m) {} + BusinessMessageReject(const BusinessMessageReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("j"); } + + BusinessMessageReject( + const FIX::RefMsgType& aRefMsgType, + const FIX::BusinessRejectReason& aBusinessRejectReason ) + : Message(MsgType()) + { + set(aRefMsgType); + set(aBusinessRejectReason); + } + + FIELD_SET(*this, FIX::RefSeqNum); + FIELD_SET(*this, FIX::RefMsgType); + FIELD_SET(*this, FIX::BusinessRejectRefID); + FIELD_SET(*this, FIX::BusinessRejectReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/DontKnowTrade.h b/linux/include/quickfix/fix42/DontKnowTrade.h new file mode 100644 index 000000000..44a1d55e8 --- /dev/null +++ b/linux/include/quickfix/fix42/DontKnowTrade.h @@ -0,0 +1,67 @@ +#ifndef FIX42_DONTKNOWTRADE_H +#define FIX42_DONTKNOWTRADE_H + +#include "Message.h" + +namespace FIX42 +{ + + class DontKnowTrade : public Message + { + public: + DontKnowTrade() : Message(MsgType()) {} + DontKnowTrade(const FIX::Message& m) : Message(m) {} + DontKnowTrade(const Message& m) : Message(m) {} + DontKnowTrade(const DontKnowTrade& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("Q"); } + + DontKnowTrade( + const FIX::OrderID& aOrderID, + const FIX::ExecID& aExecID, + const FIX::DKReason& aDKReason, + const FIX::Symbol& aSymbol, + const FIX::Side& aSide ) + : Message(MsgType()) + { + set(aOrderID); + set(aExecID); + set(aDKReason); + set(aSymbol); + set(aSide); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::DKReason); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::LastShares); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/Email.h b/linux/include/quickfix/fix42/Email.h new file mode 100644 index 000000000..d47963891 --- /dev/null +++ b/linux/include/quickfix/fix42/Email.h @@ -0,0 +1,85 @@ +#ifndef FIX42_EMAIL_H +#define FIX42_EMAIL_H + +#include "Message.h" + +namespace FIX42 +{ + + class Email : public Message + { + public: + Email() : Message(MsgType()) {} + Email(const FIX::Message& m) : Message(m) {} + Email(const Message& m) : Message(m) {} + Email(const Email& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("C"); } + + Email( + const FIX::EmailThreadID& aEmailThreadID, + const FIX::EmailType& aEmailType, + const FIX::Subject& aSubject ) + : Message(MsgType()) + { + set(aEmailThreadID); + set(aEmailType); + set(aSubject); + } + + FIELD_SET(*this, FIX::EmailThreadID); + FIELD_SET(*this, FIX::EmailType); + FIELD_SET(*this, FIX::OrigTime); + FIELD_SET(*this, FIX::Subject); + FIELD_SET(*this, FIX::EncodedSubjectLen); + FIELD_SET(*this, FIX::EncodedSubject); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,46,FIX::message_order(46,65,48,22,167,200,205,201,202,206,231,223,207,106,348,349,107,350,351,0)) {} + FIELD_SET(*this, FIX::RelatdSym); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + }; + FIELD_SET(*this, FIX::LinesOfText); + class LinesOfText: public FIX::Group + { + public: + LinesOfText() : FIX::Group(33,58,FIX::message_order(58,354,355,0)) {} + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/ExecutionReport.h b/linux/include/quickfix/fix42/ExecutionReport.h new file mode 100644 index 000000000..0916f538c --- /dev/null +++ b/linux/include/quickfix/fix42/ExecutionReport.h @@ -0,0 +1,148 @@ +#ifndef FIX42_EXECUTIONREPORT_H +#define FIX42_EXECUTIONREPORT_H + +#include "Message.h" + +namespace FIX42 +{ + + class ExecutionReport : public Message + { + public: + ExecutionReport() : Message(MsgType()) {} + ExecutionReport(const FIX::Message& m) : Message(m) {} + ExecutionReport(const Message& m) : Message(m) {} + ExecutionReport(const ExecutionReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("8"); } + + ExecutionReport( + const FIX::OrderID& aOrderID, + const FIX::ExecID& aExecID, + const FIX::ExecTransType& aExecTransType, + const FIX::ExecType& aExecType, + const FIX::OrdStatus& aOrdStatus, + const FIX::Symbol& aSymbol, + const FIX::Side& aSide, + const FIX::LeavesQty& aLeavesQty, + const FIX::CumQty& aCumQty, + const FIX::AvgPx& aAvgPx ) + : Message(MsgType()) + { + set(aOrderID); + set(aExecID); + set(aExecTransType); + set(aExecType); + set(aOrdStatus); + set(aSymbol); + set(aSide); + set(aLeavesQty); + set(aCumQty); + set(aAvgPx); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::ExecTransType); + FIELD_SET(*this, FIX::ExecRefID); + FIELD_SET(*this, FIX::ExecType); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::OrdRejReason); + FIELD_SET(*this, FIX::ExecRestatementReason); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::PegDifference); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffset); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::Rule80A); + FIELD_SET(*this, FIX::LastShares); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::LastSpotRate); + FIELD_SET(*this, FIX::LastForwardPoints); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::LastCapacity); + FIELD_SET(*this, FIX::LeavesQty); + FIELD_SET(*this, FIX::CumQty); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::DayOrderQty); + FIELD_SET(*this, FIX::DayCumQty); + FIELD_SET(*this, FIX::DayAvgPx); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::ReportToExch); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::OpenClose); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::FutSettDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::ClearingFirm); + FIELD_SET(*this, FIX::ClearingAccount); + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::NoContraBrokers); + class NoContraBrokers: public FIX::Group + { + public: + NoContraBrokers() : FIX::Group(382,375,FIX::message_order(375,337,437,438,0)) {} + FIELD_SET(*this, FIX::ContraBroker); + FIELD_SET(*this, FIX::ContraTrader); + FIELD_SET(*this, FIX::ContraTradeQty); + FIELD_SET(*this, FIX::ContraTradeTime); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/Heartbeat.h b/linux/include/quickfix/fix42/Heartbeat.h new file mode 100644 index 000000000..037fe56b5 --- /dev/null +++ b/linux/include/quickfix/fix42/Heartbeat.h @@ -0,0 +1,23 @@ +#ifndef FIX42_HEARTBEAT_H +#define FIX42_HEARTBEAT_H + +#include "Message.h" + +namespace FIX42 +{ + + class Heartbeat : public Message + { + public: + Heartbeat() : Message(MsgType()) {} + Heartbeat(const FIX::Message& m) : Message(m) {} + Heartbeat(const Message& m) : Message(m) {} + Heartbeat(const Heartbeat& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("0"); } + + FIELD_SET(*this, FIX::TestReqID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/IOI.h b/linux/include/quickfix/fix42/IOI.h new file mode 100644 index 000000000..27f0724f7 --- /dev/null +++ b/linux/include/quickfix/fix42/IOI.h @@ -0,0 +1,88 @@ +#ifndef FIX42_IOI_H +#define FIX42_IOI_H + +#include "Message.h" + +namespace FIX42 +{ + + class IOI : public Message + { + public: + IOI() : Message(MsgType()) {} + IOI(const FIX::Message& m) : Message(m) {} + IOI(const Message& m) : Message(m) {} + IOI(const IOI& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("6"); } + + IOI( + const FIX::IOIid& aIOIid, + const FIX::IOITransType& aIOITransType, + const FIX::Symbol& aSymbol, + const FIX::Side& aSide, + const FIX::IOIShares& aIOIShares ) + : Message(MsgType()) + { + set(aIOIid); + set(aIOITransType); + set(aSymbol); + set(aSide); + set(aIOIShares); + } + + FIELD_SET(*this, FIX::IOIid); + FIELD_SET(*this, FIX::IOITransType); + FIELD_SET(*this, FIX::IOIRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::IOIShares); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::IOIQltyInd); + FIELD_SET(*this, FIX::IOINaturalFlag); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::URLLink); + FIELD_SET(*this, FIX::SpreadToBenchmark); + FIELD_SET(*this, FIX::Benchmark); + FIELD_SET(*this, FIX::NoIOIQualifiers); + class NoIOIQualifiers: public FIX::Group + { + public: + NoIOIQualifiers() : FIX::Group(199,104,FIX::message_order(104,0)) {} + FIELD_SET(*this, FIX::IOIQualifier); + }; + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/ListCancelRequest.h b/linux/include/quickfix/fix42/ListCancelRequest.h new file mode 100644 index 000000000..1ed2e672d --- /dev/null +++ b/linux/include/quickfix/fix42/ListCancelRequest.h @@ -0,0 +1,36 @@ +#ifndef FIX42_LISTCANCELREQUEST_H +#define FIX42_LISTCANCELREQUEST_H + +#include "Message.h" + +namespace FIX42 +{ + + class ListCancelRequest : public Message + { + public: + ListCancelRequest() : Message(MsgType()) {} + ListCancelRequest(const FIX::Message& m) : Message(m) {} + ListCancelRequest(const Message& m) : Message(m) {} + ListCancelRequest(const ListCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("K"); } + + ListCancelRequest( + const FIX::ListID& aListID, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aListID); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/ListExecute.h b/linux/include/quickfix/fix42/ListExecute.h new file mode 100644 index 000000000..d3dd05688 --- /dev/null +++ b/linux/include/quickfix/fix42/ListExecute.h @@ -0,0 +1,38 @@ +#ifndef FIX42_LISTEXECUTE_H +#define FIX42_LISTEXECUTE_H + +#include "Message.h" + +namespace FIX42 +{ + + class ListExecute : public Message + { + public: + ListExecute() : Message(MsgType()) {} + ListExecute(const FIX::Message& m) : Message(m) {} + ListExecute(const Message& m) : Message(m) {} + ListExecute(const ListExecute& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("L"); } + + ListExecute( + const FIX::ListID& aListID, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aListID); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/ListStatus.h b/linux/include/quickfix/fix42/ListStatus.h new file mode 100644 index 000000000..0421e19cc --- /dev/null +++ b/linux/include/quickfix/fix42/ListStatus.h @@ -0,0 +1,65 @@ +#ifndef FIX42_LISTSTATUS_H +#define FIX42_LISTSTATUS_H + +#include "Message.h" + +namespace FIX42 +{ + + class ListStatus : public Message + { + public: + ListStatus() : Message(MsgType()) {} + ListStatus(const FIX::Message& m) : Message(m) {} + ListStatus(const Message& m) : Message(m) {} + ListStatus(const ListStatus& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("N"); } + + ListStatus( + const FIX::ListID& aListID, + const FIX::ListStatusType& aListStatusType, + const FIX::NoRpts& aNoRpts, + const FIX::ListOrderStatus& aListOrderStatus, + const FIX::RptSeq& aRptSeq, + const FIX::TotNoOrders& aTotNoOrders ) + : Message(MsgType()) + { + set(aListID); + set(aListStatusType); + set(aNoRpts); + set(aListOrderStatus); + set(aRptSeq); + set(aTotNoOrders); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::ListStatusType); + FIELD_SET(*this, FIX::NoRpts); + FIELD_SET(*this, FIX::ListOrderStatus); + FIELD_SET(*this, FIX::RptSeq); + FIELD_SET(*this, FIX::ListStatusText); + FIELD_SET(*this, FIX::EncodedListStatusTextLen); + FIELD_SET(*this, FIX::EncodedListStatusText); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TotNoOrders); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,14,39,151,84,6,103,58,354,355,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::CumQty); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::LeavesQty); + FIELD_SET(*this, FIX::CxlQty); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::OrdRejReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/ListStatusRequest.h b/linux/include/quickfix/fix42/ListStatusRequest.h new file mode 100644 index 000000000..cd1c1ac8b --- /dev/null +++ b/linux/include/quickfix/fix42/ListStatusRequest.h @@ -0,0 +1,33 @@ +#ifndef FIX42_LISTSTATUSREQUEST_H +#define FIX42_LISTSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX42 +{ + + class ListStatusRequest : public Message + { + public: + ListStatusRequest() : Message(MsgType()) {} + ListStatusRequest(const FIX::Message& m) : Message(m) {} + ListStatusRequest(const Message& m) : Message(m) {} + ListStatusRequest(const ListStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("M"); } + + ListStatusRequest( + const FIX::ListID& aListID ) + : Message(MsgType()) + { + set(aListID); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/ListStrikePrice.h b/linux/include/quickfix/fix42/ListStrikePrice.h new file mode 100644 index 000000000..4e9e2d186 --- /dev/null +++ b/linux/include/quickfix/fix42/ListStrikePrice.h @@ -0,0 +1,66 @@ +#ifndef FIX42_LISTSTRIKEPRICE_H +#define FIX42_LISTSTRIKEPRICE_H + +#include "Message.h" + +namespace FIX42 +{ + + class ListStrikePrice : public Message + { + public: + ListStrikePrice() : Message(MsgType()) {} + ListStrikePrice(const FIX::Message& m) : Message(m) {} + ListStrikePrice(const Message& m) : Message(m) {} + ListStrikePrice(const ListStrikePrice& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("m"); } + + ListStrikePrice( + const FIX::ListID& aListID, + const FIX::TotNoStrikes& aTotNoStrikes ) + : Message(MsgType()) + { + set(aListID); + set(aTotNoStrikes); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::TotNoStrikes); + FIELD_SET(*this, FIX::NoStrikes); + class NoStrikes: public FIX::Group + { + public: + NoStrikes() : FIX::Group(428,55,FIX::message_order(55,65,48,22,167,200,205,201,202,206,231,223,207,106,348,349,107,350,351,140,11,54,44,15,58,354,355,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/Logon.h b/linux/include/quickfix/fix42/Logon.h new file mode 100644 index 000000000..677f93cdb --- /dev/null +++ b/linux/include/quickfix/fix42/Logon.h @@ -0,0 +1,45 @@ +#ifndef FIX42_LOGON_H +#define FIX42_LOGON_H + +#include "Message.h" + +namespace FIX42 +{ + + class Logon : public Message + { + public: + Logon() : Message(MsgType()) {} + Logon(const FIX::Message& m) : Message(m) {} + Logon(const Message& m) : Message(m) {} + Logon(const Logon& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("A"); } + + Logon( + const FIX::EncryptMethod& aEncryptMethod, + const FIX::HeartBtInt& aHeartBtInt ) + : Message(MsgType()) + { + set(aEncryptMethod); + set(aHeartBtInt); + } + + FIELD_SET(*this, FIX::EncryptMethod); + FIELD_SET(*this, FIX::HeartBtInt); + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + FIELD_SET(*this, FIX::ResetSeqNumFlag); + FIELD_SET(*this, FIX::MaxMessageSize); + FIELD_SET(*this, FIX::NoMsgTypes); + class NoMsgTypes: public FIX::Group + { + public: + NoMsgTypes() : FIX::Group(384,372,FIX::message_order(372,385,0)) {} + FIELD_SET(*this, FIX::RefMsgType); + FIELD_SET(*this, FIX::MsgDirection); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/Logout.h b/linux/include/quickfix/fix42/Logout.h new file mode 100644 index 000000000..ba11e4f2c --- /dev/null +++ b/linux/include/quickfix/fix42/Logout.h @@ -0,0 +1,25 @@ +#ifndef FIX42_LOGOUT_H +#define FIX42_LOGOUT_H + +#include "Message.h" + +namespace FIX42 +{ + + class Logout : public Message + { + public: + Logout() : Message(MsgType()) {} + Logout(const FIX::Message& m) : Message(m) {} + Logout(const Message& m) : Message(m) {} + Logout(const Logout& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("5"); } + + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/MarketDataIncrementalRefresh.h b/linux/include/quickfix/fix42/MarketDataIncrementalRefresh.h new file mode 100644 index 000000000..05237b6f2 --- /dev/null +++ b/linux/include/quickfix/fix42/MarketDataIncrementalRefresh.h @@ -0,0 +1,85 @@ +#ifndef FIX42_MARKETDATAINCREMENTALREFRESH_H +#define FIX42_MARKETDATAINCREMENTALREFRESH_H + +#include "Message.h" + +namespace FIX42 +{ + + class MarketDataIncrementalRefresh : public Message + { + public: + MarketDataIncrementalRefresh() : Message(MsgType()) {} + MarketDataIncrementalRefresh(const FIX::Message& m) : Message(m) {} + MarketDataIncrementalRefresh(const Message& m) : Message(m) {} + MarketDataIncrementalRefresh(const MarketDataIncrementalRefresh& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("X"); } + + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::NoMDEntries); + class NoMDEntries: public FIX::Group + { + public: + NoMDEntries() : FIX::Group(268,279,FIX::message_order(279,285,269,278,280,55,65,48,22,167,200,205,201,202,206,231,223,207,106,348,349,107,350,351,291,292,270,15,271,272,273,274,275,336,276,277,282,283,284,286,59,432,126,110,18,287,37,299,288,289,346,290,387,58,354,355,0)) {} + FIELD_SET(*this, FIX::MDUpdateAction); + FIELD_SET(*this, FIX::DeleteReason); + FIELD_SET(*this, FIX::MDEntryType); + FIELD_SET(*this, FIX::MDEntryID); + FIELD_SET(*this, FIX::MDEntryRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::MDEntryPx); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::MDEntrySize); + FIELD_SET(*this, FIX::MDEntryDate); + FIELD_SET(*this, FIX::MDEntryTime); + FIELD_SET(*this, FIX::TickDirection); + FIELD_SET(*this, FIX::MDMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::QuoteCondition); + FIELD_SET(*this, FIX::TradeCondition); + FIELD_SET(*this, FIX::MDEntryOriginator); + FIELD_SET(*this, FIX::LocationID); + FIELD_SET(*this, FIX::DeskID); + FIELD_SET(*this, FIX::OpenCloseSettleFlag); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::SellerDays); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::MDEntryBuyer); + FIELD_SET(*this, FIX::MDEntrySeller); + FIELD_SET(*this, FIX::NumberOfOrders); + FIELD_SET(*this, FIX::MDEntryPositionNo); + FIELD_SET(*this, FIX::TotalVolumeTraded); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/MarketDataRequest.h b/linux/include/quickfix/fix42/MarketDataRequest.h new file mode 100644 index 000000000..ae3d690f2 --- /dev/null +++ b/linux/include/quickfix/fix42/MarketDataRequest.h @@ -0,0 +1,71 @@ +#ifndef FIX42_MARKETDATAREQUEST_H +#define FIX42_MARKETDATAREQUEST_H + +#include "Message.h" + +namespace FIX42 +{ + + class MarketDataRequest : public Message + { + public: + MarketDataRequest() : Message(MsgType()) {} + MarketDataRequest(const FIX::Message& m) : Message(m) {} + MarketDataRequest(const Message& m) : Message(m) {} + MarketDataRequest(const MarketDataRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("V"); } + + MarketDataRequest( + const FIX::MDReqID& aMDReqID, + const FIX::SubscriptionRequestType& aSubscriptionRequestType, + const FIX::MarketDepth& aMarketDepth ) + : Message(MsgType()) + { + set(aMDReqID); + set(aSubscriptionRequestType); + set(aMarketDepth); + } + + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::MarketDepth); + FIELD_SET(*this, FIX::MDUpdateType); + FIELD_SET(*this, FIX::AggregatedBook); + FIELD_SET(*this, FIX::NoMDEntryTypes); + class NoMDEntryTypes: public FIX::Group + { + public: + NoMDEntryTypes() : FIX::Group(267,269,FIX::message_order(269,0)) {} + FIELD_SET(*this, FIX::MDEntryType); + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,167,200,205,201,202,206,231,223,207,106,348,349,107,350,351,336,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::TradingSessionID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/MarketDataRequestReject.h b/linux/include/quickfix/fix42/MarketDataRequestReject.h new file mode 100644 index 000000000..681eaaae9 --- /dev/null +++ b/linux/include/quickfix/fix42/MarketDataRequestReject.h @@ -0,0 +1,34 @@ +#ifndef FIX42_MARKETDATAREQUESTREJECT_H +#define FIX42_MARKETDATAREQUESTREJECT_H + +#include "Message.h" + +namespace FIX42 +{ + + class MarketDataRequestReject : public Message + { + public: + MarketDataRequestReject() : Message(MsgType()) {} + MarketDataRequestReject(const FIX::Message& m) : Message(m) {} + MarketDataRequestReject(const Message& m) : Message(m) {} + MarketDataRequestReject(const MarketDataRequestReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("Y"); } + + MarketDataRequestReject( + const FIX::MDReqID& aMDReqID ) + : Message(MsgType()) + { + set(aMDReqID); + } + + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::MDReqRejReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/MarketDataSnapshotFullRefresh.h b/linux/include/quickfix/fix42/MarketDataSnapshotFullRefresh.h new file mode 100644 index 000000000..05c3ced5c --- /dev/null +++ b/linux/include/quickfix/fix42/MarketDataSnapshotFullRefresh.h @@ -0,0 +1,88 @@ +#ifndef FIX42_MARKETDATASNAPSHOTFULLREFRESH_H +#define FIX42_MARKETDATASNAPSHOTFULLREFRESH_H + +#include "Message.h" + +namespace FIX42 +{ + + class MarketDataSnapshotFullRefresh : public Message + { + public: + MarketDataSnapshotFullRefresh() : Message(MsgType()) {} + MarketDataSnapshotFullRefresh(const FIX::Message& m) : Message(m) {} + MarketDataSnapshotFullRefresh(const Message& m) : Message(m) {} + MarketDataSnapshotFullRefresh(const MarketDataSnapshotFullRefresh& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("W"); } + + MarketDataSnapshotFullRefresh( + const FIX::Symbol& aSymbol ) + : Message(MsgType()) + { + set(aSymbol); + } + + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::TotalVolumeTraded); + FIELD_SET(*this, FIX::NoMDEntries); + class NoMDEntries: public FIX::Group + { + public: + NoMDEntries() : FIX::Group(268,269,FIX::message_order(269,270,15,271,272,273,274,275,336,276,277,282,283,284,286,59,432,126,110,18,287,37,299,288,289,346,290,58,354,355,0)) {} + FIELD_SET(*this, FIX::MDEntryType); + FIELD_SET(*this, FIX::MDEntryPx); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::MDEntrySize); + FIELD_SET(*this, FIX::MDEntryDate); + FIELD_SET(*this, FIX::MDEntryTime); + FIELD_SET(*this, FIX::TickDirection); + FIELD_SET(*this, FIX::MDMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::QuoteCondition); + FIELD_SET(*this, FIX::TradeCondition); + FIELD_SET(*this, FIX::MDEntryOriginator); + FIELD_SET(*this, FIX::LocationID); + FIELD_SET(*this, FIX::DeskID); + FIELD_SET(*this, FIX::OpenCloseSettleFlag); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::SellerDays); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::MDEntryBuyer); + FIELD_SET(*this, FIX::MDEntrySeller); + FIELD_SET(*this, FIX::NumberOfOrders); + FIELD_SET(*this, FIX::MDEntryPositionNo); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/MassQuote.h b/linux/include/quickfix/fix42/MassQuote.h new file mode 100644 index 000000000..bfba7c932 --- /dev/null +++ b/linux/include/quickfix/fix42/MassQuote.h @@ -0,0 +1,104 @@ +#ifndef FIX42_MASSQUOTE_H +#define FIX42_MASSQUOTE_H + +#include "Message.h" + +namespace FIX42 +{ + + class MassQuote : public Message + { + public: + MassQuote() : Message(MsgType()) {} + MassQuote(const FIX::Message& m) : Message(m) {} + MassQuote(const Message& m) : Message(m) {} + MassQuote(const MassQuote& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("i"); } + + MassQuote( + const FIX::QuoteID& aQuoteID ) + : Message(MsgType()) + { + set(aQuoteID); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::DefBidSize); + FIELD_SET(*this, FIX::DefOfferSize); + FIELD_SET(*this, FIX::NoQuoteSets); + class NoQuoteSets: public FIX::Group + { + public: + NoQuoteSets() : FIX::Group(296,302,FIX::message_order(302,311,312,309,305,310,313,314,315,316,317,436,435,308,306,362,363,307,364,365,367,304,295,0)) {} + FIELD_SET(*this, FIX::QuoteSetID); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingIDSource); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDay); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::QuoteSetValidUntilTime); + FIELD_SET(*this, FIX::TotQuoteEntries); + FIELD_SET(*this, FIX::NoQuoteEntries); + class NoQuoteEntries: public FIX::Group + { + public: + NoQuoteEntries() : FIX::Group(295,299,FIX::message_order(299,55,65,48,22,167,200,205,201,202,206,231,223,207,106,348,349,107,350,351,132,133,134,135,62,188,190,189,191,60,336,64,40,193,192,15,0)) {} + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::FutSettDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Currency); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/Message.h b/linux/include/quickfix/fix42/Message.h new file mode 100644 index 000000000..febfdbedf --- /dev/null +++ b/linux/include/quickfix/fix42/Message.h @@ -0,0 +1,67 @@ +#ifndef FIX42_MESSAGES_H +#define FIX42_MESSAGES_H + +#include "../Message.h" +#include "../Group.h" + +namespace FIX42 +{ + class Header : public FIX::Header + { + public: + FIELD_SET(*this, FIX::BeginString); + FIELD_SET(*this, FIX::BodyLength); + FIELD_SET(*this, FIX::MsgType); + FIELD_SET(*this, FIX::SenderCompID); + FIELD_SET(*this, FIX::TargetCompID); + FIELD_SET(*this, FIX::OnBehalfOfCompID); + FIELD_SET(*this, FIX::DeliverToCompID); + FIELD_SET(*this, FIX::SecureDataLen); + FIELD_SET(*this, FIX::SecureData); + FIELD_SET(*this, FIX::MsgSeqNum); + FIELD_SET(*this, FIX::SenderSubID); + FIELD_SET(*this, FIX::SenderLocationID); + FIELD_SET(*this, FIX::TargetSubID); + FIELD_SET(*this, FIX::TargetLocationID); + FIELD_SET(*this, FIX::OnBehalfOfSubID); + FIELD_SET(*this, FIX::OnBehalfOfLocationID); + FIELD_SET(*this, FIX::DeliverToSubID); + FIELD_SET(*this, FIX::DeliverToLocationID); + FIELD_SET(*this, FIX::PossDupFlag); + FIELD_SET(*this, FIX::PossResend); + FIELD_SET(*this, FIX::SendingTime); + FIELD_SET(*this, FIX::OrigSendingTime); + FIELD_SET(*this, FIX::XmlDataLen); + FIELD_SET(*this, FIX::XmlData); + FIELD_SET(*this, FIX::MessageEncoding); + FIELD_SET(*this, FIX::LastMsgSeqNumProcessed); + FIELD_SET(*this, FIX::OnBehalfOfSendingTime); + }; + + class Trailer : public FIX::Trailer + { + public: + FIELD_SET(*this, FIX::SignatureLength); + FIELD_SET(*this, FIX::Signature); + FIELD_SET(*this, FIX::CheckSum); + }; + + class Message : public FIX::Message + { + public: + Message( const FIX::MsgType& msgtype ) + : FIX::Message( + FIX::BeginString("FIX.4.2"), msgtype ) + {} + + Message(const FIX::Message& m) : FIX::Message(m) {} + Message(const Message& m) : FIX::Message(m) {} + Header& getHeader() { return (Header&)m_header; } + const Header& getHeader() const { return (Header&)m_header; } + Trailer& getTrailer() { return (Trailer&)m_trailer; } + const Trailer& getTrailer() const { return (Trailer&)m_trailer; } + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/MessageCracker.h b/linux/include/quickfix/fix42/MessageCracker.h new file mode 100644 index 000000000..afc9ad1ff --- /dev/null +++ b/linux/include/quickfix/fix42/MessageCracker.h @@ -0,0 +1,524 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX42_MESSAGECRACKER_H +#define FIX42_MESSAGECRACKER_H + + +#include "../SessionID.h" +#include "../Exceptions.h" + +#include "../fix42/Message.h" + +namespace FIX42 +{ + class Heartbeat; + class TestRequest; + class ResendRequest; + class Reject; + class SequenceReset; + class Logout; + class IOI; + class Advertisement; + class ExecutionReport; + class OrderCancelReject; + class Logon; + class News; + class Email; + class NewOrderSingle; + class NewOrderList; + class OrderCancelRequest; + class OrderCancelReplaceRequest; + class OrderStatusRequest; + class Allocation; + class ListCancelRequest; + class ListExecute; + class ListStatusRequest; + class ListStatus; + class AllocationInstructionAck; + class DontKnowTrade; + class QuoteRequest; + class Quote; + class SettlementInstructions; + class MarketDataRequest; + class MarketDataSnapshotFullRefresh; + class MarketDataIncrementalRefresh; + class MarketDataRequestReject; + class QuoteCancel; + class QuoteStatusRequest; + class QuoteAcknowledgement; + class SecurityDefinitionRequest; + class SecurityDefinition; + class SecurityStatusRequest; + class SecurityStatus; + class TradingSessionStatusRequest; + class TradingSessionStatus; + class MassQuote; + class BusinessMessageReject; + class BidRequest; + class BidResponse; + class ListStrikePrice; + + class MessageCracker + { + public: + virtual ~MessageCracker() {} + virtual void onMessage( const Message&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( Message&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Heartbeat&, const FIX::SessionID& ) + {} + virtual void onMessage( const TestRequest&, const FIX::SessionID& ) + {} + virtual void onMessage( const ResendRequest&, const FIX::SessionID& ) + {} + virtual void onMessage( const Reject&, const FIX::SessionID& ) + {} + virtual void onMessage( const SequenceReset&, const FIX::SessionID& ) + {} + virtual void onMessage( const Logout&, const FIX::SessionID& ) + {} + virtual void onMessage( const IOI&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Advertisement&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ExecutionReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelReject&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Logon&, const FIX::SessionID& ) + {} + virtual void onMessage( const News&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Email&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderSingle&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderList&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelReplaceRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Allocation&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListExecute&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListStatus&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AllocationInstructionAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const DontKnowTrade&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Quote&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SettlementInstructions&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataSnapshotFullRefresh&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataIncrementalRefresh&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataRequestReject&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteCancel&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteAcknowledgement&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityDefinitionRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityDefinition&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityStatus&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradingSessionStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradingSessionStatus&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MassQuote&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const BusinessMessageReject&, const FIX::SessionID& ) + {} + virtual void onMessage( const BidRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const BidResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListStrikePrice&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( Heartbeat&, const FIX::SessionID& ) {} + virtual void onMessage( TestRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ResendRequest&, const FIX::SessionID& ) {} + virtual void onMessage( Reject&, const FIX::SessionID& ) {} + virtual void onMessage( SequenceReset&, const FIX::SessionID& ) {} + virtual void onMessage( Logout&, const FIX::SessionID& ) {} + virtual void onMessage( IOI&, const FIX::SessionID& ) {} + virtual void onMessage( Advertisement&, const FIX::SessionID& ) {} + virtual void onMessage( ExecutionReport&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelReject&, const FIX::SessionID& ) {} + virtual void onMessage( Logon&, const FIX::SessionID& ) {} + virtual void onMessage( News&, const FIX::SessionID& ) {} + virtual void onMessage( Email&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderSingle&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderList&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelReplaceRequest&, const FIX::SessionID& ) {} + virtual void onMessage( OrderStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( Allocation&, const FIX::SessionID& ) {} + virtual void onMessage( ListCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ListExecute&, const FIX::SessionID& ) {} + virtual void onMessage( ListStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ListStatus&, const FIX::SessionID& ) {} + virtual void onMessage( AllocationInstructionAck&, const FIX::SessionID& ) {} + virtual void onMessage( DontKnowTrade&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteRequest&, const FIX::SessionID& ) {} + virtual void onMessage( Quote&, const FIX::SessionID& ) {} + virtual void onMessage( SettlementInstructions&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataRequest&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataSnapshotFullRefresh&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataIncrementalRefresh&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataRequestReject&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteCancel&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteAcknowledgement&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityDefinitionRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityDefinition&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityStatus&, const FIX::SessionID& ) {} + virtual void onMessage( TradingSessionStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( TradingSessionStatus&, const FIX::SessionID& ) {} + virtual void onMessage( MassQuote&, const FIX::SessionID& ) {} + virtual void onMessage( BusinessMessageReject&, const FIX::SessionID& ) {} + virtual void onMessage( BidRequest&, const FIX::SessionID& ) {} + virtual void onMessage( BidResponse&, const FIX::SessionID& ) {} + virtual void onMessage( ListStrikePrice&, const FIX::SessionID& ) {} + +public: + void crack( const Message& message, + const FIX::SessionID& sessionID ) + { + const std::string& msgTypeValue + = message.getHeader().getField( FIX::FIELD::MsgType ); + + if( msgTypeValue == "0" ) + onMessage( (const Heartbeat&)message, sessionID ); + else + if( msgTypeValue == "1" ) + onMessage( (const TestRequest&)message, sessionID ); + else + if( msgTypeValue == "2" ) + onMessage( (const ResendRequest&)message, sessionID ); + else + if( msgTypeValue == "3" ) + onMessage( (const Reject&)message, sessionID ); + else + if( msgTypeValue == "4" ) + onMessage( (const SequenceReset&)message, sessionID ); + else + if( msgTypeValue == "5" ) + onMessage( (const Logout&)message, sessionID ); + else + if( msgTypeValue == "6" ) + onMessage( (const IOI&)message, sessionID ); + else + if( msgTypeValue == "7" ) + onMessage( (const Advertisement&)message, sessionID ); + else + if( msgTypeValue == "8" ) + onMessage( (const ExecutionReport&)message, sessionID ); + else + if( msgTypeValue == "9" ) + onMessage( (const OrderCancelReject&)message, sessionID ); + else + if( msgTypeValue == "A" ) + onMessage( (const Logon&)message, sessionID ); + else + if( msgTypeValue == "B" ) + onMessage( (const News&)message, sessionID ); + else + if( msgTypeValue == "C" ) + onMessage( (const Email&)message, sessionID ); + else + if( msgTypeValue == "D" ) + onMessage( (const NewOrderSingle&)message, sessionID ); + else + if( msgTypeValue == "E" ) + onMessage( (const NewOrderList&)message, sessionID ); + else + if( msgTypeValue == "F" ) + onMessage( (const OrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "G" ) + onMessage( (const OrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "H" ) + onMessage( (const OrderStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "J" ) + onMessage( (const Allocation&)message, sessionID ); + else + if( msgTypeValue == "K" ) + onMessage( (const ListCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "L" ) + onMessage( (const ListExecute&)message, sessionID ); + else + if( msgTypeValue == "M" ) + onMessage( (const ListStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "N" ) + onMessage( (const ListStatus&)message, sessionID ); + else + if( msgTypeValue == "P" ) + onMessage( (const AllocationInstructionAck&)message, sessionID ); + else + if( msgTypeValue == "Q" ) + onMessage( (const DontKnowTrade&)message, sessionID ); + else + if( msgTypeValue == "R" ) + onMessage( (const QuoteRequest&)message, sessionID ); + else + if( msgTypeValue == "S" ) + onMessage( (const Quote&)message, sessionID ); + else + if( msgTypeValue == "T" ) + onMessage( (const SettlementInstructions&)message, sessionID ); + else + if( msgTypeValue == "V" ) + onMessage( (const MarketDataRequest&)message, sessionID ); + else + if( msgTypeValue == "W" ) + onMessage( (const MarketDataSnapshotFullRefresh&)message, sessionID ); + else + if( msgTypeValue == "X" ) + onMessage( (const MarketDataIncrementalRefresh&)message, sessionID ); + else + if( msgTypeValue == "Y" ) + onMessage( (const MarketDataRequestReject&)message, sessionID ); + else + if( msgTypeValue == "Z" ) + onMessage( (const QuoteCancel&)message, sessionID ); + else + if( msgTypeValue == "a" ) + onMessage( (const QuoteStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "b" ) + onMessage( (const QuoteAcknowledgement&)message, sessionID ); + else + if( msgTypeValue == "c" ) + onMessage( (const SecurityDefinitionRequest&)message, sessionID ); + else + if( msgTypeValue == "d" ) + onMessage( (const SecurityDefinition&)message, sessionID ); + else + if( msgTypeValue == "e" ) + onMessage( (const SecurityStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "f" ) + onMessage( (const SecurityStatus&)message, sessionID ); + else + if( msgTypeValue == "g" ) + onMessage( (const TradingSessionStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "h" ) + onMessage( (const TradingSessionStatus&)message, sessionID ); + else + if( msgTypeValue == "i" ) + onMessage( (const MassQuote&)message, sessionID ); + else + if( msgTypeValue == "j" ) + onMessage( (const BusinessMessageReject&)message, sessionID ); + else + if( msgTypeValue == "k" ) + onMessage( (const BidRequest&)message, sessionID ); + else + if( msgTypeValue == "l" ) + onMessage( (const BidResponse&)message, sessionID ); + else + if( msgTypeValue == "m" ) + onMessage( (const ListStrikePrice&)message, sessionID ); + else onMessage( message, sessionID ); + } + +void crack( Message& message, + const FIX::SessionID& sessionID ) + { + FIX::MsgType msgType; + message.getHeader().getField(msgType); + std::string msgTypeValue = msgType.getValue(); + + if( msgTypeValue == "0" ) + onMessage( (Heartbeat&)message, sessionID ); + else + if( msgTypeValue == "1" ) + onMessage( (TestRequest&)message, sessionID ); + else + if( msgTypeValue == "2" ) + onMessage( (ResendRequest&)message, sessionID ); + else + if( msgTypeValue == "3" ) + onMessage( (Reject&)message, sessionID ); + else + if( msgTypeValue == "4" ) + onMessage( (SequenceReset&)message, sessionID ); + else + if( msgTypeValue == "5" ) + onMessage( (Logout&)message, sessionID ); + else + if( msgTypeValue == "6" ) + onMessage( (IOI&)message, sessionID ); + else + if( msgTypeValue == "7" ) + onMessage( (Advertisement&)message, sessionID ); + else + if( msgTypeValue == "8" ) + onMessage( (ExecutionReport&)message, sessionID ); + else + if( msgTypeValue == "9" ) + onMessage( (OrderCancelReject&)message, sessionID ); + else + if( msgTypeValue == "A" ) + onMessage( (Logon&)message, sessionID ); + else + if( msgTypeValue == "B" ) + onMessage( (News&)message, sessionID ); + else + if( msgTypeValue == "C" ) + onMessage( (Email&)message, sessionID ); + else + if( msgTypeValue == "D" ) + onMessage( (NewOrderSingle&)message, sessionID ); + else + if( msgTypeValue == "E" ) + onMessage( (NewOrderList&)message, sessionID ); + else + if( msgTypeValue == "F" ) + onMessage( (OrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "G" ) + onMessage( (OrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "H" ) + onMessage( (OrderStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "J" ) + onMessage( (Allocation&)message, sessionID ); + else + if( msgTypeValue == "K" ) + onMessage( (ListCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "L" ) + onMessage( (ListExecute&)message, sessionID ); + else + if( msgTypeValue == "M" ) + onMessage( (ListStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "N" ) + onMessage( (ListStatus&)message, sessionID ); + else + if( msgTypeValue == "P" ) + onMessage( (AllocationInstructionAck&)message, sessionID ); + else + if( msgTypeValue == "Q" ) + onMessage( (DontKnowTrade&)message, sessionID ); + else + if( msgTypeValue == "R" ) + onMessage( (QuoteRequest&)message, sessionID ); + else + if( msgTypeValue == "S" ) + onMessage( (Quote&)message, sessionID ); + else + if( msgTypeValue == "T" ) + onMessage( (SettlementInstructions&)message, sessionID ); + else + if( msgTypeValue == "V" ) + onMessage( (MarketDataRequest&)message, sessionID ); + else + if( msgTypeValue == "W" ) + onMessage( (MarketDataSnapshotFullRefresh&)message, sessionID ); + else + if( msgTypeValue == "X" ) + onMessage( (MarketDataIncrementalRefresh&)message, sessionID ); + else + if( msgTypeValue == "Y" ) + onMessage( (MarketDataRequestReject&)message, sessionID ); + else + if( msgTypeValue == "Z" ) + onMessage( (QuoteCancel&)message, sessionID ); + else + if( msgTypeValue == "a" ) + onMessage( (QuoteStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "b" ) + onMessage( (QuoteAcknowledgement&)message, sessionID ); + else + if( msgTypeValue == "c" ) + onMessage( (SecurityDefinitionRequest&)message, sessionID ); + else + if( msgTypeValue == "d" ) + onMessage( (SecurityDefinition&)message, sessionID ); + else + if( msgTypeValue == "e" ) + onMessage( (SecurityStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "f" ) + onMessage( (SecurityStatus&)message, sessionID ); + else + if( msgTypeValue == "g" ) + onMessage( (TradingSessionStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "h" ) + onMessage( (TradingSessionStatus&)message, sessionID ); + else + if( msgTypeValue == "i" ) + onMessage( (MassQuote&)message, sessionID ); + else + if( msgTypeValue == "j" ) + onMessage( (BusinessMessageReject&)message, sessionID ); + else + if( msgTypeValue == "k" ) + onMessage( (BidRequest&)message, sessionID ); + else + if( msgTypeValue == "l" ) + onMessage( (BidResponse&)message, sessionID ); + else + if( msgTypeValue == "m" ) + onMessage( (ListStrikePrice&)message, sessionID ); + else onMessage( message, sessionID ); + } + + }; +} + +#endif diff --git a/linux/include/quickfix/fix42/NewOrderList.h b/linux/include/quickfix/fix42/NewOrderList.h new file mode 100644 index 000000000..8e9a8e729 --- /dev/null +++ b/linux/include/quickfix/fix42/NewOrderList.h @@ -0,0 +1,137 @@ +#ifndef FIX42_NEWORDERLIST_H +#define FIX42_NEWORDERLIST_H + +#include "Message.h" + +namespace FIX42 +{ + + class NewOrderList : public Message + { + public: + NewOrderList() : Message(MsgType()) {} + NewOrderList(const FIX::Message& m) : Message(m) {} + NewOrderList(const Message& m) : Message(m) {} + NewOrderList(const NewOrderList& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("E"); } + + NewOrderList( + const FIX::ListID& aListID, + const FIX::BidType& aBidType, + const FIX::TotNoOrders& aTotNoOrders ) + : Message(MsgType()) + { + set(aListID); + set(aBidType); + set(aTotNoOrders); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::ProgRptReqs); + FIELD_SET(*this, FIX::BidType); + FIELD_SET(*this, FIX::ProgPeriodInterval); + FIELD_SET(*this, FIX::ListExecInstType); + FIELD_SET(*this, FIX::ListExecInst); + FIELD_SET(*this, FIX::EncodedListExecInstLen); + FIELD_SET(*this, FIX::EncodedListExecInst); + FIELD_SET(*this, FIX::TotNoOrders); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,67,160,109,76,1,78,63,64,21,18,110,111,100,386,81,55,65,48,22,167,200,205,201,202,206,231,223,207,106,348,349,107,350,351,140,54,401,114,60,38,152,40,44,99,15,376,377,23,117,59,168,432,126,427,12,13,47,121,120,58,354,355,193,192,77,203,204,210,211,388,389,439,440,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ListSeqNo); + FIELD_SET(*this, FIX::SettlInstMode); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::SideValueInd); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::IOIid); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::Rule80A); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::FutSettDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::OpenClose); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::CustomerOrFirm); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegDifference); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffset); + FIELD_SET(*this, FIX::ClearingFirm); + FIELD_SET(*this, FIX::ClearingAccount); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocShares); + }; + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/NewOrderSingle.h b/linux/include/quickfix/fix42/NewOrderSingle.h new file mode 100644 index 000000000..abcb33f02 --- /dev/null +++ b/linux/include/quickfix/fix42/NewOrderSingle.h @@ -0,0 +1,123 @@ +#ifndef FIX42_NEWORDERSINGLE_H +#define FIX42_NEWORDERSINGLE_H + +#include "Message.h" + +namespace FIX42 +{ + + class NewOrderSingle : public Message + { + public: + NewOrderSingle() : Message(MsgType()) {} + NewOrderSingle(const FIX::Message& m) : Message(m) {} + NewOrderSingle(const Message& m) : Message(m) {} + NewOrderSingle(const NewOrderSingle& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("D"); } + + NewOrderSingle( + const FIX::ClOrdID& aClOrdID, + const FIX::HandlInst& aHandlInst, + const FIX::Symbol& aSymbol, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aClOrdID); + set(aHandlInst); + set(aSymbol); + set(aSide); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::IOIid); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::Rule80A); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::FutSettDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::OpenClose); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::CustomerOrFirm); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegDifference); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffset); + FIELD_SET(*this, FIX::ClearingFirm); + FIELD_SET(*this, FIX::ClearingAccount); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocShares); + }; + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/News.h b/linux/include/quickfix/fix42/News.h new file mode 100644 index 000000000..e43f85f7a --- /dev/null +++ b/linux/include/quickfix/fix42/News.h @@ -0,0 +1,79 @@ +#ifndef FIX42_NEWS_H +#define FIX42_NEWS_H + +#include "Message.h" + +namespace FIX42 +{ + + class News : public Message + { + public: + News() : Message(MsgType()) {} + News(const FIX::Message& m) : Message(m) {} + News(const Message& m) : Message(m) {} + News(const News& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("B"); } + + News( + const FIX::Headline& aHeadline ) + : Message(MsgType()) + { + set(aHeadline); + } + + FIELD_SET(*this, FIX::OrigTime); + FIELD_SET(*this, FIX::Urgency); + FIELD_SET(*this, FIX::Headline); + FIELD_SET(*this, FIX::EncodedHeadlineLen); + FIELD_SET(*this, FIX::EncodedHeadline); + FIELD_SET(*this, FIX::URLLink); + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,46,FIX::message_order(46,65,48,22,167,200,205,201,202,206,231,223,207,106,348,349,107,350,351,0)) {} + FIELD_SET(*this, FIX::RelatdSym); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + }; + FIELD_SET(*this, FIX::LinesOfText); + class LinesOfText: public FIX::Group + { + public: + LinesOfText() : FIX::Group(33,58,FIX::message_order(58,354,355,0)) {} + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/OrderCancelReject.h b/linux/include/quickfix/fix42/OrderCancelReject.h new file mode 100644 index 000000000..92b51440b --- /dev/null +++ b/linux/include/quickfix/fix42/OrderCancelReject.h @@ -0,0 +1,52 @@ +#ifndef FIX42_ORDERCANCELREJECT_H +#define FIX42_ORDERCANCELREJECT_H + +#include "Message.h" + +namespace FIX42 +{ + + class OrderCancelReject : public Message + { + public: + OrderCancelReject() : Message(MsgType()) {} + OrderCancelReject(const FIX::Message& m) : Message(m) {} + OrderCancelReject(const Message& m) : Message(m) {} + OrderCancelReject(const OrderCancelReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("9"); } + + OrderCancelReject( + const FIX::OrderID& aOrderID, + const FIX::ClOrdID& aClOrdID, + const FIX::OrigClOrdID& aOrigClOrdID, + const FIX::OrdStatus& aOrdStatus, + const FIX::CxlRejResponseTo& aCxlRejResponseTo ) + : Message(MsgType()) + { + set(aOrderID); + set(aClOrdID); + set(aOrigClOrdID); + set(aOrdStatus); + set(aCxlRejResponseTo); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::CxlRejResponseTo); + FIELD_SET(*this, FIX::CxlRejReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/OrderCancelReplaceRequest.h b/linux/include/quickfix/fix42/OrderCancelReplaceRequest.h new file mode 100644 index 000000000..0f37e0f21 --- /dev/null +++ b/linux/include/quickfix/fix42/OrderCancelReplaceRequest.h @@ -0,0 +1,124 @@ +#ifndef FIX42_ORDERCANCELREPLACEREQUEST_H +#define FIX42_ORDERCANCELREPLACEREQUEST_H + +#include "Message.h" + +namespace FIX42 +{ + + class OrderCancelReplaceRequest : public Message + { + public: + OrderCancelReplaceRequest() : Message(MsgType()) {} + OrderCancelReplaceRequest(const FIX::Message& m) : Message(m) {} + OrderCancelReplaceRequest(const Message& m) : Message(m) {} + OrderCancelReplaceRequest(const OrderCancelReplaceRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("G"); } + + OrderCancelReplaceRequest( + const FIX::OrigClOrdID& aOrigClOrdID, + const FIX::ClOrdID& aClOrdID, + const FIX::HandlInst& aHandlInst, + const FIX::Symbol& aSymbol, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aOrigClOrdID); + set(aClOrdID); + set(aHandlInst); + set(aSymbol); + set(aSide); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::PegDifference); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffset); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::Rule80A); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::FutSettDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::OpenClose); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::CustomerOrFirm); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::ClearingFirm); + FIELD_SET(*this, FIX::ClearingAccount); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocShares); + }; + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/OrderCancelRequest.h b/linux/include/quickfix/fix42/OrderCancelRequest.h new file mode 100644 index 000000000..fd98e6edd --- /dev/null +++ b/linux/include/quickfix/fix42/OrderCancelRequest.h @@ -0,0 +1,72 @@ +#ifndef FIX42_ORDERCANCELREQUEST_H +#define FIX42_ORDERCANCELREQUEST_H + +#include "Message.h" + +namespace FIX42 +{ + + class OrderCancelRequest : public Message + { + public: + OrderCancelRequest() : Message(MsgType()) {} + OrderCancelRequest(const FIX::Message& m) : Message(m) {} + OrderCancelRequest(const Message& m) : Message(m) {} + OrderCancelRequest(const OrderCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("F"); } + + OrderCancelRequest( + const FIX::OrigClOrdID& aOrigClOrdID, + const FIX::ClOrdID& aClOrdID, + const FIX::Symbol& aSymbol, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aOrigClOrdID); + set(aClOrdID); + set(aSymbol); + set(aSide); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/OrderStatusRequest.h b/linux/include/quickfix/fix42/OrderStatusRequest.h new file mode 100644 index 000000000..de51d26a0 --- /dev/null +++ b/linux/include/quickfix/fix42/OrderStatusRequest.h @@ -0,0 +1,58 @@ +#ifndef FIX42_ORDERSTATUSREQUEST_H +#define FIX42_ORDERSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX42 +{ + + class OrderStatusRequest : public Message + { + public: + OrderStatusRequest() : Message(MsgType()) {} + OrderStatusRequest(const FIX::Message& m) : Message(m) {} + OrderStatusRequest(const Message& m) : Message(m) {} + OrderStatusRequest(const OrderStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("H"); } + + OrderStatusRequest( + const FIX::ClOrdID& aClOrdID, + const FIX::Symbol& aSymbol, + const FIX::Side& aSide ) + : Message(MsgType()) + { + set(aClOrdID); + set(aSymbol); + set(aSide); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Side); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/Quote.h b/linux/include/quickfix/fix42/Quote.h new file mode 100644 index 000000000..eebe823dd --- /dev/null +++ b/linux/include/quickfix/fix42/Quote.h @@ -0,0 +1,69 @@ +#ifndef FIX42_QUOTE_H +#define FIX42_QUOTE_H + +#include "Message.h" + +namespace FIX42 +{ + + class Quote : public Message + { + public: + Quote() : Message(MsgType()) {} + Quote(const FIX::Message& m) : Message(m) {} + Quote(const Message& m) : Message(m) {} + Quote(const Quote& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("S"); } + + Quote( + const FIX::QuoteID& aQuoteID, + const FIX::Symbol& aSymbol ) + : Message(MsgType()) + { + set(aQuoteID); + set(aSymbol); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::FutSettDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Currency); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/QuoteAcknowledgement.h b/linux/include/quickfix/fix42/QuoteAcknowledgement.h new file mode 100644 index 000000000..8c0bd7e3b --- /dev/null +++ b/linux/include/quickfix/fix42/QuoteAcknowledgement.h @@ -0,0 +1,90 @@ +#ifndef FIX42_QUOTEACKNOWLEDGEMENT_H +#define FIX42_QUOTEACKNOWLEDGEMENT_H + +#include "Message.h" + +namespace FIX42 +{ + + class QuoteAcknowledgement : public Message + { + public: + QuoteAcknowledgement() : Message(MsgType()) {} + QuoteAcknowledgement(const FIX::Message& m) : Message(m) {} + QuoteAcknowledgement(const Message& m) : Message(m) {} + QuoteAcknowledgement(const QuoteAcknowledgement& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("b"); } + + QuoteAcknowledgement( + const FIX::QuoteAckStatus& aQuoteAckStatus ) + : Message(MsgType()) + { + set(aQuoteAckStatus); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteAckStatus); + FIELD_SET(*this, FIX::QuoteRejectReason); + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::NoQuoteSets); + class NoQuoteSets: public FIX::Group + { + public: + NoQuoteSets() : FIX::Group(296,302,FIX::message_order(302,311,312,309,305,310,313,314,315,316,317,436,435,308,306,362,363,307,364,365,304,295,0)) {} + FIELD_SET(*this, FIX::QuoteSetID); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingIDSource); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDay); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::TotQuoteEntries); + FIELD_SET(*this, FIX::NoQuoteEntries); + class NoQuoteEntries: public FIX::Group + { + public: + NoQuoteEntries() : FIX::Group(295,299,FIX::message_order(299,55,65,48,22,167,200,205,201,202,206,231,223,207,106,348,349,107,350,351,368,0)) {} + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::QuoteEntryRejectReason); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/QuoteCancel.h b/linux/include/quickfix/fix42/QuoteCancel.h new file mode 100644 index 000000000..1e3b33f13 --- /dev/null +++ b/linux/include/quickfix/fix42/QuoteCancel.h @@ -0,0 +1,62 @@ +#ifndef FIX42_QUOTECANCEL_H +#define FIX42_QUOTECANCEL_H + +#include "Message.h" + +namespace FIX42 +{ + + class QuoteCancel : public Message + { + public: + QuoteCancel() : Message(MsgType()) {} + QuoteCancel(const FIX::Message& m) : Message(m) {} + QuoteCancel(const Message& m) : Message(m) {} + QuoteCancel(const QuoteCancel& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("Z"); } + + QuoteCancel( + const FIX::QuoteID& aQuoteID, + const FIX::QuoteCancelType& aQuoteCancelType ) + : Message(MsgType()) + { + set(aQuoteID); + set(aQuoteCancelType); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteCancelType); + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::NoQuoteEntries); + class NoQuoteEntries: public FIX::Group + { + public: + NoQuoteEntries() : FIX::Group(295,55,FIX::message_order(55,65,48,22,167,200,205,201,202,206,231,223,207,106,348,349,107,350,351,311,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingSymbol); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/QuoteRequest.h b/linux/include/quickfix/fix42/QuoteRequest.h new file mode 100644 index 000000000..1339d7cf5 --- /dev/null +++ b/linux/include/quickfix/fix42/QuoteRequest.h @@ -0,0 +1,67 @@ +#ifndef FIX42_QUOTEREQUEST_H +#define FIX42_QUOTEREQUEST_H + +#include "Message.h" + +namespace FIX42 +{ + + class QuoteRequest : public Message + { + public: + QuoteRequest() : Message(MsgType()) {} + QuoteRequest(const FIX::Message& m) : Message(m) {} + QuoteRequest(const Message& m) : Message(m) {} + QuoteRequest(const QuoteRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("R"); } + + QuoteRequest( + const FIX::QuoteReqID& aQuoteReqID ) + : Message(MsgType()) + { + set(aQuoteReqID); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,167,200,205,201,202,206,231,223,207,106,348,349,107,350,351,140,303,336,54,38,64,40,193,192,126,60,15,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::QuoteRequestType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::FutSettDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Currency); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/QuoteStatusRequest.h b/linux/include/quickfix/fix42/QuoteStatusRequest.h new file mode 100644 index 000000000..f8ce11dff --- /dev/null +++ b/linux/include/quickfix/fix42/QuoteStatusRequest.h @@ -0,0 +1,51 @@ +#ifndef FIX42_QUOTESTATUSREQUEST_H +#define FIX42_QUOTESTATUSREQUEST_H + +#include "Message.h" + +namespace FIX42 +{ + + class QuoteStatusRequest : public Message + { + public: + QuoteStatusRequest() : Message(MsgType()) {} + QuoteStatusRequest(const FIX::Message& m) : Message(m) {} + QuoteStatusRequest(const Message& m) : Message(m) {} + QuoteStatusRequest(const QuoteStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("a"); } + + QuoteStatusRequest( + const FIX::Symbol& aSymbol ) + : Message(MsgType()) + { + set(aSymbol); + } + + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TradingSessionID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/Reject.h b/linux/include/quickfix/fix42/Reject.h new file mode 100644 index 000000000..fdd6b7334 --- /dev/null +++ b/linux/include/quickfix/fix42/Reject.h @@ -0,0 +1,36 @@ +#ifndef FIX42_REJECT_H +#define FIX42_REJECT_H + +#include "Message.h" + +namespace FIX42 +{ + + class Reject : public Message + { + public: + Reject() : Message(MsgType()) {} + Reject(const FIX::Message& m) : Message(m) {} + Reject(const Message& m) : Message(m) {} + Reject(const Reject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("3"); } + + Reject( + const FIX::RefSeqNum& aRefSeqNum ) + : Message(MsgType()) + { + set(aRefSeqNum); + } + + FIELD_SET(*this, FIX::RefSeqNum); + FIELD_SET(*this, FIX::RefTagID); + FIELD_SET(*this, FIX::RefMsgType); + FIELD_SET(*this, FIX::SessionRejectReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/ResendRequest.h b/linux/include/quickfix/fix42/ResendRequest.h new file mode 100644 index 000000000..30ab5f9e6 --- /dev/null +++ b/linux/include/quickfix/fix42/ResendRequest.h @@ -0,0 +1,33 @@ +#ifndef FIX42_RESENDREQUEST_H +#define FIX42_RESENDREQUEST_H + +#include "Message.h" + +namespace FIX42 +{ + + class ResendRequest : public Message + { + public: + ResendRequest() : Message(MsgType()) {} + ResendRequest(const FIX::Message& m) : Message(m) {} + ResendRequest(const Message& m) : Message(m) {} + ResendRequest(const ResendRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("2"); } + + ResendRequest( + const FIX::BeginSeqNo& aBeginSeqNo, + const FIX::EndSeqNo& aEndSeqNo ) + : Message(MsgType()) + { + set(aBeginSeqNo); + set(aEndSeqNo); + } + + FIELD_SET(*this, FIX::BeginSeqNo); + FIELD_SET(*this, FIX::EndSeqNo); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/SecurityDefinition.h b/linux/include/quickfix/fix42/SecurityDefinition.h new file mode 100644 index 000000000..1906788a4 --- /dev/null +++ b/linux/include/quickfix/fix42/SecurityDefinition.h @@ -0,0 +1,89 @@ +#ifndef FIX42_SECURITYDEFINITION_H +#define FIX42_SECURITYDEFINITION_H + +#include "Message.h" + +namespace FIX42 +{ + + class SecurityDefinition : public Message + { + public: + SecurityDefinition() : Message(MsgType()) {} + SecurityDefinition(const FIX::Message& m) : Message(m) {} + SecurityDefinition(const Message& m) : Message(m) {} + SecurityDefinition(const SecurityDefinition& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("d"); } + + SecurityDefinition( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityResponseID& aSecurityResponseID, + const FIX::TotalNumSecurities& aTotalNumSecurities ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityResponseID); + set(aTotalNumSecurities); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityResponseType); + FIELD_SET(*this, FIX::TotalNumSecurities); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,311,FIX::message_order(311,312,309,305,310,313,314,315,316,317,436,435,308,306,362,363,307,364,365,319,54,318,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingIDSource); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDay); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::RatioQty); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::UnderlyingCurrency); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/SecurityDefinitionRequest.h b/linux/include/quickfix/fix42/SecurityDefinitionRequest.h new file mode 100644 index 000000000..3aa73e36f --- /dev/null +++ b/linux/include/quickfix/fix42/SecurityDefinitionRequest.h @@ -0,0 +1,85 @@ +#ifndef FIX42_SECURITYDEFINITIONREQUEST_H +#define FIX42_SECURITYDEFINITIONREQUEST_H + +#include "Message.h" + +namespace FIX42 +{ + + class SecurityDefinitionRequest : public Message + { + public: + SecurityDefinitionRequest() : Message(MsgType()) {} + SecurityDefinitionRequest(const FIX::Message& m) : Message(m) {} + SecurityDefinitionRequest(const Message& m) : Message(m) {} + SecurityDefinitionRequest(const SecurityDefinitionRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("c"); } + + SecurityDefinitionRequest( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityRequestType& aSecurityRequestType ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityRequestType); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityRequestType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,311,FIX::message_order(311,312,309,305,310,313,314,315,316,317,436,435,308,306,362,363,307,364,365,319,54,318,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingIDSource); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDay); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::RatioQty); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::UnderlyingCurrency); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/SecurityStatus.h b/linux/include/quickfix/fix42/SecurityStatus.h new file mode 100644 index 000000000..a6bee8f48 --- /dev/null +++ b/linux/include/quickfix/fix42/SecurityStatus.h @@ -0,0 +1,65 @@ +#ifndef FIX42_SECURITYSTATUS_H +#define FIX42_SECURITYSTATUS_H + +#include "Message.h" + +namespace FIX42 +{ + + class SecurityStatus : public Message + { + public: + SecurityStatus() : Message(MsgType()) {} + SecurityStatus(const FIX::Message& m) : Message(m) {} + SecurityStatus(const Message& m) : Message(m) {} + SecurityStatus(const SecurityStatus& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("f"); } + + SecurityStatus( + const FIX::Symbol& aSymbol ) + : Message(MsgType()) + { + set(aSymbol); + } + + FIELD_SET(*this, FIX::SecurityStatusReqID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::SecurityTradingStatus); + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::HaltReasonChar); + FIELD_SET(*this, FIX::InViewOfCommon); + FIELD_SET(*this, FIX::DueToRelated); + FIELD_SET(*this, FIX::BuyVolume); + FIELD_SET(*this, FIX::SellVolume); + FIELD_SET(*this, FIX::HighPx); + FIELD_SET(*this, FIX::LowPx); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Adjustment); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/SecurityStatusRequest.h b/linux/include/quickfix/fix42/SecurityStatusRequest.h new file mode 100644 index 000000000..c9e4d1115 --- /dev/null +++ b/linux/include/quickfix/fix42/SecurityStatusRequest.h @@ -0,0 +1,56 @@ +#ifndef FIX42_SECURITYSTATUSREQUEST_H +#define FIX42_SECURITYSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX42 +{ + + class SecurityStatusRequest : public Message + { + public: + SecurityStatusRequest() : Message(MsgType()) {} + SecurityStatusRequest(const FIX::Message& m) : Message(m) {} + SecurityStatusRequest(const Message& m) : Message(m) {} + SecurityStatusRequest(const SecurityStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("e"); } + + SecurityStatusRequest( + const FIX::SecurityStatusReqID& aSecurityStatusReqID, + const FIX::Symbol& aSymbol, + const FIX::SubscriptionRequestType& aSubscriptionRequestType ) + : Message(MsgType()) + { + set(aSecurityStatusReqID); + set(aSymbol); + set(aSubscriptionRequestType); + } + + FIELD_SET(*this, FIX::SecurityStatusReqID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::IDSource); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDay); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TradingSessionID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/SequenceReset.h b/linux/include/quickfix/fix42/SequenceReset.h new file mode 100644 index 000000000..b706975f8 --- /dev/null +++ b/linux/include/quickfix/fix42/SequenceReset.h @@ -0,0 +1,31 @@ +#ifndef FIX42_SEQUENCERESET_H +#define FIX42_SEQUENCERESET_H + +#include "Message.h" + +namespace FIX42 +{ + + class SequenceReset : public Message + { + public: + SequenceReset() : Message(MsgType()) {} + SequenceReset(const FIX::Message& m) : Message(m) {} + SequenceReset(const Message& m) : Message(m) {} + SequenceReset(const SequenceReset& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("4"); } + + SequenceReset( + const FIX::NewSeqNo& aNewSeqNo ) + : Message(MsgType()) + { + set(aNewSeqNo); + } + + FIELD_SET(*this, FIX::GapFillFlag); + FIELD_SET(*this, FIX::NewSeqNo); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/SettlementInstructions.h b/linux/include/quickfix/fix42/SettlementInstructions.h new file mode 100644 index 000000000..240e194ab --- /dev/null +++ b/linux/include/quickfix/fix42/SettlementInstructions.h @@ -0,0 +1,77 @@ +#ifndef FIX42_SETTLEMENTINSTRUCTIONS_H +#define FIX42_SETTLEMENTINSTRUCTIONS_H + +#include "Message.h" + +namespace FIX42 +{ + + class SettlementInstructions : public Message + { + public: + SettlementInstructions() : Message(MsgType()) {} + SettlementInstructions(const FIX::Message& m) : Message(m) {} + SettlementInstructions(const Message& m) : Message(m) {} + SettlementInstructions(const SettlementInstructions& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("T"); } + + SettlementInstructions( + const FIX::SettlInstID& aSettlInstID, + const FIX::SettlInstTransType& aSettlInstTransType, + const FIX::SettlInstRefID& aSettlInstRefID, + const FIX::SettlInstMode& aSettlInstMode, + const FIX::SettlInstSource& aSettlInstSource, + const FIX::AllocAccount& aAllocAccount, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aSettlInstID); + set(aSettlInstTransType); + set(aSettlInstRefID); + set(aSettlInstMode); + set(aSettlInstSource); + set(aAllocAccount); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::SettlInstID); + FIELD_SET(*this, FIX::SettlInstTransType); + FIELD_SET(*this, FIX::SettlInstRefID); + FIELD_SET(*this, FIX::SettlInstMode); + FIELD_SET(*this, FIX::SettlInstSource); + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::SettlLocation); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::ClientID); + FIELD_SET(*this, FIX::ExecBroker); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::SettlDepositoryCode); + FIELD_SET(*this, FIX::SettlBrkrCode); + FIELD_SET(*this, FIX::SettlInstCode); + FIELD_SET(*this, FIX::SecuritySettlAgentName); + FIELD_SET(*this, FIX::SecuritySettlAgentCode); + FIELD_SET(*this, FIX::SecuritySettlAgentAcctNum); + FIELD_SET(*this, FIX::SecuritySettlAgentAcctName); + FIELD_SET(*this, FIX::SecuritySettlAgentContactName); + FIELD_SET(*this, FIX::SecuritySettlAgentContactPhone); + FIELD_SET(*this, FIX::CashSettlAgentName); + FIELD_SET(*this, FIX::CashSettlAgentCode); + FIELD_SET(*this, FIX::CashSettlAgentAcctNum); + FIELD_SET(*this, FIX::CashSettlAgentAcctName); + FIELD_SET(*this, FIX::CashSettlAgentContactName); + FIELD_SET(*this, FIX::CashSettlAgentContactPhone); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/TestRequest.h b/linux/include/quickfix/fix42/TestRequest.h new file mode 100644 index 000000000..ef7a6ac2a --- /dev/null +++ b/linux/include/quickfix/fix42/TestRequest.h @@ -0,0 +1,30 @@ +#ifndef FIX42_TESTREQUEST_H +#define FIX42_TESTREQUEST_H + +#include "Message.h" + +namespace FIX42 +{ + + class TestRequest : public Message + { + public: + TestRequest() : Message(MsgType()) {} + TestRequest(const FIX::Message& m) : Message(m) {} + TestRequest(const Message& m) : Message(m) {} + TestRequest(const TestRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("1"); } + + TestRequest( + const FIX::TestReqID& aTestReqID ) + : Message(MsgType()) + { + set(aTestReqID); + } + + FIELD_SET(*this, FIX::TestReqID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/TradingSessionStatus.h b/linux/include/quickfix/fix42/TradingSessionStatus.h new file mode 100644 index 000000000..90088d3b9 --- /dev/null +++ b/linux/include/quickfix/fix42/TradingSessionStatus.h @@ -0,0 +1,46 @@ +#ifndef FIX42_TRADINGSESSIONSTATUS_H +#define FIX42_TRADINGSESSIONSTATUS_H + +#include "Message.h" + +namespace FIX42 +{ + + class TradingSessionStatus : public Message + { + public: + TradingSessionStatus() : Message(MsgType()) {} + TradingSessionStatus(const FIX::Message& m) : Message(m) {} + TradingSessionStatus(const Message& m) : Message(m) {} + TradingSessionStatus(const TradingSessionStatus& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("h"); } + + TradingSessionStatus( + const FIX::TradingSessionID& aTradingSessionID, + const FIX::TradSesStatus& aTradSesStatus ) + : Message(MsgType()) + { + set(aTradingSessionID); + set(aTradSesStatus); + } + + FIELD_SET(*this, FIX::TradSesReqID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradSesMethod); + FIELD_SET(*this, FIX::TradSesMode); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::TradSesStatus); + FIELD_SET(*this, FIX::TradSesStartTime); + FIELD_SET(*this, FIX::TradSesOpenTime); + FIELD_SET(*this, FIX::TradSesPreCloseTime); + FIELD_SET(*this, FIX::TradSesCloseTime); + FIELD_SET(*this, FIX::TradSesEndTime); + FIELD_SET(*this, FIX::TotalVolumeTraded); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix42/TradingSessionStatusRequest.h b/linux/include/quickfix/fix42/TradingSessionStatusRequest.h new file mode 100644 index 000000000..8d5de5e3f --- /dev/null +++ b/linux/include/quickfix/fix42/TradingSessionStatusRequest.h @@ -0,0 +1,36 @@ +#ifndef FIX42_TRADINGSESSIONSTATUSREQUEST_H +#define FIX42_TRADINGSESSIONSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX42 +{ + + class TradingSessionStatusRequest : public Message + { + public: + TradingSessionStatusRequest() : Message(MsgType()) {} + TradingSessionStatusRequest(const FIX::Message& m) : Message(m) {} + TradingSessionStatusRequest(const Message& m) : Message(m) {} + TradingSessionStatusRequest(const TradingSessionStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("g"); } + + TradingSessionStatusRequest( + const FIX::TradSesReqID& aTradSesReqID, + const FIX::SubscriptionRequestType& aSubscriptionRequestType ) + : Message(MsgType()) + { + set(aTradSesReqID); + set(aSubscriptionRequestType); + } + + FIELD_SET(*this, FIX::TradSesReqID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradSesMethod); + FIELD_SET(*this, FIX::TradSesMode); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/Advertisement.h b/linux/include/quickfix/fix43/Advertisement.h new file mode 100644 index 000000000..82582d38e --- /dev/null +++ b/linux/include/quickfix/fix43/Advertisement.h @@ -0,0 +1,91 @@ +#ifndef FIX43_ADVERTISEMENT_H +#define FIX43_ADVERTISEMENT_H + +#include "Message.h" + +namespace FIX43 +{ + + class Advertisement : public Message + { + public: + Advertisement() : Message(MsgType()) {} + Advertisement(const FIX::Message& m) : Message(m) {} + Advertisement(const Message& m) : Message(m) {} + Advertisement(const Advertisement& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("7"); } + + Advertisement( + const FIX::AdvId& aAdvId, + const FIX::AdvTransType& aAdvTransType, + const FIX::AdvSide& aAdvSide, + const FIX::Quantity& aQuantity ) + : Message(MsgType()) + { + set(aAdvId); + set(aAdvTransType); + set(aAdvSide); + set(aQuantity); + } + + FIELD_SET(*this, FIX::AdvId); + FIELD_SET(*this, FIX::AdvTransType); + FIELD_SET(*this, FIX::AdvRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::AdvSide); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::URLLink); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/Allocation.h b/linux/include/quickfix/fix43/Allocation.h new file mode 100644 index 000000000..bbfb9c98c --- /dev/null +++ b/linux/include/quickfix/fix43/Allocation.h @@ -0,0 +1,193 @@ +#ifndef FIX43_ALLOCATION_H +#define FIX43_ALLOCATION_H + +#include "Message.h" + +namespace FIX43 +{ + + class Allocation : public Message + { + public: + Allocation() : Message(MsgType()) {} + Allocation(const FIX::Message& m) : Message(m) {} + Allocation(const Message& m) : Message(m) {} + Allocation(const Allocation& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("J"); } + + Allocation( + const FIX::AllocID& aAllocID, + const FIX::AllocTransType& aAllocTransType, + const FIX::AllocType& aAllocType, + const FIX::Side& aSide, + const FIX::Quantity& aQuantity, + const FIX::AvgPx& aAvgPx, + const FIX::TradeDate& aTradeDate ) + : Message(MsgType()) + { + set(aAllocID); + set(aAllocTransType); + set(aAllocType); + set(aSide); + set(aQuantity); + set(aAvgPx); + set(aTradeDate); + } + + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::AllocTransType); + FIELD_SET(*this, FIX::AllocType); + FIELD_SET(*this, FIX::RefAllocID); + FIELD_SET(*this, FIX::AllocLinkID); + FIELD_SET(*this, FIX::AllocLinkType); + FIELD_SET(*this, FIX::BookingRefID); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::AvgPrxPrecision); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::TotalAccruedInterestAmt); + FIELD_SET(*this, FIX::LegalConfirm); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,526,66,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + }; + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,32,FIX::message_order(32,17,527,31,29,0)) {} + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::LastCapacity); + }; + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,366,80,467,81,539,208,209,161,360,361,12,13,479,497,153,154,119,120,155,156,159,160,136,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocPrice); + FIELD_SET(*this, FIX::AllocQty); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,545,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NestedPartySubID); + }; + FIELD_SET(*this, FIX::NotifyBrokerOfCredit); + FIELD_SET(*this, FIX::AllocHandlInst); + FIELD_SET(*this, FIX::AllocText); + FIELD_SET(*this, FIX::EncodedAllocTextLen); + FIELD_SET(*this, FIX::EncodedAllocText); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::AllocAvgPx); + FIELD_SET(*this, FIX::AllocNetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::SettlInstMode); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/AllocationAck.h b/linux/include/quickfix/fix43/AllocationAck.h new file mode 100644 index 000000000..44d39c1b1 --- /dev/null +++ b/linux/include/quickfix/fix43/AllocationAck.h @@ -0,0 +1,52 @@ +#ifndef FIX43_ALLOCATIONACK_H +#define FIX43_ALLOCATIONACK_H + +#include "Message.h" + +namespace FIX43 +{ + + class AllocationAck : public Message + { + public: + AllocationAck() : Message(MsgType()) {} + AllocationAck(const FIX::Message& m) : Message(m) {} + AllocationAck(const Message& m) : Message(m) {} + AllocationAck(const AllocationAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("P"); } + + AllocationAck( + const FIX::AllocID& aAllocID, + const FIX::TradeDate& aTradeDate, + const FIX::AllocStatus& aAllocStatus ) + : Message(MsgType()) + { + set(aAllocID); + set(aTradeDate); + set(aAllocStatus); + } + + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::AllocStatus); + FIELD_SET(*this, FIX::AllocRejCode); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::LegalConfirm); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/BidRequest.h b/linux/include/quickfix/fix43/BidRequest.h new file mode 100644 index 000000000..bafa1f92c --- /dev/null +++ b/linux/include/quickfix/fix43/BidRequest.h @@ -0,0 +1,97 @@ +#ifndef FIX43_BIDREQUEST_H +#define FIX43_BIDREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class BidRequest : public Message + { + public: + BidRequest() : Message(MsgType()) {} + BidRequest(const FIX::Message& m) : Message(m) {} + BidRequest(const Message& m) : Message(m) {} + BidRequest(const BidRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("k"); } + + BidRequest( + const FIX::ClientBidID& aClientBidID, + const FIX::BidRequestTransType& aBidRequestTransType, + const FIX::TotalNumSecurities& aTotalNumSecurities, + const FIX::BidType& aBidType, + const FIX::TradeType& aTradeType, + const FIX::BasisPxType& aBasisPxType ) + : Message(MsgType()) + { + set(aClientBidID); + set(aBidRequestTransType); + set(aTotalNumSecurities); + set(aBidType); + set(aTradeType); + set(aBasisPxType); + } + + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::BidRequestTransType); + FIELD_SET(*this, FIX::ListName); + FIELD_SET(*this, FIX::TotalNumSecurities); + FIELD_SET(*this, FIX::BidType); + FIELD_SET(*this, FIX::NumTickets); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SideValue1); + FIELD_SET(*this, FIX::SideValue2); + FIELD_SET(*this, FIX::LiquidityIndType); + FIELD_SET(*this, FIX::WtAverageLiquidity); + FIELD_SET(*this, FIX::ExchangeForPhysical); + FIELD_SET(*this, FIX::OutMainCntryUIndex); + FIELD_SET(*this, FIX::CrossPercent); + FIELD_SET(*this, FIX::ProgRptReqs); + FIELD_SET(*this, FIX::ProgPeriodInterval); + FIELD_SET(*this, FIX::IncTaxInd); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::NumBidders); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TradeType); + FIELD_SET(*this, FIX::BasisPxType); + FIELD_SET(*this, FIX::StrikeTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoBidDescriptors); + class NoBidDescriptors: public FIX::Group + { + public: + NoBidDescriptors() : FIX::Group(398,399,FIX::message_order(399,400,401,404,441,402,403,405,406,407,408,0)) {} + FIELD_SET(*this, FIX::BidDescriptorType); + FIELD_SET(*this, FIX::BidDescriptor); + FIELD_SET(*this, FIX::SideValueInd); + FIELD_SET(*this, FIX::LiquidityValue); + FIELD_SET(*this, FIX::LiquidityNumSecurities); + FIELD_SET(*this, FIX::LiquidityPctLow); + FIELD_SET(*this, FIX::LiquidityPctHigh); + FIELD_SET(*this, FIX::EFPTrackingError); + FIELD_SET(*this, FIX::FairValue); + FIELD_SET(*this, FIX::OutsideIndexPct); + FIELD_SET(*this, FIX::ValueOfFutures); + }; + FIELD_SET(*this, FIX::NoBidComponents); + class NoBidComponents: public FIX::Group + { + public: + NoBidComponents() : FIX::Group(420,66,FIX::message_order(66,54,336,625,430,63,64,1,0)) {} + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NetGrossInd); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::Account); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/BidResponse.h b/linux/include/quickfix/fix43/BidResponse.h new file mode 100644 index 000000000..0a56f8035 --- /dev/null +++ b/linux/include/quickfix/fix43/BidResponse.h @@ -0,0 +1,48 @@ +#ifndef FIX43_BIDRESPONSE_H +#define FIX43_BIDRESPONSE_H + +#include "Message.h" + +namespace FIX43 +{ + + class BidResponse : public Message + { + public: + BidResponse() : Message(MsgType()) {} + BidResponse(const FIX::Message& m) : Message(m) {} + BidResponse(const Message& m) : Message(m) {} + BidResponse(const BidResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("l"); } + + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::NoBidComponents); + class NoBidComponents: public FIX::Group + { + public: + NoBidComponents() : FIX::Group(420,12,FIX::message_order(12,13,479,497,66,421,54,44,423,406,430,63,64,336,625,58,354,355,0)) {} + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Country); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::FairValue); + FIELD_SET(*this, FIX::NetGrossInd); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/BusinessMessageReject.h b/linux/include/quickfix/fix43/BusinessMessageReject.h new file mode 100644 index 000000000..b6bc484cf --- /dev/null +++ b/linux/include/quickfix/fix43/BusinessMessageReject.h @@ -0,0 +1,38 @@ +#ifndef FIX43_BUSINESSMESSAGEREJECT_H +#define FIX43_BUSINESSMESSAGEREJECT_H + +#include "Message.h" + +namespace FIX43 +{ + + class BusinessMessageReject : public Message + { + public: + BusinessMessageReject() : Message(MsgType()) {} + BusinessMessageReject(const FIX::Message& m) : Message(m) {} + BusinessMessageReject(const Message& m) : Message(m) {} + BusinessMessageReject(const BusinessMessageReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("j"); } + + BusinessMessageReject( + const FIX::RefMsgType& aRefMsgType, + const FIX::BusinessRejectReason& aBusinessRejectReason ) + : Message(MsgType()) + { + set(aRefMsgType); + set(aBusinessRejectReason); + } + + FIELD_SET(*this, FIX::RefSeqNum); + FIELD_SET(*this, FIX::RefMsgType); + FIELD_SET(*this, FIX::BusinessRejectRefID); + FIELD_SET(*this, FIX::BusinessRejectReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/CrossOrderCancelReplaceRequest.h b/linux/include/quickfix/fix43/CrossOrderCancelReplaceRequest.h new file mode 100644 index 000000000..4af1cef4a --- /dev/null +++ b/linux/include/quickfix/fix43/CrossOrderCancelReplaceRequest.h @@ -0,0 +1,214 @@ +#ifndef FIX43_CROSSORDERCANCELREPLACEREQUEST_H +#define FIX43_CROSSORDERCANCELREPLACEREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class CrossOrderCancelReplaceRequest : public Message + { + public: + CrossOrderCancelReplaceRequest() : Message(MsgType()) {} + CrossOrderCancelReplaceRequest(const FIX::Message& m) : Message(m) {} + CrossOrderCancelReplaceRequest(const Message& m) : Message(m) {} + CrossOrderCancelReplaceRequest(const CrossOrderCancelReplaceRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("t"); } + + CrossOrderCancelReplaceRequest( + const FIX::CrossID& aCrossID, + const FIX::OrigCrossID& aOrigCrossID, + const FIX::CrossType& aCrossType, + const FIX::CrossPrioritization& aCrossPrioritization, + const FIX::HandlInst& aHandlInst, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aCrossID); + set(aOrigCrossID); + set(aCrossType); + set(aCrossPrioritization); + set(aHandlInst); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::CrossID); + FIELD_SET(*this, FIX::OrigCrossID); + FIELD_SET(*this, FIX::CrossType); + FIELD_SET(*this, FIX::CrossPrioritization); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::IOIid); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegDifference); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffset); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::NoSides); + class NoSides: public FIX::Group + { + public: + NoSides() : FIX::Group(552,54,FIX::message_order(54,41,11,526,583,586,453,229,1,581,589,590,591,78,465,38,152,516,468,469,12,13,479,497,528,529,582,121,120,58,354,355,77,203,544,635,377,659,0)) {} + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::QuantityType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::SideComplianceID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,545,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NestedPartySubID); + }; + FIELD_SET(*this, FIX::AllocQty); + }; + }; + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/CrossOrderCancelRequest.h b/linux/include/quickfix/fix43/CrossOrderCancelRequest.h new file mode 100644 index 000000000..6fe9cabb6 --- /dev/null +++ b/linux/include/quickfix/fix43/CrossOrderCancelRequest.h @@ -0,0 +1,115 @@ +#ifndef FIX43_CROSSORDERCANCELREQUEST_H +#define FIX43_CROSSORDERCANCELREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class CrossOrderCancelRequest : public Message + { + public: + CrossOrderCancelRequest() : Message(MsgType()) {} + CrossOrderCancelRequest(const FIX::Message& m) : Message(m) {} + CrossOrderCancelRequest(const Message& m) : Message(m) {} + CrossOrderCancelRequest(const CrossOrderCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("u"); } + + CrossOrderCancelRequest( + const FIX::CrossID& aCrossID, + const FIX::OrigCrossID& aOrigCrossID, + const FIX::CrossType& aCrossType, + const FIX::CrossPrioritization& aCrossPrioritization, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aCrossID); + set(aOrigCrossID); + set(aCrossType); + set(aCrossPrioritization); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::CrossID); + FIELD_SET(*this, FIX::OrigCrossID); + FIELD_SET(*this, FIX::CrossType); + FIELD_SET(*this, FIX::CrossPrioritization); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoSides); + class NoSides: public FIX::Group + { + public: + NoSides() : FIX::Group(552,54,FIX::message_order(54,41,11,526,583,586,453,229,38,152,516,468,469,376,58,354,355,0)) {} + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/DerivativeSecurityList.h b/linux/include/quickfix/fix43/DerivativeSecurityList.h new file mode 100644 index 000000000..68ce76397 --- /dev/null +++ b/linux/include/quickfix/fix43/DerivativeSecurityList.h @@ -0,0 +1,179 @@ +#ifndef FIX43_DERIVATIVESECURITYLIST_H +#define FIX43_DERIVATIVESECURITYLIST_H + +#include "Message.h" + +namespace FIX43 +{ + + class DerivativeSecurityList : public Message + { + public: + DerivativeSecurityList() : Message(MsgType()) {} + DerivativeSecurityList(const FIX::Message& m) : Message(m) {} + DerivativeSecurityList(const Message& m) : Message(m) {} + DerivativeSecurityList(const DerivativeSecurityList& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AA"); } + + DerivativeSecurityList( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityResponseID& aSecurityResponseID, + const FIX::SecurityRequestResult& aSecurityRequestResult ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityResponseID); + set(aSecurityRequestResult); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityRequestResult); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::NoUnderlyingSecurityAltID); + class NoUnderlyingSecurityAltID: public FIX::Group + { + public: + NoUnderlyingSecurityAltID() : FIX::Group(457,458,FIX::message_order(458,459,0)) {} + FIELD_SET(*this, FIX::UnderlyingSecurityAltID); + FIELD_SET(*this, FIX::UnderlyingSecurityAltIDSource); + }; + FIELD_SET(*this, FIX::TotalNumSecurities); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,454,460,461,167,200,541,224,225,239,226,227,228,255,543,470,471,472,240,202,206,231,223,207,106,348,349,107,350,351,15,555,336,625,58,354,355,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,604,607,608,609,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,613,614,615,616,617,618,619,620,621,622,623,624,556,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::NoLegSecurityAltID); + class NoLegSecurityAltID: public FIX::Group + { + public: + NoLegSecurityAltID() : FIX::Group(604,605,FIX::message_order(605,606,0)) {} + FIELD_SET(*this, FIX::LegSecurityAltID); + FIELD_SET(*this, FIX::LegSecurityAltIDSource); + }; + FIELD_SET(*this, FIX::LegCurrency); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/DerivativeSecurityListRequest.h b/linux/include/quickfix/fix43/DerivativeSecurityListRequest.h new file mode 100644 index 000000000..80bbcfb49 --- /dev/null +++ b/linux/include/quickfix/fix43/DerivativeSecurityListRequest.h @@ -0,0 +1,81 @@ +#ifndef FIX43_DERIVATIVESECURITYLISTREQUEST_H +#define FIX43_DERIVATIVESECURITYLISTREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class DerivativeSecurityListRequest : public Message + { + public: + DerivativeSecurityListRequest() : Message(MsgType()) {} + DerivativeSecurityListRequest(const FIX::Message& m) : Message(m) {} + DerivativeSecurityListRequest(const Message& m) : Message(m) {} + DerivativeSecurityListRequest(const DerivativeSecurityListRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("z"); } + + DerivativeSecurityListRequest( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityListRequestType& aSecurityListRequestType ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityListRequestType); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityListRequestType); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::NoUnderlyingSecurityAltID); + class NoUnderlyingSecurityAltID: public FIX::Group + { + public: + NoUnderlyingSecurityAltID() : FIX::Group(457,458,FIX::message_order(458,459,0)) {} + FIELD_SET(*this, FIX::UnderlyingSecurityAltID); + FIELD_SET(*this, FIX::UnderlyingSecurityAltIDSource); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/DontKnowTrade.h b/linux/include/quickfix/fix43/DontKnowTrade.h new file mode 100644 index 000000000..47aa4660c --- /dev/null +++ b/linux/include/quickfix/fix43/DontKnowTrade.h @@ -0,0 +1,89 @@ +#ifndef FIX43_DONTKNOWTRADE_H +#define FIX43_DONTKNOWTRADE_H + +#include "Message.h" + +namespace FIX43 +{ + + class DontKnowTrade : public Message + { + public: + DontKnowTrade() : Message(MsgType()) {} + DontKnowTrade(const FIX::Message& m) : Message(m) {} + DontKnowTrade(const Message& m) : Message(m) {} + DontKnowTrade(const DontKnowTrade& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("Q"); } + + DontKnowTrade( + const FIX::OrderID& aOrderID, + const FIX::ExecID& aExecID, + const FIX::DKReason& aDKReason, + const FIX::Side& aSide ) + : Message(MsgType()) + { + set(aOrderID); + set(aExecID); + set(aDKReason); + set(aSide); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::DKReason); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/Email.h b/linux/include/quickfix/fix43/Email.h new file mode 100644 index 000000000..dd35d9b01 --- /dev/null +++ b/linux/include/quickfix/fix43/Email.h @@ -0,0 +1,106 @@ +#ifndef FIX43_EMAIL_H +#define FIX43_EMAIL_H + +#include "Message.h" + +namespace FIX43 +{ + + class Email : public Message + { + public: + Email() : Message(MsgType()) {} + Email(const FIX::Message& m) : Message(m) {} + Email(const Message& m) : Message(m) {} + Email(const Email& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("C"); } + + Email( + const FIX::EmailThreadID& aEmailThreadID, + const FIX::EmailType& aEmailType, + const FIX::Subject& aSubject ) + : Message(MsgType()) + { + set(aEmailThreadID); + set(aEmailType); + set(aSubject); + } + + FIELD_SET(*this, FIX::EmailThreadID); + FIELD_SET(*this, FIX::EmailType); + FIELD_SET(*this, FIX::OrigTime); + FIELD_SET(*this, FIX::Subject); + FIELD_SET(*this, FIX::EncodedSubjectLen); + FIELD_SET(*this, FIX::EncodedSubject); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,454,460,461,167,200,541,224,225,239,226,227,228,255,543,470,471,472,240,202,206,231,223,207,106,348,349,107,350,351,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + }; + FIELD_SET(*this, FIX::LinesOfText); + class LinesOfText: public FIX::Group + { + public: + LinesOfText() : FIX::Group(33,58,FIX::message_order(58,354,355,0)) {} + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/ExecutionReport.h b/linux/include/quickfix/fix43/ExecutionReport.h new file mode 100644 index 000000000..ecabcf5ed --- /dev/null +++ b/linux/include/quickfix/fix43/ExecutionReport.h @@ -0,0 +1,307 @@ +#ifndef FIX43_EXECUTIONREPORT_H +#define FIX43_EXECUTIONREPORT_H + +#include "Message.h" + +namespace FIX43 +{ + + class ExecutionReport : public Message + { + public: + ExecutionReport() : Message(MsgType()) {} + ExecutionReport(const FIX::Message& m) : Message(m) {} + ExecutionReport(const Message& m) : Message(m) {} + ExecutionReport(const ExecutionReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("8"); } + + ExecutionReport( + const FIX::OrderID& aOrderID, + const FIX::ExecID& aExecID, + const FIX::ExecType& aExecType, + const FIX::OrdStatus& aOrdStatus, + const FIX::Side& aSide, + const FIX::LeavesQty& aLeavesQty, + const FIX::CumQty& aCumQty, + const FIX::AvgPx& aAvgPx ) + : Message(MsgType()) + { + set(aOrderID); + set(aExecID); + set(aExecType); + set(aOrdStatus); + set(aSide); + set(aLeavesQty); + set(aCumQty); + set(aAvgPx); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::CrossID); + FIELD_SET(*this, FIX::OrigCrossID); + FIELD_SET(*this, FIX::CrossType); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::ExecRefID); + FIELD_SET(*this, FIX::ExecType); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::WorkingIndicator); + FIELD_SET(*this, FIX::OrdRejReason); + FIELD_SET(*this, FIX::ExecRestatementReason); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::QuantityType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::PegDifference); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffset); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::Rule80A); + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::UnderlyingLastQty); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::UnderlyingLastPx); + FIELD_SET(*this, FIX::LastSpotRate); + FIELD_SET(*this, FIX::LastForwardPoints); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::LastCapacity); + FIELD_SET(*this, FIX::LeavesQty); + FIELD_SET(*this, FIX::CumQty); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::DayOrderQty); + FIELD_SET(*this, FIX::DayCumQty); + FIELD_SET(*this, FIX::DayAvgPx); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::ReportToExch); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::ExDate); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::TradedFlatSwitch); + FIELD_SET(*this, FIX::BasisFeatureDate); + FIELD_SET(*this, FIX::BasisFeaturePrice); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::FutSettDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::LastForwardPoints2); + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::TransBkdTime); + FIELD_SET(*this, FIX::ExecValuationPoint); + FIELD_SET(*this, FIX::ExecPriceType); + FIELD_SET(*this, FIX::ExecPriceAdjustment); + FIELD_SET(*this, FIX::PriorityIndicator); + FIELD_SET(*this, FIX::PriceImprovement); + FIELD_SET(*this, FIX::NoContraBrokers); + class NoContraBrokers: public FIX::Group + { + public: + NoContraBrokers() : FIX::Group(382,375,FIX::message_order(375,337,437,438,655,0)) {} + FIELD_SET(*this, FIX::ContraBroker); + FIELD_SET(*this, FIX::ContraTrader); + FIELD_SET(*this, FIX::ContraTradeQty); + FIELD_SET(*this, FIX::ContraTradeTime); + FIELD_SET(*this, FIX::ContraLegRefID); + }; + FIELD_SET(*this, FIX::NoContAmts); + class NoContAmts: public FIX::Group + { + public: + NoContAmts() : FIX::Group(518,519,FIX::message_order(519,520,521,0)) {} + FIELD_SET(*this, FIX::ContAmtType); + FIELD_SET(*this, FIX::ContAmtValue); + FIELD_SET(*this, FIX::ContAmtCurr); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,604,607,608,609,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,613,614,615,616,617,618,619,620,621,622,623,624,564,565,539,654,566,587,588,637,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::NoLegSecurityAltID); + class NoLegSecurityAltID: public FIX::Group + { + public: + NoLegSecurityAltID() : FIX::Group(604,605,FIX::message_order(605,606,0)) {} + FIELD_SET(*this, FIX::LegSecurityAltID); + FIELD_SET(*this, FIX::LegSecurityAltIDSource); + }; + FIELD_SET(*this, FIX::LegPositionEffect); + FIELD_SET(*this, FIX::LegCoveredOrUncovered); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,545,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NestedPartySubID); + }; + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegPrice); + FIELD_SET(*this, FIX::LegSettlmntTyp); + FIELD_SET(*this, FIX::LegFutSettDate); + FIELD_SET(*this, FIX::LegLastPx); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/Heartbeat.h b/linux/include/quickfix/fix43/Heartbeat.h new file mode 100644 index 000000000..35d6ca822 --- /dev/null +++ b/linux/include/quickfix/fix43/Heartbeat.h @@ -0,0 +1,23 @@ +#ifndef FIX43_HEARTBEAT_H +#define FIX43_HEARTBEAT_H + +#include "Message.h" + +namespace FIX43 +{ + + class Heartbeat : public Message + { + public: + Heartbeat() : Message(MsgType()) {} + Heartbeat(const FIX::Message& m) : Message(m) {} + Heartbeat(const Message& m) : Message(m) {} + Heartbeat(const Heartbeat& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("0"); } + + FIELD_SET(*this, FIX::TestReqID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/IOI.h b/linux/include/quickfix/fix43/IOI.h new file mode 100644 index 000000000..d6c73f64d --- /dev/null +++ b/linux/include/quickfix/fix43/IOI.h @@ -0,0 +1,112 @@ +#ifndef FIX43_IOI_H +#define FIX43_IOI_H + +#include "Message.h" + +namespace FIX43 +{ + + class IOI : public Message + { + public: + IOI() : Message(MsgType()) {} + IOI(const FIX::Message& m) : Message(m) {} + IOI(const Message& m) : Message(m) {} + IOI(const IOI& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("6"); } + + IOI( + const FIX::IOIid& aIOIid, + const FIX::IOITransType& aIOITransType, + const FIX::Side& aSide, + const FIX::IOIQty& aIOIQty ) + : Message(MsgType()) + { + set(aIOIid); + set(aIOITransType); + set(aSide); + set(aIOIQty); + } + + FIELD_SET(*this, FIX::IOIid); + FIELD_SET(*this, FIX::IOITransType); + FIELD_SET(*this, FIX::IOIRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::QuantityType); + FIELD_SET(*this, FIX::IOIQty); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::IOIQltyInd); + FIELD_SET(*this, FIX::IOINaturalFlag); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::URLLink); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::Benchmark); + FIELD_SET(*this, FIX::NoIOIQualifiers); + class NoIOIQualifiers: public FIX::Group + { + public: + NoIOIQualifiers() : FIX::Group(199,104,FIX::message_order(104,0)) {} + FIELD_SET(*this, FIX::IOIQualifier); + }; + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/ListCancelRequest.h b/linux/include/quickfix/fix43/ListCancelRequest.h new file mode 100644 index 000000000..322c2056d --- /dev/null +++ b/linux/include/quickfix/fix43/ListCancelRequest.h @@ -0,0 +1,37 @@ +#ifndef FIX43_LISTCANCELREQUEST_H +#define FIX43_LISTCANCELREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class ListCancelRequest : public Message + { + public: + ListCancelRequest() : Message(MsgType()) {} + ListCancelRequest(const FIX::Message& m) : Message(m) {} + ListCancelRequest(const Message& m) : Message(m) {} + ListCancelRequest(const ListCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("K"); } + + ListCancelRequest( + const FIX::ListID& aListID, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aListID); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/ListExecute.h b/linux/include/quickfix/fix43/ListExecute.h new file mode 100644 index 000000000..f699baf2f --- /dev/null +++ b/linux/include/quickfix/fix43/ListExecute.h @@ -0,0 +1,38 @@ +#ifndef FIX43_LISTEXECUTE_H +#define FIX43_LISTEXECUTE_H + +#include "Message.h" + +namespace FIX43 +{ + + class ListExecute : public Message + { + public: + ListExecute() : Message(MsgType()) {} + ListExecute(const FIX::Message& m) : Message(m) {} + ListExecute(const Message& m) : Message(m) {} + ListExecute(const ListExecute& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("L"); } + + ListExecute( + const FIX::ListID& aListID, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aListID); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/ListStatus.h b/linux/include/quickfix/fix43/ListStatus.h new file mode 100644 index 000000000..76e7d0ca6 --- /dev/null +++ b/linux/include/quickfix/fix43/ListStatus.h @@ -0,0 +1,67 @@ +#ifndef FIX43_LISTSTATUS_H +#define FIX43_LISTSTATUS_H + +#include "Message.h" + +namespace FIX43 +{ + + class ListStatus : public Message + { + public: + ListStatus() : Message(MsgType()) {} + ListStatus(const FIX::Message& m) : Message(m) {} + ListStatus(const Message& m) : Message(m) {} + ListStatus(const ListStatus& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("N"); } + + ListStatus( + const FIX::ListID& aListID, + const FIX::ListStatusType& aListStatusType, + const FIX::NoRpts& aNoRpts, + const FIX::ListOrderStatus& aListOrderStatus, + const FIX::RptSeq& aRptSeq, + const FIX::TotNoOrders& aTotNoOrders ) + : Message(MsgType()) + { + set(aListID); + set(aListStatusType); + set(aNoRpts); + set(aListOrderStatus); + set(aRptSeq); + set(aTotNoOrders); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::ListStatusType); + FIELD_SET(*this, FIX::NoRpts); + FIELD_SET(*this, FIX::ListOrderStatus); + FIELD_SET(*this, FIX::RptSeq); + FIELD_SET(*this, FIX::ListStatusText); + FIELD_SET(*this, FIX::EncodedListStatusTextLen); + FIELD_SET(*this, FIX::EncodedListStatusText); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TotNoOrders); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,526,14,39,636,151,84,6,103,58,354,355,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::CumQty); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::WorkingIndicator); + FIELD_SET(*this, FIX::LeavesQty); + FIELD_SET(*this, FIX::CxlQty); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::OrdRejReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/ListStatusRequest.h b/linux/include/quickfix/fix43/ListStatusRequest.h new file mode 100644 index 000000000..c144282ea --- /dev/null +++ b/linux/include/quickfix/fix43/ListStatusRequest.h @@ -0,0 +1,33 @@ +#ifndef FIX43_LISTSTATUSREQUEST_H +#define FIX43_LISTSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class ListStatusRequest : public Message + { + public: + ListStatusRequest() : Message(MsgType()) {} + ListStatusRequest(const FIX::Message& m) : Message(m) {} + ListStatusRequest(const Message& m) : Message(m) {} + ListStatusRequest(const ListStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("M"); } + + ListStatusRequest( + const FIX::ListID& aListID ) + : Message(MsgType()) + { + set(aListID); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/ListStrikePrice.h b/linux/include/quickfix/fix43/ListStrikePrice.h new file mode 100644 index 000000000..ee1a95f09 --- /dev/null +++ b/linux/include/quickfix/fix43/ListStrikePrice.h @@ -0,0 +1,88 @@ +#ifndef FIX43_LISTSTRIKEPRICE_H +#define FIX43_LISTSTRIKEPRICE_H + +#include "Message.h" + +namespace FIX43 +{ + + class ListStrikePrice : public Message + { + public: + ListStrikePrice() : Message(MsgType()) {} + ListStrikePrice(const FIX::Message& m) : Message(m) {} + ListStrikePrice(const Message& m) : Message(m) {} + ListStrikePrice(const ListStrikePrice& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("m"); } + + ListStrikePrice( + const FIX::ListID& aListID, + const FIX::TotNoStrikes& aTotNoStrikes ) + : Message(MsgType()) + { + set(aListID); + set(aTotNoStrikes); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::TotNoStrikes); + FIELD_SET(*this, FIX::NoStrikes); + class NoStrikes: public FIX::Group + { + public: + NoStrikes() : FIX::Group(428,55,FIX::message_order(55,65,48,22,454,460,461,167,200,541,224,225,239,226,227,228,255,543,470,471,472,240,202,206,231,223,207,106,348,349,107,350,351,140,11,526,54,44,15,58,354,355,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/Logon.h b/linux/include/quickfix/fix43/Logon.h new file mode 100644 index 000000000..d6310b2a5 --- /dev/null +++ b/linux/include/quickfix/fix43/Logon.h @@ -0,0 +1,48 @@ +#ifndef FIX43_LOGON_H +#define FIX43_LOGON_H + +#include "Message.h" + +namespace FIX43 +{ + + class Logon : public Message + { + public: + Logon() : Message(MsgType()) {} + Logon(const FIX::Message& m) : Message(m) {} + Logon(const Message& m) : Message(m) {} + Logon(const Logon& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("A"); } + + Logon( + const FIX::EncryptMethod& aEncryptMethod, + const FIX::HeartBtInt& aHeartBtInt ) + : Message(MsgType()) + { + set(aEncryptMethod); + set(aHeartBtInt); + } + + FIELD_SET(*this, FIX::EncryptMethod); + FIELD_SET(*this, FIX::HeartBtInt); + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + FIELD_SET(*this, FIX::ResetSeqNumFlag); + FIELD_SET(*this, FIX::MaxMessageSize); + FIELD_SET(*this, FIX::TestMessageIndicator); + FIELD_SET(*this, FIX::Username); + FIELD_SET(*this, FIX::Password); + FIELD_SET(*this, FIX::NoMsgTypes); + class NoMsgTypes: public FIX::Group + { + public: + NoMsgTypes() : FIX::Group(384,372,FIX::message_order(372,385,0)) {} + FIELD_SET(*this, FIX::RefMsgType); + FIELD_SET(*this, FIX::MsgDirection); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/Logout.h b/linux/include/quickfix/fix43/Logout.h new file mode 100644 index 000000000..713f86444 --- /dev/null +++ b/linux/include/quickfix/fix43/Logout.h @@ -0,0 +1,25 @@ +#ifndef FIX43_LOGOUT_H +#define FIX43_LOGOUT_H + +#include "Message.h" + +namespace FIX43 +{ + + class Logout : public Message + { + public: + Logout() : Message(MsgType()) {} + Logout(const FIX::Message& m) : Message(m) {} + Logout(const Message& m) : Message(m) {} + Logout(const Logout& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("5"); } + + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/MarketDataIncrementalRefresh.h b/linux/include/quickfix/fix43/MarketDataIncrementalRefresh.h new file mode 100644 index 000000000..92fdfbc09 --- /dev/null +++ b/linux/include/quickfix/fix43/MarketDataIncrementalRefresh.h @@ -0,0 +1,111 @@ +#ifndef FIX43_MARKETDATAINCREMENTALREFRESH_H +#define FIX43_MARKETDATAINCREMENTALREFRESH_H + +#include "Message.h" + +namespace FIX43 +{ + + class MarketDataIncrementalRefresh : public Message + { + public: + MarketDataIncrementalRefresh() : Message(MsgType()) {} + MarketDataIncrementalRefresh(const FIX::Message& m) : Message(m) {} + MarketDataIncrementalRefresh(const Message& m) : Message(m) {} + MarketDataIncrementalRefresh(const MarketDataIncrementalRefresh& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("X"); } + + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::NoMDEntries); + class NoMDEntries: public FIX::Group + { + public: + NoMDEntries() : FIX::Group(268,279,FIX::message_order(279,285,269,278,280,55,65,48,22,454,460,461,167,200,541,224,225,239,226,227,228,255,543,470,471,472,240,202,206,231,223,207,106,348,349,107,350,351,291,292,270,15,271,272,273,274,275,336,625,276,277,282,283,284,286,59,432,126,110,18,287,37,299,288,289,346,290,546,387,449,450,451,58,354,355,0)) {} + FIELD_SET(*this, FIX::MDUpdateAction); + FIELD_SET(*this, FIX::DeleteReason); + FIELD_SET(*this, FIX::MDEntryType); + FIELD_SET(*this, FIX::MDEntryID); + FIELD_SET(*this, FIX::MDEntryRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::MDEntryPx); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::MDEntrySize); + FIELD_SET(*this, FIX::MDEntryDate); + FIELD_SET(*this, FIX::MDEntryTime); + FIELD_SET(*this, FIX::TickDirection); + FIELD_SET(*this, FIX::MDMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::QuoteCondition); + FIELD_SET(*this, FIX::TradeCondition); + FIELD_SET(*this, FIX::MDEntryOriginator); + FIELD_SET(*this, FIX::LocationID); + FIELD_SET(*this, FIX::DeskID); + FIELD_SET(*this, FIX::OpenCloseSettleFlag); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::SellerDays); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::MDEntryBuyer); + FIELD_SET(*this, FIX::MDEntrySeller); + FIELD_SET(*this, FIX::NumberOfOrders); + FIELD_SET(*this, FIX::MDEntryPositionNo); + FIELD_SET(*this, FIX::Scope); + FIELD_SET(*this, FIX::TotalVolumeTraded); + FIELD_SET(*this, FIX::TotalVolumeTradedDate); + FIELD_SET(*this, FIX::TotalVolumeTradedTime); + FIELD_SET(*this, FIX::NetChgPrevDay); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/MarketDataRequest.h b/linux/include/quickfix/fix43/MarketDataRequest.h new file mode 100644 index 000000000..989ff260b --- /dev/null +++ b/linux/include/quickfix/fix43/MarketDataRequest.h @@ -0,0 +1,102 @@ +#ifndef FIX43_MARKETDATAREQUEST_H +#define FIX43_MARKETDATAREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class MarketDataRequest : public Message + { + public: + MarketDataRequest() : Message(MsgType()) {} + MarketDataRequest(const FIX::Message& m) : Message(m) {} + MarketDataRequest(const Message& m) : Message(m) {} + MarketDataRequest(const MarketDataRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("V"); } + + MarketDataRequest( + const FIX::MDReqID& aMDReqID, + const FIX::SubscriptionRequestType& aSubscriptionRequestType, + const FIX::MarketDepth& aMarketDepth ) + : Message(MsgType()) + { + set(aMDReqID); + set(aSubscriptionRequestType); + set(aMarketDepth); + } + + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::MarketDepth); + FIELD_SET(*this, FIX::MDUpdateType); + FIELD_SET(*this, FIX::AggregatedBook); + FIELD_SET(*this, FIX::OpenCloseSettleFlag); + FIELD_SET(*this, FIX::Scope); + FIELD_SET(*this, FIX::MDImplicitDelete); + FIELD_SET(*this, FIX::NoMDEntryTypes); + class NoMDEntryTypes: public FIX::Group + { + public: + NoMDEntryTypes() : FIX::Group(267,269,FIX::message_order(269,0)) {} + FIELD_SET(*this, FIX::MDEntryType); + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,454,460,461,167,200,541,224,225,239,226,227,228,255,543,470,471,472,240,202,206,231,223,207,106,348,349,107,350,351,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + }; + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/MarketDataRequestReject.h b/linux/include/quickfix/fix43/MarketDataRequestReject.h new file mode 100644 index 000000000..562adc79b --- /dev/null +++ b/linux/include/quickfix/fix43/MarketDataRequestReject.h @@ -0,0 +1,34 @@ +#ifndef FIX43_MARKETDATAREQUESTREJECT_H +#define FIX43_MARKETDATAREQUESTREJECT_H + +#include "Message.h" + +namespace FIX43 +{ + + class MarketDataRequestReject : public Message + { + public: + MarketDataRequestReject() : Message(MsgType()) {} + MarketDataRequestReject(const FIX::Message& m) : Message(m) {} + MarketDataRequestReject(const Message& m) : Message(m) {} + MarketDataRequestReject(const MarketDataRequestReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("Y"); } + + MarketDataRequestReject( + const FIX::MDReqID& aMDReqID ) + : Message(MsgType()) + { + set(aMDReqID); + } + + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::MDReqRejReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/MarketDataSnapshotFullRefresh.h b/linux/include/quickfix/fix43/MarketDataSnapshotFullRefresh.h new file mode 100644 index 000000000..73cc86dfa --- /dev/null +++ b/linux/include/quickfix/fix43/MarketDataSnapshotFullRefresh.h @@ -0,0 +1,107 @@ +#ifndef FIX43_MARKETDATASNAPSHOTFULLREFRESH_H +#define FIX43_MARKETDATASNAPSHOTFULLREFRESH_H + +#include "Message.h" + +namespace FIX43 +{ + + class MarketDataSnapshotFullRefresh : public Message + { + public: + MarketDataSnapshotFullRefresh() : Message(MsgType()) {} + MarketDataSnapshotFullRefresh(const FIX::Message& m) : Message(m) {} + MarketDataSnapshotFullRefresh(const Message& m) : Message(m) {} + MarketDataSnapshotFullRefresh(const MarketDataSnapshotFullRefresh& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("W"); } + + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::TotalVolumeTraded); + FIELD_SET(*this, FIX::TotalVolumeTradedDate); + FIELD_SET(*this, FIX::TotalVolumeTradedTime); + FIELD_SET(*this, FIX::NetChgPrevDay); + FIELD_SET(*this, FIX::NoMDEntries); + class NoMDEntries: public FIX::Group + { + public: + NoMDEntries() : FIX::Group(268,269,FIX::message_order(269,270,15,271,272,273,274,275,336,625,276,277,282,283,284,286,59,432,126,110,18,287,37,299,288,289,346,290,546,58,354,355,0)) {} + FIELD_SET(*this, FIX::MDEntryType); + FIELD_SET(*this, FIX::MDEntryPx); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::MDEntrySize); + FIELD_SET(*this, FIX::MDEntryDate); + FIELD_SET(*this, FIX::MDEntryTime); + FIELD_SET(*this, FIX::TickDirection); + FIELD_SET(*this, FIX::MDMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::QuoteCondition); + FIELD_SET(*this, FIX::TradeCondition); + FIELD_SET(*this, FIX::MDEntryOriginator); + FIELD_SET(*this, FIX::LocationID); + FIELD_SET(*this, FIX::DeskID); + FIELD_SET(*this, FIX::OpenCloseSettleFlag); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::SellerDays); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::MDEntryBuyer); + FIELD_SET(*this, FIX::MDEntrySeller); + FIELD_SET(*this, FIX::NumberOfOrders); + FIELD_SET(*this, FIX::MDEntryPositionNo); + FIELD_SET(*this, FIX::Scope); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/MassQuote.h b/linux/include/quickfix/fix43/MassQuote.h new file mode 100644 index 000000000..b919cb011 --- /dev/null +++ b/linux/include/quickfix/fix43/MassQuote.h @@ -0,0 +1,167 @@ +#ifndef FIX43_MASSQUOTE_H +#define FIX43_MASSQUOTE_H + +#include "Message.h" + +namespace FIX43 +{ + + class MassQuote : public Message + { + public: + MassQuote() : Message(MsgType()) {} + MassQuote(const FIX::Message& m) : Message(m) {} + MassQuote(const Message& m) : Message(m) {} + MassQuote(const MassQuote& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("i"); } + + MassQuote( + const FIX::QuoteID& aQuoteID ) + : Message(MsgType()) + { + set(aQuoteID); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DefBidSize); + FIELD_SET(*this, FIX::DefOfferSize); + FIELD_SET(*this, FIX::NoQuoteSets); + class NoQuoteSets: public FIX::Group + { + public: + NoQuoteSets() : FIX::Group(296,302,FIX::message_order(302,311,312,309,305,457,462,463,310,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,317,436,435,308,306,362,363,307,364,365,367,304,295,0)) {} + FIELD_SET(*this, FIX::QuoteSetID); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::NoUnderlyingSecurityAltID); + class NoUnderlyingSecurityAltID: public FIX::Group + { + public: + NoUnderlyingSecurityAltID() : FIX::Group(457,458,FIX::message_order(458,459,0)) {} + FIELD_SET(*this, FIX::UnderlyingSecurityAltID); + FIELD_SET(*this, FIX::UnderlyingSecurityAltIDSource); + }; + FIELD_SET(*this, FIX::QuoteSetValidUntilTime); + FIELD_SET(*this, FIX::TotQuoteEntries); + FIELD_SET(*this, FIX::NoQuoteEntries); + class NoQuoteEntries: public FIX::Group + { + public: + NoQuoteEntries() : FIX::Group(295,299,FIX::message_order(299,55,65,48,22,454,460,461,167,200,541,224,225,239,226,227,228,255,543,470,471,472,240,202,206,231,223,207,106,348,349,107,350,351,132,133,134,135,62,188,190,189,191,631,632,633,634,60,336,625,64,40,193,192,642,643,15,0)) {} + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::FutSettDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::Currency); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/MassQuoteAcknowledgement.h b/linux/include/quickfix/fix43/MassQuoteAcknowledgement.h new file mode 100644 index 000000000..f8692bd61 --- /dev/null +++ b/linux/include/quickfix/fix43/MassQuoteAcknowledgement.h @@ -0,0 +1,168 @@ +#ifndef FIX43_MASSQUOTEACKNOWLEDGEMENT_H +#define FIX43_MASSQUOTEACKNOWLEDGEMENT_H + +#include "Message.h" + +namespace FIX43 +{ + + class MassQuoteAcknowledgement : public Message + { + public: + MassQuoteAcknowledgement() : Message(MsgType()) {} + MassQuoteAcknowledgement(const FIX::Message& m) : Message(m) {} + MassQuoteAcknowledgement(const Message& m) : Message(m) {} + MassQuoteAcknowledgement(const MassQuoteAcknowledgement& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("b"); } + + MassQuoteAcknowledgement( + const FIX::QuoteStatus& aQuoteStatus ) + : Message(MsgType()) + { + set(aQuoteStatus); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteStatus); + FIELD_SET(*this, FIX::QuoteRejectReason); + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::NoQuoteSets); + class NoQuoteSets: public FIX::Group + { + public: + NoQuoteSets() : FIX::Group(296,302,FIX::message_order(302,311,312,309,305,457,462,463,310,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,317,436,435,308,306,362,363,307,364,365,304,295,0)) {} + FIELD_SET(*this, FIX::QuoteSetID); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::NoUnderlyingSecurityAltID); + class NoUnderlyingSecurityAltID: public FIX::Group + { + public: + NoUnderlyingSecurityAltID() : FIX::Group(457,458,FIX::message_order(458,459,0)) {} + FIELD_SET(*this, FIX::UnderlyingSecurityAltID); + FIELD_SET(*this, FIX::UnderlyingSecurityAltIDSource); + }; + FIELD_SET(*this, FIX::TotQuoteEntries); + FIELD_SET(*this, FIX::NoQuoteEntries); + class NoQuoteEntries: public FIX::Group + { + public: + NoQuoteEntries() : FIX::Group(295,299,FIX::message_order(299,55,65,48,22,454,460,461,167,200,541,224,225,239,226,227,228,255,543,470,471,472,240,202,206,231,223,207,106,348,349,107,350,351,132,133,134,135,62,188,190,189,191,631,632,633,634,60,336,625,64,40,193,192,642,643,15,368,0)) {} + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::FutSettDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::QuoteEntryRejectReason); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/Message.h b/linux/include/quickfix/fix43/Message.h new file mode 100644 index 000000000..91065c8d6 --- /dev/null +++ b/linux/include/quickfix/fix43/Message.h @@ -0,0 +1,76 @@ +#ifndef FIX43_MESSAGES_H +#define FIX43_MESSAGES_H + +#include "../Message.h" +#include "../Group.h" + +namespace FIX43 +{ + class Header : public FIX::Header + { + public: + FIELD_SET(*this, FIX::BeginString); + FIELD_SET(*this, FIX::BodyLength); + FIELD_SET(*this, FIX::MsgType); + FIELD_SET(*this, FIX::SenderCompID); + FIELD_SET(*this, FIX::TargetCompID); + FIELD_SET(*this, FIX::OnBehalfOfCompID); + FIELD_SET(*this, FIX::DeliverToCompID); + FIELD_SET(*this, FIX::SecureDataLen); + FIELD_SET(*this, FIX::SecureData); + FIELD_SET(*this, FIX::MsgSeqNum); + FIELD_SET(*this, FIX::SenderSubID); + FIELD_SET(*this, FIX::SenderLocationID); + FIELD_SET(*this, FIX::TargetSubID); + FIELD_SET(*this, FIX::TargetLocationID); + FIELD_SET(*this, FIX::OnBehalfOfSubID); + FIELD_SET(*this, FIX::OnBehalfOfLocationID); + FIELD_SET(*this, FIX::DeliverToSubID); + FIELD_SET(*this, FIX::DeliverToLocationID); + FIELD_SET(*this, FIX::PossDupFlag); + FIELD_SET(*this, FIX::PossResend); + FIELD_SET(*this, FIX::SendingTime); + FIELD_SET(*this, FIX::OrigSendingTime); + FIELD_SET(*this, FIX::XmlDataLen); + FIELD_SET(*this, FIX::XmlData); + FIELD_SET(*this, FIX::MessageEncoding); + FIELD_SET(*this, FIX::LastMsgSeqNumProcessed); + FIELD_SET(*this, FIX::OnBehalfOfSendingTime); + FIELD_SET(*this, FIX::NoHops); + class NoHops: public FIX::Group + { + public: + NoHops() : FIX::Group(627,628,FIX::message_order(628,629,630,0)) {} + FIELD_SET(*this, FIX::HopCompID); + FIELD_SET(*this, FIX::HopSendingTime); + FIELD_SET(*this, FIX::HopRefID); + }; + }; + + class Trailer : public FIX::Trailer + { + public: + FIELD_SET(*this, FIX::SignatureLength); + FIELD_SET(*this, FIX::Signature); + FIELD_SET(*this, FIX::CheckSum); + }; + + class Message : public FIX::Message + { + public: + Message( const FIX::MsgType& msgtype ) + : FIX::Message( + FIX::BeginString("FIX.4.3"), msgtype ) + {} + + Message(const FIX::Message& m) : FIX::Message(m) {} + Message(const Message& m) : FIX::Message(m) {} + Header& getHeader() { return (Header&)m_header; } + const Header& getHeader() const { return (Header&)m_header; } + Trailer& getTrailer() { return (Trailer&)m_trailer; } + const Trailer& getTrailer() const { return (Trailer&)m_trailer; } + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/MessageCracker.h b/linux/include/quickfix/fix43/MessageCracker.h new file mode 100644 index 000000000..e18859a63 --- /dev/null +++ b/linux/include/quickfix/fix43/MessageCracker.h @@ -0,0 +1,744 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX43_MESSAGECRACKER_H +#define FIX43_MESSAGECRACKER_H + + +#include "../SessionID.h" +#include "../Exceptions.h" + +#include "../fix43/Message.h" + +namespace FIX43 +{ + class Heartbeat; + class TestRequest; + class ResendRequest; + class Reject; + class SequenceReset; + class Logout; + class IOI; + class Advertisement; + class ExecutionReport; + class OrderCancelReject; + class Logon; + class News; + class Email; + class NewOrderSingle; + class NewOrderList; + class OrderCancelRequest; + class OrderCancelReplaceRequest; + class OrderStatusRequest; + class Allocation; + class ListCancelRequest; + class ListExecute; + class ListStatusRequest; + class ListStatus; + class AllocationAck; + class DontKnowTrade; + class QuoteRequest; + class Quote; + class SettlementInstructions; + class MarketDataRequest; + class MarketDataSnapshotFullRefresh; + class MarketDataIncrementalRefresh; + class MarketDataRequestReject; + class QuoteCancel; + class QuoteStatusRequest; + class MassQuoteAcknowledgement; + class SecurityDefinitionRequest; + class SecurityDefinition; + class SecurityStatusRequest; + class SecurityStatus; + class TradingSessionStatusRequest; + class TradingSessionStatus; + class MassQuote; + class BusinessMessageReject; + class BidRequest; + class BidResponse; + class ListStrikePrice; + class XMLnonFIX; + class RegistrationInstructions; + class RegistrationInstructionsResponse; + class OrderMassCancelRequest; + class OrderMassCancelReport; + class NewOrderCross; + class CrossOrderCancelRequest; + class CrossOrderCancelReplaceRequest; + class SecurityTypeRequest; + class SecurityTypes; + class SecurityListRequest; + class SecurityList; + class DerivativeSecurityListRequest; + class DerivativeSecurityList; + class NewOrderMultileg; + class MultilegOrderCancelReplaceRequest; + class TradeCaptureReportRequest; + class TradeCaptureReport; + class OrderMassStatusRequest; + class QuoteRequestReject; + class RFQRequest; + class QuoteStatusReport; + + class MessageCracker + { + public: + virtual ~MessageCracker() {} + virtual void onMessage( const Message&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( Message&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Heartbeat&, const FIX::SessionID& ) + {} + virtual void onMessage( const TestRequest&, const FIX::SessionID& ) + {} + virtual void onMessage( const ResendRequest&, const FIX::SessionID& ) + {} + virtual void onMessage( const Reject&, const FIX::SessionID& ) + {} + virtual void onMessage( const SequenceReset&, const FIX::SessionID& ) + {} + virtual void onMessage( const Logout&, const FIX::SessionID& ) + {} + virtual void onMessage( const IOI&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Advertisement&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ExecutionReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelReject&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Logon&, const FIX::SessionID& ) + {} + virtual void onMessage( const News&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Email&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderSingle&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderList&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelReplaceRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Allocation&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListExecute&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListStatus&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AllocationAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const DontKnowTrade&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Quote&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SettlementInstructions&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataSnapshotFullRefresh&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataIncrementalRefresh&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataRequestReject&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteCancel&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MassQuoteAcknowledgement&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityDefinitionRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityDefinition&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityStatus&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradingSessionStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradingSessionStatus&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MassQuote&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const BusinessMessageReject&, const FIX::SessionID& ) + {} + virtual void onMessage( const BidRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const BidResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListStrikePrice&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const XMLnonFIX&, const FIX::SessionID& ) + {} + virtual void onMessage( const RegistrationInstructions&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const RegistrationInstructionsResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderMassCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderMassCancelReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderCross&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CrossOrderCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CrossOrderCancelReplaceRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityTypeRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityTypes&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityListRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityList&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const DerivativeSecurityListRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const DerivativeSecurityList&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderMultileg&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MultilegOrderCancelReplaceRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradeCaptureReportRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradeCaptureReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderMassStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteRequestReject&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const RFQRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteStatusReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( Heartbeat&, const FIX::SessionID& ) {} + virtual void onMessage( TestRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ResendRequest&, const FIX::SessionID& ) {} + virtual void onMessage( Reject&, const FIX::SessionID& ) {} + virtual void onMessage( SequenceReset&, const FIX::SessionID& ) {} + virtual void onMessage( Logout&, const FIX::SessionID& ) {} + virtual void onMessage( IOI&, const FIX::SessionID& ) {} + virtual void onMessage( Advertisement&, const FIX::SessionID& ) {} + virtual void onMessage( ExecutionReport&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelReject&, const FIX::SessionID& ) {} + virtual void onMessage( Logon&, const FIX::SessionID& ) {} + virtual void onMessage( News&, const FIX::SessionID& ) {} + virtual void onMessage( Email&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderSingle&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderList&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelReplaceRequest&, const FIX::SessionID& ) {} + virtual void onMessage( OrderStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( Allocation&, const FIX::SessionID& ) {} + virtual void onMessage( ListCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ListExecute&, const FIX::SessionID& ) {} + virtual void onMessage( ListStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ListStatus&, const FIX::SessionID& ) {} + virtual void onMessage( AllocationAck&, const FIX::SessionID& ) {} + virtual void onMessage( DontKnowTrade&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteRequest&, const FIX::SessionID& ) {} + virtual void onMessage( Quote&, const FIX::SessionID& ) {} + virtual void onMessage( SettlementInstructions&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataRequest&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataSnapshotFullRefresh&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataIncrementalRefresh&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataRequestReject&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteCancel&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( MassQuoteAcknowledgement&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityDefinitionRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityDefinition&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityStatus&, const FIX::SessionID& ) {} + virtual void onMessage( TradingSessionStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( TradingSessionStatus&, const FIX::SessionID& ) {} + virtual void onMessage( MassQuote&, const FIX::SessionID& ) {} + virtual void onMessage( BusinessMessageReject&, const FIX::SessionID& ) {} + virtual void onMessage( BidRequest&, const FIX::SessionID& ) {} + virtual void onMessage( BidResponse&, const FIX::SessionID& ) {} + virtual void onMessage( ListStrikePrice&, const FIX::SessionID& ) {} + virtual void onMessage( XMLnonFIX&, const FIX::SessionID& ) {} + virtual void onMessage( RegistrationInstructions&, const FIX::SessionID& ) {} + virtual void onMessage( RegistrationInstructionsResponse&, const FIX::SessionID& ) {} + virtual void onMessage( OrderMassCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( OrderMassCancelReport&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderCross&, const FIX::SessionID& ) {} + virtual void onMessage( CrossOrderCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( CrossOrderCancelReplaceRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityTypeRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityTypes&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityListRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityList&, const FIX::SessionID& ) {} + virtual void onMessage( DerivativeSecurityListRequest&, const FIX::SessionID& ) {} + virtual void onMessage( DerivativeSecurityList&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderMultileg&, const FIX::SessionID& ) {} + virtual void onMessage( MultilegOrderCancelReplaceRequest&, const FIX::SessionID& ) {} + virtual void onMessage( TradeCaptureReportRequest&, const FIX::SessionID& ) {} + virtual void onMessage( TradeCaptureReport&, const FIX::SessionID& ) {} + virtual void onMessage( OrderMassStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteRequestReject&, const FIX::SessionID& ) {} + virtual void onMessage( RFQRequest&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteStatusReport&, const FIX::SessionID& ) {} + +public: + void crack( const Message& message, + const FIX::SessionID& sessionID ) + { + const std::string& msgTypeValue + = message.getHeader().getField( FIX::FIELD::MsgType ); + + if( msgTypeValue == "0" ) + onMessage( (const Heartbeat&)message, sessionID ); + else + if( msgTypeValue == "1" ) + onMessage( (const TestRequest&)message, sessionID ); + else + if( msgTypeValue == "2" ) + onMessage( (const ResendRequest&)message, sessionID ); + else + if( msgTypeValue == "3" ) + onMessage( (const Reject&)message, sessionID ); + else + if( msgTypeValue == "4" ) + onMessage( (const SequenceReset&)message, sessionID ); + else + if( msgTypeValue == "5" ) + onMessage( (const Logout&)message, sessionID ); + else + if( msgTypeValue == "6" ) + onMessage( (const IOI&)message, sessionID ); + else + if( msgTypeValue == "7" ) + onMessage( (const Advertisement&)message, sessionID ); + else + if( msgTypeValue == "8" ) + onMessage( (const ExecutionReport&)message, sessionID ); + else + if( msgTypeValue == "9" ) + onMessage( (const OrderCancelReject&)message, sessionID ); + else + if( msgTypeValue == "A" ) + onMessage( (const Logon&)message, sessionID ); + else + if( msgTypeValue == "B" ) + onMessage( (const News&)message, sessionID ); + else + if( msgTypeValue == "C" ) + onMessage( (const Email&)message, sessionID ); + else + if( msgTypeValue == "D" ) + onMessage( (const NewOrderSingle&)message, sessionID ); + else + if( msgTypeValue == "E" ) + onMessage( (const NewOrderList&)message, sessionID ); + else + if( msgTypeValue == "F" ) + onMessage( (const OrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "G" ) + onMessage( (const OrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "H" ) + onMessage( (const OrderStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "J" ) + onMessage( (const Allocation&)message, sessionID ); + else + if( msgTypeValue == "K" ) + onMessage( (const ListCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "L" ) + onMessage( (const ListExecute&)message, sessionID ); + else + if( msgTypeValue == "M" ) + onMessage( (const ListStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "N" ) + onMessage( (const ListStatus&)message, sessionID ); + else + if( msgTypeValue == "P" ) + onMessage( (const AllocationAck&)message, sessionID ); + else + if( msgTypeValue == "Q" ) + onMessage( (const DontKnowTrade&)message, sessionID ); + else + if( msgTypeValue == "R" ) + onMessage( (const QuoteRequest&)message, sessionID ); + else + if( msgTypeValue == "S" ) + onMessage( (const Quote&)message, sessionID ); + else + if( msgTypeValue == "T" ) + onMessage( (const SettlementInstructions&)message, sessionID ); + else + if( msgTypeValue == "V" ) + onMessage( (const MarketDataRequest&)message, sessionID ); + else + if( msgTypeValue == "W" ) + onMessage( (const MarketDataSnapshotFullRefresh&)message, sessionID ); + else + if( msgTypeValue == "X" ) + onMessage( (const MarketDataIncrementalRefresh&)message, sessionID ); + else + if( msgTypeValue == "Y" ) + onMessage( (const MarketDataRequestReject&)message, sessionID ); + else + if( msgTypeValue == "Z" ) + onMessage( (const QuoteCancel&)message, sessionID ); + else + if( msgTypeValue == "a" ) + onMessage( (const QuoteStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "b" ) + onMessage( (const MassQuoteAcknowledgement&)message, sessionID ); + else + if( msgTypeValue == "c" ) + onMessage( (const SecurityDefinitionRequest&)message, sessionID ); + else + if( msgTypeValue == "d" ) + onMessage( (const SecurityDefinition&)message, sessionID ); + else + if( msgTypeValue == "e" ) + onMessage( (const SecurityStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "f" ) + onMessage( (const SecurityStatus&)message, sessionID ); + else + if( msgTypeValue == "g" ) + onMessage( (const TradingSessionStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "h" ) + onMessage( (const TradingSessionStatus&)message, sessionID ); + else + if( msgTypeValue == "i" ) + onMessage( (const MassQuote&)message, sessionID ); + else + if( msgTypeValue == "j" ) + onMessage( (const BusinessMessageReject&)message, sessionID ); + else + if( msgTypeValue == "k" ) + onMessage( (const BidRequest&)message, sessionID ); + else + if( msgTypeValue == "l" ) + onMessage( (const BidResponse&)message, sessionID ); + else + if( msgTypeValue == "m" ) + onMessage( (const ListStrikePrice&)message, sessionID ); + else + if( msgTypeValue == "n" ) + onMessage( (const XMLnonFIX&)message, sessionID ); + else + if( msgTypeValue == "o" ) + onMessage( (const RegistrationInstructions&)message, sessionID ); + else + if( msgTypeValue == "p" ) + onMessage( (const RegistrationInstructionsResponse&)message, sessionID ); + else + if( msgTypeValue == "q" ) + onMessage( (const OrderMassCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "r" ) + onMessage( (const OrderMassCancelReport&)message, sessionID ); + else + if( msgTypeValue == "s" ) + onMessage( (const NewOrderCross&)message, sessionID ); + else + if( msgTypeValue == "u" ) + onMessage( (const CrossOrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "t" ) + onMessage( (const CrossOrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "v" ) + onMessage( (const SecurityTypeRequest&)message, sessionID ); + else + if( msgTypeValue == "w" ) + onMessage( (const SecurityTypes&)message, sessionID ); + else + if( msgTypeValue == "x" ) + onMessage( (const SecurityListRequest&)message, sessionID ); + else + if( msgTypeValue == "y" ) + onMessage( (const SecurityList&)message, sessionID ); + else + if( msgTypeValue == "z" ) + onMessage( (const DerivativeSecurityListRequest&)message, sessionID ); + else + if( msgTypeValue == "AA" ) + onMessage( (const DerivativeSecurityList&)message, sessionID ); + else + if( msgTypeValue == "AB" ) + onMessage( (const NewOrderMultileg&)message, sessionID ); + else + if( msgTypeValue == "AC" ) + onMessage( (const MultilegOrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "AD" ) + onMessage( (const TradeCaptureReportRequest&)message, sessionID ); + else + if( msgTypeValue == "AE" ) + onMessage( (const TradeCaptureReport&)message, sessionID ); + else + if( msgTypeValue == "AF" ) + onMessage( (const OrderMassStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "AG" ) + onMessage( (const QuoteRequestReject&)message, sessionID ); + else + if( msgTypeValue == "AH" ) + onMessage( (const RFQRequest&)message, sessionID ); + else + if( msgTypeValue == "AI" ) + onMessage( (const QuoteStatusReport&)message, sessionID ); + else onMessage( message, sessionID ); + } + +void crack( Message& message, + const FIX::SessionID& sessionID ) + { + FIX::MsgType msgType; + message.getHeader().getField(msgType); + std::string msgTypeValue = msgType.getValue(); + + if( msgTypeValue == "0" ) + onMessage( (Heartbeat&)message, sessionID ); + else + if( msgTypeValue == "1" ) + onMessage( (TestRequest&)message, sessionID ); + else + if( msgTypeValue == "2" ) + onMessage( (ResendRequest&)message, sessionID ); + else + if( msgTypeValue == "3" ) + onMessage( (Reject&)message, sessionID ); + else + if( msgTypeValue == "4" ) + onMessage( (SequenceReset&)message, sessionID ); + else + if( msgTypeValue == "5" ) + onMessage( (Logout&)message, sessionID ); + else + if( msgTypeValue == "6" ) + onMessage( (IOI&)message, sessionID ); + else + if( msgTypeValue == "7" ) + onMessage( (Advertisement&)message, sessionID ); + else + if( msgTypeValue == "8" ) + onMessage( (ExecutionReport&)message, sessionID ); + else + if( msgTypeValue == "9" ) + onMessage( (OrderCancelReject&)message, sessionID ); + else + if( msgTypeValue == "A" ) + onMessage( (Logon&)message, sessionID ); + else + if( msgTypeValue == "B" ) + onMessage( (News&)message, sessionID ); + else + if( msgTypeValue == "C" ) + onMessage( (Email&)message, sessionID ); + else + if( msgTypeValue == "D" ) + onMessage( (NewOrderSingle&)message, sessionID ); + else + if( msgTypeValue == "E" ) + onMessage( (NewOrderList&)message, sessionID ); + else + if( msgTypeValue == "F" ) + onMessage( (OrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "G" ) + onMessage( (OrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "H" ) + onMessage( (OrderStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "J" ) + onMessage( (Allocation&)message, sessionID ); + else + if( msgTypeValue == "K" ) + onMessage( (ListCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "L" ) + onMessage( (ListExecute&)message, sessionID ); + else + if( msgTypeValue == "M" ) + onMessage( (ListStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "N" ) + onMessage( (ListStatus&)message, sessionID ); + else + if( msgTypeValue == "P" ) + onMessage( (AllocationAck&)message, sessionID ); + else + if( msgTypeValue == "Q" ) + onMessage( (DontKnowTrade&)message, sessionID ); + else + if( msgTypeValue == "R" ) + onMessage( (QuoteRequest&)message, sessionID ); + else + if( msgTypeValue == "S" ) + onMessage( (Quote&)message, sessionID ); + else + if( msgTypeValue == "T" ) + onMessage( (SettlementInstructions&)message, sessionID ); + else + if( msgTypeValue == "V" ) + onMessage( (MarketDataRequest&)message, sessionID ); + else + if( msgTypeValue == "W" ) + onMessage( (MarketDataSnapshotFullRefresh&)message, sessionID ); + else + if( msgTypeValue == "X" ) + onMessage( (MarketDataIncrementalRefresh&)message, sessionID ); + else + if( msgTypeValue == "Y" ) + onMessage( (MarketDataRequestReject&)message, sessionID ); + else + if( msgTypeValue == "Z" ) + onMessage( (QuoteCancel&)message, sessionID ); + else + if( msgTypeValue == "a" ) + onMessage( (QuoteStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "b" ) + onMessage( (MassQuoteAcknowledgement&)message, sessionID ); + else + if( msgTypeValue == "c" ) + onMessage( (SecurityDefinitionRequest&)message, sessionID ); + else + if( msgTypeValue == "d" ) + onMessage( (SecurityDefinition&)message, sessionID ); + else + if( msgTypeValue == "e" ) + onMessage( (SecurityStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "f" ) + onMessage( (SecurityStatus&)message, sessionID ); + else + if( msgTypeValue == "g" ) + onMessage( (TradingSessionStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "h" ) + onMessage( (TradingSessionStatus&)message, sessionID ); + else + if( msgTypeValue == "i" ) + onMessage( (MassQuote&)message, sessionID ); + else + if( msgTypeValue == "j" ) + onMessage( (BusinessMessageReject&)message, sessionID ); + else + if( msgTypeValue == "k" ) + onMessage( (BidRequest&)message, sessionID ); + else + if( msgTypeValue == "l" ) + onMessage( (BidResponse&)message, sessionID ); + else + if( msgTypeValue == "m" ) + onMessage( (ListStrikePrice&)message, sessionID ); + else + if( msgTypeValue == "n" ) + onMessage( (XMLnonFIX&)message, sessionID ); + else + if( msgTypeValue == "o" ) + onMessage( (RegistrationInstructions&)message, sessionID ); + else + if( msgTypeValue == "p" ) + onMessage( (RegistrationInstructionsResponse&)message, sessionID ); + else + if( msgTypeValue == "q" ) + onMessage( (OrderMassCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "r" ) + onMessage( (OrderMassCancelReport&)message, sessionID ); + else + if( msgTypeValue == "s" ) + onMessage( (NewOrderCross&)message, sessionID ); + else + if( msgTypeValue == "u" ) + onMessage( (CrossOrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "t" ) + onMessage( (CrossOrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "v" ) + onMessage( (SecurityTypeRequest&)message, sessionID ); + else + if( msgTypeValue == "w" ) + onMessage( (SecurityTypes&)message, sessionID ); + else + if( msgTypeValue == "x" ) + onMessage( (SecurityListRequest&)message, sessionID ); + else + if( msgTypeValue == "y" ) + onMessage( (SecurityList&)message, sessionID ); + else + if( msgTypeValue == "z" ) + onMessage( (DerivativeSecurityListRequest&)message, sessionID ); + else + if( msgTypeValue == "AA" ) + onMessage( (DerivativeSecurityList&)message, sessionID ); + else + if( msgTypeValue == "AB" ) + onMessage( (NewOrderMultileg&)message, sessionID ); + else + if( msgTypeValue == "AC" ) + onMessage( (MultilegOrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "AD" ) + onMessage( (TradeCaptureReportRequest&)message, sessionID ); + else + if( msgTypeValue == "AE" ) + onMessage( (TradeCaptureReport&)message, sessionID ); + else + if( msgTypeValue == "AF" ) + onMessage( (OrderMassStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "AG" ) + onMessage( (QuoteRequestReject&)message, sessionID ); + else + if( msgTypeValue == "AH" ) + onMessage( (RFQRequest&)message, sessionID ); + else + if( msgTypeValue == "AI" ) + onMessage( (QuoteStatusReport&)message, sessionID ); + else onMessage( message, sessionID ); + } + + }; +} + +#endif diff --git a/linux/include/quickfix/fix43/MultilegOrderCancelReplaceRequest.h b/linux/include/quickfix/fix43/MultilegOrderCancelReplaceRequest.h new file mode 100644 index 000000000..8e56813cb --- /dev/null +++ b/linux/include/quickfix/fix43/MultilegOrderCancelReplaceRequest.h @@ -0,0 +1,239 @@ +#ifndef FIX43_MULTILEGORDERCANCELREPLACEREQUEST_H +#define FIX43_MULTILEGORDERCANCELREPLACEREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class MultilegOrderCancelReplaceRequest : public Message + { + public: + MultilegOrderCancelReplaceRequest() : Message(MsgType()) {} + MultilegOrderCancelReplaceRequest(const FIX::Message& m) : Message(m) {} + MultilegOrderCancelReplaceRequest(const Message& m) : Message(m) {} + MultilegOrderCancelReplaceRequest(const MultilegOrderCancelReplaceRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AC"); } + + MultilegOrderCancelReplaceRequest( + const FIX::OrigClOrdID& aOrigClOrdID, + const FIX::ClOrdID& aClOrdID, + const FIX::HandlInst& aHandlInst, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aOrigClOrdID); + set(aClOrdID); + set(aHandlInst); + set(aSide); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::QuantityType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::IOIid); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegDifference); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffset); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::MultiLegRptTypeReq); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,467,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,604,607,608,609,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,613,614,615,616,617,618,619,620,621,622,623,624,564,565,539,654,566,587,588,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::NoLegSecurityAltID); + class NoLegSecurityAltID: public FIX::Group + { + public: + NoLegSecurityAltID() : FIX::Group(604,605,FIX::message_order(605,606,0)) {} + FIELD_SET(*this, FIX::LegSecurityAltID); + FIELD_SET(*this, FIX::LegSecurityAltIDSource); + }; + FIELD_SET(*this, FIX::LegPositionEffect); + FIELD_SET(*this, FIX::LegCoveredOrUncovered); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,545,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NestedPartySubID); + }; + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegPrice); + FIELD_SET(*this, FIX::LegSettlmntTyp); + FIELD_SET(*this, FIX::LegFutSettDate); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/NewOrderCross.h b/linux/include/quickfix/fix43/NewOrderCross.h new file mode 100644 index 000000000..7dcde23a5 --- /dev/null +++ b/linux/include/quickfix/fix43/NewOrderCross.h @@ -0,0 +1,208 @@ +#ifndef FIX43_NEWORDERCROSS_H +#define FIX43_NEWORDERCROSS_H + +#include "Message.h" + +namespace FIX43 +{ + + class NewOrderCross : public Message + { + public: + NewOrderCross() : Message(MsgType()) {} + NewOrderCross(const FIX::Message& m) : Message(m) {} + NewOrderCross(const Message& m) : Message(m) {} + NewOrderCross(const NewOrderCross& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("s"); } + + NewOrderCross( + const FIX::CrossID& aCrossID, + const FIX::CrossType& aCrossType, + const FIX::CrossPrioritization& aCrossPrioritization, + const FIX::HandlInst& aHandlInst, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aCrossID); + set(aCrossType); + set(aCrossPrioritization); + set(aHandlInst); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::CrossID); + FIELD_SET(*this, FIX::CrossType); + FIELD_SET(*this, FIX::CrossPrioritization); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::IOIid); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegDifference); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffset); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::NoSides); + class NoSides: public FIX::Group + { + public: + NoSides() : FIX::Group(552,54,FIX::message_order(54,11,526,583,453,229,1,581,589,590,591,78,465,38,152,516,468,469,12,13,479,497,528,529,582,121,120,58,354,355,77,203,544,635,377,659,0)) {} + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::QuantityType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::SideComplianceID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,545,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NestedPartySubID); + }; + FIELD_SET(*this, FIX::AllocQty); + }; + }; + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/NewOrderList.h b/linux/include/quickfix/fix43/NewOrderList.h new file mode 100644 index 000000000..ebdc36fdb --- /dev/null +++ b/linux/include/quickfix/fix43/NewOrderList.h @@ -0,0 +1,216 @@ +#ifndef FIX43_NEWORDERLIST_H +#define FIX43_NEWORDERLIST_H + +#include "Message.h" + +namespace FIX43 +{ + + class NewOrderList : public Message + { + public: + NewOrderList() : Message(MsgType()) {} + NewOrderList(const FIX::Message& m) : Message(m) {} + NewOrderList(const Message& m) : Message(m) {} + NewOrderList(const NewOrderList& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("E"); } + + NewOrderList( + const FIX::ListID& aListID, + const FIX::BidType& aBidType, + const FIX::TotNoOrders& aTotNoOrders ) + : Message(MsgType()) + { + set(aListID); + set(aBidType); + set(aTotNoOrders); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::ProgRptReqs); + FIELD_SET(*this, FIX::BidType); + FIELD_SET(*this, FIX::ProgPeriodInterval); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::ListExecInstType); + FIELD_SET(*this, FIX::ListExecInst); + FIELD_SET(*this, FIX::EncodedListExecInstLen); + FIELD_SET(*this, FIX::EncodedListExecInst); + FIELD_SET(*this, FIX::TotNoOrders); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,526,67,583,160,453,229,1,581,589,590,591,78,63,64,544,635,21,18,110,111,100,386,81,55,65,48,22,454,460,461,167,200,541,224,225,239,226,227,228,255,543,470,471,472,240,202,206,231,223,207,106,348,349,107,350,351,140,54,401,114,60,232,465,38,152,516,468,469,40,423,44,99,218,220,221,222,235,236,15,376,377,23,117,59,168,432,126,427,12,13,479,497,528,529,582,47,121,120,58,354,355,193,192,640,77,203,210,211,388,389,494,158,159,118,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListSeqNo); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::SettlInstMode); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::SideValueInd); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::QuantityType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::IOIid); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::Rule80A); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::FutSettDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegDifference); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffset); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,545,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NestedPartySubID); + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/NewOrderMultileg.h b/linux/include/quickfix/fix43/NewOrderMultileg.h new file mode 100644 index 000000000..5a0ecbb42 --- /dev/null +++ b/linux/include/quickfix/fix43/NewOrderMultileg.h @@ -0,0 +1,234 @@ +#ifndef FIX43_NEWORDERMULTILEG_H +#define FIX43_NEWORDERMULTILEG_H + +#include "Message.h" + +namespace FIX43 +{ + + class NewOrderMultileg : public Message + { + public: + NewOrderMultileg() : Message(MsgType()) {} + NewOrderMultileg(const FIX::Message& m) : Message(m) {} + NewOrderMultileg(const Message& m) : Message(m) {} + NewOrderMultileg(const NewOrderMultileg& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AB"); } + + NewOrderMultileg( + const FIX::ClOrdID& aClOrdID, + const FIX::HandlInst& aHandlInst, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aClOrdID); + set(aHandlInst); + set(aSide); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::QuantityType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::IOIid); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegDifference); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffset); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::MultiLegRptTypeReq); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,467,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,604,607,608,609,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,613,614,615,616,617,618,619,620,621,622,623,624,564,565,539,654,566,587,588,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::NoLegSecurityAltID); + class NoLegSecurityAltID: public FIX::Group + { + public: + NoLegSecurityAltID() : FIX::Group(604,605,FIX::message_order(605,606,0)) {} + FIELD_SET(*this, FIX::LegSecurityAltID); + FIELD_SET(*this, FIX::LegSecurityAltIDSource); + }; + FIELD_SET(*this, FIX::LegPositionEffect); + FIELD_SET(*this, FIX::LegCoveredOrUncovered); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,545,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NestedPartySubID); + }; + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegPrice); + FIELD_SET(*this, FIX::LegSettlmntTyp); + FIELD_SET(*this, FIX::LegFutSettDate); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/NewOrderSingle.h b/linux/include/quickfix/fix43/NewOrderSingle.h new file mode 100644 index 000000000..b0177958c --- /dev/null +++ b/linux/include/quickfix/fix43/NewOrderSingle.h @@ -0,0 +1,200 @@ +#ifndef FIX43_NEWORDERSINGLE_H +#define FIX43_NEWORDERSINGLE_H + +#include "Message.h" + +namespace FIX43 +{ + + class NewOrderSingle : public Message + { + public: + NewOrderSingle() : Message(MsgType()) {} + NewOrderSingle(const FIX::Message& m) : Message(m) {} + NewOrderSingle(const Message& m) : Message(m) {} + NewOrderSingle(const NewOrderSingle& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("D"); } + + NewOrderSingle( + const FIX::ClOrdID& aClOrdID, + const FIX::HandlInst& aHandlInst, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aClOrdID); + set(aHandlInst); + set(aSide); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::QuantityType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::IOIid); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::Rule80A); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::FutSettDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegDifference); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffset); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,545,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NestedPartySubID); + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/News.h b/linux/include/quickfix/fix43/News.h new file mode 100644 index 000000000..371c73398 --- /dev/null +++ b/linux/include/quickfix/fix43/News.h @@ -0,0 +1,100 @@ +#ifndef FIX43_NEWS_H +#define FIX43_NEWS_H + +#include "Message.h" + +namespace FIX43 +{ + + class News : public Message + { + public: + News() : Message(MsgType()) {} + News(const FIX::Message& m) : Message(m) {} + News(const Message& m) : Message(m) {} + News(const News& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("B"); } + + News( + const FIX::Headline& aHeadline ) + : Message(MsgType()) + { + set(aHeadline); + } + + FIELD_SET(*this, FIX::OrigTime); + FIELD_SET(*this, FIX::Urgency); + FIELD_SET(*this, FIX::Headline); + FIELD_SET(*this, FIX::EncodedHeadlineLen); + FIELD_SET(*this, FIX::EncodedHeadline); + FIELD_SET(*this, FIX::URLLink); + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,454,460,461,167,200,541,224,225,239,226,227,228,255,543,470,471,472,240,202,206,231,223,207,106,348,349,107,350,351,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + }; + FIELD_SET(*this, FIX::LinesOfText); + class LinesOfText: public FIX::Group + { + public: + LinesOfText() : FIX::Group(33,58,FIX::message_order(58,354,355,0)) {} + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/OrderCancelReject.h b/linux/include/quickfix/fix43/OrderCancelReject.h new file mode 100644 index 000000000..a8c503b74 --- /dev/null +++ b/linux/include/quickfix/fix43/OrderCancelReject.h @@ -0,0 +1,56 @@ +#ifndef FIX43_ORDERCANCELREJECT_H +#define FIX43_ORDERCANCELREJECT_H + +#include "Message.h" + +namespace FIX43 +{ + + class OrderCancelReject : public Message + { + public: + OrderCancelReject() : Message(MsgType()) {} + OrderCancelReject(const FIX::Message& m) : Message(m) {} + OrderCancelReject(const Message& m) : Message(m) {} + OrderCancelReject(const OrderCancelReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("9"); } + + OrderCancelReject( + const FIX::OrderID& aOrderID, + const FIX::ClOrdID& aClOrdID, + const FIX::OrigClOrdID& aOrigClOrdID, + const FIX::OrdStatus& aOrdStatus, + const FIX::CxlRejResponseTo& aCxlRejResponseTo ) + : Message(MsgType()) + { + set(aOrderID); + set(aClOrdID); + set(aOrigClOrdID); + set(aOrdStatus); + set(aCxlRejResponseTo); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::WorkingIndicator); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::CxlRejResponseTo); + FIELD_SET(*this, FIX::CxlRejReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/OrderCancelReplaceRequest.h b/linux/include/quickfix/fix43/OrderCancelReplaceRequest.h new file mode 100644 index 000000000..14b89571f --- /dev/null +++ b/linux/include/quickfix/fix43/OrderCancelReplaceRequest.h @@ -0,0 +1,194 @@ +#ifndef FIX43_ORDERCANCELREPLACEREQUEST_H +#define FIX43_ORDERCANCELREPLACEREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class OrderCancelReplaceRequest : public Message + { + public: + OrderCancelReplaceRequest() : Message(MsgType()) {} + OrderCancelReplaceRequest(const FIX::Message& m) : Message(m) {} + OrderCancelReplaceRequest(const Message& m) : Message(m) {} + OrderCancelReplaceRequest(const OrderCancelReplaceRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("G"); } + + OrderCancelReplaceRequest( + const FIX::OrigClOrdID& aOrigClOrdID, + const FIX::ClOrdID& aClOrdID, + const FIX::HandlInst& aHandlInst, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aOrigClOrdID); + set(aClOrdID); + set(aHandlInst); + set(aSide); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::QuantityType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::PegDifference); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffset); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::Rule80A); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::FutSettDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,545,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NestedPartySubID); + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/OrderCancelRequest.h b/linux/include/quickfix/fix43/OrderCancelRequest.h new file mode 100644 index 000000000..1a0adb113 --- /dev/null +++ b/linux/include/quickfix/fix43/OrderCancelRequest.h @@ -0,0 +1,105 @@ +#ifndef FIX43_ORDERCANCELREQUEST_H +#define FIX43_ORDERCANCELREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class OrderCancelRequest : public Message + { + public: + OrderCancelRequest() : Message(MsgType()) {} + OrderCancelRequest(const FIX::Message& m) : Message(m) {} + OrderCancelRequest(const Message& m) : Message(m) {} + OrderCancelRequest(const OrderCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("F"); } + + OrderCancelRequest( + const FIX::OrigClOrdID& aOrigClOrdID, + const FIX::ClOrdID& aClOrdID, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aOrigClOrdID); + set(aClOrdID); + set(aSide); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/OrderMassCancelReport.h b/linux/include/quickfix/fix43/OrderMassCancelReport.h new file mode 100644 index 000000000..462f458c1 --- /dev/null +++ b/linux/include/quickfix/fix43/OrderMassCancelReport.h @@ -0,0 +1,138 @@ +#ifndef FIX43_ORDERMASSCANCELREPORT_H +#define FIX43_ORDERMASSCANCELREPORT_H + +#include "Message.h" + +namespace FIX43 +{ + + class OrderMassCancelReport : public Message + { + public: + OrderMassCancelReport() : Message(MsgType()) {} + OrderMassCancelReport(const FIX::Message& m) : Message(m) {} + OrderMassCancelReport(const Message& m) : Message(m) {} + OrderMassCancelReport(const OrderMassCancelReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("r"); } + + OrderMassCancelReport( + const FIX::OrderID& aOrderID, + const FIX::MassCancelRequestType& aMassCancelRequestType, + const FIX::MassCancelResponse& aMassCancelResponse ) + : Message(MsgType()) + { + set(aOrderID); + set(aMassCancelRequestType); + set(aMassCancelResponse); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::MassCancelRequestType); + FIELD_SET(*this, FIX::MassCancelResponse); + FIELD_SET(*this, FIX::MassCancelRejectReason); + FIELD_SET(*this, FIX::TotalAffectedOrders); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::NoUnderlyingSecurityAltID); + class NoUnderlyingSecurityAltID: public FIX::Group + { + public: + NoUnderlyingSecurityAltID() : FIX::Group(457,458,FIX::message_order(458,459,0)) {} + FIELD_SET(*this, FIX::UnderlyingSecurityAltID); + FIELD_SET(*this, FIX::UnderlyingSecurityAltIDSource); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoAffectedOrders); + class NoAffectedOrders: public FIX::Group + { + public: + NoAffectedOrders() : FIX::Group(534,41,FIX::message_order(41,535,536,0)) {} + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::AffectedOrderID); + FIELD_SET(*this, FIX::AffectedSecondaryOrderID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/OrderMassCancelRequest.h b/linux/include/quickfix/fix43/OrderMassCancelRequest.h new file mode 100644 index 000000000..20068d029 --- /dev/null +++ b/linux/include/quickfix/fix43/OrderMassCancelRequest.h @@ -0,0 +1,124 @@ +#ifndef FIX43_ORDERMASSCANCELREQUEST_H +#define FIX43_ORDERMASSCANCELREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class OrderMassCancelRequest : public Message + { + public: + OrderMassCancelRequest() : Message(MsgType()) {} + OrderMassCancelRequest(const FIX::Message& m) : Message(m) {} + OrderMassCancelRequest(const Message& m) : Message(m) {} + OrderMassCancelRequest(const OrderMassCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("q"); } + + OrderMassCancelRequest( + const FIX::ClOrdID& aClOrdID, + const FIX::MassCancelRequestType& aMassCancelRequestType, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aClOrdID); + set(aMassCancelRequestType); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::MassCancelRequestType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::NoUnderlyingSecurityAltID); + class NoUnderlyingSecurityAltID: public FIX::Group + { + public: + NoUnderlyingSecurityAltID() : FIX::Group(457,458,FIX::message_order(458,459,0)) {} + FIELD_SET(*this, FIX::UnderlyingSecurityAltID); + FIELD_SET(*this, FIX::UnderlyingSecurityAltIDSource); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/OrderMassStatusRequest.h b/linux/include/quickfix/fix43/OrderMassStatusRequest.h new file mode 100644 index 000000000..11823794a --- /dev/null +++ b/linux/include/quickfix/fix43/OrderMassStatusRequest.h @@ -0,0 +1,128 @@ +#ifndef FIX43_ORDERMASSSTATUSREQUEST_H +#define FIX43_ORDERMASSSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class OrderMassStatusRequest : public Message + { + public: + OrderMassStatusRequest() : Message(MsgType()) {} + OrderMassStatusRequest(const FIX::Message& m) : Message(m) {} + OrderMassStatusRequest(const Message& m) : Message(m) {} + OrderMassStatusRequest(const OrderMassStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AF"); } + + OrderMassStatusRequest( + const FIX::MassStatusReqID& aMassStatusReqID, + const FIX::MassStatusReqType& aMassStatusReqType ) + : Message(MsgType()) + { + set(aMassStatusReqID); + set(aMassStatusReqType); + } + + FIELD_SET(*this, FIX::MassStatusReqID); + FIELD_SET(*this, FIX::MassStatusReqType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::NoUnderlyingSecurityAltID); + class NoUnderlyingSecurityAltID: public FIX::Group + { + public: + NoUnderlyingSecurityAltID() : FIX::Group(457,458,FIX::message_order(458,459,0)) {} + FIELD_SET(*this, FIX::UnderlyingSecurityAltID); + FIELD_SET(*this, FIX::UnderlyingSecurityAltIDSource); + }; + FIELD_SET(*this, FIX::Side); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/OrderStatusRequest.h b/linux/include/quickfix/fix43/OrderStatusRequest.h new file mode 100644 index 000000000..c401edbeb --- /dev/null +++ b/linux/include/quickfix/fix43/OrderStatusRequest.h @@ -0,0 +1,87 @@ +#ifndef FIX43_ORDERSTATUSREQUEST_H +#define FIX43_ORDERSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class OrderStatusRequest : public Message + { + public: + OrderStatusRequest() : Message(MsgType()) {} + OrderStatusRequest(const FIX::Message& m) : Message(m) {} + OrderStatusRequest(const Message& m) : Message(m) {} + OrderStatusRequest(const OrderStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("H"); } + + OrderStatusRequest( + const FIX::ClOrdID& aClOrdID, + const FIX::Side& aSide ) + : Message(MsgType()) + { + set(aClOrdID); + set(aSide); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::Side); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/Quote.h b/linux/include/quickfix/fix43/Quote.h new file mode 100644 index 000000000..03db49cdc --- /dev/null +++ b/linux/include/quickfix/fix43/Quote.h @@ -0,0 +1,123 @@ +#ifndef FIX43_QUOTE_H +#define FIX43_QUOTE_H + +#include "Message.h" + +namespace FIX43 +{ + + class Quote : public Message + { + public: + Quote() : Message(MsgType()) {} + Quote(const FIX::Message& m) : Message(m) {} + Quote(const Message& m) : Message(m) {} + Quote(const Quote& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("S"); } + + Quote( + const FIX::QuoteID& aQuoteID ) + : Message(MsgType()) + { + set(aQuoteID); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::MktBidPx); + FIELD_SET(*this, FIX::MktOfferPx); + FIELD_SET(*this, FIX::MinBidSize); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::MinOfferSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::FutSettDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SettlCurrBidFxRate); + FIELD_SET(*this, FIX::SettlCurrOfferFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/QuoteCancel.h b/linux/include/quickfix/fix43/QuoteCancel.h new file mode 100644 index 000000000..4ab8be027 --- /dev/null +++ b/linux/include/quickfix/fix43/QuoteCancel.h @@ -0,0 +1,95 @@ +#ifndef FIX43_QUOTECANCEL_H +#define FIX43_QUOTECANCEL_H + +#include "Message.h" + +namespace FIX43 +{ + + class QuoteCancel : public Message + { + public: + QuoteCancel() : Message(MsgType()) {} + QuoteCancel(const FIX::Message& m) : Message(m) {} + QuoteCancel(const Message& m) : Message(m) {} + QuoteCancel(const QuoteCancel& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("Z"); } + + QuoteCancel( + const FIX::QuoteID& aQuoteID, + const FIX::QuoteCancelType& aQuoteCancelType ) + : Message(MsgType()) + { + set(aQuoteID); + set(aQuoteCancelType); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteCancelType); + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NoQuoteEntries); + class NoQuoteEntries: public FIX::Group + { + public: + NoQuoteEntries() : FIX::Group(295,55,FIX::message_order(55,65,48,22,454,460,461,167,200,541,224,225,239,226,227,228,255,543,470,471,472,240,202,206,231,223,207,106,348,349,107,350,351,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/QuoteRequest.h b/linux/include/quickfix/fix43/QuoteRequest.h new file mode 100644 index 000000000..7cdab8c9d --- /dev/null +++ b/linux/include/quickfix/fix43/QuoteRequest.h @@ -0,0 +1,115 @@ +#ifndef FIX43_QUOTEREQUEST_H +#define FIX43_QUOTEREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class QuoteRequest : public Message + { + public: + QuoteRequest() : Message(MsgType()) {} + QuoteRequest(const FIX::Message& m) : Message(m) {} + QuoteRequest(const Message& m) : Message(m) {} + QuoteRequest(const QuoteRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("R"); } + + QuoteRequest( + const FIX::QuoteReqID& aQuoteReqID ) + : Message(MsgType()) + { + set(aQuoteReqID); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::RFQReqID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,454,460,461,167,200,541,224,225,239,226,227,228,255,543,470,471,472,240,202,206,231,223,207,106,348,349,107,350,351,140,303,537,336,625,229,232,54,465,38,152,63,64,40,193,192,126,60,15,218,220,221,222,423,44,640,235,236,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::QuoteRequestType); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::QuantityType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::FutSettDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/QuoteRequestReject.h b/linux/include/quickfix/fix43/QuoteRequestReject.h new file mode 100644 index 000000000..c89281318 --- /dev/null +++ b/linux/include/quickfix/fix43/QuoteRequestReject.h @@ -0,0 +1,118 @@ +#ifndef FIX43_QUOTEREQUESTREJECT_H +#define FIX43_QUOTEREQUESTREJECT_H + +#include "Message.h" + +namespace FIX43 +{ + + class QuoteRequestReject : public Message + { + public: + QuoteRequestReject() : Message(MsgType()) {} + QuoteRequestReject(const FIX::Message& m) : Message(m) {} + QuoteRequestReject(const Message& m) : Message(m) {} + QuoteRequestReject(const QuoteRequestReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AG"); } + + QuoteRequestReject( + const FIX::QuoteReqID& aQuoteReqID, + const FIX::QuoteRequestRejectReason& aQuoteRequestRejectReason ) + : Message(MsgType()) + { + set(aQuoteReqID); + set(aQuoteRequestRejectReason); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::RFQReqID); + FIELD_SET(*this, FIX::QuoteRequestRejectReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,454,460,461,167,200,541,224,225,239,226,227,228,255,543,470,471,472,240,202,206,231,223,207,106,348,349,107,350,351,140,303,537,336,625,229,232,54,465,38,152,63,64,40,193,192,126,60,15,218,220,221,222,423,44,640,235,236,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::QuoteRequestType); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::QuantityType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::FutSettDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/QuoteStatusReport.h b/linux/include/quickfix/fix43/QuoteStatusReport.h new file mode 100644 index 000000000..74f118eac --- /dev/null +++ b/linux/include/quickfix/fix43/QuoteStatusReport.h @@ -0,0 +1,120 @@ +#ifndef FIX43_QUOTESTATUSREPORT_H +#define FIX43_QUOTESTATUSREPORT_H + +#include "Message.h" + +namespace FIX43 +{ + + class QuoteStatusReport : public Message + { + public: + QuoteStatusReport() : Message(MsgType()) {} + QuoteStatusReport(const FIX::Message& m) : Message(m) {} + QuoteStatusReport(const Message& m) : Message(m) {} + QuoteStatusReport(const QuoteStatusReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AI"); } + + QuoteStatusReport( + const FIX::QuoteID& aQuoteID ) + : Message(MsgType()) + { + set(aQuoteID); + } + + FIELD_SET(*this, FIX::QuoteStatusReqID); + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::MktBidPx); + FIELD_SET(*this, FIX::MktOfferPx); + FIELD_SET(*this, FIX::MinBidSize); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::MinOfferSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::FutSettDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SettlCurrBidFxRate); + FIELD_SET(*this, FIX::SettlCurrOfferFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::QuoteStatus); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/QuoteStatusRequest.h b/linux/include/quickfix/fix43/QuoteStatusRequest.h new file mode 100644 index 000000000..5ec09b9fc --- /dev/null +++ b/linux/include/quickfix/fix43/QuoteStatusRequest.h @@ -0,0 +1,79 @@ +#ifndef FIX43_QUOTESTATUSREQUEST_H +#define FIX43_QUOTESTATUSREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class QuoteStatusRequest : public Message + { + public: + QuoteStatusRequest() : Message(MsgType()) {} + QuoteStatusRequest(const FIX::Message& m) : Message(m) {} + QuoteStatusRequest(const Message& m) : Message(m) {} + QuoteStatusRequest(const QuoteStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("a"); } + + FIELD_SET(*this, FIX::QuoteStatusReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/RFQRequest.h b/linux/include/quickfix/fix43/RFQRequest.h new file mode 100644 index 000000000..44f009bd2 --- /dev/null +++ b/linux/include/quickfix/fix43/RFQRequest.h @@ -0,0 +1,82 @@ +#ifndef FIX43_RFQREQUEST_H +#define FIX43_RFQREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class RFQRequest : public Message + { + public: + RFQRequest() : Message(MsgType()) {} + RFQRequest(const FIX::Message& m) : Message(m) {} + RFQRequest(const Message& m) : Message(m) {} + RFQRequest(const RFQRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AH"); } + + RFQRequest( + const FIX::RFQReqID& aRFQReqID ) + : Message(MsgType()) + { + set(aRFQReqID); + } + + FIELD_SET(*this, FIX::RFQReqID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,454,460,461,167,200,541,224,225,239,226,227,228,255,543,470,471,472,240,202,206,231,223,207,106,348,349,107,350,351,140,303,537,336,625,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::QuoteRequestType); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/RegistrationInstructions.h b/linux/include/quickfix/fix43/RegistrationInstructions.h new file mode 100644 index 000000000..13a21589e --- /dev/null +++ b/linux/include/quickfix/fix43/RegistrationInstructions.h @@ -0,0 +1,87 @@ +#ifndef FIX43_REGISTRATIONINSTRUCTIONS_H +#define FIX43_REGISTRATIONINSTRUCTIONS_H + +#include "Message.h" + +namespace FIX43 +{ + + class RegistrationInstructions : public Message + { + public: + RegistrationInstructions() : Message(MsgType()) {} + RegistrationInstructions(const FIX::Message& m) : Message(m) {} + RegistrationInstructions(const Message& m) : Message(m) {} + RegistrationInstructions(const RegistrationInstructions& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("o"); } + + RegistrationInstructions( + const FIX::RegistID& aRegistID, + const FIX::RegistTransType& aRegistTransType, + const FIX::RegistRefID& aRegistRefID ) + : Message(MsgType()) + { + set(aRegistID); + set(aRegistTransType); + set(aRegistRefID); + } + + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::RegistTransType); + FIELD_SET(*this, FIX::RegistRefID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::RegistAcctType); + FIELD_SET(*this, FIX::TaxAdvantageType); + FIELD_SET(*this, FIX::OwnershipType); + FIELD_SET(*this, FIX::NoRegistDtls); + class NoRegistDtls: public FIX::Group + { + public: + NoRegistDtls() : FIX::Group(473,509,FIX::message_order(509,511,474,482,539,522,486,475,0)) {} + FIELD_SET(*this, FIX::RegistDetls); + FIELD_SET(*this, FIX::RegistEmail); + FIELD_SET(*this, FIX::MailingDtls); + FIELD_SET(*this, FIX::MailingInst); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,545,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NestedPartySubID); + }; + FIELD_SET(*this, FIX::OwnerType); + FIELD_SET(*this, FIX::DateOfBirth); + FIELD_SET(*this, FIX::InvestorCountryOfResidence); + }; + FIELD_SET(*this, FIX::NoDistribInsts); + class NoDistribInsts: public FIX::Group + { + public: + NoDistribInsts() : FIX::Group(510,477,FIX::message_order(477,512,478,498,499,500,501,0)) {} + FIELD_SET(*this, FIX::DistribPaymentMethod); + FIELD_SET(*this, FIX::DistribPercentage); + FIELD_SET(*this, FIX::CashDistribCurr); + FIELD_SET(*this, FIX::CashDistribAgentName); + FIELD_SET(*this, FIX::CashDistribAgentCode); + FIELD_SET(*this, FIX::CashDistribAgentAcctNumber); + FIELD_SET(*this, FIX::CashDistribPayRef); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/RegistrationInstructionsResponse.h b/linux/include/quickfix/fix43/RegistrationInstructionsResponse.h new file mode 100644 index 000000000..5334d81cd --- /dev/null +++ b/linux/include/quickfix/fix43/RegistrationInstructionsResponse.h @@ -0,0 +1,53 @@ +#ifndef FIX43_REGISTRATIONINSTRUCTIONSRESPONSE_H +#define FIX43_REGISTRATIONINSTRUCTIONSRESPONSE_H + +#include "Message.h" + +namespace FIX43 +{ + + class RegistrationInstructionsResponse : public Message + { + public: + RegistrationInstructionsResponse() : Message(MsgType()) {} + RegistrationInstructionsResponse(const FIX::Message& m) : Message(m) {} + RegistrationInstructionsResponse(const Message& m) : Message(m) {} + RegistrationInstructionsResponse(const RegistrationInstructionsResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("p"); } + + RegistrationInstructionsResponse( + const FIX::RegistID& aRegistID, + const FIX::RegistTransType& aRegistTransType, + const FIX::RegistRefID& aRegistRefID, + const FIX::RegistStatus& aRegistStatus ) + : Message(MsgType()) + { + set(aRegistID); + set(aRegistTransType); + set(aRegistRefID); + set(aRegistStatus); + } + + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::RegistTransType); + FIELD_SET(*this, FIX::RegistRefID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::RegistStatus); + FIELD_SET(*this, FIX::RegistRejReasonCode); + FIELD_SET(*this, FIX::RegistRejReasonText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/Reject.h b/linux/include/quickfix/fix43/Reject.h new file mode 100644 index 000000000..0de581cfe --- /dev/null +++ b/linux/include/quickfix/fix43/Reject.h @@ -0,0 +1,36 @@ +#ifndef FIX43_REJECT_H +#define FIX43_REJECT_H + +#include "Message.h" + +namespace FIX43 +{ + + class Reject : public Message + { + public: + Reject() : Message(MsgType()) {} + Reject(const FIX::Message& m) : Message(m) {} + Reject(const Message& m) : Message(m) {} + Reject(const Reject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("3"); } + + Reject( + const FIX::RefSeqNum& aRefSeqNum ) + : Message(MsgType()) + { + set(aRefSeqNum); + } + + FIELD_SET(*this, FIX::RefSeqNum); + FIELD_SET(*this, FIX::RefTagID); + FIELD_SET(*this, FIX::RefMsgType); + FIELD_SET(*this, FIX::SessionRejectReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/ResendRequest.h b/linux/include/quickfix/fix43/ResendRequest.h new file mode 100644 index 000000000..19fe7762e --- /dev/null +++ b/linux/include/quickfix/fix43/ResendRequest.h @@ -0,0 +1,33 @@ +#ifndef FIX43_RESENDREQUEST_H +#define FIX43_RESENDREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class ResendRequest : public Message + { + public: + ResendRequest() : Message(MsgType()) {} + ResendRequest(const FIX::Message& m) : Message(m) {} + ResendRequest(const Message& m) : Message(m) {} + ResendRequest(const ResendRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("2"); } + + ResendRequest( + const FIX::BeginSeqNo& aBeginSeqNo, + const FIX::EndSeqNo& aEndSeqNo ) + : Message(MsgType()) + { + set(aBeginSeqNo); + set(aEndSeqNo); + } + + FIELD_SET(*this, FIX::BeginSeqNo); + FIELD_SET(*this, FIX::EndSeqNo); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/SecurityDefinition.h b/linux/include/quickfix/fix43/SecurityDefinition.h new file mode 100644 index 000000000..89c78b113 --- /dev/null +++ b/linux/include/quickfix/fix43/SecurityDefinition.h @@ -0,0 +1,133 @@ +#ifndef FIX43_SECURITYDEFINITION_H +#define FIX43_SECURITYDEFINITION_H + +#include "Message.h" + +namespace FIX43 +{ + + class SecurityDefinition : public Message + { + public: + SecurityDefinition() : Message(MsgType()) {} + SecurityDefinition(const FIX::Message& m) : Message(m) {} + SecurityDefinition(const Message& m) : Message(m) {} + SecurityDefinition(const SecurityDefinition& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("d"); } + + SecurityDefinition( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityResponseID& aSecurityResponseID, + const FIX::SecurityResponseType& aSecurityResponseType ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityResponseID); + set(aSecurityResponseType); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityResponseType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::RoundLot); + FIELD_SET(*this, FIX::MinTradeVol); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,604,607,608,609,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,613,614,615,616,617,618,619,620,621,622,623,624,556,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::NoLegSecurityAltID); + class NoLegSecurityAltID: public FIX::Group + { + public: + NoLegSecurityAltID() : FIX::Group(604,605,FIX::message_order(605,606,0)) {} + FIELD_SET(*this, FIX::LegSecurityAltID); + FIELD_SET(*this, FIX::LegSecurityAltIDSource); + }; + FIELD_SET(*this, FIX::LegCurrency); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/SecurityDefinitionRequest.h b/linux/include/quickfix/fix43/SecurityDefinitionRequest.h new file mode 100644 index 000000000..f90faf5f8 --- /dev/null +++ b/linux/include/quickfix/fix43/SecurityDefinitionRequest.h @@ -0,0 +1,129 @@ +#ifndef FIX43_SECURITYDEFINITIONREQUEST_H +#define FIX43_SECURITYDEFINITIONREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class SecurityDefinitionRequest : public Message + { + public: + SecurityDefinitionRequest() : Message(MsgType()) {} + SecurityDefinitionRequest(const FIX::Message& m) : Message(m) {} + SecurityDefinitionRequest(const Message& m) : Message(m) {} + SecurityDefinitionRequest(const SecurityDefinitionRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("c"); } + + SecurityDefinitionRequest( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityRequestType& aSecurityRequestType ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityRequestType); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityRequestType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,604,607,608,609,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,613,614,615,616,617,618,619,620,621,622,623,624,556,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::NoLegSecurityAltID); + class NoLegSecurityAltID: public FIX::Group + { + public: + NoLegSecurityAltID() : FIX::Group(604,605,FIX::message_order(605,606,0)) {} + FIELD_SET(*this, FIX::LegSecurityAltID); + FIELD_SET(*this, FIX::LegSecurityAltIDSource); + }; + FIELD_SET(*this, FIX::LegCurrency); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/SecurityList.h b/linux/include/quickfix/fix43/SecurityList.h new file mode 100644 index 000000000..5d8e1b55d --- /dev/null +++ b/linux/include/quickfix/fix43/SecurityList.h @@ -0,0 +1,140 @@ +#ifndef FIX43_SECURITYLIST_H +#define FIX43_SECURITYLIST_H + +#include "Message.h" + +namespace FIX43 +{ + + class SecurityList : public Message + { + public: + SecurityList() : Message(MsgType()) {} + SecurityList(const FIX::Message& m) : Message(m) {} + SecurityList(const Message& m) : Message(m) {} + SecurityList(const SecurityList& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("y"); } + + SecurityList( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityResponseID& aSecurityResponseID, + const FIX::SecurityRequestResult& aSecurityRequestResult ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityResponseID); + set(aSecurityRequestResult); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityRequestResult); + FIELD_SET(*this, FIX::TotalNumSecurities); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,454,460,461,167,200,541,224,225,239,226,227,228,255,543,470,471,472,240,202,206,231,223,207,106,348,349,107,350,351,15,555,561,562,336,625,58,354,355,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::RoundLot); + FIELD_SET(*this, FIX::MinTradeVol); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,604,607,608,609,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,613,614,615,616,617,618,619,620,621,622,623,624,556,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::NoLegSecurityAltID); + class NoLegSecurityAltID: public FIX::Group + { + public: + NoLegSecurityAltID() : FIX::Group(604,605,FIX::message_order(605,606,0)) {} + FIELD_SET(*this, FIX::LegSecurityAltID); + FIELD_SET(*this, FIX::LegSecurityAltIDSource); + }; + FIELD_SET(*this, FIX::LegCurrency); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/SecurityListRequest.h b/linux/include/quickfix/fix43/SecurityListRequest.h new file mode 100644 index 000000000..c514214af --- /dev/null +++ b/linux/include/quickfix/fix43/SecurityListRequest.h @@ -0,0 +1,80 @@ +#ifndef FIX43_SECURITYLISTREQUEST_H +#define FIX43_SECURITYLISTREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class SecurityListRequest : public Message + { + public: + SecurityListRequest() : Message(MsgType()) {} + SecurityListRequest(const FIX::Message& m) : Message(m) {} + SecurityListRequest(const Message& m) : Message(m) {} + SecurityListRequest(const SecurityListRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("x"); } + + SecurityListRequest( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityListRequestType& aSecurityListRequestType ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityListRequestType); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityListRequestType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/SecurityStatus.h b/linux/include/quickfix/fix43/SecurityStatus.h new file mode 100644 index 000000000..3236270d3 --- /dev/null +++ b/linux/include/quickfix/fix43/SecurityStatus.h @@ -0,0 +1,83 @@ +#ifndef FIX43_SECURITYSTATUS_H +#define FIX43_SECURITYSTATUS_H + +#include "Message.h" + +namespace FIX43 +{ + + class SecurityStatus : public Message + { + public: + SecurityStatus() : Message(MsgType()) {} + SecurityStatus(const FIX::Message& m) : Message(m) {} + SecurityStatus(const Message& m) : Message(m) {} + SecurityStatus(const SecurityStatus& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("f"); } + + FIELD_SET(*this, FIX::SecurityStatusReqID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::SecurityTradingStatus); + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::HaltReasonChar); + FIELD_SET(*this, FIX::InViewOfCommon); + FIELD_SET(*this, FIX::DueToRelated); + FIELD_SET(*this, FIX::BuyVolume); + FIELD_SET(*this, FIX::SellVolume); + FIELD_SET(*this, FIX::HighPx); + FIELD_SET(*this, FIX::LowPx); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Adjustment); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/SecurityStatusRequest.h b/linux/include/quickfix/fix43/SecurityStatusRequest.h new file mode 100644 index 000000000..9ac675f15 --- /dev/null +++ b/linux/include/quickfix/fix43/SecurityStatusRequest.h @@ -0,0 +1,76 @@ +#ifndef FIX43_SECURITYSTATUSREQUEST_H +#define FIX43_SECURITYSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class SecurityStatusRequest : public Message + { + public: + SecurityStatusRequest() : Message(MsgType()) {} + SecurityStatusRequest(const FIX::Message& m) : Message(m) {} + SecurityStatusRequest(const Message& m) : Message(m) {} + SecurityStatusRequest(const SecurityStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("e"); } + + SecurityStatusRequest( + const FIX::SecurityStatusReqID& aSecurityStatusReqID, + const FIX::SubscriptionRequestType& aSubscriptionRequestType ) + : Message(MsgType()) + { + set(aSecurityStatusReqID); + set(aSubscriptionRequestType); + } + + FIELD_SET(*this, FIX::SecurityStatusReqID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/SecurityTypeRequest.h b/linux/include/quickfix/fix43/SecurityTypeRequest.h new file mode 100644 index 000000000..399683471 --- /dev/null +++ b/linux/include/quickfix/fix43/SecurityTypeRequest.h @@ -0,0 +1,35 @@ +#ifndef FIX43_SECURITYTYPEREQUEST_H +#define FIX43_SECURITYTYPEREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class SecurityTypeRequest : public Message + { + public: + SecurityTypeRequest() : Message(MsgType()) {} + SecurityTypeRequest(const FIX::Message& m) : Message(m) {} + SecurityTypeRequest(const Message& m) : Message(m) {} + SecurityTypeRequest(const SecurityTypeRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("v"); } + + SecurityTypeRequest( + const FIX::SecurityReqID& aSecurityReqID ) + : Message(MsgType()) + { + set(aSecurityReqID); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/SecurityTypes.h b/linux/include/quickfix/fix43/SecurityTypes.h new file mode 100644 index 000000000..91c69d614 --- /dev/null +++ b/linux/include/quickfix/fix43/SecurityTypes.h @@ -0,0 +1,52 @@ +#ifndef FIX43_SECURITYTYPES_H +#define FIX43_SECURITYTYPES_H + +#include "Message.h" + +namespace FIX43 +{ + + class SecurityTypes : public Message + { + public: + SecurityTypes() : Message(MsgType()) {} + SecurityTypes(const FIX::Message& m) : Message(m) {} + SecurityTypes(const Message& m) : Message(m) {} + SecurityTypes(const SecurityTypes& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("w"); } + + SecurityTypes( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityResponseID& aSecurityResponseID, + const FIX::SecurityResponseType& aSecurityResponseType ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityResponseID); + set(aSecurityResponseType); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityResponseType); + FIELD_SET(*this, FIX::TotalNumSecurityTypes); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::NoSecurityTypes); + class NoSecurityTypes: public FIX::Group + { + public: + NoSecurityTypes() : FIX::Group(558,167,FIX::message_order(167,460,461,0)) {} + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/SequenceReset.h b/linux/include/quickfix/fix43/SequenceReset.h new file mode 100644 index 000000000..71f5fdbf1 --- /dev/null +++ b/linux/include/quickfix/fix43/SequenceReset.h @@ -0,0 +1,31 @@ +#ifndef FIX43_SEQUENCERESET_H +#define FIX43_SEQUENCERESET_H + +#include "Message.h" + +namespace FIX43 +{ + + class SequenceReset : public Message + { + public: + SequenceReset() : Message(MsgType()) {} + SequenceReset(const FIX::Message& m) : Message(m) {} + SequenceReset(const Message& m) : Message(m) {} + SequenceReset(const SequenceReset& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("4"); } + + SequenceReset( + const FIX::NewSeqNo& aNewSeqNo ) + : Message(MsgType()) + { + set(aNewSeqNo); + } + + FIELD_SET(*this, FIX::GapFillFlag); + FIELD_SET(*this, FIX::NewSeqNo); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/SettlementInstructions.h b/linux/include/quickfix/fix43/SettlementInstructions.h new file mode 100644 index 000000000..732fc7278 --- /dev/null +++ b/linux/include/quickfix/fix43/SettlementInstructions.h @@ -0,0 +1,96 @@ +#ifndef FIX43_SETTLEMENTINSTRUCTIONS_H +#define FIX43_SETTLEMENTINSTRUCTIONS_H + +#include "Message.h" + +namespace FIX43 +{ + + class SettlementInstructions : public Message + { + public: + SettlementInstructions() : Message(MsgType()) {} + SettlementInstructions(const FIX::Message& m) : Message(m) {} + SettlementInstructions(const Message& m) : Message(m) {} + SettlementInstructions(const SettlementInstructions& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("T"); } + + SettlementInstructions( + const FIX::SettlInstID& aSettlInstID, + const FIX::SettlInstTransType& aSettlInstTransType, + const FIX::SettlInstRefID& aSettlInstRefID, + const FIX::SettlInstMode& aSettlInstMode, + const FIX::SettlInstSource& aSettlInstSource, + const FIX::AllocAccount& aAllocAccount, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aSettlInstID); + set(aSettlInstTransType); + set(aSettlInstRefID); + set(aSettlInstMode); + set(aSettlInstSource); + set(aAllocAccount); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::SettlInstID); + FIELD_SET(*this, FIX::SettlInstTransType); + FIELD_SET(*this, FIX::SettlInstRefID); + FIELD_SET(*this, FIX::SettlInstMode); + FIELD_SET(*this, FIX::SettlInstSource); + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::SettlDepositoryCode); + FIELD_SET(*this, FIX::SettlBrkrCode); + FIELD_SET(*this, FIX::SettlInstCode); + FIELD_SET(*this, FIX::SecuritySettlAgentName); + FIELD_SET(*this, FIX::SecuritySettlAgentCode); + FIELD_SET(*this, FIX::SecuritySettlAgentAcctNum); + FIELD_SET(*this, FIX::SecuritySettlAgentAcctName); + FIELD_SET(*this, FIX::SecuritySettlAgentContactName); + FIELD_SET(*this, FIX::SecuritySettlAgentContactPhone); + FIELD_SET(*this, FIX::CashSettlAgentName); + FIELD_SET(*this, FIX::CashSettlAgentCode); + FIELD_SET(*this, FIX::CashSettlAgentAcctNum); + FIELD_SET(*this, FIX::CashSettlAgentAcctName); + FIELD_SET(*this, FIX::CashSettlAgentContactName); + FIELD_SET(*this, FIX::CashSettlAgentContactPhone); + FIELD_SET(*this, FIX::PaymentMethod); + FIELD_SET(*this, FIX::PaymentRef); + FIELD_SET(*this, FIX::CardHolderName); + FIELD_SET(*this, FIX::CardNumber); + FIELD_SET(*this, FIX::CardStartDate); + FIELD_SET(*this, FIX::CardExpDate); + FIELD_SET(*this, FIX::CardIssNo); + FIELD_SET(*this, FIX::PaymentDate); + FIELD_SET(*this, FIX::PaymentRemitterID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/TestRequest.h b/linux/include/quickfix/fix43/TestRequest.h new file mode 100644 index 000000000..dbd43e5aa --- /dev/null +++ b/linux/include/quickfix/fix43/TestRequest.h @@ -0,0 +1,30 @@ +#ifndef FIX43_TESTREQUEST_H +#define FIX43_TESTREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class TestRequest : public Message + { + public: + TestRequest() : Message(MsgType()) {} + TestRequest(const FIX::Message& m) : Message(m) {} + TestRequest(const Message& m) : Message(m) {} + TestRequest(const TestRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("1"); } + + TestRequest( + const FIX::TestReqID& aTestReqID ) + : Message(MsgType()) + { + set(aTestReqID); + } + + FIELD_SET(*this, FIX::TestReqID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/TradeCaptureReport.h b/linux/include/quickfix/fix43/TradeCaptureReport.h new file mode 100644 index 000000000..f71af11c9 --- /dev/null +++ b/linux/include/quickfix/fix43/TradeCaptureReport.h @@ -0,0 +1,188 @@ +#ifndef FIX43_TRADECAPTUREREPORT_H +#define FIX43_TRADECAPTUREREPORT_H + +#include "Message.h" + +namespace FIX43 +{ + + class TradeCaptureReport : public Message + { + public: + TradeCaptureReport() : Message(MsgType()) {} + TradeCaptureReport(const FIX::Message& m) : Message(m) {} + TradeCaptureReport(const Message& m) : Message(m) {} + TradeCaptureReport(const TradeCaptureReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AE"); } + + TradeCaptureReport( + const FIX::TradeReportID& aTradeReportID, + const FIX::ExecType& aExecType, + const FIX::PreviouslyReported& aPreviouslyReported, + const FIX::LastQty& aLastQty, + const FIX::LastPx& aLastPx, + const FIX::TradeDate& aTradeDate, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aTradeReportID); + set(aExecType); + set(aPreviouslyReported); + set(aLastQty); + set(aLastPx); + set(aTradeDate); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::TradeReportTransType); + FIELD_SET(*this, FIX::TradeRequestID); + FIELD_SET(*this, FIX::ExecType); + FIELD_SET(*this, FIX::TradeReportRefID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::ExecRestatementReason); + FIELD_SET(*this, FIX::PreviouslyReported); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::LastSpotRate); + FIELD_SET(*this, FIX::LastForwardPoints); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::SettlmntTyp); + FIELD_SET(*this, FIX::FutSettDate); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::NoSides); + class NoSides: public FIX::Group + { + public: + NoSides() : FIX::Group(552,54,FIX::message_order(54,37,198,11,453,1,581,81,575,576,635,578,579,15,376,377,528,529,582,483,336,625,12,13,479,497,381,157,230,158,159,238,237,118,119,120,155,156,77,58,354,355,442,518,136,0)) {} + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::OddLot); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::TradeInputSource); + FIELD_SET(*this, FIX::TradeInputDevice); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::TransBkdTime); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::ExDate); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::NoClearingInstructions); + class NoClearingInstructions: public FIX::Group + { + public: + NoClearingInstructions() : FIX::Group(576,577,FIX::message_order(577,0)) {} + FIELD_SET(*this, FIX::ClearingInstruction); + }; + FIELD_SET(*this, FIX::NoContAmts); + class NoContAmts: public FIX::Group + { + public: + NoContAmts() : FIX::Group(518,519,FIX::message_order(519,520,521,0)) {} + FIELD_SET(*this, FIX::ContAmtType); + FIELD_SET(*this, FIX::ContAmtValue); + FIELD_SET(*this, FIX::ContAmtCurr); + }; + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/TradeCaptureReportRequest.h b/linux/include/quickfix/fix43/TradeCaptureReportRequest.h new file mode 100644 index 000000000..e371db345 --- /dev/null +++ b/linux/include/quickfix/fix43/TradeCaptureReportRequest.h @@ -0,0 +1,102 @@ +#ifndef FIX43_TRADECAPTUREREPORTREQUEST_H +#define FIX43_TRADECAPTUREREPORTREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class TradeCaptureReportRequest : public Message + { + public: + TradeCaptureReportRequest() : Message(MsgType()) {} + TradeCaptureReportRequest(const FIX::Message& m) : Message(m) {} + TradeCaptureReportRequest(const Message& m) : Message(m) {} + TradeCaptureReportRequest(const TradeCaptureReportRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AD"); } + + TradeCaptureReportRequest( + const FIX::TradeRequestID& aTradeRequestID, + const FIX::TradeRequestType& aTradeRequestType ) + : Message(MsgType()) + { + set(aTradeRequestID); + set(aTradeRequestType); + } + + FIELD_SET(*this, FIX::TradeRequestID); + FIELD_SET(*this, FIX::TradeRequestType); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::PartySubID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::NoSecurityAltID); + class NoSecurityAltID: public FIX::Group + { + public: + NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {} + FIELD_SET(*this, FIX::SecurityAltID); + FIELD_SET(*this, FIX::SecurityAltIDSource); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TradeInputSource); + FIELD_SET(*this, FIX::TradeInputDevice); + FIELD_SET(*this, FIX::NoDates); + class NoDates: public FIX::Group + { + public: + NoDates() : FIX::Group(580,75,FIX::message_order(75,60,0)) {} + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/TradingSessionStatus.h b/linux/include/quickfix/fix43/TradingSessionStatus.h new file mode 100644 index 000000000..23907c98d --- /dev/null +++ b/linux/include/quickfix/fix43/TradingSessionStatus.h @@ -0,0 +1,48 @@ +#ifndef FIX43_TRADINGSESSIONSTATUS_H +#define FIX43_TRADINGSESSIONSTATUS_H + +#include "Message.h" + +namespace FIX43 +{ + + class TradingSessionStatus : public Message + { + public: + TradingSessionStatus() : Message(MsgType()) {} + TradingSessionStatus(const FIX::Message& m) : Message(m) {} + TradingSessionStatus(const Message& m) : Message(m) {} + TradingSessionStatus(const TradingSessionStatus& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("h"); } + + TradingSessionStatus( + const FIX::TradingSessionID& aTradingSessionID, + const FIX::TradSesStatus& aTradSesStatus ) + : Message(MsgType()) + { + set(aTradingSessionID); + set(aTradSesStatus); + } + + FIELD_SET(*this, FIX::TradSesReqID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TradSesMethod); + FIELD_SET(*this, FIX::TradSesMode); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::TradSesStatus); + FIELD_SET(*this, FIX::TradSesStatusRejReason); + FIELD_SET(*this, FIX::TradSesStartTime); + FIELD_SET(*this, FIX::TradSesOpenTime); + FIELD_SET(*this, FIX::TradSesPreCloseTime); + FIELD_SET(*this, FIX::TradSesCloseTime); + FIELD_SET(*this, FIX::TradSesEndTime); + FIELD_SET(*this, FIX::TotalVolumeTraded); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/TradingSessionStatusRequest.h b/linux/include/quickfix/fix43/TradingSessionStatusRequest.h new file mode 100644 index 000000000..c89023174 --- /dev/null +++ b/linux/include/quickfix/fix43/TradingSessionStatusRequest.h @@ -0,0 +1,37 @@ +#ifndef FIX43_TRADINGSESSIONSTATUSREQUEST_H +#define FIX43_TRADINGSESSIONSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX43 +{ + + class TradingSessionStatusRequest : public Message + { + public: + TradingSessionStatusRequest() : Message(MsgType()) {} + TradingSessionStatusRequest(const FIX::Message& m) : Message(m) {} + TradingSessionStatusRequest(const Message& m) : Message(m) {} + TradingSessionStatusRequest(const TradingSessionStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("g"); } + + TradingSessionStatusRequest( + const FIX::TradSesReqID& aTradSesReqID, + const FIX::SubscriptionRequestType& aSubscriptionRequestType ) + : Message(MsgType()) + { + set(aTradSesReqID); + set(aSubscriptionRequestType); + } + + FIELD_SET(*this, FIX::TradSesReqID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TradSesMethod); + FIELD_SET(*this, FIX::TradSesMode); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix43/XMLnonFIX.h b/linux/include/quickfix/fix43/XMLnonFIX.h new file mode 100644 index 000000000..8594f59a7 --- /dev/null +++ b/linux/include/quickfix/fix43/XMLnonFIX.h @@ -0,0 +1,22 @@ +#ifndef FIX43_XMLNONFIX_H +#define FIX43_XMLNONFIX_H + +#include "Message.h" + +namespace FIX43 +{ + + class XMLnonFIX : public Message + { + public: + XMLnonFIX() : Message(MsgType()) {} + XMLnonFIX(const FIX::Message& m) : Message(m) {} + XMLnonFIX(const Message& m) : Message(m) {} + XMLnonFIX(const XMLnonFIX& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("n"); } + + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/Advertisement.h b/linux/include/quickfix/fix44/Advertisement.h new file mode 100644 index 000000000..3c09ae948 --- /dev/null +++ b/linux/include/quickfix/fix44/Advertisement.h @@ -0,0 +1,191 @@ +#ifndef FIX44_ADVERTISEMENT_H +#define FIX44_ADVERTISEMENT_H + +#include "Message.h" + +namespace FIX44 +{ + + class Advertisement : public Message + { + public: + Advertisement() : Message(MsgType()) {} + Advertisement(const FIX::Message& m) : Message(m) {} + Advertisement(const Message& m) : Message(m) {} + Advertisement(const Advertisement& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("7"); } + + Advertisement( + const FIX::AdvId& aAdvId, + const FIX::AdvTransType& aAdvTransType, + const FIX::AdvSide& aAdvSide, + const FIX::Quantity& aQuantity ) + : Message(MsgType()) + { + set(aAdvId); + set(aAdvTransType); + set(aAdvSide); + set(aQuantity); + } + + FIELD_SET(*this, FIX::AdvId); + FIELD_SET(*this, FIX::AdvTransType); + FIELD_SET(*this, FIX::AdvRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::AdvSide); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::URLLink); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/AllocationInstruction.h b/linux/include/quickfix/fix44/AllocationInstruction.h new file mode 100644 index 000000000..8cc077532 --- /dev/null +++ b/linux/include/quickfix/fix44/AllocationInstruction.h @@ -0,0 +1,397 @@ +#ifndef FIX44_ALLOCATIONINSTRUCTION_H +#define FIX44_ALLOCATIONINSTRUCTION_H + +#include "Message.h" + +namespace FIX44 +{ + + class AllocationInstruction : public Message + { + public: + AllocationInstruction() : Message(MsgType()) {} + AllocationInstruction(const FIX::Message& m) : Message(m) {} + AllocationInstruction(const Message& m) : Message(m) {} + AllocationInstruction(const AllocationInstruction& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("J"); } + + AllocationInstruction( + const FIX::AllocID& aAllocID, + const FIX::AllocTransType& aAllocTransType, + const FIX::AllocType& aAllocType, + const FIX::AllocNoOrdersType& aAllocNoOrdersType, + const FIX::Side& aSide, + const FIX::Quantity& aQuantity, + const FIX::AvgPx& aAvgPx, + const FIX::TradeDate& aTradeDate ) + : Message(MsgType()) + { + set(aAllocID); + set(aAllocTransType); + set(aAllocType); + set(aAllocNoOrdersType); + set(aSide); + set(aQuantity); + set(aAvgPx); + set(aTradeDate); + } + + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::AllocTransType); + FIELD_SET(*this, FIX::AllocType); + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::RefAllocID); + FIELD_SET(*this, FIX::AllocCancReplaceReason); + FIELD_SET(*this, FIX::AllocIntermedReqType); + FIELD_SET(*this, FIX::AllocLinkID); + FIELD_SET(*this, FIX::AllocLinkType); + FIELD_SET(*this, FIX::BookingRefID); + FIELD_SET(*this, FIX::AllocNoOrdersType); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,526,66,756,38,799,800,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrderAvgPx); + FIELD_SET(*this, FIX::OrderBookingQty); + }; + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,32,FIX::message_order(32,17,527,31,669,29,0)) {} + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::LastCapacity); + }; + FIELD_SET(*this, FIX::PreviouslyReported); + FIELD_SET(*this, FIX::ReversalIndicator); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::AvgParPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::AvgPxPrecision); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::AutoAcceptIndicator); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::TotalAccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::LegalConfirm); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::TotNoAllocs); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,573,366,80,467,81,539,208,209,161,360,361,12,13,479,497,153,154,119,737,120,736,155,156,742,741,136,576,780,172,169,170,171,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::AllocPrice); + FIELD_SET(*this, FIX::AllocQty); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NotifyBrokerOfCredit); + FIELD_SET(*this, FIX::AllocHandlInst); + FIELD_SET(*this, FIX::AllocText); + FIELD_SET(*this, FIX::EncodedAllocTextLen); + FIELD_SET(*this, FIX::EncodedAllocText); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::AllocAvgPx); + FIELD_SET(*this, FIX::AllocNetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::AllocSettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::AllocAccruedInterestAmt); + FIELD_SET(*this, FIX::AllocInterestAtMaturity); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::NoClearingInstructions); + class NoClearingInstructions: public FIX::Group + { + public: + NoClearingInstructions() : FIX::Group(576,577,FIX::message_order(577,0)) {} + FIELD_SET(*this, FIX::ClearingInstruction); + }; + FIELD_SET(*this, FIX::AllocSettlInstType); + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/AllocationInstructionAck.h b/linux/include/quickfix/fix44/AllocationInstructionAck.h new file mode 100644 index 000000000..f23df5f4d --- /dev/null +++ b/linux/include/quickfix/fix44/AllocationInstructionAck.h @@ -0,0 +1,78 @@ +#ifndef FIX44_ALLOCATIONINSTRUCTIONACK_H +#define FIX44_ALLOCATIONINSTRUCTIONACK_H + +#include "Message.h" + +namespace FIX44 +{ + + class AllocationInstructionAck : public Message + { + public: + AllocationInstructionAck() : Message(MsgType()) {} + AllocationInstructionAck(const FIX::Message& m) : Message(m) {} + AllocationInstructionAck(const Message& m) : Message(m) {} + AllocationInstructionAck(const AllocationInstructionAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("P"); } + + AllocationInstructionAck( + const FIX::AllocID& aAllocID, + const FIX::TransactTime& aTransactTime, + const FIX::AllocStatus& aAllocStatus ) + : Message(MsgType()) + { + set(aAllocID); + set(aTransactTime); + set(aAllocStatus); + } + + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::AllocStatus); + FIELD_SET(*this, FIX::AllocRejCode); + FIELD_SET(*this, FIX::AllocType); + FIELD_SET(*this, FIX::AllocIntermedReqType); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,366,467,776,161,360,361,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocPrice); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::IndividualAllocRejCode); + FIELD_SET(*this, FIX::AllocText); + FIELD_SET(*this, FIX::EncodedAllocTextLen); + FIELD_SET(*this, FIX::EncodedAllocText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/AllocationReport.h b/linux/include/quickfix/fix44/AllocationReport.h new file mode 100644 index 000000000..f9b09b6fe --- /dev/null +++ b/linux/include/quickfix/fix44/AllocationReport.h @@ -0,0 +1,403 @@ +#ifndef FIX44_ALLOCATIONREPORT_H +#define FIX44_ALLOCATIONREPORT_H + +#include "Message.h" + +namespace FIX44 +{ + + class AllocationReport : public Message + { + public: + AllocationReport() : Message(MsgType()) {} + AllocationReport(const FIX::Message& m) : Message(m) {} + AllocationReport(const Message& m) : Message(m) {} + AllocationReport(const AllocationReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AS"); } + + AllocationReport( + const FIX::AllocReportID& aAllocReportID, + const FIX::AllocTransType& aAllocTransType, + const FIX::AllocReportType& aAllocReportType, + const FIX::AllocStatus& aAllocStatus, + const FIX::AllocNoOrdersType& aAllocNoOrdersType, + const FIX::Side& aSide, + const FIX::Quantity& aQuantity, + const FIX::AvgPx& aAvgPx, + const FIX::TradeDate& aTradeDate ) + : Message(MsgType()) + { + set(aAllocReportID); + set(aAllocTransType); + set(aAllocReportType); + set(aAllocStatus); + set(aAllocNoOrdersType); + set(aSide); + set(aQuantity); + set(aAvgPx); + set(aTradeDate); + } + + FIELD_SET(*this, FIX::AllocReportID); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::AllocTransType); + FIELD_SET(*this, FIX::AllocReportRefID); + FIELD_SET(*this, FIX::AllocCancReplaceReason); + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::AllocReportType); + FIELD_SET(*this, FIX::AllocStatus); + FIELD_SET(*this, FIX::AllocRejCode); + FIELD_SET(*this, FIX::RefAllocID); + FIELD_SET(*this, FIX::AllocIntermedReqType); + FIELD_SET(*this, FIX::AllocLinkID); + FIELD_SET(*this, FIX::AllocLinkType); + FIELD_SET(*this, FIX::BookingRefID); + FIELD_SET(*this, FIX::AllocNoOrdersType); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,526,66,756,38,799,800,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrderAvgPx); + FIELD_SET(*this, FIX::OrderBookingQty); + }; + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,32,FIX::message_order(32,17,527,31,669,29,0)) {} + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::LastCapacity); + }; + FIELD_SET(*this, FIX::PreviouslyReported); + FIELD_SET(*this, FIX::ReversalIndicator); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::AvgParPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::AvgPxPrecision); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::AutoAcceptIndicator); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::TotalAccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::LegalConfirm); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::TotNoAllocs); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,573,366,80,467,81,539,208,209,161,360,361,12,13,479,497,153,154,119,737,120,736,155,156,742,741,136,576,780,172,169,170,171,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::AllocPrice); + FIELD_SET(*this, FIX::AllocQty); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NotifyBrokerOfCredit); + FIELD_SET(*this, FIX::AllocHandlInst); + FIELD_SET(*this, FIX::AllocText); + FIELD_SET(*this, FIX::EncodedAllocTextLen); + FIELD_SET(*this, FIX::EncodedAllocText); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::AllocAvgPx); + FIELD_SET(*this, FIX::AllocNetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::AllocSettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::AllocAccruedInterestAmt); + FIELD_SET(*this, FIX::AllocInterestAtMaturity); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::NoClearingInstructions); + class NoClearingInstructions: public FIX::Group + { + public: + NoClearingInstructions() : FIX::Group(576,577,FIX::message_order(577,0)) {} + FIELD_SET(*this, FIX::ClearingInstruction); + }; + FIELD_SET(*this, FIX::AllocSettlInstType); + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/AllocationReportAck.h b/linux/include/quickfix/fix44/AllocationReportAck.h new file mode 100644 index 000000000..5a6e6c3aa --- /dev/null +++ b/linux/include/quickfix/fix44/AllocationReportAck.h @@ -0,0 +1,81 @@ +#ifndef FIX44_ALLOCATIONREPORTACK_H +#define FIX44_ALLOCATIONREPORTACK_H + +#include "Message.h" + +namespace FIX44 +{ + + class AllocationReportAck : public Message + { + public: + AllocationReportAck() : Message(MsgType()) {} + AllocationReportAck(const FIX::Message& m) : Message(m) {} + AllocationReportAck(const Message& m) : Message(m) {} + AllocationReportAck(const AllocationReportAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AT"); } + + AllocationReportAck( + const FIX::AllocReportID& aAllocReportID, + const FIX::AllocID& aAllocID, + const FIX::TransactTime& aTransactTime, + const FIX::AllocStatus& aAllocStatus ) + : Message(MsgType()) + { + set(aAllocReportID); + set(aAllocID); + set(aTransactTime); + set(aAllocStatus); + } + + FIELD_SET(*this, FIX::AllocReportID); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::AllocStatus); + FIELD_SET(*this, FIX::AllocRejCode); + FIELD_SET(*this, FIX::AllocReportType); + FIELD_SET(*this, FIX::AllocIntermedReqType); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,366,467,776,161,360,361,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocPrice); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::IndividualAllocRejCode); + FIELD_SET(*this, FIX::AllocText); + FIELD_SET(*this, FIX::EncodedAllocTextLen); + FIELD_SET(*this, FIX::EncodedAllocText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/AssignmentReport.h b/linux/include/quickfix/fix44/AssignmentReport.h new file mode 100644 index 000000000..ab42b4426 --- /dev/null +++ b/linux/include/quickfix/fix44/AssignmentReport.h @@ -0,0 +1,261 @@ +#ifndef FIX44_ASSIGNMENTREPORT_H +#define FIX44_ASSIGNMENTREPORT_H + +#include "Message.h" + +namespace FIX44 +{ + + class AssignmentReport : public Message + { + public: + AssignmentReport() : Message(MsgType()) {} + AssignmentReport(const FIX::Message& m) : Message(m) {} + AssignmentReport(const Message& m) : Message(m) {} + AssignmentReport(const AssignmentReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AW"); } + + AssignmentReport( + const FIX::AsgnRptID& aAsgnRptID, + const FIX::AccountType& aAccountType, + const FIX::SettlPrice& aSettlPrice, + const FIX::SettlPriceType& aSettlPriceType, + const FIX::UnderlyingSettlPrice& aUnderlyingSettlPrice, + const FIX::AssignmentMethod& aAssignmentMethod, + const FIX::OpenInterest& aOpenInterest, + const FIX::ExerciseMethod& aExerciseMethod, + const FIX::SettlSessID& aSettlSessID, + const FIX::SettlSessSubID& aSettlSessSubID, + const FIX::ClearingBusinessDate& aClearingBusinessDate ) + : Message(MsgType()) + { + set(aAsgnRptID); + set(aAccountType); + set(aSettlPrice); + set(aSettlPriceType); + set(aUnderlyingSettlPrice); + set(aAssignmentMethod); + set(aOpenInterest); + set(aExerciseMethod); + set(aSettlSessID); + set(aSettlSessSubID); + set(aClearingBusinessDate); + } + + FIELD_SET(*this, FIX::AsgnRptID); + FIELD_SET(*this, FIX::TotNumAssignmentReports); + FIELD_SET(*this, FIX::LastRptRequested); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::NoPositions); + class NoPositions: public FIX::Group + { + public: + NoPositions() : FIX::Group(702,703,FIX::message_order(703,704,705,706,539,0)) {} + FIELD_SET(*this, FIX::PosType); + FIELD_SET(*this, FIX::LongQty); + FIELD_SET(*this, FIX::ShortQty); + FIELD_SET(*this, FIX::PosQtyStatus); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + }; + FIELD_SET(*this, FIX::ThresholdAmount); + FIELD_SET(*this, FIX::SettlPrice); + FIELD_SET(*this, FIX::SettlPriceType); + FIELD_SET(*this, FIX::UnderlyingSettlPrice); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::AssignmentMethod); + FIELD_SET(*this, FIX::AssignmentUnit); + FIELD_SET(*this, FIX::OpenInterest); + FIELD_SET(*this, FIX::ExerciseMethod); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/BidRequest.h b/linux/include/quickfix/fix44/BidRequest.h new file mode 100644 index 000000000..c41c22cba --- /dev/null +++ b/linux/include/quickfix/fix44/BidRequest.h @@ -0,0 +1,98 @@ +#ifndef FIX44_BIDREQUEST_H +#define FIX44_BIDREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class BidRequest : public Message + { + public: + BidRequest() : Message(MsgType()) {} + BidRequest(const FIX::Message& m) : Message(m) {} + BidRequest(const Message& m) : Message(m) {} + BidRequest(const BidRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("k"); } + + BidRequest( + const FIX::ClientBidID& aClientBidID, + const FIX::BidRequestTransType& aBidRequestTransType, + const FIX::TotNoRelatedSym& aTotNoRelatedSym, + const FIX::BidType& aBidType, + const FIX::BidTradeType& aBidTradeType, + const FIX::BasisPxType& aBasisPxType ) + : Message(MsgType()) + { + set(aClientBidID); + set(aBidRequestTransType); + set(aTotNoRelatedSym); + set(aBidType); + set(aBidTradeType); + set(aBasisPxType); + } + + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::BidRequestTransType); + FIELD_SET(*this, FIX::ListName); + FIELD_SET(*this, FIX::TotNoRelatedSym); + FIELD_SET(*this, FIX::BidType); + FIELD_SET(*this, FIX::NumTickets); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SideValue1); + FIELD_SET(*this, FIX::SideValue2); + FIELD_SET(*this, FIX::NoBidDescriptors); + class NoBidDescriptors: public FIX::Group + { + public: + NoBidDescriptors() : FIX::Group(398,399,FIX::message_order(399,400,401,404,441,402,403,405,406,407,408,0)) {} + FIELD_SET(*this, FIX::BidDescriptorType); + FIELD_SET(*this, FIX::BidDescriptor); + FIELD_SET(*this, FIX::SideValueInd); + FIELD_SET(*this, FIX::LiquidityValue); + FIELD_SET(*this, FIX::LiquidityNumSecurities); + FIELD_SET(*this, FIX::LiquidityPctLow); + FIELD_SET(*this, FIX::LiquidityPctHigh); + FIELD_SET(*this, FIX::EFPTrackingError); + FIELD_SET(*this, FIX::FairValue); + FIELD_SET(*this, FIX::OutsideIndexPct); + FIELD_SET(*this, FIX::ValueOfFutures); + }; + FIELD_SET(*this, FIX::NoBidComponents); + class NoBidComponents: public FIX::Group + { + public: + NoBidComponents() : FIX::Group(420,66,FIX::message_order(66,54,336,625,430,63,64,1,660,0)) {} + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NetGrossInd); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + }; + FIELD_SET(*this, FIX::LiquidityIndType); + FIELD_SET(*this, FIX::WtAverageLiquidity); + FIELD_SET(*this, FIX::ExchangeForPhysical); + FIELD_SET(*this, FIX::OutMainCntryUIndex); + FIELD_SET(*this, FIX::CrossPercent); + FIELD_SET(*this, FIX::ProgRptReqs); + FIELD_SET(*this, FIX::ProgPeriodInterval); + FIELD_SET(*this, FIX::IncTaxInd); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::NumBidders); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::BidTradeType); + FIELD_SET(*this, FIX::BasisPxType); + FIELD_SET(*this, FIX::StrikeTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/BidResponse.h b/linux/include/quickfix/fix44/BidResponse.h new file mode 100644 index 000000000..51543f999 --- /dev/null +++ b/linux/include/quickfix/fix44/BidResponse.h @@ -0,0 +1,48 @@ +#ifndef FIX44_BIDRESPONSE_H +#define FIX44_BIDRESPONSE_H + +#include "Message.h" + +namespace FIX44 +{ + + class BidResponse : public Message + { + public: + BidResponse() : Message(MsgType()) {} + BidResponse(const FIX::Message& m) : Message(m) {} + BidResponse(const Message& m) : Message(m) {} + BidResponse(const BidResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("l"); } + + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::NoBidComponents); + class NoBidComponents: public FIX::Group + { + public: + NoBidComponents() : FIX::Group(420,12,FIX::message_order(12,13,479,497,66,421,54,44,423,406,430,63,64,336,625,58,354,355,0)) {} + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Country); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::FairValue); + FIELD_SET(*this, FIX::NetGrossInd); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/BusinessMessageReject.h b/linux/include/quickfix/fix44/BusinessMessageReject.h new file mode 100644 index 000000000..566d4c2ed --- /dev/null +++ b/linux/include/quickfix/fix44/BusinessMessageReject.h @@ -0,0 +1,38 @@ +#ifndef FIX44_BUSINESSMESSAGEREJECT_H +#define FIX44_BUSINESSMESSAGEREJECT_H + +#include "Message.h" + +namespace FIX44 +{ + + class BusinessMessageReject : public Message + { + public: + BusinessMessageReject() : Message(MsgType()) {} + BusinessMessageReject(const FIX::Message& m) : Message(m) {} + BusinessMessageReject(const Message& m) : Message(m) {} + BusinessMessageReject(const BusinessMessageReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("j"); } + + BusinessMessageReject( + const FIX::RefMsgType& aRefMsgType, + const FIX::BusinessRejectReason& aBusinessRejectReason ) + : Message(MsgType()) + { + set(aRefMsgType); + set(aBusinessRejectReason); + } + + FIELD_SET(*this, FIX::RefSeqNum); + FIELD_SET(*this, FIX::RefMsgType); + FIELD_SET(*this, FIX::BusinessRejectRefID); + FIELD_SET(*this, FIX::BusinessRejectReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/CollateralAssignment.h b/linux/include/quickfix/fix44/CollateralAssignment.h new file mode 100644 index 000000000..babafaed0 --- /dev/null +++ b/linux/include/quickfix/fix44/CollateralAssignment.h @@ -0,0 +1,290 @@ +#ifndef FIX44_COLLATERALASSIGNMENT_H +#define FIX44_COLLATERALASSIGNMENT_H + +#include "Message.h" + +namespace FIX44 +{ + + class CollateralAssignment : public Message + { + public: + CollateralAssignment() : Message(MsgType()) {} + CollateralAssignment(const FIX::Message& m) : Message(m) {} + CollateralAssignment(const Message& m) : Message(m) {} + CollateralAssignment(const CollateralAssignment& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AY"); } + + CollateralAssignment( + const FIX::CollAsgnID& aCollAsgnID, + const FIX::CollAsgnReason& aCollAsgnReason, + const FIX::CollAsgnTransType& aCollAsgnTransType, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aCollAsgnID); + set(aCollAsgnReason); + set(aCollAsgnTransType); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::CollAsgnID); + FIELD_SET(*this, FIX::CollReqID); + FIELD_SET(*this, FIX::CollAsgnReason); + FIELD_SET(*this, FIX::CollAsgnTransType); + FIELD_SET(*this, FIX::CollAsgnRefID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,944,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::CollAction); + }; + FIELD_SET(*this, FIX::MarginExcess); + FIELD_SET(*this, FIX::TotalNetValue); + FIELD_SET(*this, FIX::CashOutstanding); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/CollateralInquiry.h b/linux/include/quickfix/fix44/CollateralInquiry.h new file mode 100644 index 000000000..a73422bed --- /dev/null +++ b/linux/include/quickfix/fix44/CollateralInquiry.h @@ -0,0 +1,270 @@ +#ifndef FIX44_COLLATERALINQUIRY_H +#define FIX44_COLLATERALINQUIRY_H + +#include "Message.h" + +namespace FIX44 +{ + + class CollateralInquiry : public Message + { + public: + CollateralInquiry() : Message(MsgType()) {} + CollateralInquiry(const FIX::Message& m) : Message(m) {} + CollateralInquiry(const Message& m) : Message(m) {} + CollateralInquiry(const CollateralInquiry& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BB"); } + + FIELD_SET(*this, FIX::CollInquiryID); + FIELD_SET(*this, FIX::NoCollInquiryQualifier); + class NoCollInquiryQualifier: public FIX::Group + { + public: + NoCollInquiryQualifier() : FIX::Group(938,896,FIX::message_order(896,0)) {} + FIELD_SET(*this, FIX::CollInquiryQualifier); + }; + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::MarginExcess); + FIELD_SET(*this, FIX::TotalNetValue); + FIELD_SET(*this, FIX::CashOutstanding); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/CollateralInquiryAck.h b/linux/include/quickfix/fix44/CollateralInquiryAck.h new file mode 100644 index 000000000..267ede216 --- /dev/null +++ b/linux/include/quickfix/fix44/CollateralInquiryAck.h @@ -0,0 +1,242 @@ +#ifndef FIX44_COLLATERALINQUIRYACK_H +#define FIX44_COLLATERALINQUIRYACK_H + +#include "Message.h" + +namespace FIX44 +{ + + class CollateralInquiryAck : public Message + { + public: + CollateralInquiryAck() : Message(MsgType()) {} + CollateralInquiryAck(const FIX::Message& m) : Message(m) {} + CollateralInquiryAck(const Message& m) : Message(m) {} + CollateralInquiryAck(const CollateralInquiryAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BG"); } + + CollateralInquiryAck( + const FIX::CollInquiryID& aCollInquiryID, + const FIX::CollInquiryStatus& aCollInquiryStatus ) + : Message(MsgType()) + { + set(aCollInquiryID); + set(aCollInquiryStatus); + } + + FIELD_SET(*this, FIX::CollInquiryID); + FIELD_SET(*this, FIX::CollInquiryStatus); + FIELD_SET(*this, FIX::CollInquiryResult); + FIELD_SET(*this, FIX::NoCollInquiryQualifier); + class NoCollInquiryQualifier: public FIX::Group + { + public: + NoCollInquiryQualifier() : FIX::Group(938,896,FIX::message_order(896,0)) {} + FIELD_SET(*this, FIX::CollInquiryQualifier); + }; + FIELD_SET(*this, FIX::TotNumReports); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/CollateralReport.h b/linux/include/quickfix/fix44/CollateralReport.h new file mode 100644 index 000000000..c9de8bb90 --- /dev/null +++ b/linux/include/quickfix/fix44/CollateralReport.h @@ -0,0 +1,283 @@ +#ifndef FIX44_COLLATERALREPORT_H +#define FIX44_COLLATERALREPORT_H + +#include "Message.h" + +namespace FIX44 +{ + + class CollateralReport : public Message + { + public: + CollateralReport() : Message(MsgType()) {} + CollateralReport(const FIX::Message& m) : Message(m) {} + CollateralReport(const Message& m) : Message(m) {} + CollateralReport(const CollateralReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BA"); } + + CollateralReport( + const FIX::CollRptID& aCollRptID, + const FIX::CollStatus& aCollStatus ) + : Message(MsgType()) + { + set(aCollRptID); + set(aCollStatus); + } + + FIELD_SET(*this, FIX::CollRptID); + FIELD_SET(*this, FIX::CollInquiryID); + FIELD_SET(*this, FIX::CollStatus); + FIELD_SET(*this, FIX::TotNumReports); + FIELD_SET(*this, FIX::LastRptRequested); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::MarginExcess); + FIELD_SET(*this, FIX::TotalNetValue); + FIELD_SET(*this, FIX::CashOutstanding); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/CollateralRequest.h b/linux/include/quickfix/fix44/CollateralRequest.h new file mode 100644 index 000000000..b2401d3e3 --- /dev/null +++ b/linux/include/quickfix/fix44/CollateralRequest.h @@ -0,0 +1,281 @@ +#ifndef FIX44_COLLATERALREQUEST_H +#define FIX44_COLLATERALREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class CollateralRequest : public Message + { + public: + CollateralRequest() : Message(MsgType()) {} + CollateralRequest(const FIX::Message& m) : Message(m) {} + CollateralRequest(const Message& m) : Message(m) {} + CollateralRequest(const CollateralRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AX"); } + + CollateralRequest( + const FIX::CollReqID& aCollReqID, + const FIX::CollAsgnReason& aCollAsgnReason, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aCollReqID); + set(aCollAsgnReason); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::CollReqID); + FIELD_SET(*this, FIX::CollAsgnReason); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,944,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::CollAction); + }; + FIELD_SET(*this, FIX::MarginExcess); + FIELD_SET(*this, FIX::TotalNetValue); + FIELD_SET(*this, FIX::CashOutstanding); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/CollateralResponse.h b/linux/include/quickfix/fix44/CollateralResponse.h new file mode 100644 index 000000000..e88676b0f --- /dev/null +++ b/linux/include/quickfix/fix44/CollateralResponse.h @@ -0,0 +1,284 @@ +#ifndef FIX44_COLLATERALRESPONSE_H +#define FIX44_COLLATERALRESPONSE_H + +#include "Message.h" + +namespace FIX44 +{ + + class CollateralResponse : public Message + { + public: + CollateralResponse() : Message(MsgType()) {} + CollateralResponse(const FIX::Message& m) : Message(m) {} + CollateralResponse(const Message& m) : Message(m) {} + CollateralResponse(const CollateralResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AZ"); } + + CollateralResponse( + const FIX::CollRespID& aCollRespID, + const FIX::CollAsgnID& aCollAsgnID, + const FIX::CollAsgnReason& aCollAsgnReason, + const FIX::CollAsgnRespType& aCollAsgnRespType, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aCollRespID); + set(aCollAsgnID); + set(aCollAsgnReason); + set(aCollAsgnRespType); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::CollRespID); + FIELD_SET(*this, FIX::CollAsgnID); + FIELD_SET(*this, FIX::CollReqID); + FIELD_SET(*this, FIX::CollAsgnReason); + FIELD_SET(*this, FIX::CollAsgnTransType); + FIELD_SET(*this, FIX::CollAsgnRespType); + FIELD_SET(*this, FIX::CollAsgnRejectReason); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,944,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::CollAction); + }; + FIELD_SET(*this, FIX::MarginExcess); + FIELD_SET(*this, FIX::TotalNetValue); + FIELD_SET(*this, FIX::CashOutstanding); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/Confirmation.h b/linux/include/quickfix/fix44/Confirmation.h new file mode 100644 index 000000000..336aa5ffc --- /dev/null +++ b/linux/include/quickfix/fix44/Confirmation.h @@ -0,0 +1,357 @@ +#ifndef FIX44_CONFIRMATION_H +#define FIX44_CONFIRMATION_H + +#include "Message.h" + +namespace FIX44 +{ + + class Confirmation : public Message + { + public: + Confirmation() : Message(MsgType()) {} + Confirmation(const FIX::Message& m) : Message(m) {} + Confirmation(const Message& m) : Message(m) {} + Confirmation(const Confirmation& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AK"); } + + Confirmation( + const FIX::ConfirmID& aConfirmID, + const FIX::ConfirmTransType& aConfirmTransType, + const FIX::ConfirmType& aConfirmType, + const FIX::ConfirmStatus& aConfirmStatus, + const FIX::TransactTime& aTransactTime, + const FIX::TradeDate& aTradeDate, + const FIX::AllocQty& aAllocQty, + const FIX::Side& aSide, + const FIX::AllocAccount& aAllocAccount, + const FIX::AvgPx& aAvgPx, + const FIX::GrossTradeAmt& aGrossTradeAmt, + const FIX::NetMoney& aNetMoney ) + : Message(MsgType()) + { + set(aConfirmID); + set(aConfirmTransType); + set(aConfirmType); + set(aConfirmStatus); + set(aTransactTime); + set(aTradeDate); + set(aAllocQty); + set(aSide); + set(aAllocAccount); + set(aAvgPx); + set(aGrossTradeAmt); + set(aNetMoney); + } + + FIELD_SET(*this, FIX::ConfirmID); + FIELD_SET(*this, FIX::ConfirmRefID); + FIELD_SET(*this, FIX::ConfirmReqID); + FIELD_SET(*this, FIX::ConfirmTransType); + FIELD_SET(*this, FIX::ConfirmType); + FIELD_SET(*this, FIX::CopyMsgIndicator); + FIELD_SET(*this, FIX::LegalConfirm); + FIELD_SET(*this, FIX::ConfirmStatus); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,526,66,756,38,799,800,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrderAvgPx); + FIELD_SET(*this, FIX::OrderBookingQty); + }; + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::AllocQty); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::NoCapacities); + class NoCapacities: public FIX::Group + { + public: + NoCapacities() : FIX::Group(862,528,FIX::message_order(528,529,863,0)) {} + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::OrderCapacityQty); + }; + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocAccountType); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::AvgPxPrecision); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AvgParPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::ReportedPx); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::ExDate); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::MaturityNetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::SharedCommission); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/ConfirmationAck.h b/linux/include/quickfix/fix44/ConfirmationAck.h new file mode 100644 index 000000000..bde609382 --- /dev/null +++ b/linux/include/quickfix/fix44/ConfirmationAck.h @@ -0,0 +1,44 @@ +#ifndef FIX44_CONFIRMATIONACK_H +#define FIX44_CONFIRMATIONACK_H + +#include "Message.h" + +namespace FIX44 +{ + + class ConfirmationAck : public Message + { + public: + ConfirmationAck() : Message(MsgType()) {} + ConfirmationAck(const FIX::Message& m) : Message(m) {} + ConfirmationAck(const Message& m) : Message(m) {} + ConfirmationAck(const ConfirmationAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AU"); } + + ConfirmationAck( + const FIX::ConfirmID& aConfirmID, + const FIX::TradeDate& aTradeDate, + const FIX::TransactTime& aTransactTime, + const FIX::AffirmStatus& aAffirmStatus ) + : Message(MsgType()) + { + set(aConfirmID); + set(aTradeDate); + set(aTransactTime); + set(aAffirmStatus); + } + + FIELD_SET(*this, FIX::ConfirmID); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::AffirmStatus); + FIELD_SET(*this, FIX::ConfirmRejReason); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/ConfirmationRequest.h b/linux/include/quickfix/fix44/ConfirmationRequest.h new file mode 100644 index 000000000..6f8cf0fa3 --- /dev/null +++ b/linux/include/quickfix/fix44/ConfirmationRequest.h @@ -0,0 +1,76 @@ +#ifndef FIX44_CONFIRMATIONREQUEST_H +#define FIX44_CONFIRMATIONREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class ConfirmationRequest : public Message + { + public: + ConfirmationRequest() : Message(MsgType()) {} + ConfirmationRequest(const FIX::Message& m) : Message(m) {} + ConfirmationRequest(const Message& m) : Message(m) {} + ConfirmationRequest(const ConfirmationRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BH"); } + + ConfirmationRequest( + const FIX::ConfirmReqID& aConfirmReqID, + const FIX::ConfirmType& aConfirmType, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aConfirmReqID); + set(aConfirmType); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::ConfirmReqID); + FIELD_SET(*this, FIX::ConfirmType); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,526,66,756,38,799,800,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrderAvgPx); + FIELD_SET(*this, FIX::OrderBookingQty); + }; + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocAccountType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/CrossOrderCancelReplaceRequest.h b/linux/include/quickfix/fix44/CrossOrderCancelReplaceRequest.h new file mode 100644 index 000000000..05d2365ba --- /dev/null +++ b/linux/include/quickfix/fix44/CrossOrderCancelReplaceRequest.h @@ -0,0 +1,347 @@ +#ifndef FIX44_CROSSORDERCANCELREPLACEREQUEST_H +#define FIX44_CROSSORDERCANCELREPLACEREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class CrossOrderCancelReplaceRequest : public Message + { + public: + CrossOrderCancelReplaceRequest() : Message(MsgType()) {} + CrossOrderCancelReplaceRequest(const FIX::Message& m) : Message(m) {} + CrossOrderCancelReplaceRequest(const Message& m) : Message(m) {} + CrossOrderCancelReplaceRequest(const CrossOrderCancelReplaceRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("t"); } + + CrossOrderCancelReplaceRequest( + const FIX::CrossID& aCrossID, + const FIX::OrigCrossID& aOrigCrossID, + const FIX::CrossType& aCrossType, + const FIX::CrossPrioritization& aCrossPrioritization, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aCrossID); + set(aOrigCrossID); + set(aCrossType); + set(aCrossPrioritization); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::CrossID); + FIELD_SET(*this, FIX::OrigCrossID); + FIELD_SET(*this, FIX::CrossType); + FIELD_SET(*this, FIX::CrossPrioritization); + FIELD_SET(*this, FIX::NoSides); + class NoSides: public FIX::Group + { + public: + NoSides() : FIX::Group(552,54,FIX::message_order(54,11,526,583,453,229,75,1,660,581,589,590,591,70,78,854,38,152,516,468,469,12,13,479,497,528,529,582,121,120,775,58,354,355,77,203,544,635,377,659,0)) {} + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::SideComplianceID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/CrossOrderCancelRequest.h b/linux/include/quickfix/fix44/CrossOrderCancelRequest.h new file mode 100644 index 000000000..b68ba0653 --- /dev/null +++ b/linux/include/quickfix/fix44/CrossOrderCancelRequest.h @@ -0,0 +1,222 @@ +#ifndef FIX44_CROSSORDERCANCELREQUEST_H +#define FIX44_CROSSORDERCANCELREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class CrossOrderCancelRequest : public Message + { + public: + CrossOrderCancelRequest() : Message(MsgType()) {} + CrossOrderCancelRequest(const FIX::Message& m) : Message(m) {} + CrossOrderCancelRequest(const Message& m) : Message(m) {} + CrossOrderCancelRequest(const CrossOrderCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("u"); } + + CrossOrderCancelRequest( + const FIX::CrossID& aCrossID, + const FIX::OrigCrossID& aOrigCrossID, + const FIX::CrossType& aCrossType, + const FIX::CrossPrioritization& aCrossPrioritization, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aCrossID); + set(aOrigCrossID); + set(aCrossType); + set(aCrossPrioritization); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::CrossID); + FIELD_SET(*this, FIX::OrigCrossID); + FIELD_SET(*this, FIX::CrossType); + FIELD_SET(*this, FIX::CrossPrioritization); + FIELD_SET(*this, FIX::NoSides); + class NoSides: public FIX::Group + { + public: + NoSides() : FIX::Group(552,54,FIX::message_order(54,41,11,526,583,586,453,229,75,38,152,516,468,469,376,58,354,355,0)) {} + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::TransactTime); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/DerivativeSecurityList.h b/linux/include/quickfix/fix44/DerivativeSecurityList.h new file mode 100644 index 000000000..efd084c59 --- /dev/null +++ b/linux/include/quickfix/fix44/DerivativeSecurityList.h @@ -0,0 +1,186 @@ +#ifndef FIX44_DERIVATIVESECURITYLIST_H +#define FIX44_DERIVATIVESECURITYLIST_H + +#include "Message.h" + +namespace FIX44 +{ + + class DerivativeSecurityList : public Message + { + public: + DerivativeSecurityList() : Message(MsgType()) {} + DerivativeSecurityList(const FIX::Message& m) : Message(m) {} + DerivativeSecurityList(const Message& m) : Message(m) {} + DerivativeSecurityList(const DerivativeSecurityList& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AA"); } + + DerivativeSecurityList( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityResponseID& aSecurityResponseID, + const FIX::SecurityRequestResult& aSecurityRequestResult ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityResponseID); + set(aSecurityRequestResult); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityRequestResult); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::TotNoRelatedSym); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,461,167,762,200,541,201,224,225,239,226,227,228,255,543,470,471,472,240,202,947,206,231,223,207,106,348,349,107,350,351,691,667,875,876,873,874,15,827,668,869,555,336,625,58,354,355,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ExpirationCycle); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/DerivativeSecurityListRequest.h b/linux/include/quickfix/fix44/DerivativeSecurityListRequest.h new file mode 100644 index 000000000..618bbef49 --- /dev/null +++ b/linux/include/quickfix/fix44/DerivativeSecurityListRequest.h @@ -0,0 +1,86 @@ +#ifndef FIX44_DERIVATIVESECURITYLISTREQUEST_H +#define FIX44_DERIVATIVESECURITYLISTREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class DerivativeSecurityListRequest : public Message + { + public: + DerivativeSecurityListRequest() : Message(MsgType()) {} + DerivativeSecurityListRequest(const FIX::Message& m) : Message(m) {} + DerivativeSecurityListRequest(const Message& m) : Message(m) {} + DerivativeSecurityListRequest(const DerivativeSecurityListRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("z"); } + + DerivativeSecurityListRequest( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityListRequestType& aSecurityListRequestType ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityListRequestType); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityListRequestType); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/DontKnowTrade.h b/linux/include/quickfix/fix44/DontKnowTrade.h new file mode 100644 index 000000000..078e37b5a --- /dev/null +++ b/linux/include/quickfix/fix44/DontKnowTrade.h @@ -0,0 +1,189 @@ +#ifndef FIX44_DONTKNOWTRADE_H +#define FIX44_DONTKNOWTRADE_H + +#include "Message.h" + +namespace FIX44 +{ + + class DontKnowTrade : public Message + { + public: + DontKnowTrade() : Message(MsgType()) {} + DontKnowTrade(const FIX::Message& m) : Message(m) {} + DontKnowTrade(const Message& m) : Message(m) {} + DontKnowTrade(const DontKnowTrade& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("Q"); } + + DontKnowTrade( + const FIX::OrderID& aOrderID, + const FIX::ExecID& aExecID, + const FIX::DKReason& aDKReason, + const FIX::Side& aSide ) + : Message(MsgType()) + { + set(aOrderID); + set(aExecID); + set(aDKReason); + set(aSide); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::DKReason); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/Email.h b/linux/include/quickfix/fix44/Email.h new file mode 100644 index 000000000..97e26454b --- /dev/null +++ b/linux/include/quickfix/fix44/Email.h @@ -0,0 +1,205 @@ +#ifndef FIX44_EMAIL_H +#define FIX44_EMAIL_H + +#include "Message.h" + +namespace FIX44 +{ + + class Email : public Message + { + public: + Email() : Message(MsgType()) {} + Email(const FIX::Message& m) : Message(m) {} + Email(const Message& m) : Message(m) {} + Email(const Email& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("C"); } + + Email( + const FIX::EmailThreadID& aEmailThreadID, + const FIX::EmailType& aEmailType, + const FIX::Subject& aSubject ) + : Message(MsgType()) + { + set(aEmailThreadID); + set(aEmailType); + set(aSubject); + } + + FIELD_SET(*this, FIX::EmailThreadID); + FIELD_SET(*this, FIX::EmailType); + FIELD_SET(*this, FIX::OrigTime); + FIELD_SET(*this, FIX::Subject); + FIELD_SET(*this, FIX::EncodedSubjectLen); + FIELD_SET(*this, FIX::EncodedSubject); + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,461,167,762,200,541,201,224,225,239,226,227,228,255,543,470,471,472,240,202,947,206,231,223,207,106,348,349,107,350,351,691,667,875,876,873,874,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::NoLinesOfText); + class NoLinesOfText: public FIX::Group + { + public: + NoLinesOfText() : FIX::Group(33,58,FIX::message_order(58,354,355,0)) {} + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/ExecutionReport.h b/linux/include/quickfix/fix44/ExecutionReport.h new file mode 100644 index 000000000..c2b79392e --- /dev/null +++ b/linux/include/quickfix/fix44/ExecutionReport.h @@ -0,0 +1,439 @@ +#ifndef FIX44_EXECUTIONREPORT_H +#define FIX44_EXECUTIONREPORT_H + +#include "Message.h" + +namespace FIX44 +{ + + class ExecutionReport : public Message + { + public: + ExecutionReport() : Message(MsgType()) {} + ExecutionReport(const FIX::Message& m) : Message(m) {} + ExecutionReport(const Message& m) : Message(m) {} + ExecutionReport(const ExecutionReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("8"); } + + ExecutionReport( + const FIX::OrderID& aOrderID, + const FIX::ExecID& aExecID, + const FIX::ExecType& aExecType, + const FIX::OrdStatus& aOrdStatus, + const FIX::Side& aSide, + const FIX::LeavesQty& aLeavesQty, + const FIX::CumQty& aCumQty, + const FIX::AvgPx& aAvgPx ) + : Message(MsgType()) + { + set(aOrderID); + set(aExecID); + set(aExecType); + set(aOrdStatus); + set(aSide); + set(aLeavesQty); + set(aCumQty); + set(aAvgPx); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::QuoteRespID); + FIELD_SET(*this, FIX::OrdStatusReqID); + FIELD_SET(*this, FIX::MassStatusReqID); + FIELD_SET(*this, FIX::TotNumReports); + FIELD_SET(*this, FIX::LastRptRequested); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::NoContraBrokers); + class NoContraBrokers: public FIX::Group + { + public: + NoContraBrokers() : FIX::Group(382,375,FIX::message_order(375,337,437,438,655,0)) {} + FIELD_SET(*this, FIX::ContraBroker); + FIELD_SET(*this, FIX::ContraTrader); + FIELD_SET(*this, FIX::ContraTradeQty); + FIELD_SET(*this, FIX::ContraTradeTime); + FIELD_SET(*this, FIX::ContraLegRefID); + }; + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::CrossID); + FIELD_SET(*this, FIX::OrigCrossID); + FIELD_SET(*this, FIX::CrossType); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::ExecRefID); + FIELD_SET(*this, FIX::ExecType); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::WorkingIndicator); + FIELD_SET(*this, FIX::OrdRejReason); + FIELD_SET(*this, FIX::ExecRestatementReason); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::PeggedPrice); + FIELD_SET(*this, FIX::DiscretionPrice); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::TargetStrategyPerformance); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::UnderlyingLastQty); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::UnderlyingLastPx); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::LastSpotRate); + FIELD_SET(*this, FIX::LastForwardPoints); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TimeBracket); + FIELD_SET(*this, FIX::LastCapacity); + FIELD_SET(*this, FIX::LeavesQty); + FIELD_SET(*this, FIX::CumQty); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::DayOrderQty); + FIELD_SET(*this, FIX::DayCumQty); + FIELD_SET(*this, FIX::DayAvgPx); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::ReportToExch); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::ExDate); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::TradedFlatSwitch); + FIELD_SET(*this, FIX::BasisFeatureDate); + FIELD_SET(*this, FIX::BasisFeaturePrice); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::LastForwardPoints2); + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::TransBkdTime); + FIELD_SET(*this, FIX::ExecValuationPoint); + FIELD_SET(*this, FIX::ExecPriceType); + FIELD_SET(*this, FIX::ExecPriceAdjustment); + FIELD_SET(*this, FIX::PriorityIndicator); + FIELD_SET(*this, FIX::PriceImprovement); + FIELD_SET(*this, FIX::LastLiquidityInd); + FIELD_SET(*this, FIX::NoContAmts); + class NoContAmts: public FIX::Group + { + public: + NoContAmts() : FIX::Group(518,519,FIX::message_order(519,520,521,0)) {} + FIELD_SET(*this, FIX::ContAmtType); + FIELD_SET(*this, FIX::ContAmtValue); + FIELD_SET(*this, FIX::ContAmtCurr); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,687,690,683,564,565,539,654,566,587,588,637,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::LegPositionEffect); + FIELD_SET(*this, FIX::LegCoveredOrUncovered); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegPrice); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::LegLastPx); + }; + FIELD_SET(*this, FIX::CopyMsgIndicator); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/Heartbeat.h b/linux/include/quickfix/fix44/Heartbeat.h new file mode 100644 index 000000000..bd5ed7ac3 --- /dev/null +++ b/linux/include/quickfix/fix44/Heartbeat.h @@ -0,0 +1,23 @@ +#ifndef FIX44_HEARTBEAT_H +#define FIX44_HEARTBEAT_H + +#include "Message.h" + +namespace FIX44 +{ + + class Heartbeat : public Message + { + public: + Heartbeat() : Message(MsgType()) {} + Heartbeat(const FIX::Message& m) : Message(m) {} + Heartbeat(const Message& m) : Message(m) {} + Heartbeat(const Heartbeat& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("0"); } + + FIELD_SET(*this, FIX::TestReqID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/IOI.h b/linux/include/quickfix/fix44/IOI.h new file mode 100644 index 000000000..ea0130d01 --- /dev/null +++ b/linux/include/quickfix/fix44/IOI.h @@ -0,0 +1,251 @@ +#ifndef FIX44_IOI_H +#define FIX44_IOI_H + +#include "Message.h" + +namespace FIX44 +{ + + class IOI : public Message + { + public: + IOI() : Message(MsgType()) {} + IOI(const FIX::Message& m) : Message(m) {} + IOI(const Message& m) : Message(m) {} + IOI(const IOI& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("6"); } + + IOI( + const FIX::IOIID& aIOIID, + const FIX::IOITransType& aIOITransType, + const FIX::Side& aSide, + const FIX::IOIQty& aIOIQty ) + : Message(MsgType()) + { + set(aIOIID); + set(aIOITransType); + set(aSide); + set(aIOIQty); + } + + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::IOITransType); + FIELD_SET(*this, FIX::IOIRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::IOIQty); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,682,683,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegIOIQty); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + }; + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::IOIQltyInd); + FIELD_SET(*this, FIX::IOINaturalFlag); + FIELD_SET(*this, FIX::NoIOIQualifiers); + class NoIOIQualifiers: public FIX::Group + { + public: + NoIOIQualifiers() : FIX::Group(199,104,FIX::message_order(104,0)) {} + FIELD_SET(*this, FIX::IOIQualifier); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::URLLink); + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/ListCancelRequest.h b/linux/include/quickfix/fix44/ListCancelRequest.h new file mode 100644 index 000000000..cd9ca7856 --- /dev/null +++ b/linux/include/quickfix/fix44/ListCancelRequest.h @@ -0,0 +1,38 @@ +#ifndef FIX44_LISTCANCELREQUEST_H +#define FIX44_LISTCANCELREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class ListCancelRequest : public Message + { + public: + ListCancelRequest() : Message(MsgType()) {} + ListCancelRequest(const FIX::Message& m) : Message(m) {} + ListCancelRequest(const Message& m) : Message(m) {} + ListCancelRequest(const ListCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("K"); } + + ListCancelRequest( + const FIX::ListID& aListID, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aListID); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/ListExecute.h b/linux/include/quickfix/fix44/ListExecute.h new file mode 100644 index 000000000..ec6dd52b8 --- /dev/null +++ b/linux/include/quickfix/fix44/ListExecute.h @@ -0,0 +1,38 @@ +#ifndef FIX44_LISTEXECUTE_H +#define FIX44_LISTEXECUTE_H + +#include "Message.h" + +namespace FIX44 +{ + + class ListExecute : public Message + { + public: + ListExecute() : Message(MsgType()) {} + ListExecute(const FIX::Message& m) : Message(m) {} + ListExecute(const Message& m) : Message(m) {} + ListExecute(const ListExecute& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("L"); } + + ListExecute( + const FIX::ListID& aListID, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aListID); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/ListStatus.h b/linux/include/quickfix/fix44/ListStatus.h new file mode 100644 index 000000000..2eb60ff02 --- /dev/null +++ b/linux/include/quickfix/fix44/ListStatus.h @@ -0,0 +1,68 @@ +#ifndef FIX44_LISTSTATUS_H +#define FIX44_LISTSTATUS_H + +#include "Message.h" + +namespace FIX44 +{ + + class ListStatus : public Message + { + public: + ListStatus() : Message(MsgType()) {} + ListStatus(const FIX::Message& m) : Message(m) {} + ListStatus(const Message& m) : Message(m) {} + ListStatus(const ListStatus& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("N"); } + + ListStatus( + const FIX::ListID& aListID, + const FIX::ListStatusType& aListStatusType, + const FIX::NoRpts& aNoRpts, + const FIX::ListOrderStatus& aListOrderStatus, + const FIX::RptSeq& aRptSeq, + const FIX::TotNoOrders& aTotNoOrders ) + : Message(MsgType()) + { + set(aListID); + set(aListStatusType); + set(aNoRpts); + set(aListOrderStatus); + set(aRptSeq); + set(aTotNoOrders); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::ListStatusType); + FIELD_SET(*this, FIX::NoRpts); + FIELD_SET(*this, FIX::ListOrderStatus); + FIELD_SET(*this, FIX::RptSeq); + FIELD_SET(*this, FIX::ListStatusText); + FIELD_SET(*this, FIX::EncodedListStatusTextLen); + FIELD_SET(*this, FIX::EncodedListStatusText); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TotNoOrders); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,526,14,39,636,151,84,6,103,58,354,355,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::CumQty); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::WorkingIndicator); + FIELD_SET(*this, FIX::LeavesQty); + FIELD_SET(*this, FIX::CxlQty); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::OrdRejReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/ListStatusRequest.h b/linux/include/quickfix/fix44/ListStatusRequest.h new file mode 100644 index 000000000..3f8d54e4f --- /dev/null +++ b/linux/include/quickfix/fix44/ListStatusRequest.h @@ -0,0 +1,33 @@ +#ifndef FIX44_LISTSTATUSREQUEST_H +#define FIX44_LISTSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class ListStatusRequest : public Message + { + public: + ListStatusRequest() : Message(MsgType()) {} + ListStatusRequest(const FIX::Message& m) : Message(m) {} + ListStatusRequest(const Message& m) : Message(m) {} + ListStatusRequest(const ListStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("M"); } + + ListStatusRequest( + const FIX::ListID& aListID ) + : Message(MsgType()) + { + set(aListID); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/ListStrikePrice.h b/linux/include/quickfix/fix44/ListStrikePrice.h new file mode 100644 index 000000000..cdda6627f --- /dev/null +++ b/linux/include/quickfix/fix44/ListStrikePrice.h @@ -0,0 +1,141 @@ +#ifndef FIX44_LISTSTRIKEPRICE_H +#define FIX44_LISTSTRIKEPRICE_H + +#include "Message.h" + +namespace FIX44 +{ + + class ListStrikePrice : public Message + { + public: + ListStrikePrice() : Message(MsgType()) {} + ListStrikePrice(const FIX::Message& m) : Message(m) {} + ListStrikePrice(const Message& m) : Message(m) {} + ListStrikePrice(const ListStrikePrice& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("m"); } + + ListStrikePrice( + const FIX::ListID& aListID, + const FIX::TotNoStrikes& aTotNoStrikes ) + : Message(MsgType()) + { + set(aListID); + set(aTotNoStrikes); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::TotNoStrikes); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoStrikes); + class NoStrikes: public FIX::Group + { + public: + NoStrikes() : FIX::Group(428,55,FIX::message_order(55,65,48,22,460,461,167,762,200,541,201,224,225,239,226,227,228,255,543,470,471,472,240,202,947,206,231,223,207,106,348,349,107,350,351,691,667,875,876,873,874,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,140,11,526,54,44,15,58,354,355,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/Logon.h b/linux/include/quickfix/fix44/Logon.h new file mode 100644 index 000000000..a335bec29 --- /dev/null +++ b/linux/include/quickfix/fix44/Logon.h @@ -0,0 +1,49 @@ +#ifndef FIX44_LOGON_H +#define FIX44_LOGON_H + +#include "Message.h" + +namespace FIX44 +{ + + class Logon : public Message + { + public: + Logon() : Message(MsgType()) {} + Logon(const FIX::Message& m) : Message(m) {} + Logon(const Message& m) : Message(m) {} + Logon(const Logon& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("A"); } + + Logon( + const FIX::EncryptMethod& aEncryptMethod, + const FIX::HeartBtInt& aHeartBtInt ) + : Message(MsgType()) + { + set(aEncryptMethod); + set(aHeartBtInt); + } + + FIELD_SET(*this, FIX::EncryptMethod); + FIELD_SET(*this, FIX::HeartBtInt); + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + FIELD_SET(*this, FIX::ResetSeqNumFlag); + FIELD_SET(*this, FIX::NextExpectedMsgSeqNum); + FIELD_SET(*this, FIX::MaxMessageSize); + FIELD_SET(*this, FIX::TestMessageIndicator); + FIELD_SET(*this, FIX::Username); + FIELD_SET(*this, FIX::Password); + FIELD_SET(*this, FIX::NoMsgTypes); + class NoMsgTypes: public FIX::Group + { + public: + NoMsgTypes() : FIX::Group(384,372,FIX::message_order(372,385,0)) {} + FIELD_SET(*this, FIX::RefMsgType); + FIELD_SET(*this, FIX::MsgDirection); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/Logout.h b/linux/include/quickfix/fix44/Logout.h new file mode 100644 index 000000000..418ad68aa --- /dev/null +++ b/linux/include/quickfix/fix44/Logout.h @@ -0,0 +1,25 @@ +#ifndef FIX44_LOGOUT_H +#define FIX44_LOGOUT_H + +#include "Message.h" + +namespace FIX44 +{ + + class Logout : public Message + { + public: + Logout() : Message(MsgType()) {} + Logout(const FIX::Message& m) : Message(m) {} + Logout(const Message& m) : Message(m) {} + Logout(const Logout& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("5"); } + + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/MarketDataIncrementalRefresh.h b/linux/include/quickfix/fix44/MarketDataIncrementalRefresh.h new file mode 100644 index 000000000..c00561b19 --- /dev/null +++ b/linux/include/quickfix/fix44/MarketDataIncrementalRefresh.h @@ -0,0 +1,210 @@ +#ifndef FIX44_MARKETDATAINCREMENTALREFRESH_H +#define FIX44_MARKETDATAINCREMENTALREFRESH_H + +#include "Message.h" + +namespace FIX44 +{ + + class MarketDataIncrementalRefresh : public Message + { + public: + MarketDataIncrementalRefresh() : Message(MsgType()) {} + MarketDataIncrementalRefresh(const FIX::Message& m) : Message(m) {} + MarketDataIncrementalRefresh(const Message& m) : Message(m) {} + MarketDataIncrementalRefresh(const MarketDataIncrementalRefresh& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("X"); } + + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::NoMDEntries); + class NoMDEntries: public FIX::Group + { + public: + NoMDEntries() : FIX::Group(268,279,FIX::message_order(279,285,269,278,280,55,65,48,22,460,461,167,762,200,541,201,224,225,239,226,227,228,255,543,470,471,472,240,202,947,206,231,223,207,106,348,349,107,350,351,691,667,875,876,873,874,711,555,291,292,270,15,271,272,273,274,275,336,625,276,277,282,283,284,286,59,432,126,110,18,287,37,299,288,289,346,290,546,811,451,58,354,355,0)) {} + FIELD_SET(*this, FIX::MDUpdateAction); + FIELD_SET(*this, FIX::DeleteReason); + FIELD_SET(*this, FIX::MDEntryType); + FIELD_SET(*this, FIX::MDEntryID); + FIELD_SET(*this, FIX::MDEntryRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::MDEntryPx); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::MDEntrySize); + FIELD_SET(*this, FIX::MDEntryDate); + FIELD_SET(*this, FIX::MDEntryTime); + FIELD_SET(*this, FIX::TickDirection); + FIELD_SET(*this, FIX::MDMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::QuoteCondition); + FIELD_SET(*this, FIX::TradeCondition); + FIELD_SET(*this, FIX::MDEntryOriginator); + FIELD_SET(*this, FIX::LocationID); + FIELD_SET(*this, FIX::DeskID); + FIELD_SET(*this, FIX::OpenCloseSettlFlag); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::SellerDays); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::MDEntryBuyer); + FIELD_SET(*this, FIX::MDEntrySeller); + FIELD_SET(*this, FIX::NumberOfOrders); + FIELD_SET(*this, FIX::MDEntryPositionNo); + FIELD_SET(*this, FIX::Scope); + FIELD_SET(*this, FIX::PriceDelta); + FIELD_SET(*this, FIX::NetChgPrevDay); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + FIELD_SET(*this, FIX::ApplQueueDepth); + FIELD_SET(*this, FIX::ApplQueueResolution); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/MarketDataRequest.h b/linux/include/quickfix/fix44/MarketDataRequest.h new file mode 100644 index 000000000..d6075834e --- /dev/null +++ b/linux/include/quickfix/fix44/MarketDataRequest.h @@ -0,0 +1,203 @@ +#ifndef FIX44_MARKETDATAREQUEST_H +#define FIX44_MARKETDATAREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class MarketDataRequest : public Message + { + public: + MarketDataRequest() : Message(MsgType()) {} + MarketDataRequest(const FIX::Message& m) : Message(m) {} + MarketDataRequest(const Message& m) : Message(m) {} + MarketDataRequest(const MarketDataRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("V"); } + + MarketDataRequest( + const FIX::MDReqID& aMDReqID, + const FIX::SubscriptionRequestType& aSubscriptionRequestType, + const FIX::MarketDepth& aMarketDepth ) + : Message(MsgType()) + { + set(aMDReqID); + set(aSubscriptionRequestType); + set(aMarketDepth); + } + + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::MarketDepth); + FIELD_SET(*this, FIX::MDUpdateType); + FIELD_SET(*this, FIX::AggregatedBook); + FIELD_SET(*this, FIX::OpenCloseSettlFlag); + FIELD_SET(*this, FIX::Scope); + FIELD_SET(*this, FIX::MDImplicitDelete); + FIELD_SET(*this, FIX::NoMDEntryTypes); + class NoMDEntryTypes: public FIX::Group + { + public: + NoMDEntryTypes() : FIX::Group(267,269,FIX::message_order(269,0)) {} + FIELD_SET(*this, FIX::MDEntryType); + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,461,167,762,200,541,201,224,225,239,226,227,228,255,543,470,471,472,240,202,947,206,231,223,207,106,348,349,107,350,351,691,667,875,876,873,874,711,555,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + }; + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ApplQueueAction); + FIELD_SET(*this, FIX::ApplQueueMax); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/MarketDataRequestReject.h b/linux/include/quickfix/fix44/MarketDataRequestReject.h new file mode 100644 index 000000000..cc8edea81 --- /dev/null +++ b/linux/include/quickfix/fix44/MarketDataRequestReject.h @@ -0,0 +1,41 @@ +#ifndef FIX44_MARKETDATAREQUESTREJECT_H +#define FIX44_MARKETDATAREQUESTREJECT_H + +#include "Message.h" + +namespace FIX44 +{ + + class MarketDataRequestReject : public Message + { + public: + MarketDataRequestReject() : Message(MsgType()) {} + MarketDataRequestReject(const FIX::Message& m) : Message(m) {} + MarketDataRequestReject(const Message& m) : Message(m) {} + MarketDataRequestReject(const MarketDataRequestReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("Y"); } + + MarketDataRequestReject( + const FIX::MDReqID& aMDReqID ) + : Message(MsgType()) + { + set(aMDReqID); + } + + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::MDReqRejReason); + FIELD_SET(*this, FIX::NoAltMDSource); + class NoAltMDSource: public FIX::Group + { + public: + NoAltMDSource() : FIX::Group(816,817,FIX::message_order(817,0)) {} + FIELD_SET(*this, FIX::AltMDSourceID); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/MarketDataSnapshotFullRefresh.h b/linux/include/quickfix/fix44/MarketDataSnapshotFullRefresh.h new file mode 100644 index 000000000..a127e6cc4 --- /dev/null +++ b/linux/include/quickfix/fix44/MarketDataSnapshotFullRefresh.h @@ -0,0 +1,206 @@ +#ifndef FIX44_MARKETDATASNAPSHOTFULLREFRESH_H +#define FIX44_MARKETDATASNAPSHOTFULLREFRESH_H + +#include "Message.h" + +namespace FIX44 +{ + + class MarketDataSnapshotFullRefresh : public Message + { + public: + MarketDataSnapshotFullRefresh() : Message(MsgType()) {} + MarketDataSnapshotFullRefresh(const FIX::Message& m) : Message(m) {} + MarketDataSnapshotFullRefresh(const Message& m) : Message(m) {} + MarketDataSnapshotFullRefresh(const MarketDataSnapshotFullRefresh& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("W"); } + + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::NetChgPrevDay); + FIELD_SET(*this, FIX::NoMDEntries); + class NoMDEntries: public FIX::Group + { + public: + NoMDEntries() : FIX::Group(268,269,FIX::message_order(269,270,15,271,272,273,274,275,336,625,276,277,282,283,284,286,59,432,126,110,18,287,37,299,288,289,346,290,546,811,58,354,355,0)) {} + FIELD_SET(*this, FIX::MDEntryType); + FIELD_SET(*this, FIX::MDEntryPx); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::MDEntrySize); + FIELD_SET(*this, FIX::MDEntryDate); + FIELD_SET(*this, FIX::MDEntryTime); + FIELD_SET(*this, FIX::TickDirection); + FIELD_SET(*this, FIX::MDMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::QuoteCondition); + FIELD_SET(*this, FIX::TradeCondition); + FIELD_SET(*this, FIX::MDEntryOriginator); + FIELD_SET(*this, FIX::LocationID); + FIELD_SET(*this, FIX::DeskID); + FIELD_SET(*this, FIX::OpenCloseSettlFlag); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::SellerDays); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::MDEntryBuyer); + FIELD_SET(*this, FIX::MDEntrySeller); + FIELD_SET(*this, FIX::NumberOfOrders); + FIELD_SET(*this, FIX::MDEntryPositionNo); + FIELD_SET(*this, FIX::Scope); + FIELD_SET(*this, FIX::PriceDelta); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + FIELD_SET(*this, FIX::ApplQueueDepth); + FIELD_SET(*this, FIX::ApplQueueResolution); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/MassQuote.h b/linux/include/quickfix/fix44/MassQuote.h new file mode 100644 index 000000000..eb3750caa --- /dev/null +++ b/linux/include/quickfix/fix44/MassQuote.h @@ -0,0 +1,228 @@ +#ifndef FIX44_MASSQUOTE_H +#define FIX44_MASSQUOTE_H + +#include "Message.h" + +namespace FIX44 +{ + + class MassQuote : public Message + { + public: + MassQuote() : Message(MsgType()) {} + MassQuote(const FIX::Message& m) : Message(m) {} + MassQuote(const Message& m) : Message(m) {} + MassQuote(const MassQuote& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("i"); } + + MassQuote( + const FIX::QuoteID& aQuoteID ) + : Message(MsgType()) + { + set(aQuoteID); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DefBidSize); + FIELD_SET(*this, FIX::DefOfferSize); + FIELD_SET(*this, FIX::NoQuoteSets); + class NoQuoteSets: public FIX::Group + { + public: + NoQuoteSets() : FIX::Group(296,302,FIX::message_order(302,311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,367,304,893,295,0)) {} + FIELD_SET(*this, FIX::QuoteSetID); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::QuoteSetValidUntilTime); + FIELD_SET(*this, FIX::TotNoQuoteEntries); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoQuoteEntries); + class NoQuoteEntries: public FIX::Group + { + public: + NoQuoteEntries() : FIX::Group(295,299,FIX::message_order(299,55,65,48,22,460,461,167,762,200,541,201,224,225,239,226,227,228,255,543,470,471,472,240,202,947,206,231,223,207,106,348,349,107,350,351,691,667,875,876,873,874,555,132,133,134,135,62,188,190,189,191,631,632,633,634,60,336,625,64,40,193,192,642,643,15,0)) {} + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::Currency); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/MassQuoteAcknowledgement.h b/linux/include/quickfix/fix44/MassQuoteAcknowledgement.h new file mode 100644 index 000000000..f6d8fdf89 --- /dev/null +++ b/linux/include/quickfix/fix44/MassQuoteAcknowledgement.h @@ -0,0 +1,231 @@ +#ifndef FIX44_MASSQUOTEACKNOWLEDGEMENT_H +#define FIX44_MASSQUOTEACKNOWLEDGEMENT_H + +#include "Message.h" + +namespace FIX44 +{ + + class MassQuoteAcknowledgement : public Message + { + public: + MassQuoteAcknowledgement() : Message(MsgType()) {} + MassQuoteAcknowledgement(const FIX::Message& m) : Message(m) {} + MassQuoteAcknowledgement(const Message& m) : Message(m) {} + MassQuoteAcknowledgement(const MassQuoteAcknowledgement& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("b"); } + + MassQuoteAcknowledgement( + const FIX::QuoteStatus& aQuoteStatus ) + : Message(MsgType()) + { + set(aQuoteStatus); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteStatus); + FIELD_SET(*this, FIX::QuoteRejectReason); + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoQuoteSets); + class NoQuoteSets: public FIX::Group + { + public: + NoQuoteSets() : FIX::Group(296,302,FIX::message_order(302,311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,304,893,295,0)) {} + FIELD_SET(*this, FIX::QuoteSetID); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::TotNoQuoteEntries); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoQuoteEntries); + class NoQuoteEntries: public FIX::Group + { + public: + NoQuoteEntries() : FIX::Group(295,299,FIX::message_order(299,55,65,48,22,460,461,167,762,200,541,201,224,225,239,226,227,228,255,543,470,471,472,240,202,947,206,231,223,207,106,348,349,107,350,351,691,667,875,876,873,874,555,132,133,134,135,62,188,190,189,191,631,632,633,634,60,336,625,64,40,193,192,642,643,15,368,0)) {} + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::QuoteEntryRejectReason); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/Message.h b/linux/include/quickfix/fix44/Message.h new file mode 100644 index 000000000..d469cdfea --- /dev/null +++ b/linux/include/quickfix/fix44/Message.h @@ -0,0 +1,66 @@ +#ifndef FIX44_MESSAGES_H +#define FIX44_MESSAGES_H + +#include "../Message.h" +#include "../Group.h" + +namespace FIX44 +{ + class Header : public FIX::Header + { + public: + FIELD_SET(*this, FIX::BeginString); + FIELD_SET(*this, FIX::BodyLength); + FIELD_SET(*this, FIX::MsgType); + FIELD_SET(*this, FIX::SenderCompID); + FIELD_SET(*this, FIX::TargetCompID); + FIELD_SET(*this, FIX::OnBehalfOfCompID); + FIELD_SET(*this, FIX::DeliverToCompID); + FIELD_SET(*this, FIX::SecureDataLen); + FIELD_SET(*this, FIX::SecureData); + FIELD_SET(*this, FIX::MsgSeqNum); + FIELD_SET(*this, FIX::SenderSubID); + FIELD_SET(*this, FIX::SenderLocationID); + FIELD_SET(*this, FIX::TargetSubID); + FIELD_SET(*this, FIX::TargetLocationID); + FIELD_SET(*this, FIX::OnBehalfOfSubID); + FIELD_SET(*this, FIX::OnBehalfOfLocationID); + FIELD_SET(*this, FIX::DeliverToSubID); + FIELD_SET(*this, FIX::DeliverToLocationID); + FIELD_SET(*this, FIX::PossDupFlag); + FIELD_SET(*this, FIX::PossResend); + FIELD_SET(*this, FIX::SendingTime); + FIELD_SET(*this, FIX::OrigSendingTime); + FIELD_SET(*this, FIX::XmlDataLen); + FIELD_SET(*this, FIX::XmlData); + FIELD_SET(*this, FIX::MessageEncoding); + FIELD_SET(*this, FIX::LastMsgSeqNumProcessed); + }; + + class Trailer : public FIX::Trailer + { + public: + FIELD_SET(*this, FIX::SignatureLength); + FIELD_SET(*this, FIX::Signature); + FIELD_SET(*this, FIX::CheckSum); + }; + + class Message : public FIX::Message + { + public: + Message( const FIX::MsgType& msgtype ) + : FIX::Message( + FIX::BeginString("FIX.4.4"), msgtype ) + {} + + Message(const FIX::Message& m) : FIX::Message(m) {} + Message(const Message& m) : FIX::Message(m) {} + Header& getHeader() { return (Header&)m_header; } + const Header& getHeader() const { return (Header&)m_header; } + Trailer& getTrailer() { return (Trailer&)m_trailer; } + const Trailer& getTrailer() const { return (Trailer&)m_trailer; } + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/MessageCracker.h b/linux/include/quickfix/fix44/MessageCracker.h new file mode 100644 index 000000000..1349f2f40 --- /dev/null +++ b/linux/include/quickfix/fix44/MessageCracker.h @@ -0,0 +1,994 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX44_MESSAGECRACKER_H +#define FIX44_MESSAGECRACKER_H + + +#include "../SessionID.h" +#include "../Exceptions.h" + +#include "../fix44/Message.h" + +namespace FIX44 +{ + class Heartbeat; + class TestRequest; + class ResendRequest; + class Reject; + class SequenceReset; + class Logout; + class IOI; + class Advertisement; + class ExecutionReport; + class OrderCancelReject; + class Logon; + class News; + class Email; + class NewOrderSingle; + class NewOrderList; + class OrderCancelRequest; + class OrderCancelReplaceRequest; + class OrderStatusRequest; + class AllocationInstruction; + class ListCancelRequest; + class ListExecute; + class ListStatusRequest; + class ListStatus; + class AllocationInstructionAck; + class DontKnowTrade; + class QuoteRequest; + class Quote; + class SettlementInstructions; + class MarketDataRequest; + class MarketDataSnapshotFullRefresh; + class MarketDataIncrementalRefresh; + class MarketDataRequestReject; + class QuoteCancel; + class QuoteStatusRequest; + class MassQuoteAcknowledgement; + class SecurityDefinitionRequest; + class SecurityDefinition; + class SecurityStatusRequest; + class SecurityStatus; + class TradingSessionStatusRequest; + class TradingSessionStatus; + class MassQuote; + class BusinessMessageReject; + class BidRequest; + class BidResponse; + class ListStrikePrice; + class XMLnonFIX; + class RegistrationInstructions; + class RegistrationInstructionsResponse; + class OrderMassCancelRequest; + class OrderMassCancelReport; + class NewOrderCross; + class CrossOrderCancelReplaceRequest; + class CrossOrderCancelRequest; + class SecurityTypeRequest; + class SecurityTypes; + class SecurityListRequest; + class SecurityList; + class DerivativeSecurityListRequest; + class DerivativeSecurityList; + class NewOrderMultileg; + class MultilegOrderCancelReplace; + class TradeCaptureReportRequest; + class TradeCaptureReport; + class OrderMassStatusRequest; + class QuoteRequestReject; + class RFQRequest; + class QuoteStatusReport; + class QuoteResponse; + class Confirmation; + class PositionMaintenanceRequest; + class PositionMaintenanceReport; + class RequestForPositions; + class RequestForPositionsAck; + class PositionReport; + class TradeCaptureReportRequestAck; + class TradeCaptureReportAck; + class AllocationReport; + class AllocationReportAck; + class ConfirmationAck; + class SettlementInstructionRequest; + class AssignmentReport; + class CollateralRequest; + class CollateralAssignment; + class CollateralResponse; + class CollateralReport; + class CollateralInquiry; + class NetworkCounterpartySystemStatusRequest; + class NetworkCounterpartySystemStatusResponse; + class UserRequest; + class UserResponse; + class CollateralInquiryAck; + class ConfirmationRequest; + + class MessageCracker + { + public: + virtual ~MessageCracker() {} + virtual void onMessage( const Message&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( Message&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Heartbeat&, const FIX::SessionID& ) + {} + virtual void onMessage( const TestRequest&, const FIX::SessionID& ) + {} + virtual void onMessage( const ResendRequest&, const FIX::SessionID& ) + {} + virtual void onMessage( const Reject&, const FIX::SessionID& ) + {} + virtual void onMessage( const SequenceReset&, const FIX::SessionID& ) + {} + virtual void onMessage( const Logout&, const FIX::SessionID& ) + {} + virtual void onMessage( const IOI&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Advertisement&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ExecutionReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelReject&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Logon&, const FIX::SessionID& ) + {} + virtual void onMessage( const News&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Email&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderSingle&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderList&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelReplaceRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AllocationInstruction&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListExecute&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListStatus&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AllocationInstructionAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const DontKnowTrade&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Quote&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SettlementInstructions&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataSnapshotFullRefresh&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataIncrementalRefresh&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataRequestReject&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteCancel&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MassQuoteAcknowledgement&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityDefinitionRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityDefinition&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityStatus&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradingSessionStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradingSessionStatus&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MassQuote&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const BusinessMessageReject&, const FIX::SessionID& ) + {} + virtual void onMessage( const BidRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const BidResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListStrikePrice&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const XMLnonFIX&, const FIX::SessionID& ) + {} + virtual void onMessage( const RegistrationInstructions&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const RegistrationInstructionsResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderMassCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderMassCancelReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderCross&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CrossOrderCancelReplaceRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CrossOrderCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityTypeRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityTypes&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityListRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityList&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const DerivativeSecurityListRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const DerivativeSecurityList&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderMultileg&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MultilegOrderCancelReplace&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradeCaptureReportRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradeCaptureReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderMassStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteRequestReject&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const RFQRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteStatusReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Confirmation&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const PositionMaintenanceRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const PositionMaintenanceReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const RequestForPositions&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const RequestForPositionsAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const PositionReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradeCaptureReportRequestAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradeCaptureReportAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AllocationReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AllocationReportAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ConfirmationAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SettlementInstructionRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AssignmentReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralAssignment&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralInquiry&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NetworkCounterpartySystemStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NetworkCounterpartySystemStatusResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const UserRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const UserResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralInquiryAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ConfirmationRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( Heartbeat&, const FIX::SessionID& ) {} + virtual void onMessage( TestRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ResendRequest&, const FIX::SessionID& ) {} + virtual void onMessage( Reject&, const FIX::SessionID& ) {} + virtual void onMessage( SequenceReset&, const FIX::SessionID& ) {} + virtual void onMessage( Logout&, const FIX::SessionID& ) {} + virtual void onMessage( IOI&, const FIX::SessionID& ) {} + virtual void onMessage( Advertisement&, const FIX::SessionID& ) {} + virtual void onMessage( ExecutionReport&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelReject&, const FIX::SessionID& ) {} + virtual void onMessage( Logon&, const FIX::SessionID& ) {} + virtual void onMessage( News&, const FIX::SessionID& ) {} + virtual void onMessage( Email&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderSingle&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderList&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelReplaceRequest&, const FIX::SessionID& ) {} + virtual void onMessage( OrderStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( AllocationInstruction&, const FIX::SessionID& ) {} + virtual void onMessage( ListCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ListExecute&, const FIX::SessionID& ) {} + virtual void onMessage( ListStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ListStatus&, const FIX::SessionID& ) {} + virtual void onMessage( AllocationInstructionAck&, const FIX::SessionID& ) {} + virtual void onMessage( DontKnowTrade&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteRequest&, const FIX::SessionID& ) {} + virtual void onMessage( Quote&, const FIX::SessionID& ) {} + virtual void onMessage( SettlementInstructions&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataRequest&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataSnapshotFullRefresh&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataIncrementalRefresh&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataRequestReject&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteCancel&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( MassQuoteAcknowledgement&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityDefinitionRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityDefinition&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityStatus&, const FIX::SessionID& ) {} + virtual void onMessage( TradingSessionStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( TradingSessionStatus&, const FIX::SessionID& ) {} + virtual void onMessage( MassQuote&, const FIX::SessionID& ) {} + virtual void onMessage( BusinessMessageReject&, const FIX::SessionID& ) {} + virtual void onMessage( BidRequest&, const FIX::SessionID& ) {} + virtual void onMessage( BidResponse&, const FIX::SessionID& ) {} + virtual void onMessage( ListStrikePrice&, const FIX::SessionID& ) {} + virtual void onMessage( XMLnonFIX&, const FIX::SessionID& ) {} + virtual void onMessage( RegistrationInstructions&, const FIX::SessionID& ) {} + virtual void onMessage( RegistrationInstructionsResponse&, const FIX::SessionID& ) {} + virtual void onMessage( OrderMassCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( OrderMassCancelReport&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderCross&, const FIX::SessionID& ) {} + virtual void onMessage( CrossOrderCancelReplaceRequest&, const FIX::SessionID& ) {} + virtual void onMessage( CrossOrderCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityTypeRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityTypes&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityListRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityList&, const FIX::SessionID& ) {} + virtual void onMessage( DerivativeSecurityListRequest&, const FIX::SessionID& ) {} + virtual void onMessage( DerivativeSecurityList&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderMultileg&, const FIX::SessionID& ) {} + virtual void onMessage( MultilegOrderCancelReplace&, const FIX::SessionID& ) {} + virtual void onMessage( TradeCaptureReportRequest&, const FIX::SessionID& ) {} + virtual void onMessage( TradeCaptureReport&, const FIX::SessionID& ) {} + virtual void onMessage( OrderMassStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteRequestReject&, const FIX::SessionID& ) {} + virtual void onMessage( RFQRequest&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteStatusReport&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteResponse&, const FIX::SessionID& ) {} + virtual void onMessage( Confirmation&, const FIX::SessionID& ) {} + virtual void onMessage( PositionMaintenanceRequest&, const FIX::SessionID& ) {} + virtual void onMessage( PositionMaintenanceReport&, const FIX::SessionID& ) {} + virtual void onMessage( RequestForPositions&, const FIX::SessionID& ) {} + virtual void onMessage( RequestForPositionsAck&, const FIX::SessionID& ) {} + virtual void onMessage( PositionReport&, const FIX::SessionID& ) {} + virtual void onMessage( TradeCaptureReportRequestAck&, const FIX::SessionID& ) {} + virtual void onMessage( TradeCaptureReportAck&, const FIX::SessionID& ) {} + virtual void onMessage( AllocationReport&, const FIX::SessionID& ) {} + virtual void onMessage( AllocationReportAck&, const FIX::SessionID& ) {} + virtual void onMessage( ConfirmationAck&, const FIX::SessionID& ) {} + virtual void onMessage( SettlementInstructionRequest&, const FIX::SessionID& ) {} + virtual void onMessage( AssignmentReport&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralRequest&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralAssignment&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralResponse&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralReport&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralInquiry&, const FIX::SessionID& ) {} + virtual void onMessage( NetworkCounterpartySystemStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( NetworkCounterpartySystemStatusResponse&, const FIX::SessionID& ) {} + virtual void onMessage( UserRequest&, const FIX::SessionID& ) {} + virtual void onMessage( UserResponse&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralInquiryAck&, const FIX::SessionID& ) {} + virtual void onMessage( ConfirmationRequest&, const FIX::SessionID& ) {} + +public: + void crack( const Message& message, + const FIX::SessionID& sessionID ) + { + const std::string& msgTypeValue + = message.getHeader().getField( FIX::FIELD::MsgType ); + + if( msgTypeValue == "0" ) + onMessage( (const Heartbeat&)message, sessionID ); + else + if( msgTypeValue == "1" ) + onMessage( (const TestRequest&)message, sessionID ); + else + if( msgTypeValue == "2" ) + onMessage( (const ResendRequest&)message, sessionID ); + else + if( msgTypeValue == "3" ) + onMessage( (const Reject&)message, sessionID ); + else + if( msgTypeValue == "4" ) + onMessage( (const SequenceReset&)message, sessionID ); + else + if( msgTypeValue == "5" ) + onMessage( (const Logout&)message, sessionID ); + else + if( msgTypeValue == "6" ) + onMessage( (const IOI&)message, sessionID ); + else + if( msgTypeValue == "7" ) + onMessage( (const Advertisement&)message, sessionID ); + else + if( msgTypeValue == "8" ) + onMessage( (const ExecutionReport&)message, sessionID ); + else + if( msgTypeValue == "9" ) + onMessage( (const OrderCancelReject&)message, sessionID ); + else + if( msgTypeValue == "A" ) + onMessage( (const Logon&)message, sessionID ); + else + if( msgTypeValue == "B" ) + onMessage( (const News&)message, sessionID ); + else + if( msgTypeValue == "C" ) + onMessage( (const Email&)message, sessionID ); + else + if( msgTypeValue == "D" ) + onMessage( (const NewOrderSingle&)message, sessionID ); + else + if( msgTypeValue == "E" ) + onMessage( (const NewOrderList&)message, sessionID ); + else + if( msgTypeValue == "F" ) + onMessage( (const OrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "G" ) + onMessage( (const OrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "H" ) + onMessage( (const OrderStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "J" ) + onMessage( (const AllocationInstruction&)message, sessionID ); + else + if( msgTypeValue == "K" ) + onMessage( (const ListCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "L" ) + onMessage( (const ListExecute&)message, sessionID ); + else + if( msgTypeValue == "M" ) + onMessage( (const ListStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "N" ) + onMessage( (const ListStatus&)message, sessionID ); + else + if( msgTypeValue == "P" ) + onMessage( (const AllocationInstructionAck&)message, sessionID ); + else + if( msgTypeValue == "Q" ) + onMessage( (const DontKnowTrade&)message, sessionID ); + else + if( msgTypeValue == "R" ) + onMessage( (const QuoteRequest&)message, sessionID ); + else + if( msgTypeValue == "S" ) + onMessage( (const Quote&)message, sessionID ); + else + if( msgTypeValue == "T" ) + onMessage( (const SettlementInstructions&)message, sessionID ); + else + if( msgTypeValue == "V" ) + onMessage( (const MarketDataRequest&)message, sessionID ); + else + if( msgTypeValue == "W" ) + onMessage( (const MarketDataSnapshotFullRefresh&)message, sessionID ); + else + if( msgTypeValue == "X" ) + onMessage( (const MarketDataIncrementalRefresh&)message, sessionID ); + else + if( msgTypeValue == "Y" ) + onMessage( (const MarketDataRequestReject&)message, sessionID ); + else + if( msgTypeValue == "Z" ) + onMessage( (const QuoteCancel&)message, sessionID ); + else + if( msgTypeValue == "a" ) + onMessage( (const QuoteStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "b" ) + onMessage( (const MassQuoteAcknowledgement&)message, sessionID ); + else + if( msgTypeValue == "c" ) + onMessage( (const SecurityDefinitionRequest&)message, sessionID ); + else + if( msgTypeValue == "d" ) + onMessage( (const SecurityDefinition&)message, sessionID ); + else + if( msgTypeValue == "e" ) + onMessage( (const SecurityStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "f" ) + onMessage( (const SecurityStatus&)message, sessionID ); + else + if( msgTypeValue == "g" ) + onMessage( (const TradingSessionStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "h" ) + onMessage( (const TradingSessionStatus&)message, sessionID ); + else + if( msgTypeValue == "i" ) + onMessage( (const MassQuote&)message, sessionID ); + else + if( msgTypeValue == "j" ) + onMessage( (const BusinessMessageReject&)message, sessionID ); + else + if( msgTypeValue == "k" ) + onMessage( (const BidRequest&)message, sessionID ); + else + if( msgTypeValue == "l" ) + onMessage( (const BidResponse&)message, sessionID ); + else + if( msgTypeValue == "m" ) + onMessage( (const ListStrikePrice&)message, sessionID ); + else + if( msgTypeValue == "n" ) + onMessage( (const XMLnonFIX&)message, sessionID ); + else + if( msgTypeValue == "o" ) + onMessage( (const RegistrationInstructions&)message, sessionID ); + else + if( msgTypeValue == "p" ) + onMessage( (const RegistrationInstructionsResponse&)message, sessionID ); + else + if( msgTypeValue == "q" ) + onMessage( (const OrderMassCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "r" ) + onMessage( (const OrderMassCancelReport&)message, sessionID ); + else + if( msgTypeValue == "s" ) + onMessage( (const NewOrderCross&)message, sessionID ); + else + if( msgTypeValue == "t" ) + onMessage( (const CrossOrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "u" ) + onMessage( (const CrossOrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "v" ) + onMessage( (const SecurityTypeRequest&)message, sessionID ); + else + if( msgTypeValue == "w" ) + onMessage( (const SecurityTypes&)message, sessionID ); + else + if( msgTypeValue == "x" ) + onMessage( (const SecurityListRequest&)message, sessionID ); + else + if( msgTypeValue == "y" ) + onMessage( (const SecurityList&)message, sessionID ); + else + if( msgTypeValue == "z" ) + onMessage( (const DerivativeSecurityListRequest&)message, sessionID ); + else + if( msgTypeValue == "AA" ) + onMessage( (const DerivativeSecurityList&)message, sessionID ); + else + if( msgTypeValue == "AB" ) + onMessage( (const NewOrderMultileg&)message, sessionID ); + else + if( msgTypeValue == "AC" ) + onMessage( (const MultilegOrderCancelReplace&)message, sessionID ); + else + if( msgTypeValue == "AD" ) + onMessage( (const TradeCaptureReportRequest&)message, sessionID ); + else + if( msgTypeValue == "AE" ) + onMessage( (const TradeCaptureReport&)message, sessionID ); + else + if( msgTypeValue == "AF" ) + onMessage( (const OrderMassStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "AG" ) + onMessage( (const QuoteRequestReject&)message, sessionID ); + else + if( msgTypeValue == "AH" ) + onMessage( (const RFQRequest&)message, sessionID ); + else + if( msgTypeValue == "AI" ) + onMessage( (const QuoteStatusReport&)message, sessionID ); + else + if( msgTypeValue == "AJ" ) + onMessage( (const QuoteResponse&)message, sessionID ); + else + if( msgTypeValue == "AK" ) + onMessage( (const Confirmation&)message, sessionID ); + else + if( msgTypeValue == "AL" ) + onMessage( (const PositionMaintenanceRequest&)message, sessionID ); + else + if( msgTypeValue == "AM" ) + onMessage( (const PositionMaintenanceReport&)message, sessionID ); + else + if( msgTypeValue == "AN" ) + onMessage( (const RequestForPositions&)message, sessionID ); + else + if( msgTypeValue == "AO" ) + onMessage( (const RequestForPositionsAck&)message, sessionID ); + else + if( msgTypeValue == "AP" ) + onMessage( (const PositionReport&)message, sessionID ); + else + if( msgTypeValue == "AQ" ) + onMessage( (const TradeCaptureReportRequestAck&)message, sessionID ); + else + if( msgTypeValue == "AR" ) + onMessage( (const TradeCaptureReportAck&)message, sessionID ); + else + if( msgTypeValue == "AS" ) + onMessage( (const AllocationReport&)message, sessionID ); + else + if( msgTypeValue == "AT" ) + onMessage( (const AllocationReportAck&)message, sessionID ); + else + if( msgTypeValue == "AU" ) + onMessage( (const ConfirmationAck&)message, sessionID ); + else + if( msgTypeValue == "AV" ) + onMessage( (const SettlementInstructionRequest&)message, sessionID ); + else + if( msgTypeValue == "AW" ) + onMessage( (const AssignmentReport&)message, sessionID ); + else + if( msgTypeValue == "AX" ) + onMessage( (const CollateralRequest&)message, sessionID ); + else + if( msgTypeValue == "AY" ) + onMessage( (const CollateralAssignment&)message, sessionID ); + else + if( msgTypeValue == "AZ" ) + onMessage( (const CollateralResponse&)message, sessionID ); + else + if( msgTypeValue == "BA" ) + onMessage( (const CollateralReport&)message, sessionID ); + else + if( msgTypeValue == "BB" ) + onMessage( (const CollateralInquiry&)message, sessionID ); + else + if( msgTypeValue == "BC" ) + onMessage( (const NetworkCounterpartySystemStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "BD" ) + onMessage( (const NetworkCounterpartySystemStatusResponse&)message, sessionID ); + else + if( msgTypeValue == "BE" ) + onMessage( (const UserRequest&)message, sessionID ); + else + if( msgTypeValue == "BF" ) + onMessage( (const UserResponse&)message, sessionID ); + else + if( msgTypeValue == "BG" ) + onMessage( (const CollateralInquiryAck&)message, sessionID ); + else + if( msgTypeValue == "BH" ) + onMessage( (const ConfirmationRequest&)message, sessionID ); + else onMessage( message, sessionID ); + } + +void crack( Message& message, + const FIX::SessionID& sessionID ) + { + FIX::MsgType msgType; + message.getHeader().getField(msgType); + std::string msgTypeValue = msgType.getValue(); + + if( msgTypeValue == "0" ) + onMessage( (Heartbeat&)message, sessionID ); + else + if( msgTypeValue == "1" ) + onMessage( (TestRequest&)message, sessionID ); + else + if( msgTypeValue == "2" ) + onMessage( (ResendRequest&)message, sessionID ); + else + if( msgTypeValue == "3" ) + onMessage( (Reject&)message, sessionID ); + else + if( msgTypeValue == "4" ) + onMessage( (SequenceReset&)message, sessionID ); + else + if( msgTypeValue == "5" ) + onMessage( (Logout&)message, sessionID ); + else + if( msgTypeValue == "6" ) + onMessage( (IOI&)message, sessionID ); + else + if( msgTypeValue == "7" ) + onMessage( (Advertisement&)message, sessionID ); + else + if( msgTypeValue == "8" ) + onMessage( (ExecutionReport&)message, sessionID ); + else + if( msgTypeValue == "9" ) + onMessage( (OrderCancelReject&)message, sessionID ); + else + if( msgTypeValue == "A" ) + onMessage( (Logon&)message, sessionID ); + else + if( msgTypeValue == "B" ) + onMessage( (News&)message, sessionID ); + else + if( msgTypeValue == "C" ) + onMessage( (Email&)message, sessionID ); + else + if( msgTypeValue == "D" ) + onMessage( (NewOrderSingle&)message, sessionID ); + else + if( msgTypeValue == "E" ) + onMessage( (NewOrderList&)message, sessionID ); + else + if( msgTypeValue == "F" ) + onMessage( (OrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "G" ) + onMessage( (OrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "H" ) + onMessage( (OrderStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "J" ) + onMessage( (AllocationInstruction&)message, sessionID ); + else + if( msgTypeValue == "K" ) + onMessage( (ListCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "L" ) + onMessage( (ListExecute&)message, sessionID ); + else + if( msgTypeValue == "M" ) + onMessage( (ListStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "N" ) + onMessage( (ListStatus&)message, sessionID ); + else + if( msgTypeValue == "P" ) + onMessage( (AllocationInstructionAck&)message, sessionID ); + else + if( msgTypeValue == "Q" ) + onMessage( (DontKnowTrade&)message, sessionID ); + else + if( msgTypeValue == "R" ) + onMessage( (QuoteRequest&)message, sessionID ); + else + if( msgTypeValue == "S" ) + onMessage( (Quote&)message, sessionID ); + else + if( msgTypeValue == "T" ) + onMessage( (SettlementInstructions&)message, sessionID ); + else + if( msgTypeValue == "V" ) + onMessage( (MarketDataRequest&)message, sessionID ); + else + if( msgTypeValue == "W" ) + onMessage( (MarketDataSnapshotFullRefresh&)message, sessionID ); + else + if( msgTypeValue == "X" ) + onMessage( (MarketDataIncrementalRefresh&)message, sessionID ); + else + if( msgTypeValue == "Y" ) + onMessage( (MarketDataRequestReject&)message, sessionID ); + else + if( msgTypeValue == "Z" ) + onMessage( (QuoteCancel&)message, sessionID ); + else + if( msgTypeValue == "a" ) + onMessage( (QuoteStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "b" ) + onMessage( (MassQuoteAcknowledgement&)message, sessionID ); + else + if( msgTypeValue == "c" ) + onMessage( (SecurityDefinitionRequest&)message, sessionID ); + else + if( msgTypeValue == "d" ) + onMessage( (SecurityDefinition&)message, sessionID ); + else + if( msgTypeValue == "e" ) + onMessage( (SecurityStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "f" ) + onMessage( (SecurityStatus&)message, sessionID ); + else + if( msgTypeValue == "g" ) + onMessage( (TradingSessionStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "h" ) + onMessage( (TradingSessionStatus&)message, sessionID ); + else + if( msgTypeValue == "i" ) + onMessage( (MassQuote&)message, sessionID ); + else + if( msgTypeValue == "j" ) + onMessage( (BusinessMessageReject&)message, sessionID ); + else + if( msgTypeValue == "k" ) + onMessage( (BidRequest&)message, sessionID ); + else + if( msgTypeValue == "l" ) + onMessage( (BidResponse&)message, sessionID ); + else + if( msgTypeValue == "m" ) + onMessage( (ListStrikePrice&)message, sessionID ); + else + if( msgTypeValue == "n" ) + onMessage( (XMLnonFIX&)message, sessionID ); + else + if( msgTypeValue == "o" ) + onMessage( (RegistrationInstructions&)message, sessionID ); + else + if( msgTypeValue == "p" ) + onMessage( (RegistrationInstructionsResponse&)message, sessionID ); + else + if( msgTypeValue == "q" ) + onMessage( (OrderMassCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "r" ) + onMessage( (OrderMassCancelReport&)message, sessionID ); + else + if( msgTypeValue == "s" ) + onMessage( (NewOrderCross&)message, sessionID ); + else + if( msgTypeValue == "t" ) + onMessage( (CrossOrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "u" ) + onMessage( (CrossOrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "v" ) + onMessage( (SecurityTypeRequest&)message, sessionID ); + else + if( msgTypeValue == "w" ) + onMessage( (SecurityTypes&)message, sessionID ); + else + if( msgTypeValue == "x" ) + onMessage( (SecurityListRequest&)message, sessionID ); + else + if( msgTypeValue == "y" ) + onMessage( (SecurityList&)message, sessionID ); + else + if( msgTypeValue == "z" ) + onMessage( (DerivativeSecurityListRequest&)message, sessionID ); + else + if( msgTypeValue == "AA" ) + onMessage( (DerivativeSecurityList&)message, sessionID ); + else + if( msgTypeValue == "AB" ) + onMessage( (NewOrderMultileg&)message, sessionID ); + else + if( msgTypeValue == "AC" ) + onMessage( (MultilegOrderCancelReplace&)message, sessionID ); + else + if( msgTypeValue == "AD" ) + onMessage( (TradeCaptureReportRequest&)message, sessionID ); + else + if( msgTypeValue == "AE" ) + onMessage( (TradeCaptureReport&)message, sessionID ); + else + if( msgTypeValue == "AF" ) + onMessage( (OrderMassStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "AG" ) + onMessage( (QuoteRequestReject&)message, sessionID ); + else + if( msgTypeValue == "AH" ) + onMessage( (RFQRequest&)message, sessionID ); + else + if( msgTypeValue == "AI" ) + onMessage( (QuoteStatusReport&)message, sessionID ); + else + if( msgTypeValue == "AJ" ) + onMessage( (QuoteResponse&)message, sessionID ); + else + if( msgTypeValue == "AK" ) + onMessage( (Confirmation&)message, sessionID ); + else + if( msgTypeValue == "AL" ) + onMessage( (PositionMaintenanceRequest&)message, sessionID ); + else + if( msgTypeValue == "AM" ) + onMessage( (PositionMaintenanceReport&)message, sessionID ); + else + if( msgTypeValue == "AN" ) + onMessage( (RequestForPositions&)message, sessionID ); + else + if( msgTypeValue == "AO" ) + onMessage( (RequestForPositionsAck&)message, sessionID ); + else + if( msgTypeValue == "AP" ) + onMessage( (PositionReport&)message, sessionID ); + else + if( msgTypeValue == "AQ" ) + onMessage( (TradeCaptureReportRequestAck&)message, sessionID ); + else + if( msgTypeValue == "AR" ) + onMessage( (TradeCaptureReportAck&)message, sessionID ); + else + if( msgTypeValue == "AS" ) + onMessage( (AllocationReport&)message, sessionID ); + else + if( msgTypeValue == "AT" ) + onMessage( (AllocationReportAck&)message, sessionID ); + else + if( msgTypeValue == "AU" ) + onMessage( (ConfirmationAck&)message, sessionID ); + else + if( msgTypeValue == "AV" ) + onMessage( (SettlementInstructionRequest&)message, sessionID ); + else + if( msgTypeValue == "AW" ) + onMessage( (AssignmentReport&)message, sessionID ); + else + if( msgTypeValue == "AX" ) + onMessage( (CollateralRequest&)message, sessionID ); + else + if( msgTypeValue == "AY" ) + onMessage( (CollateralAssignment&)message, sessionID ); + else + if( msgTypeValue == "AZ" ) + onMessage( (CollateralResponse&)message, sessionID ); + else + if( msgTypeValue == "BA" ) + onMessage( (CollateralReport&)message, sessionID ); + else + if( msgTypeValue == "BB" ) + onMessage( (CollateralInquiry&)message, sessionID ); + else + if( msgTypeValue == "BC" ) + onMessage( (NetworkCounterpartySystemStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "BD" ) + onMessage( (NetworkCounterpartySystemStatusResponse&)message, sessionID ); + else + if( msgTypeValue == "BE" ) + onMessage( (UserRequest&)message, sessionID ); + else + if( msgTypeValue == "BF" ) + onMessage( (UserResponse&)message, sessionID ); + else + if( msgTypeValue == "BG" ) + onMessage( (CollateralInquiryAck&)message, sessionID ); + else + if( msgTypeValue == "BH" ) + onMessage( (ConfirmationRequest&)message, sessionID ); + else onMessage( message, sessionID ); + } + + }; +} + +#endif diff --git a/linux/include/quickfix/fix44/MultilegOrderCancelReplace.h b/linux/include/quickfix/fix44/MultilegOrderCancelReplace.h new file mode 100644 index 000000000..cc439ac2f --- /dev/null +++ b/linux/include/quickfix/fix44/MultilegOrderCancelReplace.h @@ -0,0 +1,376 @@ +#ifndef FIX44_MULTILEGORDERCANCELREPLACE_H +#define FIX44_MULTILEGORDERCANCELREPLACE_H + +#include "Message.h" + +namespace FIX44 +{ + + class MultilegOrderCancelReplace : public Message + { + public: + MultilegOrderCancelReplace() : Message(MsgType()) {} + MultilegOrderCancelReplace(const FIX::Message& m) : Message(m) {} + MultilegOrderCancelReplace(const Message& m) : Message(m) {} + MultilegOrderCancelReplace(const MultilegOrderCancelReplace& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AC"); } + + MultilegOrderCancelReplace( + const FIX::OrigClOrdID& aOrigClOrdID, + const FIX::ClOrdID& aClOrdID, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aOrigClOrdID); + set(aClOrdID); + set(aSide); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,948,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNested3PartyIDs); + class NoNested3PartyIDs: public FIX::Group + { + public: + NoNested3PartyIDs() : FIX::Group(948,949,FIX::message_order(949,950,951,952,0)) {} + FIELD_SET(*this, FIX::Nested3PartyID); + FIELD_SET(*this, FIX::Nested3PartyIDSource); + FIELD_SET(*this, FIX::Nested3PartyRole); + FIELD_SET(*this, FIX::NoNested3PartySubIDs); + class NoNested3PartySubIDs: public FIX::Group + { + public: + NoNested3PartySubIDs() : FIX::Group(952,953,FIX::message_order(953,954,0)) {} + FIELD_SET(*this, FIX::Nested3PartySubID); + FIELD_SET(*this, FIX::Nested3PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,687,690,683,670,564,565,539,654,566,587,588,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoLegAllocs); + class NoLegAllocs: public FIX::Group + { + public: + NoLegAllocs() : FIX::Group(670,671,FIX::message_order(671,672,756,673,674,675,0)) {} + FIELD_SET(*this, FIX::LegAllocAccount); + FIELD_SET(*this, FIX::LegIndividualAllocID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegAllocQty); + FIELD_SET(*this, FIX::LegAllocAcctIDSource); + FIELD_SET(*this, FIX::LegSettlCurrency); + }; + FIELD_SET(*this, FIX::LegPositionEffect); + FIELD_SET(*this, FIX::LegCoveredOrUncovered); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegPrice); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + }; + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::MultiLegRptTypeReq); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/NetworkCounterpartySystemStatusRequest.h b/linux/include/quickfix/fix44/NetworkCounterpartySystemStatusRequest.h new file mode 100644 index 000000000..80e67e1a8 --- /dev/null +++ b/linux/include/quickfix/fix44/NetworkCounterpartySystemStatusRequest.h @@ -0,0 +1,43 @@ +#ifndef FIX44_NETWORKCOUNTERPARTYSYSTEMSTATUSREQUEST_H +#define FIX44_NETWORKCOUNTERPARTYSYSTEMSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class NetworkCounterpartySystemStatusRequest : public Message + { + public: + NetworkCounterpartySystemStatusRequest() : Message(MsgType()) {} + NetworkCounterpartySystemStatusRequest(const FIX::Message& m) : Message(m) {} + NetworkCounterpartySystemStatusRequest(const Message& m) : Message(m) {} + NetworkCounterpartySystemStatusRequest(const NetworkCounterpartySystemStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BC"); } + + NetworkCounterpartySystemStatusRequest( + const FIX::NetworkRequestType& aNetworkRequestType, + const FIX::NetworkRequestID& aNetworkRequestID ) + : Message(MsgType()) + { + set(aNetworkRequestType); + set(aNetworkRequestID); + } + + FIELD_SET(*this, FIX::NetworkRequestType); + FIELD_SET(*this, FIX::NetworkRequestID); + FIELD_SET(*this, FIX::NoCompIDs); + class NoCompIDs: public FIX::Group + { + public: + NoCompIDs() : FIX::Group(936,930,FIX::message_order(930,931,283,284,0)) {} + FIELD_SET(*this, FIX::RefCompID); + FIELD_SET(*this, FIX::RefSubID); + FIELD_SET(*this, FIX::LocationID); + FIELD_SET(*this, FIX::DeskID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/NetworkCounterpartySystemStatusResponse.h b/linux/include/quickfix/fix44/NetworkCounterpartySystemStatusResponse.h new file mode 100644 index 000000000..9bf122309 --- /dev/null +++ b/linux/include/quickfix/fix44/NetworkCounterpartySystemStatusResponse.h @@ -0,0 +1,47 @@ +#ifndef FIX44_NETWORKCOUNTERPARTYSYSTEMSTATUSRESPONSE_H +#define FIX44_NETWORKCOUNTERPARTYSYSTEMSTATUSRESPONSE_H + +#include "Message.h" + +namespace FIX44 +{ + + class NetworkCounterpartySystemStatusResponse : public Message + { + public: + NetworkCounterpartySystemStatusResponse() : Message(MsgType()) {} + NetworkCounterpartySystemStatusResponse(const FIX::Message& m) : Message(m) {} + NetworkCounterpartySystemStatusResponse(const Message& m) : Message(m) {} + NetworkCounterpartySystemStatusResponse(const NetworkCounterpartySystemStatusResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BD"); } + + NetworkCounterpartySystemStatusResponse( + const FIX::NetworkStatusResponseType& aNetworkStatusResponseType, + const FIX::NetworkResponseID& aNetworkResponseID ) + : Message(MsgType()) + { + set(aNetworkStatusResponseType); + set(aNetworkResponseID); + } + + FIELD_SET(*this, FIX::NetworkStatusResponseType); + FIELD_SET(*this, FIX::NetworkRequestID); + FIELD_SET(*this, FIX::NetworkResponseID); + FIELD_SET(*this, FIX::LastNetworkResponseID); + FIELD_SET(*this, FIX::NoCompIDs); + class NoCompIDs: public FIX::Group + { + public: + NoCompIDs() : FIX::Group(936,930,FIX::message_order(930,931,283,284,928,929,0)) {} + FIELD_SET(*this, FIX::RefCompID); + FIELD_SET(*this, FIX::RefSubID); + FIELD_SET(*this, FIX::LocationID); + FIELD_SET(*this, FIX::DeskID); + FIELD_SET(*this, FIX::StatusValue); + FIELD_SET(*this, FIX::StatusText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/NewOrderCross.h b/linux/include/quickfix/fix44/NewOrderCross.h new file mode 100644 index 000000000..5de94a90c --- /dev/null +++ b/linux/include/quickfix/fix44/NewOrderCross.h @@ -0,0 +1,343 @@ +#ifndef FIX44_NEWORDERCROSS_H +#define FIX44_NEWORDERCROSS_H + +#include "Message.h" + +namespace FIX44 +{ + + class NewOrderCross : public Message + { + public: + NewOrderCross() : Message(MsgType()) {} + NewOrderCross(const FIX::Message& m) : Message(m) {} + NewOrderCross(const Message& m) : Message(m) {} + NewOrderCross(const NewOrderCross& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("s"); } + + NewOrderCross( + const FIX::CrossID& aCrossID, + const FIX::CrossType& aCrossType, + const FIX::CrossPrioritization& aCrossPrioritization, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aCrossID); + set(aCrossType); + set(aCrossPrioritization); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::CrossID); + FIELD_SET(*this, FIX::CrossType); + FIELD_SET(*this, FIX::CrossPrioritization); + FIELD_SET(*this, FIX::NoSides); + class NoSides: public FIX::Group + { + public: + NoSides() : FIX::Group(552,54,FIX::message_order(54,11,526,583,453,229,75,1,660,581,589,590,591,70,78,854,38,152,516,468,469,12,13,479,497,528,529,582,121,120,775,58,354,355,77,203,544,635,377,659,0)) {} + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::SideComplianceID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/NewOrderList.h b/linux/include/quickfix/fix44/NewOrderList.h new file mode 100644 index 000000000..b423a0507 --- /dev/null +++ b/linux/include/quickfix/fix44/NewOrderList.h @@ -0,0 +1,309 @@ +#ifndef FIX44_NEWORDERLIST_H +#define FIX44_NEWORDERLIST_H + +#include "Message.h" + +namespace FIX44 +{ + + class NewOrderList : public Message + { + public: + NewOrderList() : Message(MsgType()) {} + NewOrderList(const FIX::Message& m) : Message(m) {} + NewOrderList(const Message& m) : Message(m) {} + NewOrderList(const NewOrderList& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("E"); } + + NewOrderList( + const FIX::ListID& aListID, + const FIX::BidType& aBidType, + const FIX::TotNoOrders& aTotNoOrders ) + : Message(MsgType()) + { + set(aListID); + set(aBidType); + set(aTotNoOrders); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::ProgRptReqs); + FIELD_SET(*this, FIX::BidType); + FIELD_SET(*this, FIX::ProgPeriodInterval); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::ListExecInstType); + FIELD_SET(*this, FIX::ListExecInst); + FIELD_SET(*this, FIX::EncodedListExecInstLen); + FIELD_SET(*this, FIX::EncodedListExecInst); + FIELD_SET(*this, FIX::AllowableOneSidednessPct); + FIELD_SET(*this, FIX::AllowableOneSidednessValue); + FIELD_SET(*this, FIX::AllowableOneSidednessCurr); + FIELD_SET(*this, FIX::TotNoOrders); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,526,67,583,160,453,229,75,1,660,581,589,590,70,591,78,63,64,544,635,21,18,110,111,100,386,81,55,65,48,22,460,461,167,762,200,541,201,224,225,239,226,227,228,255,543,470,471,472,240,202,947,206,231,223,207,106,348,349,107,350,351,691,667,875,876,873,874,711,140,54,401,114,60,232,854,38,152,516,468,469,40,423,44,99,218,220,221,222,662,663,699,761,235,236,701,696,697,698,15,376,377,23,117,59,168,432,126,427,12,13,479,497,528,529,582,121,120,775,58,354,355,193,192,640,77,203,210,211,835,836,837,838,840,388,389,841,842,843,844,846,847,848,849,494,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListSeqNo); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::SettlInstMode); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::SideValueInd); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::Designation); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/NewOrderMultileg.h b/linux/include/quickfix/fix44/NewOrderMultileg.h new file mode 100644 index 000000000..8d25ad139 --- /dev/null +++ b/linux/include/quickfix/fix44/NewOrderMultileg.h @@ -0,0 +1,371 @@ +#ifndef FIX44_NEWORDERMULTILEG_H +#define FIX44_NEWORDERMULTILEG_H + +#include "Message.h" + +namespace FIX44 +{ + + class NewOrderMultileg : public Message + { + public: + NewOrderMultileg() : Message(MsgType()) {} + NewOrderMultileg(const FIX::Message& m) : Message(m) {} + NewOrderMultileg(const Message& m) : Message(m) {} + NewOrderMultileg(const NewOrderMultileg& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AB"); } + + NewOrderMultileg( + const FIX::ClOrdID& aClOrdID, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aClOrdID); + set(aSide); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,948,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNested3PartyIDs); + class NoNested3PartyIDs: public FIX::Group + { + public: + NoNested3PartyIDs() : FIX::Group(948,949,FIX::message_order(949,950,951,952,0)) {} + FIELD_SET(*this, FIX::Nested3PartyID); + FIELD_SET(*this, FIX::Nested3PartyIDSource); + FIELD_SET(*this, FIX::Nested3PartyRole); + FIELD_SET(*this, FIX::NoNested3PartySubIDs); + class NoNested3PartySubIDs: public FIX::Group + { + public: + NoNested3PartySubIDs() : FIX::Group(952,953,FIX::message_order(953,954,0)) {} + FIELD_SET(*this, FIX::Nested3PartySubID); + FIELD_SET(*this, FIX::Nested3PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,687,690,683,670,564,565,539,654,566,587,588,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoLegAllocs); + class NoLegAllocs: public FIX::Group + { + public: + NoLegAllocs() : FIX::Group(670,671,FIX::message_order(671,672,756,673,674,675,0)) {} + FIELD_SET(*this, FIX::LegAllocAccount); + FIELD_SET(*this, FIX::LegIndividualAllocID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegAllocQty); + FIELD_SET(*this, FIX::LegAllocAcctIDSource); + FIELD_SET(*this, FIX::LegSettlCurrency); + }; + FIELD_SET(*this, FIX::LegPositionEffect); + FIELD_SET(*this, FIX::LegCoveredOrUncovered); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegPrice); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + }; + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::MultiLegRptTypeReq); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/NewOrderSingle.h b/linux/include/quickfix/fix44/NewOrderSingle.h new file mode 100644 index 000000000..d13a7de25 --- /dev/null +++ b/linux/include/quickfix/fix44/NewOrderSingle.h @@ -0,0 +1,296 @@ +#ifndef FIX44_NEWORDERSINGLE_H +#define FIX44_NEWORDERSINGLE_H + +#include "Message.h" + +namespace FIX44 +{ + + class NewOrderSingle : public Message + { + public: + NewOrderSingle() : Message(MsgType()) {} + NewOrderSingle(const FIX::Message& m) : Message(m) {} + NewOrderSingle(const Message& m) : Message(m) {} + NewOrderSingle(const NewOrderSingle& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("D"); } + + NewOrderSingle( + const FIX::ClOrdID& aClOrdID, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aClOrdID); + set(aSide); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/News.h b/linux/include/quickfix/fix44/News.h new file mode 100644 index 000000000..00af36032 --- /dev/null +++ b/linux/include/quickfix/fix44/News.h @@ -0,0 +1,199 @@ +#ifndef FIX44_NEWS_H +#define FIX44_NEWS_H + +#include "Message.h" + +namespace FIX44 +{ + + class News : public Message + { + public: + News() : Message(MsgType()) {} + News(const FIX::Message& m) : Message(m) {} + News(const Message& m) : Message(m) {} + News(const News& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("B"); } + + News( + const FIX::Headline& aHeadline ) + : Message(MsgType()) + { + set(aHeadline); + } + + FIELD_SET(*this, FIX::OrigTime); + FIELD_SET(*this, FIX::Urgency); + FIELD_SET(*this, FIX::Headline); + FIELD_SET(*this, FIX::EncodedHeadlineLen); + FIELD_SET(*this, FIX::EncodedHeadline); + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,461,167,762,200,541,201,224,225,239,226,227,228,255,543,470,471,472,240,202,947,206,231,223,207,106,348,349,107,350,351,691,667,875,876,873,874,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::NoLinesOfText); + class NoLinesOfText: public FIX::Group + { + public: + NoLinesOfText() : FIX::Group(33,58,FIX::message_order(58,354,355,0)) {} + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + FIELD_SET(*this, FIX::URLLink); + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/OrderCancelReject.h b/linux/include/quickfix/fix44/OrderCancelReject.h new file mode 100644 index 000000000..b941b3822 --- /dev/null +++ b/linux/include/quickfix/fix44/OrderCancelReject.h @@ -0,0 +1,58 @@ +#ifndef FIX44_ORDERCANCELREJECT_H +#define FIX44_ORDERCANCELREJECT_H + +#include "Message.h" + +namespace FIX44 +{ + + class OrderCancelReject : public Message + { + public: + OrderCancelReject() : Message(MsgType()) {} + OrderCancelReject(const FIX::Message& m) : Message(m) {} + OrderCancelReject(const Message& m) : Message(m) {} + OrderCancelReject(const OrderCancelReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("9"); } + + OrderCancelReject( + const FIX::OrderID& aOrderID, + const FIX::ClOrdID& aClOrdID, + const FIX::OrigClOrdID& aOrigClOrdID, + const FIX::OrdStatus& aOrdStatus, + const FIX::CxlRejResponseTo& aCxlRejResponseTo ) + : Message(MsgType()) + { + set(aOrderID); + set(aClOrdID); + set(aOrigClOrdID); + set(aOrdStatus); + set(aCxlRejResponseTo); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::WorkingIndicator); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::CxlRejResponseTo); + FIELD_SET(*this, FIX::CxlRejReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/OrderCancelReplaceRequest.h b/linux/include/quickfix/fix44/OrderCancelReplaceRequest.h new file mode 100644 index 000000000..8c122d334 --- /dev/null +++ b/linux/include/quickfix/fix44/OrderCancelReplaceRequest.h @@ -0,0 +1,290 @@ +#ifndef FIX44_ORDERCANCELREPLACEREQUEST_H +#define FIX44_ORDERCANCELREPLACEREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class OrderCancelReplaceRequest : public Message + { + public: + OrderCancelReplaceRequest() : Message(MsgType()) {} + OrderCancelReplaceRequest(const FIX::Message& m) : Message(m) {} + OrderCancelReplaceRequest(const Message& m) : Message(m) {} + OrderCancelReplaceRequest(const OrderCancelReplaceRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("G"); } + + OrderCancelReplaceRequest( + const FIX::OrigClOrdID& aOrigClOrdID, + const FIX::ClOrdID& aClOrdID, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aOrigClOrdID); + set(aClOrdID); + set(aSide); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/OrderCancelRequest.h b/linux/include/quickfix/fix44/OrderCancelRequest.h new file mode 100644 index 000000000..5fe1baa6d --- /dev/null +++ b/linux/include/quickfix/fix44/OrderCancelRequest.h @@ -0,0 +1,174 @@ +#ifndef FIX44_ORDERCANCELREQUEST_H +#define FIX44_ORDERCANCELREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class OrderCancelRequest : public Message + { + public: + OrderCancelRequest() : Message(MsgType()) {} + OrderCancelRequest(const FIX::Message& m) : Message(m) {} + OrderCancelRequest(const Message& m) : Message(m) {} + OrderCancelRequest(const OrderCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("F"); } + + OrderCancelRequest( + const FIX::OrigClOrdID& aOrigClOrdID, + const FIX::ClOrdID& aClOrdID, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aOrigClOrdID); + set(aClOrdID); + set(aSide); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/OrderMassCancelReport.h b/linux/include/quickfix/fix44/OrderMassCancelReport.h new file mode 100644 index 000000000..076b67f25 --- /dev/null +++ b/linux/include/quickfix/fix44/OrderMassCancelReport.h @@ -0,0 +1,143 @@ +#ifndef FIX44_ORDERMASSCANCELREPORT_H +#define FIX44_ORDERMASSCANCELREPORT_H + +#include "Message.h" + +namespace FIX44 +{ + + class OrderMassCancelReport : public Message + { + public: + OrderMassCancelReport() : Message(MsgType()) {} + OrderMassCancelReport(const FIX::Message& m) : Message(m) {} + OrderMassCancelReport(const Message& m) : Message(m) {} + OrderMassCancelReport(const OrderMassCancelReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("r"); } + + OrderMassCancelReport( + const FIX::OrderID& aOrderID, + const FIX::MassCancelRequestType& aMassCancelRequestType, + const FIX::MassCancelResponse& aMassCancelResponse ) + : Message(MsgType()) + { + set(aOrderID); + set(aMassCancelRequestType); + set(aMassCancelResponse); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::MassCancelRequestType); + FIELD_SET(*this, FIX::MassCancelResponse); + FIELD_SET(*this, FIX::MassCancelRejectReason); + FIELD_SET(*this, FIX::TotalAffectedOrders); + FIELD_SET(*this, FIX::NoAffectedOrders); + class NoAffectedOrders: public FIX::Group + { + public: + NoAffectedOrders() : FIX::Group(534,41,FIX::message_order(41,535,536,0)) {} + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::AffectedOrderID); + FIELD_SET(*this, FIX::AffectedSecondaryOrderID); + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/OrderMassCancelRequest.h b/linux/include/quickfix/fix44/OrderMassCancelRequest.h new file mode 100644 index 000000000..3d47c2248 --- /dev/null +++ b/linux/include/quickfix/fix44/OrderMassCancelRequest.h @@ -0,0 +1,129 @@ +#ifndef FIX44_ORDERMASSCANCELREQUEST_H +#define FIX44_ORDERMASSCANCELREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class OrderMassCancelRequest : public Message + { + public: + OrderMassCancelRequest() : Message(MsgType()) {} + OrderMassCancelRequest(const FIX::Message& m) : Message(m) {} + OrderMassCancelRequest(const Message& m) : Message(m) {} + OrderMassCancelRequest(const OrderMassCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("q"); } + + OrderMassCancelRequest( + const FIX::ClOrdID& aClOrdID, + const FIX::MassCancelRequestType& aMassCancelRequestType, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aClOrdID); + set(aMassCancelRequestType); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::MassCancelRequestType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/OrderMassStatusRequest.h b/linux/include/quickfix/fix44/OrderMassStatusRequest.h new file mode 100644 index 000000000..05e09b1f8 --- /dev/null +++ b/linux/include/quickfix/fix44/OrderMassStatusRequest.h @@ -0,0 +1,141 @@ +#ifndef FIX44_ORDERMASSSTATUSREQUEST_H +#define FIX44_ORDERMASSSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class OrderMassStatusRequest : public Message + { + public: + OrderMassStatusRequest() : Message(MsgType()) {} + OrderMassStatusRequest(const FIX::Message& m) : Message(m) {} + OrderMassStatusRequest(const Message& m) : Message(m) {} + OrderMassStatusRequest(const OrderMassStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AF"); } + + OrderMassStatusRequest( + const FIX::MassStatusReqID& aMassStatusReqID, + const FIX::MassStatusReqType& aMassStatusReqType ) + : Message(MsgType()) + { + set(aMassStatusReqID); + set(aMassStatusReqType); + } + + FIELD_SET(*this, FIX::MassStatusReqID); + FIELD_SET(*this, FIX::MassStatusReqType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::Side); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/OrderStatusRequest.h b/linux/include/quickfix/fix44/OrderStatusRequest.h new file mode 100644 index 000000000..57c9a6657 --- /dev/null +++ b/linux/include/quickfix/fix44/OrderStatusRequest.h @@ -0,0 +1,157 @@ +#ifndef FIX44_ORDERSTATUSREQUEST_H +#define FIX44_ORDERSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class OrderStatusRequest : public Message + { + public: + OrderStatusRequest() : Message(MsgType()) {} + OrderStatusRequest(const FIX::Message& m) : Message(m) {} + OrderStatusRequest(const Message& m) : Message(m) {} + OrderStatusRequest(const OrderStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("H"); } + + OrderStatusRequest( + const FIX::ClOrdID& aClOrdID, + const FIX::Side& aSide ) + : Message(MsgType()) + { + set(aClOrdID); + set(aSide); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OrdStatusReqID); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::Side); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/PositionMaintenanceReport.h b/linux/include/quickfix/fix44/PositionMaintenanceReport.h new file mode 100644 index 000000000..bf185ae8a --- /dev/null +++ b/linux/include/quickfix/fix44/PositionMaintenanceReport.h @@ -0,0 +1,264 @@ +#ifndef FIX44_POSITIONMAINTENANCEREPORT_H +#define FIX44_POSITIONMAINTENANCEREPORT_H + +#include "Message.h" + +namespace FIX44 +{ + + class PositionMaintenanceReport : public Message + { + public: + PositionMaintenanceReport() : Message(MsgType()) {} + PositionMaintenanceReport(const FIX::Message& m) : Message(m) {} + PositionMaintenanceReport(const Message& m) : Message(m) {} + PositionMaintenanceReport(const PositionMaintenanceReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AM"); } + + PositionMaintenanceReport( + const FIX::PosMaintRptID& aPosMaintRptID, + const FIX::PosTransType& aPosTransType, + const FIX::PosMaintAction& aPosMaintAction, + const FIX::OrigPosReqRefID& aOrigPosReqRefID, + const FIX::PosMaintStatus& aPosMaintStatus, + const FIX::ClearingBusinessDate& aClearingBusinessDate, + const FIX::Account& aAccount, + const FIX::AccountType& aAccountType, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aPosMaintRptID); + set(aPosTransType); + set(aPosMaintAction); + set(aOrigPosReqRefID); + set(aPosMaintStatus); + set(aClearingBusinessDate); + set(aAccount); + set(aAccountType); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::PosMaintRptID); + FIELD_SET(*this, FIX::PosTransType); + FIELD_SET(*this, FIX::PosReqID); + FIELD_SET(*this, FIX::PosMaintAction); + FIELD_SET(*this, FIX::OrigPosReqRefID); + FIELD_SET(*this, FIX::PosMaintStatus); + FIELD_SET(*this, FIX::PosMaintResult); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoPositions); + class NoPositions: public FIX::Group + { + public: + NoPositions() : FIX::Group(702,703,FIX::message_order(703,704,705,706,539,0)) {} + FIELD_SET(*this, FIX::PosType); + FIELD_SET(*this, FIX::LongQty); + FIELD_SET(*this, FIX::ShortQty); + FIELD_SET(*this, FIX::PosQtyStatus); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + }; + FIELD_SET(*this, FIX::AdjustmentType); + FIELD_SET(*this, FIX::ThresholdAmount); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/PositionMaintenanceRequest.h b/linux/include/quickfix/fix44/PositionMaintenanceRequest.h new file mode 100644 index 000000000..432c83e1c --- /dev/null +++ b/linux/include/quickfix/fix44/PositionMaintenanceRequest.h @@ -0,0 +1,252 @@ +#ifndef FIX44_POSITIONMAINTENANCEREQUEST_H +#define FIX44_POSITIONMAINTENANCEREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class PositionMaintenanceRequest : public Message + { + public: + PositionMaintenanceRequest() : Message(MsgType()) {} + PositionMaintenanceRequest(const FIX::Message& m) : Message(m) {} + PositionMaintenanceRequest(const Message& m) : Message(m) {} + PositionMaintenanceRequest(const PositionMaintenanceRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AL"); } + + PositionMaintenanceRequest( + const FIX::PosReqID& aPosReqID, + const FIX::PosTransType& aPosTransType, + const FIX::PosMaintAction& aPosMaintAction, + const FIX::ClearingBusinessDate& aClearingBusinessDate, + const FIX::Account& aAccount, + const FIX::AccountType& aAccountType, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aPosReqID); + set(aPosTransType); + set(aPosMaintAction); + set(aClearingBusinessDate); + set(aAccount); + set(aAccountType); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::PosReqID); + FIELD_SET(*this, FIX::PosTransType); + FIELD_SET(*this, FIX::PosMaintAction); + FIELD_SET(*this, FIX::OrigPosReqRefID); + FIELD_SET(*this, FIX::PosMaintRptRefID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoPositions); + class NoPositions: public FIX::Group + { + public: + NoPositions() : FIX::Group(702,703,FIX::message_order(703,704,705,706,539,0)) {} + FIELD_SET(*this, FIX::PosType); + FIELD_SET(*this, FIX::LongQty); + FIELD_SET(*this, FIX::ShortQty); + FIELD_SET(*this, FIX::PosQtyStatus); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::AdjustmentType); + FIELD_SET(*this, FIX::ContraryInstructionIndicator); + FIELD_SET(*this, FIX::PriorSpreadIndicator); + FIELD_SET(*this, FIX::ThresholdAmount); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/PositionReport.h b/linux/include/quickfix/fix44/PositionReport.h new file mode 100644 index 000000000..4f2fe035d --- /dev/null +++ b/linux/include/quickfix/fix44/PositionReport.h @@ -0,0 +1,258 @@ +#ifndef FIX44_POSITIONREPORT_H +#define FIX44_POSITIONREPORT_H + +#include "Message.h" + +namespace FIX44 +{ + + class PositionReport : public Message + { + public: + PositionReport() : Message(MsgType()) {} + PositionReport(const FIX::Message& m) : Message(m) {} + PositionReport(const Message& m) : Message(m) {} + PositionReport(const PositionReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AP"); } + + PositionReport( + const FIX::PosMaintRptID& aPosMaintRptID, + const FIX::PosReqResult& aPosReqResult, + const FIX::ClearingBusinessDate& aClearingBusinessDate, + const FIX::Account& aAccount, + const FIX::AccountType& aAccountType, + const FIX::SettlPrice& aSettlPrice, + const FIX::SettlPriceType& aSettlPriceType, + const FIX::PriorSettlPrice& aPriorSettlPrice ) + : Message(MsgType()) + { + set(aPosMaintRptID); + set(aPosReqResult); + set(aClearingBusinessDate); + set(aAccount); + set(aAccountType); + set(aSettlPrice); + set(aSettlPriceType); + set(aPriorSettlPrice); + } + + FIELD_SET(*this, FIX::PosMaintRptID); + FIELD_SET(*this, FIX::PosReqID); + FIELD_SET(*this, FIX::PosReqType); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TotalNumPosReports); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::PosReqResult); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SettlPrice); + FIELD_SET(*this, FIX::SettlPriceType); + FIELD_SET(*this, FIX::PriorSettlPrice); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,732,733,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingSettlPrice); + FIELD_SET(*this, FIX::UnderlyingSettlPriceType); + }; + FIELD_SET(*this, FIX::NoPositions); + class NoPositions: public FIX::Group + { + public: + NoPositions() : FIX::Group(702,703,FIX::message_order(703,704,705,706,539,0)) {} + FIELD_SET(*this, FIX::PosType); + FIELD_SET(*this, FIX::LongQty); + FIELD_SET(*this, FIX::ShortQty); + FIELD_SET(*this, FIX::PosQtyStatus); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + }; + FIELD_SET(*this, FIX::RegistStatus); + FIELD_SET(*this, FIX::DeliveryDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/Quote.h b/linux/include/quickfix/fix44/Quote.h new file mode 100644 index 000000000..b8c918e2a --- /dev/null +++ b/linux/include/quickfix/fix44/Quote.h @@ -0,0 +1,314 @@ +#ifndef FIX44_QUOTE_H +#define FIX44_QUOTE_H + +#include "Message.h" + +namespace FIX44 +{ + + class Quote : public Message + { + public: + Quote() : Message(MsgType()) {} + Quote(const FIX::Message& m) : Message(m) {} + Quote(const Message& m) : Message(m) {} + Quote(const Quote& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("S"); } + + Quote( + const FIX::QuoteID& aQuoteID ) + : Message(MsgType()) + { + set(aQuoteID); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteRespID); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::NoQuoteQualifiers); + class NoQuoteQualifiers: public FIX::Group + { + public: + NoQuoteQualifiers() : FIX::Group(735,695,FIX::message_order(695,0)) {} + FIELD_SET(*this, FIX::QuoteQualifier); + }; + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,687,690,587,588,683,539,686,681,684,676,677,678,679,680,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegPriceType); + FIELD_SET(*this, FIX::LegBidPx); + FIELD_SET(*this, FIX::LegOfferPx); + FIELD_SET(*this, FIX::LegBenchmarkCurveCurrency); + FIELD_SET(*this, FIX::LegBenchmarkCurveName); + FIELD_SET(*this, FIX::LegBenchmarkCurvePoint); + FIELD_SET(*this, FIX::LegBenchmarkPrice); + FIELD_SET(*this, FIX::LegBenchmarkPriceType); + }; + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::MktBidPx); + FIELD_SET(*this, FIX::MktOfferPx); + FIELD_SET(*this, FIX::MinBidSize); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::MinOfferSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::SettlCurrBidFxRate); + FIELD_SET(*this, FIX::SettlCurrOfferFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/QuoteCancel.h b/linux/include/quickfix/fix44/QuoteCancel.h new file mode 100644 index 000000000..462c5e121 --- /dev/null +++ b/linux/include/quickfix/fix44/QuoteCancel.h @@ -0,0 +1,211 @@ +#ifndef FIX44_QUOTECANCEL_H +#define FIX44_QUOTECANCEL_H + +#include "Message.h" + +namespace FIX44 +{ + + class QuoteCancel : public Message + { + public: + QuoteCancel() : Message(MsgType()) {} + QuoteCancel(const FIX::Message& m) : Message(m) {} + QuoteCancel(const Message& m) : Message(m) {} + QuoteCancel(const QuoteCancel& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("Z"); } + + QuoteCancel( + const FIX::QuoteID& aQuoteID, + const FIX::QuoteCancelType& aQuoteCancelType ) + : Message(MsgType()) + { + set(aQuoteID); + set(aQuoteCancelType); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteCancelType); + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NoQuoteEntries); + class NoQuoteEntries: public FIX::Group + { + public: + NoQuoteEntries() : FIX::Group(295,55,FIX::message_order(55,65,48,22,460,461,167,762,200,541,201,224,225,239,226,227,228,255,543,470,471,472,240,202,947,206,231,223,207,106,348,349,107,350,351,691,667,875,876,873,874,913,914,915,918,788,916,917,919,898,711,555,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/QuoteRequest.h b/linux/include/quickfix/fix44/QuoteRequest.h new file mode 100644 index 000000000..4bb2e032b --- /dev/null +++ b/linux/include/quickfix/fix44/QuoteRequest.h @@ -0,0 +1,299 @@ +#ifndef FIX44_QUOTEREQUEST_H +#define FIX44_QUOTEREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class QuoteRequest : public Message + { + public: + QuoteRequest() : Message(MsgType()) {} + QuoteRequest(const FIX::Message& m) : Message(m) {} + QuoteRequest(const Message& m) : Message(m) {} + QuoteRequest(const QuoteRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("R"); } + + QuoteRequest( + const FIX::QuoteReqID& aQuoteReqID ) + : Message(MsgType()) + { + set(aQuoteReqID); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::RFQReqID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,461,167,762,200,541,201,224,225,239,226,227,228,255,543,470,471,472,240,202,947,206,231,223,207,106,348,349,107,350,351,691,667,875,876,873,874,913,914,915,918,788,916,917,919,898,711,140,303,537,336,625,229,54,854,38,152,516,468,469,63,64,193,192,15,232,1,660,581,555,735,692,40,62,126,60,218,220,221,222,662,663,699,761,423,44,640,235,236,701,696,697,698,453,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::QuoteRequestType); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,687,690,587,588,683,539,676,677,678,679,680,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegBenchmarkCurveCurrency); + FIELD_SET(*this, FIX::LegBenchmarkCurveName); + FIELD_SET(*this, FIX::LegBenchmarkCurvePoint); + FIELD_SET(*this, FIX::LegBenchmarkPrice); + FIELD_SET(*this, FIX::LegBenchmarkPriceType); + }; + FIELD_SET(*this, FIX::NoQuoteQualifiers); + class NoQuoteQualifiers: public FIX::Group + { + public: + NoQuoteQualifiers() : FIX::Group(735,695,FIX::message_order(695,0)) {} + FIELD_SET(*this, FIX::QuoteQualifier); + }; + FIELD_SET(*this, FIX::QuotePriceType); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/QuoteRequestReject.h b/linux/include/quickfix/fix44/QuoteRequestReject.h new file mode 100644 index 000000000..bfe5f9ded --- /dev/null +++ b/linux/include/quickfix/fix44/QuoteRequestReject.h @@ -0,0 +1,299 @@ +#ifndef FIX44_QUOTEREQUESTREJECT_H +#define FIX44_QUOTEREQUESTREJECT_H + +#include "Message.h" + +namespace FIX44 +{ + + class QuoteRequestReject : public Message + { + public: + QuoteRequestReject() : Message(MsgType()) {} + QuoteRequestReject(const FIX::Message& m) : Message(m) {} + QuoteRequestReject(const Message& m) : Message(m) {} + QuoteRequestReject(const QuoteRequestReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AG"); } + + QuoteRequestReject( + const FIX::QuoteReqID& aQuoteReqID, + const FIX::QuoteRequestRejectReason& aQuoteRequestRejectReason ) + : Message(MsgType()) + { + set(aQuoteReqID); + set(aQuoteRequestRejectReason); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::RFQReqID); + FIELD_SET(*this, FIX::QuoteRequestRejectReason); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,461,167,762,200,541,201,224,225,239,226,227,228,255,543,470,471,472,240,202,947,206,231,223,207,106,348,349,107,350,351,691,667,875,876,873,874,913,914,915,918,788,916,917,919,898,711,140,303,537,336,625,229,54,854,38,152,516,468,469,63,64,193,192,15,232,1,660,581,555,735,692,40,126,60,218,220,221,222,662,663,699,761,423,44,640,235,236,701,696,697,698,453,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::QuoteRequestType); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,687,690,587,588,683,539,676,677,678,679,680,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegBenchmarkCurveCurrency); + FIELD_SET(*this, FIX::LegBenchmarkCurveName); + FIELD_SET(*this, FIX::LegBenchmarkCurvePoint); + FIELD_SET(*this, FIX::LegBenchmarkPrice); + FIELD_SET(*this, FIX::LegBenchmarkPriceType); + }; + FIELD_SET(*this, FIX::NoQuoteQualifiers); + class NoQuoteQualifiers: public FIX::Group + { + public: + NoQuoteQualifiers() : FIX::Group(735,695,FIX::message_order(695,0)) {} + FIELD_SET(*this, FIX::QuoteQualifier); + }; + FIELD_SET(*this, FIX::QuotePriceType); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/QuoteResponse.h b/linux/include/quickfix/fix44/QuoteResponse.h new file mode 100644 index 000000000..a2b6ab3ab --- /dev/null +++ b/linux/include/quickfix/fix44/QuoteResponse.h @@ -0,0 +1,318 @@ +#ifndef FIX44_QUOTERESPONSE_H +#define FIX44_QUOTERESPONSE_H + +#include "Message.h" + +namespace FIX44 +{ + + class QuoteResponse : public Message + { + public: + QuoteResponse() : Message(MsgType()) {} + QuoteResponse(const FIX::Message& m) : Message(m) {} + QuoteResponse(const Message& m) : Message(m) {} + QuoteResponse(const QuoteResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AJ"); } + + QuoteResponse( + const FIX::QuoteRespID& aQuoteRespID, + const FIX::QuoteRespType& aQuoteRespType ) + : Message(MsgType()) + { + set(aQuoteRespID); + set(aQuoteRespType); + } + + FIELD_SET(*this, FIX::QuoteRespID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteRespType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::NoQuoteQualifiers); + class NoQuoteQualifiers: public FIX::Group + { + public: + NoQuoteQualifiers() : FIX::Group(735,695,FIX::message_order(695,0)) {} + FIELD_SET(*this, FIX::QuoteQualifier); + }; + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,687,690,587,588,683,539,686,681,684,676,677,678,679,680,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegPriceType); + FIELD_SET(*this, FIX::LegBidPx); + FIELD_SET(*this, FIX::LegOfferPx); + FIELD_SET(*this, FIX::LegBenchmarkCurveCurrency); + FIELD_SET(*this, FIX::LegBenchmarkCurveName); + FIELD_SET(*this, FIX::LegBenchmarkCurvePoint); + FIELD_SET(*this, FIX::LegBenchmarkPrice); + FIELD_SET(*this, FIX::LegBenchmarkPriceType); + }; + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::MktBidPx); + FIELD_SET(*this, FIX::MktOfferPx); + FIELD_SET(*this, FIX::MinBidSize); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::MinOfferSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::SettlCurrBidFxRate); + FIELD_SET(*this, FIX::SettlCurrOfferFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/QuoteStatusReport.h b/linux/include/quickfix/fix44/QuoteStatusReport.h new file mode 100644 index 000000000..10317ee81 --- /dev/null +++ b/linux/include/quickfix/fix44/QuoteStatusReport.h @@ -0,0 +1,308 @@ +#ifndef FIX44_QUOTESTATUSREPORT_H +#define FIX44_QUOTESTATUSREPORT_H + +#include "Message.h" + +namespace FIX44 +{ + + class QuoteStatusReport : public Message + { + public: + QuoteStatusReport() : Message(MsgType()) {} + QuoteStatusReport(const FIX::Message& m) : Message(m) {} + QuoteStatusReport(const Message& m) : Message(m) {} + QuoteStatusReport(const QuoteStatusReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AI"); } + + QuoteStatusReport( + const FIX::QuoteID& aQuoteID ) + : Message(MsgType()) + { + set(aQuoteID); + } + + FIELD_SET(*this, FIX::QuoteStatusReqID); + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteRespID); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,687,690,587,588,683,539,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::NoQuoteQualifiers); + class NoQuoteQualifiers: public FIX::Group + { + public: + NoQuoteQualifiers() : FIX::Group(735,695,FIX::message_order(695,0)) {} + FIELD_SET(*this, FIX::QuoteQualifier); + }; + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::MktBidPx); + FIELD_SET(*this, FIX::MktOfferPx); + FIELD_SET(*this, FIX::MinBidSize); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::MinOfferSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::SettlCurrBidFxRate); + FIELD_SET(*this, FIX::SettlCurrOfferFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::QuoteStatus); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/QuoteStatusRequest.h b/linux/include/quickfix/fix44/QuoteStatusRequest.h new file mode 100644 index 000000000..004f48d80 --- /dev/null +++ b/linux/include/quickfix/fix44/QuoteStatusRequest.h @@ -0,0 +1,195 @@ +#ifndef FIX44_QUOTESTATUSREQUEST_H +#define FIX44_QUOTESTATUSREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class QuoteStatusRequest : public Message + { + public: + QuoteStatusRequest() : Message(MsgType()) {} + QuoteStatusRequest(const FIX::Message& m) : Message(m) {} + QuoteStatusRequest(const Message& m) : Message(m) {} + QuoteStatusRequest(const QuoteStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("a"); } + + FIELD_SET(*this, FIX::QuoteStatusReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/RFQRequest.h b/linux/include/quickfix/fix44/RFQRequest.h new file mode 100644 index 000000000..1b17dbe33 --- /dev/null +++ b/linux/include/quickfix/fix44/RFQRequest.h @@ -0,0 +1,181 @@ +#ifndef FIX44_RFQREQUEST_H +#define FIX44_RFQREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class RFQRequest : public Message + { + public: + RFQRequest() : Message(MsgType()) {} + RFQRequest(const FIX::Message& m) : Message(m) {} + RFQRequest(const Message& m) : Message(m) {} + RFQRequest(const RFQRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AH"); } + + RFQRequest( + const FIX::RFQReqID& aRFQReqID ) + : Message(MsgType()) + { + set(aRFQReqID); + } + + FIELD_SET(*this, FIX::RFQReqID); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,461,167,762,200,541,201,224,225,239,226,227,228,255,543,470,471,472,240,202,947,206,231,223,207,106,348,349,107,350,351,691,667,875,876,873,874,711,555,140,303,537,336,625,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::QuoteRequestType); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/RegistrationInstructions.h b/linux/include/quickfix/fix44/RegistrationInstructions.h new file mode 100644 index 000000000..6a119d42b --- /dev/null +++ b/linux/include/quickfix/fix44/RegistrationInstructions.h @@ -0,0 +1,103 @@ +#ifndef FIX44_REGISTRATIONINSTRUCTIONS_H +#define FIX44_REGISTRATIONINSTRUCTIONS_H + +#include "Message.h" + +namespace FIX44 +{ + + class RegistrationInstructions : public Message + { + public: + RegistrationInstructions() : Message(MsgType()) {} + RegistrationInstructions(const FIX::Message& m) : Message(m) {} + RegistrationInstructions(const Message& m) : Message(m) {} + RegistrationInstructions(const RegistrationInstructions& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("o"); } + + RegistrationInstructions( + const FIX::RegistID& aRegistID, + const FIX::RegistTransType& aRegistTransType, + const FIX::RegistRefID& aRegistRefID ) + : Message(MsgType()) + { + set(aRegistID); + set(aRegistTransType); + set(aRegistRefID); + } + + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::RegistTransType); + FIELD_SET(*this, FIX::RegistRefID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::RegistAcctType); + FIELD_SET(*this, FIX::TaxAdvantageType); + FIELD_SET(*this, FIX::OwnershipType); + FIELD_SET(*this, FIX::NoRegistDtls); + class NoRegistDtls: public FIX::Group + { + public: + NoRegistDtls() : FIX::Group(473,509,FIX::message_order(509,511,474,482,539,522,486,475,0)) {} + FIELD_SET(*this, FIX::RegistDtls); + FIELD_SET(*this, FIX::RegistEmail); + FIELD_SET(*this, FIX::MailingDtls); + FIELD_SET(*this, FIX::MailingInst); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OwnerType); + FIELD_SET(*this, FIX::DateOfBirth); + FIELD_SET(*this, FIX::InvestorCountryOfResidence); + }; + FIELD_SET(*this, FIX::NoDistribInsts); + class NoDistribInsts: public FIX::Group + { + public: + NoDistribInsts() : FIX::Group(510,477,FIX::message_order(477,512,478,498,499,500,501,502,0)) {} + FIELD_SET(*this, FIX::DistribPaymentMethod); + FIELD_SET(*this, FIX::DistribPercentage); + FIELD_SET(*this, FIX::CashDistribCurr); + FIELD_SET(*this, FIX::CashDistribAgentName); + FIELD_SET(*this, FIX::CashDistribAgentCode); + FIELD_SET(*this, FIX::CashDistribAgentAcctNumber); + FIELD_SET(*this, FIX::CashDistribPayRef); + FIELD_SET(*this, FIX::CashDistribAgentAcctName); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/RegistrationInstructionsResponse.h b/linux/include/quickfix/fix44/RegistrationInstructionsResponse.h new file mode 100644 index 000000000..d418dc0bc --- /dev/null +++ b/linux/include/quickfix/fix44/RegistrationInstructionsResponse.h @@ -0,0 +1,61 @@ +#ifndef FIX44_REGISTRATIONINSTRUCTIONSRESPONSE_H +#define FIX44_REGISTRATIONINSTRUCTIONSRESPONSE_H + +#include "Message.h" + +namespace FIX44 +{ + + class RegistrationInstructionsResponse : public Message + { + public: + RegistrationInstructionsResponse() : Message(MsgType()) {} + RegistrationInstructionsResponse(const FIX::Message& m) : Message(m) {} + RegistrationInstructionsResponse(const Message& m) : Message(m) {} + RegistrationInstructionsResponse(const RegistrationInstructionsResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("p"); } + + RegistrationInstructionsResponse( + const FIX::RegistID& aRegistID, + const FIX::RegistTransType& aRegistTransType, + const FIX::RegistRefID& aRegistRefID, + const FIX::RegistStatus& aRegistStatus ) + : Message(MsgType()) + { + set(aRegistID); + set(aRegistTransType); + set(aRegistRefID); + set(aRegistStatus); + } + + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::RegistTransType); + FIELD_SET(*this, FIX::RegistRefID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::RegistStatus); + FIELD_SET(*this, FIX::RegistRejReasonCode); + FIELD_SET(*this, FIX::RegistRejReasonText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/Reject.h b/linux/include/quickfix/fix44/Reject.h new file mode 100644 index 000000000..b08a1f97c --- /dev/null +++ b/linux/include/quickfix/fix44/Reject.h @@ -0,0 +1,36 @@ +#ifndef FIX44_REJECT_H +#define FIX44_REJECT_H + +#include "Message.h" + +namespace FIX44 +{ + + class Reject : public Message + { + public: + Reject() : Message(MsgType()) {} + Reject(const FIX::Message& m) : Message(m) {} + Reject(const Message& m) : Message(m) {} + Reject(const Reject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("3"); } + + Reject( + const FIX::RefSeqNum& aRefSeqNum ) + : Message(MsgType()) + { + set(aRefSeqNum); + } + + FIELD_SET(*this, FIX::RefSeqNum); + FIELD_SET(*this, FIX::RefTagID); + FIELD_SET(*this, FIX::RefMsgType); + FIELD_SET(*this, FIX::SessionRejectReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/RequestForPositions.h b/linux/include/quickfix/fix44/RequestForPositions.h new file mode 100644 index 000000000..48939b8aa --- /dev/null +++ b/linux/include/quickfix/fix44/RequestForPositions.h @@ -0,0 +1,220 @@ +#ifndef FIX44_REQUESTFORPOSITIONS_H +#define FIX44_REQUESTFORPOSITIONS_H + +#include "Message.h" + +namespace FIX44 +{ + + class RequestForPositions : public Message + { + public: + RequestForPositions() : Message(MsgType()) {} + RequestForPositions(const FIX::Message& m) : Message(m) {} + RequestForPositions(const Message& m) : Message(m) {} + RequestForPositions(const RequestForPositions& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AN"); } + + RequestForPositions( + const FIX::PosReqID& aPosReqID, + const FIX::PosReqType& aPosReqType, + const FIX::Account& aAccount, + const FIX::AccountType& aAccountType, + const FIX::ClearingBusinessDate& aClearingBusinessDate, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aPosReqID); + set(aPosReqType); + set(aAccount); + set(aAccountType); + set(aClearingBusinessDate); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::PosReqID); + FIELD_SET(*this, FIX::PosReqType); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/RequestForPositionsAck.h b/linux/include/quickfix/fix44/RequestForPositionsAck.h new file mode 100644 index 000000000..9414fc85c --- /dev/null +++ b/linux/include/quickfix/fix44/RequestForPositionsAck.h @@ -0,0 +1,208 @@ +#ifndef FIX44_REQUESTFORPOSITIONSACK_H +#define FIX44_REQUESTFORPOSITIONSACK_H + +#include "Message.h" + +namespace FIX44 +{ + + class RequestForPositionsAck : public Message + { + public: + RequestForPositionsAck() : Message(MsgType()) {} + RequestForPositionsAck(const FIX::Message& m) : Message(m) {} + RequestForPositionsAck(const Message& m) : Message(m) {} + RequestForPositionsAck(const RequestForPositionsAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AO"); } + + RequestForPositionsAck( + const FIX::PosMaintRptID& aPosMaintRptID, + const FIX::PosReqResult& aPosReqResult, + const FIX::PosReqStatus& aPosReqStatus, + const FIX::Account& aAccount, + const FIX::AccountType& aAccountType ) + : Message(MsgType()) + { + set(aPosMaintRptID); + set(aPosReqResult); + set(aPosReqStatus); + set(aAccount); + set(aAccountType); + } + + FIELD_SET(*this, FIX::PosMaintRptID); + FIELD_SET(*this, FIX::PosReqID); + FIELD_SET(*this, FIX::TotalNumPosReports); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::PosReqResult); + FIELD_SET(*this, FIX::PosReqStatus); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/ResendRequest.h b/linux/include/quickfix/fix44/ResendRequest.h new file mode 100644 index 000000000..ef18fcbe0 --- /dev/null +++ b/linux/include/quickfix/fix44/ResendRequest.h @@ -0,0 +1,33 @@ +#ifndef FIX44_RESENDREQUEST_H +#define FIX44_RESENDREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class ResendRequest : public Message + { + public: + ResendRequest() : Message(MsgType()) {} + ResendRequest(const FIX::Message& m) : Message(m) {} + ResendRequest(const Message& m) : Message(m) {} + ResendRequest(const ResendRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("2"); } + + ResendRequest( + const FIX::BeginSeqNo& aBeginSeqNo, + const FIX::EndSeqNo& aEndSeqNo ) + : Message(MsgType()) + { + set(aBeginSeqNo); + set(aEndSeqNo); + } + + FIELD_SET(*this, FIX::BeginSeqNo); + FIELD_SET(*this, FIX::EndSeqNo); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/SecurityDefinition.h b/linux/include/quickfix/fix44/SecurityDefinition.h new file mode 100644 index 000000000..2c0b08419 --- /dev/null +++ b/linux/include/quickfix/fix44/SecurityDefinition.h @@ -0,0 +1,186 @@ +#ifndef FIX44_SECURITYDEFINITION_H +#define FIX44_SECURITYDEFINITION_H + +#include "Message.h" + +namespace FIX44 +{ + + class SecurityDefinition : public Message + { + public: + SecurityDefinition() : Message(MsgType()) {} + SecurityDefinition(const FIX::Message& m) : Message(m) {} + SecurityDefinition(const Message& m) : Message(m) {} + SecurityDefinition(const SecurityDefinition& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("d"); } + + SecurityDefinition( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityResponseID& aSecurityResponseID, + const FIX::SecurityResponseType& aSecurityResponseType ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityResponseID); + set(aSecurityResponseType); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityResponseType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::ExpirationCycle); + FIELD_SET(*this, FIX::RoundLot); + FIELD_SET(*this, FIX::MinTradeVol); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/SecurityDefinitionRequest.h b/linux/include/quickfix/fix44/SecurityDefinitionRequest.h new file mode 100644 index 000000000..11ac3b33d --- /dev/null +++ b/linux/include/quickfix/fix44/SecurityDefinitionRequest.h @@ -0,0 +1,182 @@ +#ifndef FIX44_SECURITYDEFINITIONREQUEST_H +#define FIX44_SECURITYDEFINITIONREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class SecurityDefinitionRequest : public Message + { + public: + SecurityDefinitionRequest() : Message(MsgType()) {} + SecurityDefinitionRequest(const FIX::Message& m) : Message(m) {} + SecurityDefinitionRequest(const Message& m) : Message(m) {} + SecurityDefinitionRequest(const SecurityDefinitionRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("c"); } + + SecurityDefinitionRequest( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityRequestType& aSecurityRequestType ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityRequestType); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityRequestType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::ExpirationCycle); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/SecurityList.h b/linux/include/quickfix/fix44/SecurityList.h new file mode 100644 index 000000000..ae8e0973b --- /dev/null +++ b/linux/include/quickfix/fix44/SecurityList.h @@ -0,0 +1,240 @@ +#ifndef FIX44_SECURITYLIST_H +#define FIX44_SECURITYLIST_H + +#include "Message.h" + +namespace FIX44 +{ + + class SecurityList : public Message + { + public: + SecurityList() : Message(MsgType()) {} + SecurityList(const FIX::Message& m) : Message(m) {} + SecurityList(const Message& m) : Message(m) {} + SecurityList(const SecurityList& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("y"); } + + SecurityList( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityResponseID& aSecurityResponseID, + const FIX::SecurityRequestResult& aSecurityRequestResult ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityResponseID); + set(aSecurityRequestResult); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityRequestResult); + FIELD_SET(*this, FIX::TotNoRelatedSym); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,461,167,762,200,541,201,224,225,239,226,227,228,255,543,470,471,472,240,202,947,206,231,223,207,106,348,349,107,350,351,691,667,875,876,873,874,668,869,913,914,915,918,788,916,917,919,898,711,15,232,555,218,220,221,222,662,663,699,761,235,236,701,696,697,698,561,562,336,625,827,58,354,355,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,690,587,683,676,677,678,679,680,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::LegBenchmarkCurveCurrency); + FIELD_SET(*this, FIX::LegBenchmarkCurveName); + FIELD_SET(*this, FIX::LegBenchmarkCurvePoint); + FIELD_SET(*this, FIX::LegBenchmarkPrice); + FIELD_SET(*this, FIX::LegBenchmarkPriceType); + }; + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::RoundLot); + FIELD_SET(*this, FIX::MinTradeVol); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::ExpirationCycle); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/SecurityListRequest.h b/linux/include/quickfix/fix44/SecurityListRequest.h new file mode 100644 index 000000000..5d80ce430 --- /dev/null +++ b/linux/include/quickfix/fix44/SecurityListRequest.h @@ -0,0 +1,190 @@ +#ifndef FIX44_SECURITYLISTREQUEST_H +#define FIX44_SECURITYLISTREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class SecurityListRequest : public Message + { + public: + SecurityListRequest() : Message(MsgType()) {} + SecurityListRequest(const FIX::Message& m) : Message(m) {} + SecurityListRequest(const Message& m) : Message(m) {} + SecurityListRequest(const SecurityListRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("x"); } + + SecurityListRequest( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityListRequestType& aSecurityListRequestType ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityListRequestType); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityListRequestType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/SecurityStatus.h b/linux/include/quickfix/fix44/SecurityStatus.h new file mode 100644 index 000000000..a5addbae5 --- /dev/null +++ b/linux/include/quickfix/fix44/SecurityStatus.h @@ -0,0 +1,184 @@ +#ifndef FIX44_SECURITYSTATUS_H +#define FIX44_SECURITYSTATUS_H + +#include "Message.h" + +namespace FIX44 +{ + + class SecurityStatus : public Message + { + public: + SecurityStatus() : Message(MsgType()) {} + SecurityStatus(const FIX::Message& m) : Message(m) {} + SecurityStatus(const Message& m) : Message(m) {} + SecurityStatus(const SecurityStatus& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("f"); } + + FIELD_SET(*this, FIX::SecurityStatusReqID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::SecurityTradingStatus); + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::HaltReasonChar); + FIELD_SET(*this, FIX::InViewOfCommon); + FIELD_SET(*this, FIX::DueToRelated); + FIELD_SET(*this, FIX::BuyVolume); + FIELD_SET(*this, FIX::SellVolume); + FIELD_SET(*this, FIX::HighPx); + FIELD_SET(*this, FIX::LowPx); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Adjustment); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/SecurityStatusRequest.h b/linux/include/quickfix/fix44/SecurityStatusRequest.h new file mode 100644 index 000000000..ed8ece568 --- /dev/null +++ b/linux/include/quickfix/fix44/SecurityStatusRequest.h @@ -0,0 +1,177 @@ +#ifndef FIX44_SECURITYSTATUSREQUEST_H +#define FIX44_SECURITYSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class SecurityStatusRequest : public Message + { + public: + SecurityStatusRequest() : Message(MsgType()) {} + SecurityStatusRequest(const FIX::Message& m) : Message(m) {} + SecurityStatusRequest(const Message& m) : Message(m) {} + SecurityStatusRequest(const SecurityStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("e"); } + + SecurityStatusRequest( + const FIX::SecurityStatusReqID& aSecurityStatusReqID, + const FIX::SubscriptionRequestType& aSubscriptionRequestType ) + : Message(MsgType()) + { + set(aSecurityStatusReqID); + set(aSubscriptionRequestType); + } + + FIELD_SET(*this, FIX::SecurityStatusReqID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/SecurityTypeRequest.h b/linux/include/quickfix/fix44/SecurityTypeRequest.h new file mode 100644 index 000000000..faedebfc5 --- /dev/null +++ b/linux/include/quickfix/fix44/SecurityTypeRequest.h @@ -0,0 +1,38 @@ +#ifndef FIX44_SECURITYTYPEREQUEST_H +#define FIX44_SECURITYTYPEREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class SecurityTypeRequest : public Message + { + public: + SecurityTypeRequest() : Message(MsgType()) {} + SecurityTypeRequest(const FIX::Message& m) : Message(m) {} + SecurityTypeRequest(const Message& m) : Message(m) {} + SecurityTypeRequest(const SecurityTypeRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("v"); } + + SecurityTypeRequest( + const FIX::SecurityReqID& aSecurityReqID ) + : Message(MsgType()) + { + set(aSecurityReqID); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/SecurityTypes.h b/linux/include/quickfix/fix44/SecurityTypes.h new file mode 100644 index 000000000..6df19ee4d --- /dev/null +++ b/linux/include/quickfix/fix44/SecurityTypes.h @@ -0,0 +1,54 @@ +#ifndef FIX44_SECURITYTYPES_H +#define FIX44_SECURITYTYPES_H + +#include "Message.h" + +namespace FIX44 +{ + + class SecurityTypes : public Message + { + public: + SecurityTypes() : Message(MsgType()) {} + SecurityTypes(const FIX::Message& m) : Message(m) {} + SecurityTypes(const Message& m) : Message(m) {} + SecurityTypes(const SecurityTypes& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("w"); } + + SecurityTypes( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityResponseID& aSecurityResponseID, + const FIX::SecurityResponseType& aSecurityResponseType ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityResponseID); + set(aSecurityResponseType); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityResponseType); + FIELD_SET(*this, FIX::TotNoSecurityTypes); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoSecurityTypes); + class NoSecurityTypes: public FIX::Group + { + public: + NoSecurityTypes() : FIX::Group(558,167,FIX::message_order(167,762,460,461,0)) {} + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/SequenceReset.h b/linux/include/quickfix/fix44/SequenceReset.h new file mode 100644 index 000000000..b45ffaff3 --- /dev/null +++ b/linux/include/quickfix/fix44/SequenceReset.h @@ -0,0 +1,31 @@ +#ifndef FIX44_SEQUENCERESET_H +#define FIX44_SEQUENCERESET_H + +#include "Message.h" + +namespace FIX44 +{ + + class SequenceReset : public Message + { + public: + SequenceReset() : Message(MsgType()) {} + SequenceReset(const FIX::Message& m) : Message(m) {} + SequenceReset(const Message& m) : Message(m) {} + SequenceReset(const SequenceReset& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("4"); } + + SequenceReset( + const FIX::NewSeqNo& aNewSeqNo ) + : Message(MsgType()) + { + set(aNewSeqNo); + } + + FIELD_SET(*this, FIX::GapFillFlag); + FIELD_SET(*this, FIX::NewSeqNo); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/SettlementInstructionRequest.h b/linux/include/quickfix/fix44/SettlementInstructionRequest.h new file mode 100644 index 000000000..7d37d7d7f --- /dev/null +++ b/linux/include/quickfix/fix44/SettlementInstructionRequest.h @@ -0,0 +1,62 @@ +#ifndef FIX44_SETTLEMENTINSTRUCTIONREQUEST_H +#define FIX44_SETTLEMENTINSTRUCTIONREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class SettlementInstructionRequest : public Message + { + public: + SettlementInstructionRequest() : Message(MsgType()) {} + SettlementInstructionRequest(const FIX::Message& m) : Message(m) {} + SettlementInstructionRequest(const Message& m) : Message(m) {} + SettlementInstructionRequest(const SettlementInstructionRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AV"); } + + SettlementInstructionRequest( + const FIX::SettlInstReqID& aSettlInstReqID, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aSettlInstReqID); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::SettlInstReqID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::LastUpdateTime); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/SettlementInstructions.h b/linux/include/quickfix/fix44/SettlementInstructions.h new file mode 100644 index 000000000..4e8b0fae6 --- /dev/null +++ b/linux/include/quickfix/fix44/SettlementInstructions.h @@ -0,0 +1,88 @@ +#ifndef FIX44_SETTLEMENTINSTRUCTIONS_H +#define FIX44_SETTLEMENTINSTRUCTIONS_H + +#include "Message.h" + +namespace FIX44 +{ + + class SettlementInstructions : public Message + { + public: + SettlementInstructions() : Message(MsgType()) {} + SettlementInstructions(const FIX::Message& m) : Message(m) {} + SettlementInstructions(const Message& m) : Message(m) {} + SettlementInstructions(const SettlementInstructions& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("T"); } + + SettlementInstructions( + const FIX::SettlInstMsgID& aSettlInstMsgID, + const FIX::SettlInstMode& aSettlInstMode, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aSettlInstMsgID); + set(aSettlInstMode); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::SettlInstMsgID); + FIELD_SET(*this, FIX::SettlInstReqID); + FIELD_SET(*this, FIX::SettlInstMode); + FIELD_SET(*this, FIX::SettlInstReqRejCode); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoSettlInst); + class NoSettlInst: public FIX::Group + { + public: + NoSettlInst() : FIX::Group(778,162,FIX::message_order(162,163,214,453,54,460,167,461,168,126,779,172,169,170,171,492,476,488,489,503,490,491,504,505,0)) {} + FIELD_SET(*this, FIX::SettlInstID); + FIELD_SET(*this, FIX::SettlInstTransType); + FIELD_SET(*this, FIX::SettlInstRefID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::LastUpdateTime); + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + FIELD_SET(*this, FIX::PaymentMethod); + FIELD_SET(*this, FIX::PaymentRef); + FIELD_SET(*this, FIX::CardHolderName); + FIELD_SET(*this, FIX::CardNumber); + FIELD_SET(*this, FIX::CardStartDate); + FIELD_SET(*this, FIX::CardExpDate); + FIELD_SET(*this, FIX::CardIssNum); + FIELD_SET(*this, FIX::PaymentDate); + FIELD_SET(*this, FIX::PaymentRemitterID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/TestRequest.h b/linux/include/quickfix/fix44/TestRequest.h new file mode 100644 index 000000000..dc06760ab --- /dev/null +++ b/linux/include/quickfix/fix44/TestRequest.h @@ -0,0 +1,30 @@ +#ifndef FIX44_TESTREQUEST_H +#define FIX44_TESTREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class TestRequest : public Message + { + public: + TestRequest() : Message(MsgType()) {} + TestRequest(const FIX::Message& m) : Message(m) {} + TestRequest(const Message& m) : Message(m) {} + TestRequest(const TestRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("1"); } + + TestRequest( + const FIX::TestReqID& aTestReqID ) + : Message(MsgType()) + { + set(aTestReqID); + } + + FIELD_SET(*this, FIX::TestReqID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/TradeCaptureReport.h b/linux/include/quickfix/fix44/TradeCaptureReport.h new file mode 100644 index 000000000..f610ce393 --- /dev/null +++ b/linux/include/quickfix/fix44/TradeCaptureReport.h @@ -0,0 +1,444 @@ +#ifndef FIX44_TRADECAPTUREREPORT_H +#define FIX44_TRADECAPTUREREPORT_H + +#include "Message.h" + +namespace FIX44 +{ + + class TradeCaptureReport : public Message + { + public: + TradeCaptureReport() : Message(MsgType()) {} + TradeCaptureReport(const FIX::Message& m) : Message(m) {} + TradeCaptureReport(const Message& m) : Message(m) {} + TradeCaptureReport(const TradeCaptureReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AE"); } + + TradeCaptureReport( + const FIX::TradeReportID& aTradeReportID, + const FIX::PreviouslyReported& aPreviouslyReported, + const FIX::LastQty& aLastQty, + const FIX::LastPx& aLastPx, + const FIX::TradeDate& aTradeDate, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aTradeReportID); + set(aPreviouslyReported); + set(aLastQty); + set(aLastPx); + set(aTradeDate); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::TradeReportTransType); + FIELD_SET(*this, FIX::TradeReportType); + FIELD_SET(*this, FIX::TradeRequestID); + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::TrdSubType); + FIELD_SET(*this, FIX::SecondaryTrdType); + FIELD_SET(*this, FIX::TransferReason); + FIELD_SET(*this, FIX::ExecType); + FIELD_SET(*this, FIX::TotNumTradeReports); + FIELD_SET(*this, FIX::LastRptRequested); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TradeReportRefID); + FIELD_SET(*this, FIX::SecondaryTradeReportRefID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + FIELD_SET(*this, FIX::TradeLinkID); + FIELD_SET(*this, FIX::TrdMatchID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::ExecRestatementReason); + FIELD_SET(*this, FIX::PreviouslyReported); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::UnderlyingTradingSessionID); + FIELD_SET(*this, FIX::UnderlyingTradingSessionSubID); + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::LastSpotRate); + FIELD_SET(*this, FIX::LastForwardPoints); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::AvgPxIndicator); + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + }; + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::TradeLegRefID); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,687,690,683,564,565,539,654,566,587,588,637,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::LegPositionEffect); + FIELD_SET(*this, FIX::LegCoveredOrUncovered); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegPrice); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::LegLastPx); + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::NoSides); + class NoSides: public FIX::Group + { + public: + NoSides() : FIX::Group(552,54,FIX::message_order(54,37,198,11,526,66,453,1,660,581,81,575,576,578,579,821,15,376,377,528,529,582,40,18,483,336,625,943,12,13,479,497,381,157,230,158,159,738,920,921,922,238,237,118,119,120,155,156,77,58,354,355,752,518,232,136,825,826,591,70,78,0)) {} + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::OddLot); + FIELD_SET(*this, FIX::NoClearingInstructions); + class NoClearingInstructions: public FIX::Group + { + public: + NoClearingInstructions() : FIX::Group(576,577,FIX::message_order(577,0)) {} + FIELD_SET(*this, FIX::ClearingInstruction); + }; + FIELD_SET(*this, FIX::TradeInputSource); + FIELD_SET(*this, FIX::TradeInputDevice); + FIELD_SET(*this, FIX::OrderInputDevice); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::TransBkdTime); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TimeBracket); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::ExDate); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::SideMultiLegReportingType); + FIELD_SET(*this, FIX::NoContAmts); + class NoContAmts: public FIX::Group + { + public: + NoContAmts() : FIX::Group(518,519,FIX::message_order(519,520,521,0)) {} + FIELD_SET(*this, FIX::ContAmtType); + FIELD_SET(*this, FIX::ContAmtValue); + FIELD_SET(*this, FIX::ContAmtCurr); + }; + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::ExchangeRule); + FIELD_SET(*this, FIX::TradeAllocIndicator); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,756,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + }; + FIELD_SET(*this, FIX::CopyMsgIndicator); + FIELD_SET(*this, FIX::PublishTrdIndicator); + FIELD_SET(*this, FIX::ShortSaleReason); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/TradeCaptureReportAck.h b/linux/include/quickfix/fix44/TradeCaptureReportAck.h new file mode 100644 index 000000000..b566076c1 --- /dev/null +++ b/linux/include/quickfix/fix44/TradeCaptureReportAck.h @@ -0,0 +1,223 @@ +#ifndef FIX44_TRADECAPTUREREPORTACK_H +#define FIX44_TRADECAPTUREREPORTACK_H + +#include "Message.h" + +namespace FIX44 +{ + + class TradeCaptureReportAck : public Message + { + public: + TradeCaptureReportAck() : Message(MsgType()) {} + TradeCaptureReportAck(const FIX::Message& m) : Message(m) {} + TradeCaptureReportAck(const Message& m) : Message(m) {} + TradeCaptureReportAck(const TradeCaptureReportAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AR"); } + + TradeCaptureReportAck( + const FIX::TradeReportID& aTradeReportID, + const FIX::ExecType& aExecType ) + : Message(MsgType()) + { + set(aTradeReportID); + set(aExecType); + } + + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::TradeReportTransType); + FIELD_SET(*this, FIX::TradeReportType); + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::TrdSubType); + FIELD_SET(*this, FIX::SecondaryTrdType); + FIELD_SET(*this, FIX::TransferReason); + FIELD_SET(*this, FIX::ExecType); + FIELD_SET(*this, FIX::TradeReportRefID); + FIELD_SET(*this, FIX::SecondaryTradeReportRefID); + FIELD_SET(*this, FIX::TrdRptStatus); + FIELD_SET(*this, FIX::TradeReportRejectReason); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TradeLinkID); + FIELD_SET(*this, FIX::TrdMatchID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + }; + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,687,690,683,564,565,539,654,566,587,588,637,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::LegPositionEffect); + FIELD_SET(*this, FIX::LegCoveredOrUncovered); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegPrice); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::LegLastPx); + }; + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,756,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/TradeCaptureReportRequest.h b/linux/include/quickfix/fix44/TradeCaptureReportRequest.h new file mode 100644 index 000000000..d555477aa --- /dev/null +++ b/linux/include/quickfix/fix44/TradeCaptureReportRequest.h @@ -0,0 +1,235 @@ +#ifndef FIX44_TRADECAPTUREREPORTREQUEST_H +#define FIX44_TRADECAPTUREREPORTREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class TradeCaptureReportRequest : public Message + { + public: + TradeCaptureReportRequest() : Message(MsgType()) {} + TradeCaptureReportRequest(const FIX::Message& m) : Message(m) {} + TradeCaptureReportRequest(const Message& m) : Message(m) {} + TradeCaptureReportRequest(const TradeCaptureReportRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AD"); } + + TradeCaptureReportRequest( + const FIX::TradeRequestID& aTradeRequestID, + const FIX::TradeRequestType& aTradeRequestType ) + : Message(MsgType()) + { + set(aTradeRequestID); + set(aTradeRequestType); + } + + FIELD_SET(*this, FIX::TradeRequestID); + FIELD_SET(*this, FIX::TradeRequestType); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::ExecType); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::TrdSubType); + FIELD_SET(*this, FIX::TransferReason); + FIELD_SET(*this, FIX::SecondaryTrdType); + FIELD_SET(*this, FIX::TradeLinkID); + FIELD_SET(*this, FIX::TrdMatchID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoDates); + class NoDates: public FIX::Group + { + public: + NoDates() : FIX::Group(580,75,FIX::message_order(75,60,0)) {} + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + }; + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TimeBracket); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::TradeInputSource); + FIELD_SET(*this, FIX::TradeInputDevice); + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/TradeCaptureReportRequestAck.h b/linux/include/quickfix/fix44/TradeCaptureReportRequestAck.h new file mode 100644 index 000000000..6e1a92f54 --- /dev/null +++ b/linux/include/quickfix/fix44/TradeCaptureReportRequestAck.h @@ -0,0 +1,186 @@ +#ifndef FIX44_TRADECAPTUREREPORTREQUESTACK_H +#define FIX44_TRADECAPTUREREPORTREQUESTACK_H + +#include "Message.h" + +namespace FIX44 +{ + + class TradeCaptureReportRequestAck : public Message + { + public: + TradeCaptureReportRequestAck() : Message(MsgType()) {} + TradeCaptureReportRequestAck(const FIX::Message& m) : Message(m) {} + TradeCaptureReportRequestAck(const Message& m) : Message(m) {} + TradeCaptureReportRequestAck(const TradeCaptureReportRequestAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AQ"); } + + TradeCaptureReportRequestAck( + const FIX::TradeRequestID& aTradeRequestID, + const FIX::TradeRequestType& aTradeRequestType, + const FIX::TradeRequestResult& aTradeRequestResult, + const FIX::TradeRequestStatus& aTradeRequestStatus ) + : Message(MsgType()) + { + set(aTradeRequestID); + set(aTradeRequestType); + set(aTradeRequestResult); + set(aTradeRequestStatus); + } + + FIELD_SET(*this, FIX::TradeRequestID); + FIELD_SET(*this, FIX::TradeRequestType); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TotNumTradeReports); + FIELD_SET(*this, FIX::TradeRequestResult); + FIELD_SET(*this, FIX::TradeRequestStatus); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + }; + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/TradingSessionStatus.h b/linux/include/quickfix/fix44/TradingSessionStatus.h new file mode 100644 index 000000000..b0b4ba6f0 --- /dev/null +++ b/linux/include/quickfix/fix44/TradingSessionStatus.h @@ -0,0 +1,48 @@ +#ifndef FIX44_TRADINGSESSIONSTATUS_H +#define FIX44_TRADINGSESSIONSTATUS_H + +#include "Message.h" + +namespace FIX44 +{ + + class TradingSessionStatus : public Message + { + public: + TradingSessionStatus() : Message(MsgType()) {} + TradingSessionStatus(const FIX::Message& m) : Message(m) {} + TradingSessionStatus(const Message& m) : Message(m) {} + TradingSessionStatus(const TradingSessionStatus& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("h"); } + + TradingSessionStatus( + const FIX::TradingSessionID& aTradingSessionID, + const FIX::TradSesStatus& aTradSesStatus ) + : Message(MsgType()) + { + set(aTradingSessionID); + set(aTradSesStatus); + } + + FIELD_SET(*this, FIX::TradSesReqID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TradSesMethod); + FIELD_SET(*this, FIX::TradSesMode); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::TradSesStatus); + FIELD_SET(*this, FIX::TradSesStatusRejReason); + FIELD_SET(*this, FIX::TradSesStartTime); + FIELD_SET(*this, FIX::TradSesOpenTime); + FIELD_SET(*this, FIX::TradSesPreCloseTime); + FIELD_SET(*this, FIX::TradSesCloseTime); + FIELD_SET(*this, FIX::TradSesEndTime); + FIELD_SET(*this, FIX::TotalVolumeTraded); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/TradingSessionStatusRequest.h b/linux/include/quickfix/fix44/TradingSessionStatusRequest.h new file mode 100644 index 000000000..ea38ff424 --- /dev/null +++ b/linux/include/quickfix/fix44/TradingSessionStatusRequest.h @@ -0,0 +1,37 @@ +#ifndef FIX44_TRADINGSESSIONSTATUSREQUEST_H +#define FIX44_TRADINGSESSIONSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class TradingSessionStatusRequest : public Message + { + public: + TradingSessionStatusRequest() : Message(MsgType()) {} + TradingSessionStatusRequest(const FIX::Message& m) : Message(m) {} + TradingSessionStatusRequest(const Message& m) : Message(m) {} + TradingSessionStatusRequest(const TradingSessionStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("g"); } + + TradingSessionStatusRequest( + const FIX::TradSesReqID& aTradSesReqID, + const FIX::SubscriptionRequestType& aSubscriptionRequestType ) + : Message(MsgType()) + { + set(aTradSesReqID); + set(aSubscriptionRequestType); + } + + FIELD_SET(*this, FIX::TradSesReqID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TradSesMethod); + FIELD_SET(*this, FIX::TradSesMode); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/UserRequest.h b/linux/include/quickfix/fix44/UserRequest.h new file mode 100644 index 000000000..3fd8c5b32 --- /dev/null +++ b/linux/include/quickfix/fix44/UserRequest.h @@ -0,0 +1,40 @@ +#ifndef FIX44_USERREQUEST_H +#define FIX44_USERREQUEST_H + +#include "Message.h" + +namespace FIX44 +{ + + class UserRequest : public Message + { + public: + UserRequest() : Message(MsgType()) {} + UserRequest(const FIX::Message& m) : Message(m) {} + UserRequest(const Message& m) : Message(m) {} + UserRequest(const UserRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BE"); } + + UserRequest( + const FIX::UserRequestID& aUserRequestID, + const FIX::UserRequestType& aUserRequestType, + const FIX::Username& aUsername ) + : Message(MsgType()) + { + set(aUserRequestID); + set(aUserRequestType); + set(aUsername); + } + + FIELD_SET(*this, FIX::UserRequestID); + FIELD_SET(*this, FIX::UserRequestType); + FIELD_SET(*this, FIX::Username); + FIELD_SET(*this, FIX::Password); + FIELD_SET(*this, FIX::NewPassword); + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/UserResponse.h b/linux/include/quickfix/fix44/UserResponse.h new file mode 100644 index 000000000..9ccb90ebc --- /dev/null +++ b/linux/include/quickfix/fix44/UserResponse.h @@ -0,0 +1,35 @@ +#ifndef FIX44_USERRESPONSE_H +#define FIX44_USERRESPONSE_H + +#include "Message.h" + +namespace FIX44 +{ + + class UserResponse : public Message + { + public: + UserResponse() : Message(MsgType()) {} + UserResponse(const FIX::Message& m) : Message(m) {} + UserResponse(const Message& m) : Message(m) {} + UserResponse(const UserResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BF"); } + + UserResponse( + const FIX::UserRequestID& aUserRequestID, + const FIX::Username& aUsername ) + : Message(MsgType()) + { + set(aUserRequestID); + set(aUsername); + } + + FIELD_SET(*this, FIX::UserRequestID); + FIELD_SET(*this, FIX::Username); + FIELD_SET(*this, FIX::UserStatus); + FIELD_SET(*this, FIX::UserStatusText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix44/XMLnonFIX.h b/linux/include/quickfix/fix44/XMLnonFIX.h new file mode 100644 index 000000000..602249a81 --- /dev/null +++ b/linux/include/quickfix/fix44/XMLnonFIX.h @@ -0,0 +1,22 @@ +#ifndef FIX44_XMLNONFIX_H +#define FIX44_XMLNONFIX_H + +#include "Message.h" + +namespace FIX44 +{ + + class XMLnonFIX : public Message + { + public: + XMLnonFIX() : Message(MsgType()) {} + XMLnonFIX(const FIX::Message& m) : Message(m) {} + XMLnonFIX(const Message& m) : Message(m) {} + XMLnonFIX(const XMLnonFIX& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("n"); } + + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/AdjustedPositionReport.h b/linux/include/quickfix/fix50/AdjustedPositionReport.h new file mode 100644 index 000000000..d9098d4bf --- /dev/null +++ b/linux/include/quickfix/fix50/AdjustedPositionReport.h @@ -0,0 +1,135 @@ +#ifndef FIX50_ADJUSTEDPOSITIONREPORT_H +#define FIX50_ADJUSTEDPOSITIONREPORT_H + +#include "Message.h" + +namespace FIX50 +{ + + class AdjustedPositionReport : public Message + { + public: + AdjustedPositionReport() : Message(MsgType()) {} + AdjustedPositionReport(const FIX::Message& m) : Message(m) {} + AdjustedPositionReport(const Message& m) : Message(m) {} + AdjustedPositionReport(const AdjustedPositionReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BL"); } + + AdjustedPositionReport( + const FIX::PosMaintRptID& aPosMaintRptID, + const FIX::ClearingBusinessDate& aClearingBusinessDate ) + : Message(MsgType()) + { + set(aPosMaintRptID); + set(aClearingBusinessDate); + } + + FIELD_SET(*this, FIX::PosMaintRptID); + FIELD_SET(*this, FIX::PosReqType); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::PosMaintRptRefID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoPositions); + class NoPositions: public FIX::Group + { + public: + NoPositions() : FIX::Group(702,703,FIX::message_order(703,704,705,706,976,539,0)) {} + FIELD_SET(*this, FIX::PosType); + FIELD_SET(*this, FIX::LongQty); + FIELD_SET(*this, FIX::ShortQty); + FIELD_SET(*this, FIX::PosQtyStatus); + FIELD_SET(*this, FIX::QuantityDate); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::SettlPrice); + FIELD_SET(*this, FIX::PriorSettlPrice); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/Advertisement.h b/linux/include/quickfix/fix50/Advertisement.h new file mode 100644 index 000000000..232a0c4b3 --- /dev/null +++ b/linux/include/quickfix/fix50/Advertisement.h @@ -0,0 +1,216 @@ +#ifndef FIX50_ADVERTISEMENT_H +#define FIX50_ADVERTISEMENT_H + +#include "Message.h" + +namespace FIX50 +{ + + class Advertisement : public Message + { + public: + Advertisement() : Message(MsgType()) {} + Advertisement(const FIX::Message& m) : Message(m) {} + Advertisement(const Message& m) : Message(m) {} + Advertisement(const Advertisement& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("7"); } + + Advertisement( + const FIX::AdvId& aAdvId, + const FIX::AdvTransType& aAdvTransType, + const FIX::AdvSide& aAdvSide, + const FIX::Quantity& aQuantity ) + : Message(MsgType()) + { + set(aAdvId); + set(aAdvTransType); + set(aAdvSide); + set(aQuantity); + } + + FIELD_SET(*this, FIX::AdvId); + FIELD_SET(*this, FIX::AdvTransType); + FIELD_SET(*this, FIX::AdvRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::AdvSide); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::URLLink); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/AllocationInstruction.h b/linux/include/quickfix/fix50/AllocationInstruction.h new file mode 100644 index 000000000..0be4c9c50 --- /dev/null +++ b/linux/include/quickfix/fix50/AllocationInstruction.h @@ -0,0 +1,444 @@ +#ifndef FIX50_ALLOCATIONINSTRUCTION_H +#define FIX50_ALLOCATIONINSTRUCTION_H + +#include "Message.h" + +namespace FIX50 +{ + + class AllocationInstruction : public Message + { + public: + AllocationInstruction() : Message(MsgType()) {} + AllocationInstruction(const FIX::Message& m) : Message(m) {} + AllocationInstruction(const Message& m) : Message(m) {} + AllocationInstruction(const AllocationInstruction& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("J"); } + + AllocationInstruction( + const FIX::AllocID& aAllocID, + const FIX::AllocTransType& aAllocTransType, + const FIX::AllocType& aAllocType, + const FIX::Side& aSide, + const FIX::Quantity& aQuantity, + const FIX::TradeDate& aTradeDate ) + : Message(MsgType()) + { + set(aAllocID); + set(aAllocTransType); + set(aAllocType); + set(aSide); + set(aQuantity); + set(aTradeDate); + } + + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::AllocTransType); + FIELD_SET(*this, FIX::AllocType); + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::RefAllocID); + FIELD_SET(*this, FIX::AllocCancReplaceReason); + FIELD_SET(*this, FIX::AllocIntermedReqType); + FIELD_SET(*this, FIX::AllocLinkID); + FIELD_SET(*this, FIX::AllocLinkType); + FIELD_SET(*this, FIX::BookingRefID); + FIELD_SET(*this, FIX::AllocNoOrdersType); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,526,66,756,38,799,800,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrderAvgPx); + FIELD_SET(*this, FIX::OrderBookingQty); + }; + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,32,FIX::message_order(32,17,527,31,669,29,1003,1041,0)) {} + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::LastCapacity); + FIELD_SET(*this, FIX::TradeID); + FIELD_SET(*this, FIX::FirmTradeID); + }; + FIELD_SET(*this, FIX::PreviouslyReported); + FIELD_SET(*this, FIX::ReversalIndicator); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::AvgParPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::AvgPxPrecision); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::AutoAcceptIndicator); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::TotalAccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::LegalConfirm); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::TotNoAllocs); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,573,366,80,467,81,989,1002,993,1047,992,539,208,209,161,360,361,12,13,479,497,153,154,119,737,120,736,155,156,742,741,136,576,635,780,172,169,170,171,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::AllocPrice); + FIELD_SET(*this, FIX::AllocQty); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::SecondaryIndividualAllocID); + FIELD_SET(*this, FIX::AllocMethod); + FIELD_SET(*this, FIX::AllocCustomerCapacity); + FIELD_SET(*this, FIX::AllocPositionEffect); + FIELD_SET(*this, FIX::IndividualAllocType); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NotifyBrokerOfCredit); + FIELD_SET(*this, FIX::AllocHandlInst); + FIELD_SET(*this, FIX::AllocText); + FIELD_SET(*this, FIX::EncodedAllocTextLen); + FIELD_SET(*this, FIX::EncodedAllocText); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::AllocAvgPx); + FIELD_SET(*this, FIX::AllocNetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::AllocSettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::AllocAccruedInterestAmt); + FIELD_SET(*this, FIX::AllocInterestAtMaturity); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::NoClearingInstructions); + class NoClearingInstructions: public FIX::Group + { + public: + NoClearingInstructions() : FIX::Group(576,577,FIX::message_order(577,0)) {} + FIELD_SET(*this, FIX::ClearingInstruction); + }; + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::AllocSettlInstType); + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + }; + FIELD_SET(*this, FIX::AvgPxIndicator); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::TrdSubType); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::TradeInputSource); + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::MessageEventSource); + FIELD_SET(*this, FIX::RndPx); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/AllocationInstructionAck.h b/linux/include/quickfix/fix50/AllocationInstructionAck.h new file mode 100644 index 000000000..966f94d35 --- /dev/null +++ b/linux/include/quickfix/fix50/AllocationInstructionAck.h @@ -0,0 +1,98 @@ +#ifndef FIX50_ALLOCATIONINSTRUCTIONACK_H +#define FIX50_ALLOCATIONINSTRUCTIONACK_H + +#include "Message.h" + +namespace FIX50 +{ + + class AllocationInstructionAck : public Message + { + public: + AllocationInstructionAck() : Message(MsgType()) {} + AllocationInstructionAck(const FIX::Message& m) : Message(m) {} + AllocationInstructionAck(const Message& m) : Message(m) {} + AllocationInstructionAck(const AllocationInstructionAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("P"); } + + AllocationInstructionAck( + const FIX::AllocID& aAllocID, + const FIX::AllocStatus& aAllocStatus ) + : Message(MsgType()) + { + set(aAllocID); + set(aAllocStatus); + } + + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::AllocStatus); + FIELD_SET(*this, FIX::AllocRejCode); + FIELD_SET(*this, FIX::AllocType); + FIELD_SET(*this, FIX::AllocIntermedReqType); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,366,1047,467,776,539,161,360,361,989,993,992,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocPrice); + FIELD_SET(*this, FIX::AllocPositionEffect); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::IndividualAllocRejCode); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocText); + FIELD_SET(*this, FIX::EncodedAllocTextLen); + FIELD_SET(*this, FIX::EncodedAllocText); + FIELD_SET(*this, FIX::SecondaryIndividualAllocID); + FIELD_SET(*this, FIX::AllocCustomerCapacity); + FIELD_SET(*this, FIX::IndividualAllocType); + FIELD_SET(*this, FIX::AllocQty); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/AllocationInstructionAlert.h b/linux/include/quickfix/fix50/AllocationInstructionAlert.h new file mode 100644 index 000000000..7d128d162 --- /dev/null +++ b/linux/include/quickfix/fix50/AllocationInstructionAlert.h @@ -0,0 +1,444 @@ +#ifndef FIX50_ALLOCATIONINSTRUCTIONALERT_H +#define FIX50_ALLOCATIONINSTRUCTIONALERT_H + +#include "Message.h" + +namespace FIX50 +{ + + class AllocationInstructionAlert : public Message + { + public: + AllocationInstructionAlert() : Message(MsgType()) {} + AllocationInstructionAlert(const FIX::Message& m) : Message(m) {} + AllocationInstructionAlert(const Message& m) : Message(m) {} + AllocationInstructionAlert(const AllocationInstructionAlert& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BM"); } + + AllocationInstructionAlert( + const FIX::AllocID& aAllocID, + const FIX::AllocTransType& aAllocTransType, + const FIX::AllocType& aAllocType, + const FIX::Side& aSide, + const FIX::Quantity& aQuantity, + const FIX::TradeDate& aTradeDate ) + : Message(MsgType()) + { + set(aAllocID); + set(aAllocTransType); + set(aAllocType); + set(aSide); + set(aQuantity); + set(aTradeDate); + } + + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::AllocTransType); + FIELD_SET(*this, FIX::AllocType); + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::RefAllocID); + FIELD_SET(*this, FIX::AllocCancReplaceReason); + FIELD_SET(*this, FIX::AllocIntermedReqType); + FIELD_SET(*this, FIX::AllocLinkID); + FIELD_SET(*this, FIX::AllocLinkType); + FIELD_SET(*this, FIX::BookingRefID); + FIELD_SET(*this, FIX::AllocNoOrdersType); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,526,66,756,38,799,800,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrderAvgPx); + FIELD_SET(*this, FIX::OrderBookingQty); + }; + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,32,FIX::message_order(32,17,527,31,669,29,1003,1041,0)) {} + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::LastCapacity); + FIELD_SET(*this, FIX::TradeID); + FIELD_SET(*this, FIX::FirmTradeID); + }; + FIELD_SET(*this, FIX::PreviouslyReported); + FIELD_SET(*this, FIX::ReversalIndicator); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::AvgParPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::AvgPxPrecision); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::AutoAcceptIndicator); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::TotalAccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::LegalConfirm); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::TotNoAllocs); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,573,366,80,467,81,989,1002,993,1047,992,539,208,209,161,360,361,12,13,479,497,153,154,119,737,120,736,155,156,742,741,136,576,635,780,172,169,170,171,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::AllocPrice); + FIELD_SET(*this, FIX::AllocQty); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::SecondaryIndividualAllocID); + FIELD_SET(*this, FIX::AllocMethod); + FIELD_SET(*this, FIX::AllocCustomerCapacity); + FIELD_SET(*this, FIX::AllocPositionEffect); + FIELD_SET(*this, FIX::IndividualAllocType); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NotifyBrokerOfCredit); + FIELD_SET(*this, FIX::AllocHandlInst); + FIELD_SET(*this, FIX::AllocText); + FIELD_SET(*this, FIX::EncodedAllocTextLen); + FIELD_SET(*this, FIX::EncodedAllocText); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::AllocAvgPx); + FIELD_SET(*this, FIX::AllocNetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::AllocSettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::AllocAccruedInterestAmt); + FIELD_SET(*this, FIX::AllocInterestAtMaturity); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::NoClearingInstructions); + class NoClearingInstructions: public FIX::Group + { + public: + NoClearingInstructions() : FIX::Group(576,577,FIX::message_order(577,0)) {} + FIELD_SET(*this, FIX::ClearingInstruction); + }; + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::AllocSettlInstType); + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + }; + FIELD_SET(*this, FIX::AvgPxIndicator); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::TrdSubType); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::TradeInputSource); + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::MessageEventSource); + FIELD_SET(*this, FIX::RndPx); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/AllocationReport.h b/linux/include/quickfix/fix50/AllocationReport.h new file mode 100644 index 000000000..30f1e9a73 --- /dev/null +++ b/linux/include/quickfix/fix50/AllocationReport.h @@ -0,0 +1,453 @@ +#ifndef FIX50_ALLOCATIONREPORT_H +#define FIX50_ALLOCATIONREPORT_H + +#include "Message.h" + +namespace FIX50 +{ + + class AllocationReport : public Message + { + public: + AllocationReport() : Message(MsgType()) {} + AllocationReport(const FIX::Message& m) : Message(m) {} + AllocationReport(const Message& m) : Message(m) {} + AllocationReport(const AllocationReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AS"); } + + AllocationReport( + const FIX::AllocReportID& aAllocReportID, + const FIX::AllocTransType& aAllocTransType, + const FIX::AllocReportType& aAllocReportType, + const FIX::AllocStatus& aAllocStatus, + const FIX::Side& aSide, + const FIX::Quantity& aQuantity, + const FIX::AvgPx& aAvgPx, + const FIX::TradeDate& aTradeDate ) + : Message(MsgType()) + { + set(aAllocReportID); + set(aAllocTransType); + set(aAllocReportType); + set(aAllocStatus); + set(aSide); + set(aQuantity); + set(aAvgPx); + set(aTradeDate); + } + + FIELD_SET(*this, FIX::AllocReportID); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::AllocTransType); + FIELD_SET(*this, FIX::AllocReportRefID); + FIELD_SET(*this, FIX::AllocCancReplaceReason); + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::AllocReportType); + FIELD_SET(*this, FIX::AllocStatus); + FIELD_SET(*this, FIX::AllocRejCode); + FIELD_SET(*this, FIX::RefAllocID); + FIELD_SET(*this, FIX::AllocIntermedReqType); + FIELD_SET(*this, FIX::AllocLinkID); + FIELD_SET(*this, FIX::AllocLinkType); + FIELD_SET(*this, FIX::BookingRefID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::TrdSubType); + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::TradeInputSource); + FIELD_SET(*this, FIX::RndPx); + FIELD_SET(*this, FIX::MessageEventSource); + FIELD_SET(*this, FIX::TradeInputDevice); + FIELD_SET(*this, FIX::AvgPxIndicator); + FIELD_SET(*this, FIX::AllocNoOrdersType); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,526,66,756,38,799,800,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrderAvgPx); + FIELD_SET(*this, FIX::OrderBookingQty); + }; + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,32,FIX::message_order(32,17,527,31,669,29,1003,1041,0)) {} + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::LastCapacity); + FIELD_SET(*this, FIX::TradeID); + FIELD_SET(*this, FIX::FirmTradeID); + }; + FIELD_SET(*this, FIX::PreviouslyReported); + FIELD_SET(*this, FIX::ReversalIndicator); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::AvgParPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::AvgPxPrecision); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::AutoAcceptIndicator); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::TotalAccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::LegalConfirm); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::TotNoAllocs); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,573,366,80,467,81,989,1002,993,1047,992,539,208,209,161,360,361,12,13,479,497,153,154,119,737,120,736,155,156,742,741,136,576,635,780,172,169,170,171,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::AllocPrice); + FIELD_SET(*this, FIX::AllocQty); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::SecondaryIndividualAllocID); + FIELD_SET(*this, FIX::AllocMethod); + FIELD_SET(*this, FIX::AllocCustomerCapacity); + FIELD_SET(*this, FIX::AllocPositionEffect); + FIELD_SET(*this, FIX::IndividualAllocType); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NotifyBrokerOfCredit); + FIELD_SET(*this, FIX::AllocHandlInst); + FIELD_SET(*this, FIX::AllocText); + FIELD_SET(*this, FIX::EncodedAllocTextLen); + FIELD_SET(*this, FIX::EncodedAllocText); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::AllocAvgPx); + FIELD_SET(*this, FIX::AllocNetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::AllocSettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::AllocAccruedInterestAmt); + FIELD_SET(*this, FIX::AllocInterestAtMaturity); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::NoClearingInstructions); + class NoClearingInstructions: public FIX::Group + { + public: + NoClearingInstructions() : FIX::Group(576,577,FIX::message_order(577,0)) {} + FIELD_SET(*this, FIX::ClearingInstruction); + }; + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::AllocSettlInstType); + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/AllocationReportAck.h b/linux/include/quickfix/fix50/AllocationReportAck.h new file mode 100644 index 000000000..c31722e53 --- /dev/null +++ b/linux/include/quickfix/fix50/AllocationReportAck.h @@ -0,0 +1,103 @@ +#ifndef FIX50_ALLOCATIONREPORTACK_H +#define FIX50_ALLOCATIONREPORTACK_H + +#include "Message.h" + +namespace FIX50 +{ + + class AllocationReportAck : public Message + { + public: + AllocationReportAck() : Message(MsgType()) {} + AllocationReportAck(const FIX::Message& m) : Message(m) {} + AllocationReportAck(const Message& m) : Message(m) {} + AllocationReportAck(const AllocationReportAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AT"); } + + AllocationReportAck( + const FIX::AllocReportID& aAllocReportID, + const FIX::AllocID& aAllocID ) + : Message(MsgType()) + { + set(aAllocReportID); + set(aAllocID); + } + + FIELD_SET(*this, FIX::AllocReportID); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::AvgPxIndicator); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::AllocTransType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::AllocStatus); + FIELD_SET(*this, FIX::AllocRejCode); + FIELD_SET(*this, FIX::AllocReportType); + FIELD_SET(*this, FIX::AllocIntermedReqType); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,366,1047,467,776,539,161,360,361,989,993,992,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocPrice); + FIELD_SET(*this, FIX::AllocPositionEffect); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::IndividualAllocRejCode); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocText); + FIELD_SET(*this, FIX::EncodedAllocTextLen); + FIELD_SET(*this, FIX::EncodedAllocText); + FIELD_SET(*this, FIX::SecondaryIndividualAllocID); + FIELD_SET(*this, FIX::AllocCustomerCapacity); + FIELD_SET(*this, FIX::IndividualAllocType); + FIELD_SET(*this, FIX::AllocQty); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/AssignmentReport.h b/linux/include/quickfix/fix50/AssignmentReport.h new file mode 100644 index 000000000..3df0d598d --- /dev/null +++ b/linux/include/quickfix/fix50/AssignmentReport.h @@ -0,0 +1,271 @@ +#ifndef FIX50_ASSIGNMENTREPORT_H +#define FIX50_ASSIGNMENTREPORT_H + +#include "Message.h" + +namespace FIX50 +{ + + class AssignmentReport : public Message + { + public: + AssignmentReport() : Message(MsgType()) {} + AssignmentReport(const FIX::Message& m) : Message(m) {} + AssignmentReport(const Message& m) : Message(m) {} + AssignmentReport(const AssignmentReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AW"); } + + AssignmentReport( + const FIX::AsgnRptID& aAsgnRptID, + const FIX::ClearingBusinessDate& aClearingBusinessDate ) + : Message(MsgType()) + { + set(aAsgnRptID); + set(aClearingBusinessDate); + } + + FIELD_SET(*this, FIX::AsgnRptID); + FIELD_SET(*this, FIX::TotNumAssignmentReports); + FIELD_SET(*this, FIX::LastRptRequested); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoPositions); + class NoPositions: public FIX::Group + { + public: + NoPositions() : FIX::Group(702,703,FIX::message_order(703,704,705,706,976,539,0)) {} + FIELD_SET(*this, FIX::PosType); + FIELD_SET(*this, FIX::LongQty); + FIELD_SET(*this, FIX::ShortQty); + FIELD_SET(*this, FIX::PosQtyStatus); + FIELD_SET(*this, FIX::QuantityDate); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::ThresholdAmount); + FIELD_SET(*this, FIX::SettlPrice); + FIELD_SET(*this, FIX::SettlPriceType); + FIELD_SET(*this, FIX::UnderlyingSettlPrice); + FIELD_SET(*this, FIX::PriorSettlPrice); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::AssignmentMethod); + FIELD_SET(*this, FIX::AssignmentUnit); + FIELD_SET(*this, FIX::OpenInterest); + FIELD_SET(*this, FIX::ExerciseMethod); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/BidRequest.h b/linux/include/quickfix/fix50/BidRequest.h new file mode 100644 index 000000000..937f8bc40 --- /dev/null +++ b/linux/include/quickfix/fix50/BidRequest.h @@ -0,0 +1,98 @@ +#ifndef FIX50_BIDREQUEST_H +#define FIX50_BIDREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class BidRequest : public Message + { + public: + BidRequest() : Message(MsgType()) {} + BidRequest(const FIX::Message& m) : Message(m) {} + BidRequest(const Message& m) : Message(m) {} + BidRequest(const BidRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("k"); } + + BidRequest( + const FIX::ClientBidID& aClientBidID, + const FIX::BidRequestTransType& aBidRequestTransType, + const FIX::TotNoRelatedSym& aTotNoRelatedSym, + const FIX::BidType& aBidType, + const FIX::BidTradeType& aBidTradeType, + const FIX::BasisPxType& aBasisPxType ) + : Message(MsgType()) + { + set(aClientBidID); + set(aBidRequestTransType); + set(aTotNoRelatedSym); + set(aBidType); + set(aBidTradeType); + set(aBasisPxType); + } + + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::BidRequestTransType); + FIELD_SET(*this, FIX::ListName); + FIELD_SET(*this, FIX::TotNoRelatedSym); + FIELD_SET(*this, FIX::BidType); + FIELD_SET(*this, FIX::NumTickets); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SideValue1); + FIELD_SET(*this, FIX::SideValue2); + FIELD_SET(*this, FIX::NoBidDescriptors); + class NoBidDescriptors: public FIX::Group + { + public: + NoBidDescriptors() : FIX::Group(398,399,FIX::message_order(399,400,401,404,441,402,403,405,406,407,408,0)) {} + FIELD_SET(*this, FIX::BidDescriptorType); + FIELD_SET(*this, FIX::BidDescriptor); + FIELD_SET(*this, FIX::SideValueInd); + FIELD_SET(*this, FIX::LiquidityValue); + FIELD_SET(*this, FIX::LiquidityNumSecurities); + FIELD_SET(*this, FIX::LiquidityPctLow); + FIELD_SET(*this, FIX::LiquidityPctHigh); + FIELD_SET(*this, FIX::EFPTrackingError); + FIELD_SET(*this, FIX::FairValue); + FIELD_SET(*this, FIX::OutsideIndexPct); + FIELD_SET(*this, FIX::ValueOfFutures); + }; + FIELD_SET(*this, FIX::NoBidComponents); + class NoBidComponents: public FIX::Group + { + public: + NoBidComponents() : FIX::Group(420,66,FIX::message_order(66,54,336,625,430,63,64,1,660,0)) {} + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NetGrossInd); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + }; + FIELD_SET(*this, FIX::LiquidityIndType); + FIELD_SET(*this, FIX::WtAverageLiquidity); + FIELD_SET(*this, FIX::ExchangeForPhysical); + FIELD_SET(*this, FIX::OutMainCntryUIndex); + FIELD_SET(*this, FIX::CrossPercent); + FIELD_SET(*this, FIX::ProgRptReqs); + FIELD_SET(*this, FIX::ProgPeriodInterval); + FIELD_SET(*this, FIX::IncTaxInd); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::NumBidders); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::BidTradeType); + FIELD_SET(*this, FIX::BasisPxType); + FIELD_SET(*this, FIX::StrikeTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/BidResponse.h b/linux/include/quickfix/fix50/BidResponse.h new file mode 100644 index 000000000..d054555be --- /dev/null +++ b/linux/include/quickfix/fix50/BidResponse.h @@ -0,0 +1,48 @@ +#ifndef FIX50_BIDRESPONSE_H +#define FIX50_BIDRESPONSE_H + +#include "Message.h" + +namespace FIX50 +{ + + class BidResponse : public Message + { + public: + BidResponse() : Message(MsgType()) {} + BidResponse(const FIX::Message& m) : Message(m) {} + BidResponse(const Message& m) : Message(m) {} + BidResponse(const BidResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("l"); } + + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::NoBidComponents); + class NoBidComponents: public FIX::Group + { + public: + NoBidComponents() : FIX::Group(420,12,FIX::message_order(12,13,479,497,66,421,54,44,423,406,430,63,64,336,625,58,354,355,0)) {} + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Country); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::FairValue); + FIELD_SET(*this, FIX::NetGrossInd); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/BusinessMessageReject.h b/linux/include/quickfix/fix50/BusinessMessageReject.h new file mode 100644 index 000000000..1f99393b6 --- /dev/null +++ b/linux/include/quickfix/fix50/BusinessMessageReject.h @@ -0,0 +1,38 @@ +#ifndef FIX50_BUSINESSMESSAGEREJECT_H +#define FIX50_BUSINESSMESSAGEREJECT_H + +#include "Message.h" + +namespace FIX50 +{ + + class BusinessMessageReject : public Message + { + public: + BusinessMessageReject() : Message(MsgType()) {} + BusinessMessageReject(const FIX::Message& m) : Message(m) {} + BusinessMessageReject(const Message& m) : Message(m) {} + BusinessMessageReject(const BusinessMessageReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("j"); } + + BusinessMessageReject( + const FIX::RefMsgType& aRefMsgType, + const FIX::BusinessRejectReason& aBusinessRejectReason ) + : Message(MsgType()) + { + set(aRefMsgType); + set(aBusinessRejectReason); + } + + FIELD_SET(*this, FIX::RefSeqNum); + FIELD_SET(*this, FIX::RefMsgType); + FIELD_SET(*this, FIX::BusinessRejectRefID); + FIELD_SET(*this, FIX::BusinessRejectReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/CollateralAssignment.h b/linux/include/quickfix/fix50/CollateralAssignment.h new file mode 100644 index 000000000..4011e9141 --- /dev/null +++ b/linux/include/quickfix/fix50/CollateralAssignment.h @@ -0,0 +1,318 @@ +#ifndef FIX50_COLLATERALASSIGNMENT_H +#define FIX50_COLLATERALASSIGNMENT_H + +#include "Message.h" + +namespace FIX50 +{ + + class CollateralAssignment : public Message + { + public: + CollateralAssignment() : Message(MsgType()) {} + CollateralAssignment(const FIX::Message& m) : Message(m) {} + CollateralAssignment(const Message& m) : Message(m) {} + CollateralAssignment(const CollateralAssignment& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AY"); } + + CollateralAssignment( + const FIX::CollAsgnID& aCollAsgnID, + const FIX::CollAsgnReason& aCollAsgnReason, + const FIX::CollAsgnTransType& aCollAsgnTransType, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aCollAsgnID); + set(aCollAsgnReason); + set(aCollAsgnTransType); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::CollAsgnID); + FIELD_SET(*this, FIX::CollReqID); + FIELD_SET(*this, FIX::CollAsgnReason); + FIELD_SET(*this, FIX::CollAsgnTransType); + FIELD_SET(*this, FIX::CollAsgnRefID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,944,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::CollAction); + }; + FIELD_SET(*this, FIX::MarginExcess); + FIELD_SET(*this, FIX::TotalNetValue); + FIELD_SET(*this, FIX::CashOutstanding); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/CollateralInquiry.h b/linux/include/quickfix/fix50/CollateralInquiry.h new file mode 100644 index 000000000..82f272a20 --- /dev/null +++ b/linux/include/quickfix/fix50/CollateralInquiry.h @@ -0,0 +1,298 @@ +#ifndef FIX50_COLLATERALINQUIRY_H +#define FIX50_COLLATERALINQUIRY_H + +#include "Message.h" + +namespace FIX50 +{ + + class CollateralInquiry : public Message + { + public: + CollateralInquiry() : Message(MsgType()) {} + CollateralInquiry(const FIX::Message& m) : Message(m) {} + CollateralInquiry(const Message& m) : Message(m) {} + CollateralInquiry(const CollateralInquiry& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BB"); } + + FIELD_SET(*this, FIX::CollInquiryID); + FIELD_SET(*this, FIX::NoCollInquiryQualifier); + class NoCollInquiryQualifier: public FIX::Group + { + public: + NoCollInquiryQualifier() : FIX::Group(938,896,FIX::message_order(896,0)) {} + FIELD_SET(*this, FIX::CollInquiryQualifier); + }; + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::MarginExcess); + FIELD_SET(*this, FIX::TotalNetValue); + FIELD_SET(*this, FIX::CashOutstanding); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/CollateralInquiryAck.h b/linux/include/quickfix/fix50/CollateralInquiryAck.h new file mode 100644 index 000000000..0e9593357 --- /dev/null +++ b/linux/include/quickfix/fix50/CollateralInquiryAck.h @@ -0,0 +1,267 @@ +#ifndef FIX50_COLLATERALINQUIRYACK_H +#define FIX50_COLLATERALINQUIRYACK_H + +#include "Message.h" + +namespace FIX50 +{ + + class CollateralInquiryAck : public Message + { + public: + CollateralInquiryAck() : Message(MsgType()) {} + CollateralInquiryAck(const FIX::Message& m) : Message(m) {} + CollateralInquiryAck(const Message& m) : Message(m) {} + CollateralInquiryAck(const CollateralInquiryAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BG"); } + + CollateralInquiryAck( + const FIX::CollInquiryID& aCollInquiryID, + const FIX::CollInquiryStatus& aCollInquiryStatus ) + : Message(MsgType()) + { + set(aCollInquiryID); + set(aCollInquiryStatus); + } + + FIELD_SET(*this, FIX::CollInquiryID); + FIELD_SET(*this, FIX::CollInquiryStatus); + FIELD_SET(*this, FIX::CollInquiryResult); + FIELD_SET(*this, FIX::NoCollInquiryQualifier); + class NoCollInquiryQualifier: public FIX::Group + { + public: + NoCollInquiryQualifier() : FIX::Group(938,896,FIX::message_order(896,0)) {} + FIELD_SET(*this, FIX::CollInquiryQualifier); + }; + FIELD_SET(*this, FIX::TotNumReports); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/CollateralReport.h b/linux/include/quickfix/fix50/CollateralReport.h new file mode 100644 index 000000000..7aac3dfde --- /dev/null +++ b/linux/include/quickfix/fix50/CollateralReport.h @@ -0,0 +1,314 @@ +#ifndef FIX50_COLLATERALREPORT_H +#define FIX50_COLLATERALREPORT_H + +#include "Message.h" + +namespace FIX50 +{ + + class CollateralReport : public Message + { + public: + CollateralReport() : Message(MsgType()) {} + CollateralReport(const FIX::Message& m) : Message(m) {} + CollateralReport(const Message& m) : Message(m) {} + CollateralReport(const CollateralReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BA"); } + + CollateralReport( + const FIX::CollRptID& aCollRptID, + const FIX::CollStatus& aCollStatus ) + : Message(MsgType()) + { + set(aCollRptID); + set(aCollStatus); + } + + FIELD_SET(*this, FIX::CollRptID); + FIELD_SET(*this, FIX::CollInquiryID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::CollApplType); + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::CollStatus); + FIELD_SET(*this, FIX::TotNumReports); + FIELD_SET(*this, FIX::LastRptRequested); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::MarginExcess); + FIELD_SET(*this, FIX::TotalNetValue); + FIELD_SET(*this, FIX::CashOutstanding); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/CollateralRequest.h b/linux/include/quickfix/fix50/CollateralRequest.h new file mode 100644 index 000000000..22e1e2ec3 --- /dev/null +++ b/linux/include/quickfix/fix50/CollateralRequest.h @@ -0,0 +1,309 @@ +#ifndef FIX50_COLLATERALREQUEST_H +#define FIX50_COLLATERALREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class CollateralRequest : public Message + { + public: + CollateralRequest() : Message(MsgType()) {} + CollateralRequest(const FIX::Message& m) : Message(m) {} + CollateralRequest(const Message& m) : Message(m) {} + CollateralRequest(const CollateralRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AX"); } + + CollateralRequest( + const FIX::CollReqID& aCollReqID, + const FIX::CollAsgnReason& aCollAsgnReason, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aCollReqID); + set(aCollAsgnReason); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::CollReqID); + FIELD_SET(*this, FIX::CollAsgnReason); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,944,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::CollAction); + }; + FIELD_SET(*this, FIX::MarginExcess); + FIELD_SET(*this, FIX::TotalNetValue); + FIELD_SET(*this, FIX::CashOutstanding); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/CollateralResponse.h b/linux/include/quickfix/fix50/CollateralResponse.h new file mode 100644 index 000000000..a51c93a54 --- /dev/null +++ b/linux/include/quickfix/fix50/CollateralResponse.h @@ -0,0 +1,311 @@ +#ifndef FIX50_COLLATERALRESPONSE_H +#define FIX50_COLLATERALRESPONSE_H + +#include "Message.h" + +namespace FIX50 +{ + + class CollateralResponse : public Message + { + public: + CollateralResponse() : Message(MsgType()) {} + CollateralResponse(const FIX::Message& m) : Message(m) {} + CollateralResponse(const Message& m) : Message(m) {} + CollateralResponse(const CollateralResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AZ"); } + + CollateralResponse( + const FIX::CollRespID& aCollRespID, + const FIX::CollAsgnRespType& aCollAsgnRespType, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aCollRespID); + set(aCollAsgnRespType); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::CollRespID); + FIELD_SET(*this, FIX::CollAsgnID); + FIELD_SET(*this, FIX::CollReqID); + FIELD_SET(*this, FIX::CollAsgnReason); + FIELD_SET(*this, FIX::CollAsgnTransType); + FIELD_SET(*this, FIX::CollAsgnRespType); + FIELD_SET(*this, FIX::CollAsgnRejectReason); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::CollApplType); + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,944,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::CollAction); + }; + FIELD_SET(*this, FIX::MarginExcess); + FIELD_SET(*this, FIX::TotalNetValue); + FIELD_SET(*this, FIX::CashOutstanding); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/Confirmation.h b/linux/include/quickfix/fix50/Confirmation.h new file mode 100644 index 000000000..dda43eeba --- /dev/null +++ b/linux/include/quickfix/fix50/Confirmation.h @@ -0,0 +1,385 @@ +#ifndef FIX50_CONFIRMATION_H +#define FIX50_CONFIRMATION_H + +#include "Message.h" + +namespace FIX50 +{ + + class Confirmation : public Message + { + public: + Confirmation() : Message(MsgType()) {} + Confirmation(const FIX::Message& m) : Message(m) {} + Confirmation(const Message& m) : Message(m) {} + Confirmation(const Confirmation& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AK"); } + + Confirmation( + const FIX::ConfirmID& aConfirmID, + const FIX::ConfirmTransType& aConfirmTransType, + const FIX::ConfirmType& aConfirmType, + const FIX::ConfirmStatus& aConfirmStatus, + const FIX::TransactTime& aTransactTime, + const FIX::TradeDate& aTradeDate, + const FIX::AllocQty& aAllocQty, + const FIX::Side& aSide, + const FIX::AllocAccount& aAllocAccount, + const FIX::AvgPx& aAvgPx, + const FIX::GrossTradeAmt& aGrossTradeAmt, + const FIX::NetMoney& aNetMoney ) + : Message(MsgType()) + { + set(aConfirmID); + set(aConfirmTransType); + set(aConfirmType); + set(aConfirmStatus); + set(aTransactTime); + set(aTradeDate); + set(aAllocQty); + set(aSide); + set(aAllocAccount); + set(aAvgPx); + set(aGrossTradeAmt); + set(aNetMoney); + } + + FIELD_SET(*this, FIX::ConfirmID); + FIELD_SET(*this, FIX::ConfirmRefID); + FIELD_SET(*this, FIX::ConfirmReqID); + FIELD_SET(*this, FIX::ConfirmTransType); + FIELD_SET(*this, FIX::ConfirmType); + FIELD_SET(*this, FIX::CopyMsgIndicator); + FIELD_SET(*this, FIX::LegalConfirm); + FIELD_SET(*this, FIX::ConfirmStatus); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,526,66,756,38,799,800,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrderAvgPx); + FIELD_SET(*this, FIX::OrderBookingQty); + }; + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::AllocQty); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::NoCapacities); + class NoCapacities: public FIX::Group + { + public: + NoCapacities() : FIX::Group(862,528,FIX::message_order(528,529,863,0)) {} + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::OrderCapacityQty); + }; + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocAccountType); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::AvgPxPrecision); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AvgParPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::ReportedPx); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::ExDate); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::MaturityNetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::SharedCommission); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/ConfirmationAck.h b/linux/include/quickfix/fix50/ConfirmationAck.h new file mode 100644 index 000000000..ba8d86d32 --- /dev/null +++ b/linux/include/quickfix/fix50/ConfirmationAck.h @@ -0,0 +1,44 @@ +#ifndef FIX50_CONFIRMATIONACK_H +#define FIX50_CONFIRMATIONACK_H + +#include "Message.h" + +namespace FIX50 +{ + + class ConfirmationAck : public Message + { + public: + ConfirmationAck() : Message(MsgType()) {} + ConfirmationAck(const FIX::Message& m) : Message(m) {} + ConfirmationAck(const Message& m) : Message(m) {} + ConfirmationAck(const ConfirmationAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AU"); } + + ConfirmationAck( + const FIX::ConfirmID& aConfirmID, + const FIX::TradeDate& aTradeDate, + const FIX::TransactTime& aTransactTime, + const FIX::AffirmStatus& aAffirmStatus ) + : Message(MsgType()) + { + set(aConfirmID); + set(aTradeDate); + set(aTransactTime); + set(aAffirmStatus); + } + + FIELD_SET(*this, FIX::ConfirmID); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::AffirmStatus); + FIELD_SET(*this, FIX::ConfirmRejReason); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/ConfirmationRequest.h b/linux/include/quickfix/fix50/ConfirmationRequest.h new file mode 100644 index 000000000..6653fce3a --- /dev/null +++ b/linux/include/quickfix/fix50/ConfirmationRequest.h @@ -0,0 +1,76 @@ +#ifndef FIX50_CONFIRMATIONREQUEST_H +#define FIX50_CONFIRMATIONREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class ConfirmationRequest : public Message + { + public: + ConfirmationRequest() : Message(MsgType()) {} + ConfirmationRequest(const FIX::Message& m) : Message(m) {} + ConfirmationRequest(const Message& m) : Message(m) {} + ConfirmationRequest(const ConfirmationRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BH"); } + + ConfirmationRequest( + const FIX::ConfirmReqID& aConfirmReqID, + const FIX::ConfirmType& aConfirmType, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aConfirmReqID); + set(aConfirmType); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::ConfirmReqID); + FIELD_SET(*this, FIX::ConfirmType); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,526,66,756,38,799,800,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrderAvgPx); + FIELD_SET(*this, FIX::OrderBookingQty); + }; + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocAccountType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/ContraryIntentionReport.h b/linux/include/quickfix/fix50/ContraryIntentionReport.h new file mode 100644 index 000000000..467eb72fd --- /dev/null +++ b/linux/include/quickfix/fix50/ContraryIntentionReport.h @@ -0,0 +1,178 @@ +#ifndef FIX50_CONTRARYINTENTIONREPORT_H +#define FIX50_CONTRARYINTENTIONREPORT_H + +#include "Message.h" + +namespace FIX50 +{ + + class ContraryIntentionReport : public Message + { + public: + ContraryIntentionReport() : Message(MsgType()) {} + ContraryIntentionReport(const FIX::Message& m) : Message(m) {} + ContraryIntentionReport(const Message& m) : Message(m) {} + ContraryIntentionReport(const ContraryIntentionReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BO"); } + + ContraryIntentionReport( + const FIX::ContIntRptID& aContIntRptID, + const FIX::ClearingBusinessDate& aClearingBusinessDate ) + : Message(MsgType()) + { + set(aContIntRptID); + set(aClearingBusinessDate); + } + + FIELD_SET(*this, FIX::ContIntRptID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::LateIndicator); + FIELD_SET(*this, FIX::InputSource); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoExpiration); + class NoExpiration: public FIX::Group + { + public: + NoExpiration() : FIX::Group(981,982,FIX::message_order(982,983,0)) {} + FIELD_SET(*this, FIX::ExpType); + FIELD_SET(*this, FIX::ExpQty); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/CrossOrderCancelReplaceRequest.h b/linux/include/quickfix/fix50/CrossOrderCancelReplaceRequest.h new file mode 100644 index 000000000..9ea6e3440 --- /dev/null +++ b/linux/include/quickfix/fix50/CrossOrderCancelReplaceRequest.h @@ -0,0 +1,434 @@ +#ifndef FIX50_CROSSORDERCANCELREPLACEREQUEST_H +#define FIX50_CROSSORDERCANCELREPLACEREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class CrossOrderCancelReplaceRequest : public Message + { + public: + CrossOrderCancelReplaceRequest() : Message(MsgType()) {} + CrossOrderCancelReplaceRequest(const FIX::Message& m) : Message(m) {} + CrossOrderCancelReplaceRequest(const Message& m) : Message(m) {} + CrossOrderCancelReplaceRequest(const CrossOrderCancelReplaceRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("t"); } + + CrossOrderCancelReplaceRequest( + const FIX::CrossID& aCrossID, + const FIX::OrigCrossID& aOrigCrossID, + const FIX::CrossType& aCrossType, + const FIX::CrossPrioritization& aCrossPrioritization, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aCrossID); + set(aOrigCrossID); + set(aCrossType); + set(aCrossPrioritization); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::CrossID); + FIELD_SET(*this, FIX::OrigCrossID); + FIELD_SET(*this, FIX::HostCrossID); + FIELD_SET(*this, FIX::CrossType); + FIELD_SET(*this, FIX::CrossPrioritization); + FIELD_SET(*this, FIX::NoRootPartyIDs); + class NoRootPartyIDs: public FIX::Group + { + public: + NoRootPartyIDs() : FIX::Group(1116,1117,FIX::message_order(1117,1118,1119,1120,0)) {} + FIELD_SET(*this, FIX::RootPartyID); + FIELD_SET(*this, FIX::RootPartyIDSource); + FIELD_SET(*this, FIX::RootPartyRole); + FIELD_SET(*this, FIX::NoRootPartySubIDs); + class NoRootPartySubIDs: public FIX::Group + { + public: + NoRootPartySubIDs() : FIX::Group(1120,1121,FIX::message_order(1121,1122,0)) {} + FIELD_SET(*this, FIX::RootPartySubID); + FIELD_SET(*this, FIX::RootPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoSides); + class NoSides: public FIX::Group + { + public: + NoSides() : FIX::Group(552,54,FIX::message_order(54,11,526,583,453,229,75,1,660,581,589,590,591,70,78,854,38,152,516,468,469,12,13,479,497,528,529,1091,582,121,120,775,58,354,355,77,203,544,635,377,659,962,0)) {} + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::SideComplianceID); + FIELD_SET(*this, FIX::SideTimeInForce); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TransBkdTime); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/CrossOrderCancelRequest.h b/linux/include/quickfix/fix50/CrossOrderCancelRequest.h new file mode 100644 index 000000000..b94414000 --- /dev/null +++ b/linux/include/quickfix/fix50/CrossOrderCancelRequest.h @@ -0,0 +1,265 @@ +#ifndef FIX50_CROSSORDERCANCELREQUEST_H +#define FIX50_CROSSORDERCANCELREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class CrossOrderCancelRequest : public Message + { + public: + CrossOrderCancelRequest() : Message(MsgType()) {} + CrossOrderCancelRequest(const FIX::Message& m) : Message(m) {} + CrossOrderCancelRequest(const Message& m) : Message(m) {} + CrossOrderCancelRequest(const CrossOrderCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("u"); } + + CrossOrderCancelRequest( + const FIX::CrossID& aCrossID, + const FIX::OrigCrossID& aOrigCrossID, + const FIX::CrossType& aCrossType, + const FIX::CrossPrioritization& aCrossPrioritization, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aCrossID); + set(aOrigCrossID); + set(aCrossType); + set(aCrossPrioritization); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::CrossID); + FIELD_SET(*this, FIX::OrigCrossID); + FIELD_SET(*this, FIX::HostCrossID); + FIELD_SET(*this, FIX::CrossType); + FIELD_SET(*this, FIX::CrossPrioritization); + FIELD_SET(*this, FIX::NoRootPartyIDs); + class NoRootPartyIDs: public FIX::Group + { + public: + NoRootPartyIDs() : FIX::Group(1116,1117,FIX::message_order(1117,1118,1119,1120,0)) {} + FIELD_SET(*this, FIX::RootPartyID); + FIELD_SET(*this, FIX::RootPartyIDSource); + FIELD_SET(*this, FIX::RootPartyRole); + FIELD_SET(*this, FIX::NoRootPartySubIDs); + class NoRootPartySubIDs: public FIX::Group + { + public: + NoRootPartySubIDs() : FIX::Group(1120,1121,FIX::message_order(1121,1122,0)) {} + FIELD_SET(*this, FIX::RootPartySubID); + FIELD_SET(*this, FIX::RootPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoSides); + class NoSides: public FIX::Group + { + public: + NoSides() : FIX::Group(552,54,FIX::message_order(54,41,11,526,583,586,453,229,75,38,152,516,468,469,376,58,354,355,0)) {} + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::TransactTime); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/DerivativeSecurityList.h b/linux/include/quickfix/fix50/DerivativeSecurityList.h new file mode 100644 index 000000000..f71f1f0ea --- /dev/null +++ b/linux/include/quickfix/fix50/DerivativeSecurityList.h @@ -0,0 +1,211 @@ +#ifndef FIX50_DERIVATIVESECURITYLIST_H +#define FIX50_DERIVATIVESECURITYLIST_H + +#include "Message.h" + +namespace FIX50 +{ + + class DerivativeSecurityList : public Message + { + public: + DerivativeSecurityList() : Message(MsgType()) {} + DerivativeSecurityList(const FIX::Message& m) : Message(m) {} + DerivativeSecurityList(const Message& m) : Message(m) {} + DerivativeSecurityList(const DerivativeSecurityList& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AA"); } + + DerivativeSecurityList( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityResponseID& aSecurityResponseID, + const FIX::SecurityRequestResult& aSecurityRequestResult ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityResponseID); + set(aSecurityRequestResult); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityRequestResult); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::TotNoRelatedSym); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,461,167,762,200,541,1079,201,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,996,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,15,827,668,869,555,336,625,58,354,355,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ExpirationCycle); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/DerivativeSecurityListRequest.h b/linux/include/quickfix/fix50/DerivativeSecurityListRequest.h new file mode 100644 index 000000000..ea7a8a2f2 --- /dev/null +++ b/linux/include/quickfix/fix50/DerivativeSecurityListRequest.h @@ -0,0 +1,97 @@ +#ifndef FIX50_DERIVATIVESECURITYLISTREQUEST_H +#define FIX50_DERIVATIVESECURITYLISTREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class DerivativeSecurityListRequest : public Message + { + public: + DerivativeSecurityListRequest() : Message(MsgType()) {} + DerivativeSecurityListRequest(const FIX::Message& m) : Message(m) {} + DerivativeSecurityListRequest(const Message& m) : Message(m) {} + DerivativeSecurityListRequest(const DerivativeSecurityListRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("z"); } + + DerivativeSecurityListRequest( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityListRequestType& aSecurityListRequestType ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityListRequestType); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityListRequestType); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/DontKnowTrade.h b/linux/include/quickfix/fix50/DontKnowTrade.h new file mode 100644 index 000000000..bcc1b5c0c --- /dev/null +++ b/linux/include/quickfix/fix50/DontKnowTrade.h @@ -0,0 +1,214 @@ +#ifndef FIX50_DONTKNOWTRADE_H +#define FIX50_DONTKNOWTRADE_H + +#include "Message.h" + +namespace FIX50 +{ + + class DontKnowTrade : public Message + { + public: + DontKnowTrade() : Message(MsgType()) {} + DontKnowTrade(const FIX::Message& m) : Message(m) {} + DontKnowTrade(const Message& m) : Message(m) {} + DontKnowTrade(const DontKnowTrade& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("Q"); } + + DontKnowTrade( + const FIX::OrderID& aOrderID, + const FIX::ExecID& aExecID, + const FIX::DKReason& aDKReason, + const FIX::Side& aSide ) + : Message(MsgType()) + { + set(aOrderID); + set(aExecID); + set(aDKReason); + set(aSide); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::DKReason); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/Email.h b/linux/include/quickfix/fix50/Email.h new file mode 100644 index 000000000..14d82ec11 --- /dev/null +++ b/linux/include/quickfix/fix50/Email.h @@ -0,0 +1,230 @@ +#ifndef FIX50_EMAIL_H +#define FIX50_EMAIL_H + +#include "Message.h" + +namespace FIX50 +{ + + class Email : public Message + { + public: + Email() : Message(MsgType()) {} + Email(const FIX::Message& m) : Message(m) {} + Email(const Message& m) : Message(m) {} + Email(const Email& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("C"); } + + Email( + const FIX::EmailThreadID& aEmailThreadID, + const FIX::EmailType& aEmailType, + const FIX::Subject& aSubject ) + : Message(MsgType()) + { + set(aEmailThreadID); + set(aEmailType); + set(aSubject); + } + + FIELD_SET(*this, FIX::EmailThreadID); + FIELD_SET(*this, FIX::EmailType); + FIELD_SET(*this, FIX::OrigTime); + FIELD_SET(*this, FIX::Subject); + FIELD_SET(*this, FIX::EncodedSubjectLen); + FIELD_SET(*this, FIX::EncodedSubject); + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,461,167,762,200,541,1079,201,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,996,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::NoLinesOfText); + class NoLinesOfText: public FIX::Group + { + public: + NoLinesOfText() : FIX::Group(33,58,FIX::message_order(58,354,355,0)) {} + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/ExecutionAcknowledgement.h b/linux/include/quickfix/fix50/ExecutionAcknowledgement.h new file mode 100644 index 000000000..0ad509e1b --- /dev/null +++ b/linux/include/quickfix/fix50/ExecutionAcknowledgement.h @@ -0,0 +1,220 @@ +#ifndef FIX50_EXECUTIONACKNOWLEDGEMENT_H +#define FIX50_EXECUTIONACKNOWLEDGEMENT_H + +#include "Message.h" + +namespace FIX50 +{ + + class ExecutionAcknowledgement : public Message + { + public: + ExecutionAcknowledgement() : Message(MsgType()) {} + ExecutionAcknowledgement(const FIX::Message& m) : Message(m) {} + ExecutionAcknowledgement(const Message& m) : Message(m) {} + ExecutionAcknowledgement(const ExecutionAcknowledgement& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BN"); } + + ExecutionAcknowledgement( + const FIX::OrderID& aOrderID, + const FIX::ExecAckStatus& aExecAckStatus, + const FIX::ExecID& aExecID, + const FIX::Side& aSide ) + : Message(MsgType()) + { + set(aOrderID); + set(aExecAckStatus); + set(aExecID); + set(aSide); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ExecAckStatus); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::DKReason); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::CumQty); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/ExecutionReport.h b/linux/include/quickfix/fix50/ExecutionReport.h new file mode 100644 index 000000000..3a18a45b7 --- /dev/null +++ b/linux/include/quickfix/fix50/ExecutionReport.h @@ -0,0 +1,533 @@ +#ifndef FIX50_EXECUTIONREPORT_H +#define FIX50_EXECUTIONREPORT_H + +#include "Message.h" + +namespace FIX50 +{ + + class ExecutionReport : public Message + { + public: + ExecutionReport() : Message(MsgType()) {} + ExecutionReport(const FIX::Message& m) : Message(m) {} + ExecutionReport(const Message& m) : Message(m) {} + ExecutionReport(const ExecutionReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("8"); } + + ExecutionReport( + const FIX::OrderID& aOrderID, + const FIX::ExecID& aExecID, + const FIX::ExecType& aExecType, + const FIX::OrdStatus& aOrdStatus, + const FIX::Side& aSide, + const FIX::LeavesQty& aLeavesQty, + const FIX::CumQty& aCumQty ) + : Message(MsgType()) + { + set(aOrderID); + set(aExecID); + set(aExecType); + set(aOrdStatus); + set(aSide); + set(aLeavesQty); + set(aCumQty); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::QuoteRespID); + FIELD_SET(*this, FIX::OrdStatusReqID); + FIELD_SET(*this, FIX::MassStatusReqID); + FIELD_SET(*this, FIX::HostCrossID); + FIELD_SET(*this, FIX::TotNumReports); + FIELD_SET(*this, FIX::LastRptRequested); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::NoContraBrokers); + class NoContraBrokers: public FIX::Group + { + public: + NoContraBrokers() : FIX::Group(382,375,FIX::message_order(375,337,437,438,655,0)) {} + FIELD_SET(*this, FIX::ContraBroker); + FIELD_SET(*this, FIX::ContraTrader); + FIELD_SET(*this, FIX::ContraTradeQty); + FIELD_SET(*this, FIX::ContraTradeTime); + FIELD_SET(*this, FIX::ContraLegRefID); + }; + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::CrossID); + FIELD_SET(*this, FIX::OrigCrossID); + FIELD_SET(*this, FIX::CrossType); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::ExecRefID); + FIELD_SET(*this, FIX::ExecType); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::WorkingIndicator); + FIELD_SET(*this, FIX::OrdRejReason); + FIELD_SET(*this, FIX::ExecRestatementReason); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::OrderCategory); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::LotType); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::PeggedPrice); + FIELD_SET(*this, FIX::PeggedRefPrice); + FIELD_SET(*this, FIX::DiscretionPrice); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::TargetStrategyPerformance); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::AggressorIndicator); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::CalculatedCcyLastQty); + FIELD_SET(*this, FIX::LastSwapPoints); + FIELD_SET(*this, FIX::UnderlyingLastQty); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::UnderlyingLastPx); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::LastSpotRate); + FIELD_SET(*this, FIX::LastForwardPoints); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TimeBracket); + FIELD_SET(*this, FIX::LastCapacity); + FIELD_SET(*this, FIX::LeavesQty); + FIELD_SET(*this, FIX::CumQty); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::DayOrderQty); + FIELD_SET(*this, FIX::DayCumQty); + FIELD_SET(*this, FIX::DayAvgPx); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::ReportToExch); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::ExDate); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::TradedFlatSwitch); + FIELD_SET(*this, FIX::BasisFeatureDate); + FIELD_SET(*this, FIX::BasisFeaturePrice); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::LastForwardPoints2); + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::TransBkdTime); + FIELD_SET(*this, FIX::ExecValuationPoint); + FIELD_SET(*this, FIX::ExecPriceType); + FIELD_SET(*this, FIX::ExecPriceAdjustment); + FIELD_SET(*this, FIX::PriorityIndicator); + FIELD_SET(*this, FIX::PriceImprovement); + FIELD_SET(*this, FIX::LastLiquidityInd); + FIELD_SET(*this, FIX::NoContAmts); + class NoContAmts: public FIX::Group + { + public: + NoContAmts() : FIX::Group(518,519,FIX::message_order(519,520,521,0)) {} + FIELD_SET(*this, FIX::ContAmtType); + FIELD_SET(*this, FIX::ContAmtValue); + FIELD_SET(*this, FIX::ContAmtCurr); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,687,685,690,683,564,565,539,654,566,587,588,637,675,1073,1074,1075,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegOrderQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::LegPositionEffect); + FIELD_SET(*this, FIX::LegCoveredOrUncovered); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegPrice); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::LegLastPx); + FIELD_SET(*this, FIX::LegSettlCurrency); + FIELD_SET(*this, FIX::LegLastForwardPoints); + FIELD_SET(*this, FIX::LegCalculatedCcyLastQty); + FIELD_SET(*this, FIX::LegGrossTradeAmt); + }; + FIELD_SET(*this, FIX::CopyMsgIndicator); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::ManualOrderIndicator); + FIELD_SET(*this, FIX::CustDirectedOrder); + FIELD_SET(*this, FIX::ReceivedDeptID); + FIELD_SET(*this, FIX::CustOrderHandlingInst); + FIELD_SET(*this, FIX::OrderHandlingInstSource); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/IOI.h b/linux/include/quickfix/fix50/IOI.h new file mode 100644 index 000000000..30e44d45d --- /dev/null +++ b/linux/include/quickfix/fix50/IOI.h @@ -0,0 +1,293 @@ +#ifndef FIX50_IOI_H +#define FIX50_IOI_H + +#include "Message.h" + +namespace FIX50 +{ + + class IOI : public Message + { + public: + IOI() : Message(MsgType()) {} + IOI(const FIX::Message& m) : Message(m) {} + IOI(const Message& m) : Message(m) {} + IOI(const IOI& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("6"); } + + IOI( + const FIX::IOIID& aIOIID, + const FIX::IOITransType& aIOITransType, + const FIX::Side& aSide, + const FIX::IOIQty& aIOIQty ) + : Message(MsgType()) + { + set(aIOIID); + set(aIOITransType); + set(aSide); + set(aIOIQty); + } + + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::IOITransType); + FIELD_SET(*this, FIX::IOIRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::IOIQty); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,682,683,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegIOIQty); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + }; + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::IOIQltyInd); + FIELD_SET(*this, FIX::IOINaturalFlag); + FIELD_SET(*this, FIX::NoIOIQualifiers); + class NoIOIQualifiers: public FIX::Group + { + public: + NoIOIQualifiers() : FIX::Group(199,104,FIX::message_order(104,0)) {} + FIELD_SET(*this, FIX::IOIQualifier); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::URLLink); + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/ListCancelRequest.h b/linux/include/quickfix/fix50/ListCancelRequest.h new file mode 100644 index 000000000..60d6b3459 --- /dev/null +++ b/linux/include/quickfix/fix50/ListCancelRequest.h @@ -0,0 +1,55 @@ +#ifndef FIX50_LISTCANCELREQUEST_H +#define FIX50_LISTCANCELREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class ListCancelRequest : public Message + { + public: + ListCancelRequest() : Message(MsgType()) {} + ListCancelRequest(const FIX::Message& m) : Message(m) {} + ListCancelRequest(const Message& m) : Message(m) {} + ListCancelRequest(const ListCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("K"); } + + ListCancelRequest( + const FIX::ListID& aListID, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aListID); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/ListExecute.h b/linux/include/quickfix/fix50/ListExecute.h new file mode 100644 index 000000000..68fd80661 --- /dev/null +++ b/linux/include/quickfix/fix50/ListExecute.h @@ -0,0 +1,38 @@ +#ifndef FIX50_LISTEXECUTE_H +#define FIX50_LISTEXECUTE_H + +#include "Message.h" + +namespace FIX50 +{ + + class ListExecute : public Message + { + public: + ListExecute() : Message(MsgType()) {} + ListExecute(const FIX::Message& m) : Message(m) {} + ListExecute(const Message& m) : Message(m) {} + ListExecute(const ListExecute& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("L"); } + + ListExecute( + const FIX::ListID& aListID, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aListID); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/ListStatus.h b/linux/include/quickfix/fix50/ListStatus.h new file mode 100644 index 000000000..c6c2ad744 --- /dev/null +++ b/linux/include/quickfix/fix50/ListStatus.h @@ -0,0 +1,68 @@ +#ifndef FIX50_LISTSTATUS_H +#define FIX50_LISTSTATUS_H + +#include "Message.h" + +namespace FIX50 +{ + + class ListStatus : public Message + { + public: + ListStatus() : Message(MsgType()) {} + ListStatus(const FIX::Message& m) : Message(m) {} + ListStatus(const Message& m) : Message(m) {} + ListStatus(const ListStatus& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("N"); } + + ListStatus( + const FIX::ListID& aListID, + const FIX::ListStatusType& aListStatusType, + const FIX::NoRpts& aNoRpts, + const FIX::ListOrderStatus& aListOrderStatus, + const FIX::RptSeq& aRptSeq, + const FIX::TotNoOrders& aTotNoOrders ) + : Message(MsgType()) + { + set(aListID); + set(aListStatusType); + set(aNoRpts); + set(aListOrderStatus); + set(aRptSeq); + set(aTotNoOrders); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::ListStatusType); + FIELD_SET(*this, FIX::NoRpts); + FIELD_SET(*this, FIX::ListOrderStatus); + FIELD_SET(*this, FIX::RptSeq); + FIELD_SET(*this, FIX::ListStatusText); + FIELD_SET(*this, FIX::EncodedListStatusTextLen); + FIELD_SET(*this, FIX::EncodedListStatusText); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TotNoOrders); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,526,14,39,636,151,84,6,103,58,354,355,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::CumQty); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::WorkingIndicator); + FIELD_SET(*this, FIX::LeavesQty); + FIELD_SET(*this, FIX::CxlQty); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::OrdRejReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/ListStatusRequest.h b/linux/include/quickfix/fix50/ListStatusRequest.h new file mode 100644 index 000000000..637d050fb --- /dev/null +++ b/linux/include/quickfix/fix50/ListStatusRequest.h @@ -0,0 +1,33 @@ +#ifndef FIX50_LISTSTATUSREQUEST_H +#define FIX50_LISTSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class ListStatusRequest : public Message + { + public: + ListStatusRequest() : Message(MsgType()) {} + ListStatusRequest(const FIX::Message& m) : Message(m) {} + ListStatusRequest(const Message& m) : Message(m) {} + ListStatusRequest(const ListStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("M"); } + + ListStatusRequest( + const FIX::ListID& aListID ) + : Message(MsgType()) + { + set(aListID); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/ListStrikePrice.h b/linux/include/quickfix/fix50/ListStrikePrice.h new file mode 100644 index 000000000..69f6a1450 --- /dev/null +++ b/linux/include/quickfix/fix50/ListStrikePrice.h @@ -0,0 +1,163 @@ +#ifndef FIX50_LISTSTRIKEPRICE_H +#define FIX50_LISTSTRIKEPRICE_H + +#include "Message.h" + +namespace FIX50 +{ + + class ListStrikePrice : public Message + { + public: + ListStrikePrice() : Message(MsgType()) {} + ListStrikePrice(const FIX::Message& m) : Message(m) {} + ListStrikePrice(const Message& m) : Message(m) {} + ListStrikePrice(const ListStrikePrice& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("m"); } + + ListStrikePrice( + const FIX::ListID& aListID, + const FIX::TotNoStrikes& aTotNoStrikes ) + : Message(MsgType()) + { + set(aListID); + set(aTotNoStrikes); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::TotNoStrikes); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoStrikes); + class NoStrikes: public FIX::Group + { + public: + NoStrikes() : FIX::Group(428,55,FIX::message_order(55,65,48,22,460,461,167,762,200,541,1079,201,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,996,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,140,11,526,54,44,15,58,354,355,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/MarketDataIncrementalRefresh.h b/linux/include/quickfix/fix50/MarketDataIncrementalRefresh.h new file mode 100644 index 000000000..31ac2f0e8 --- /dev/null +++ b/linux/include/quickfix/fix50/MarketDataIncrementalRefresh.h @@ -0,0 +1,278 @@ +#ifndef FIX50_MARKETDATAINCREMENTALREFRESH_H +#define FIX50_MARKETDATAINCREMENTALREFRESH_H + +#include "Message.h" + +namespace FIX50 +{ + + class MarketDataIncrementalRefresh : public Message + { + public: + MarketDataIncrementalRefresh() : Message(MsgType()) {} + MarketDataIncrementalRefresh(const FIX::Message& m) : Message(m) {} + MarketDataIncrementalRefresh(const Message& m) : Message(m) {} + MarketDataIncrementalRefresh(const MarketDataIncrementalRefresh& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("X"); } + + FIELD_SET(*this, FIX::MDBookType); + FIELD_SET(*this, FIX::MDFeedType); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::NoMDEntries); + class NoMDEntries: public FIX::Group + { + public: + NoMDEntries() : FIX::Group(268,279,FIX::message_order(279,285,269,278,280,55,65,48,22,460,461,167,762,200,541,1079,201,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,996,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,711,555,291,292,270,40,15,271,272,273,274,275,336,625,276,277,282,283,284,286,59,432,126,110,18,287,37,198,299,288,289,346,290,546,811,451,58,354,355,1023,528,1024,332,333,1020,63,64,1070,83,1048,1026,1027,453,0)) {} + FIELD_SET(*this, FIX::MDUpdateAction); + FIELD_SET(*this, FIX::DeleteReason); + FIELD_SET(*this, FIX::MDEntryType); + FIELD_SET(*this, FIX::MDEntryID); + FIELD_SET(*this, FIX::MDEntryRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::MDEntryPx); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::MDEntrySize); + FIELD_SET(*this, FIX::MDEntryDate); + FIELD_SET(*this, FIX::MDEntryTime); + FIELD_SET(*this, FIX::TickDirection); + FIELD_SET(*this, FIX::MDMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::QuoteCondition); + FIELD_SET(*this, FIX::TradeCondition); + FIELD_SET(*this, FIX::MDEntryOriginator); + FIELD_SET(*this, FIX::LocationID); + FIELD_SET(*this, FIX::DeskID); + FIELD_SET(*this, FIX::OpenCloseSettlFlag); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::SellerDays); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::MDEntryBuyer); + FIELD_SET(*this, FIX::MDEntrySeller); + FIELD_SET(*this, FIX::NumberOfOrders); + FIELD_SET(*this, FIX::MDEntryPositionNo); + FIELD_SET(*this, FIX::Scope); + FIELD_SET(*this, FIX::PriceDelta); + FIELD_SET(*this, FIX::NetChgPrevDay); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::MDPriceLevel); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::MDOriginType); + FIELD_SET(*this, FIX::HighPx); + FIELD_SET(*this, FIX::LowPx); + FIELD_SET(*this, FIX::TradeVolume); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::MDQuoteType); + FIELD_SET(*this, FIX::RptSeq); + FIELD_SET(*this, FIX::DealingCapacity); + FIELD_SET(*this, FIX::MDEntrySpotRate); + FIELD_SET(*this, FIX::MDEntryForwardPoints); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::ApplQueueDepth); + FIELD_SET(*this, FIX::ApplQueueResolution); + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/MarketDataRequest.h b/linux/include/quickfix/fix50/MarketDataRequest.h new file mode 100644 index 000000000..06dbea622 --- /dev/null +++ b/linux/include/quickfix/fix50/MarketDataRequest.h @@ -0,0 +1,234 @@ +#ifndef FIX50_MARKETDATAREQUEST_H +#define FIX50_MARKETDATAREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class MarketDataRequest : public Message + { + public: + MarketDataRequest() : Message(MsgType()) {} + MarketDataRequest(const FIX::Message& m) : Message(m) {} + MarketDataRequest(const Message& m) : Message(m) {} + MarketDataRequest(const MarketDataRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("V"); } + + MarketDataRequest( + const FIX::MDReqID& aMDReqID, + const FIX::SubscriptionRequestType& aSubscriptionRequestType, + const FIX::MarketDepth& aMarketDepth ) + : Message(MsgType()) + { + set(aMDReqID); + set(aSubscriptionRequestType); + set(aMarketDepth); + } + + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::MarketDepth); + FIELD_SET(*this, FIX::MDUpdateType); + FIELD_SET(*this, FIX::AggregatedBook); + FIELD_SET(*this, FIX::OpenCloseSettlFlag); + FIELD_SET(*this, FIX::Scope); + FIELD_SET(*this, FIX::MDImplicitDelete); + FIELD_SET(*this, FIX::NoMDEntryTypes); + class NoMDEntryTypes: public FIX::Group + { + public: + NoMDEntryTypes() : FIX::Group(267,269,FIX::message_order(269,0)) {} + FIELD_SET(*this, FIX::MDEntryType); + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,461,167,762,200,541,1079,201,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,996,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,711,555,15,537,63,64,271,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::MDEntrySize); + }; + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ApplQueueAction); + FIELD_SET(*this, FIX::ApplQueueMax); + FIELD_SET(*this, FIX::MDQuoteType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/MarketDataRequestReject.h b/linux/include/quickfix/fix50/MarketDataRequestReject.h new file mode 100644 index 000000000..569f05fae --- /dev/null +++ b/linux/include/quickfix/fix50/MarketDataRequestReject.h @@ -0,0 +1,41 @@ +#ifndef FIX50_MARKETDATAREQUESTREJECT_H +#define FIX50_MARKETDATAREQUESTREJECT_H + +#include "Message.h" + +namespace FIX50 +{ + + class MarketDataRequestReject : public Message + { + public: + MarketDataRequestReject() : Message(MsgType()) {} + MarketDataRequestReject(const FIX::Message& m) : Message(m) {} + MarketDataRequestReject(const Message& m) : Message(m) {} + MarketDataRequestReject(const MarketDataRequestReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("Y"); } + + MarketDataRequestReject( + const FIX::MDReqID& aMDReqID ) + : Message(MsgType()) + { + set(aMDReqID); + } + + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::MDReqRejReason); + FIELD_SET(*this, FIX::NoAltMDSource); + class NoAltMDSource: public FIX::Group + { + public: + NoAltMDSource() : FIX::Group(816,817,FIX::message_order(817,0)) {} + FIELD_SET(*this, FIX::AltMDSourceID); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/MarketDataSnapshotFullRefresh.h b/linux/include/quickfix/fix50/MarketDataSnapshotFullRefresh.h new file mode 100644 index 000000000..8cb1e32a4 --- /dev/null +++ b/linux/include/quickfix/fix50/MarketDataSnapshotFullRefresh.h @@ -0,0 +1,277 @@ +#ifndef FIX50_MARKETDATASNAPSHOTFULLREFRESH_H +#define FIX50_MARKETDATASNAPSHOTFULLREFRESH_H + +#include "Message.h" + +namespace FIX50 +{ + + class MarketDataSnapshotFullRefresh : public Message + { + public: + MarketDataSnapshotFullRefresh() : Message(MsgType()) {} + MarketDataSnapshotFullRefresh(const FIX::Message& m) : Message(m) {} + MarketDataSnapshotFullRefresh(const Message& m) : Message(m) {} + MarketDataSnapshotFullRefresh(const MarketDataSnapshotFullRefresh& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("W"); } + + FIELD_SET(*this, FIX::MDReportID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::MDBookType); + FIELD_SET(*this, FIX::MDFeedType); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::NetChgPrevDay); + FIELD_SET(*this, FIX::NoMDEntries); + class NoMDEntries: public FIX::Group + { + public: + NoMDEntries() : FIX::Group(268,269,FIX::message_order(269,278,270,40,15,271,272,273,274,275,336,625,276,277,282,283,284,286,59,432,126,110,18,287,37,198,299,288,289,346,290,546,811,58,354,355,1023,528,1024,332,333,1020,63,64,1070,83,1048,1026,1027,453,0)) {} + FIELD_SET(*this, FIX::MDEntryType); + FIELD_SET(*this, FIX::MDEntryID); + FIELD_SET(*this, FIX::MDEntryPx); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::MDEntrySize); + FIELD_SET(*this, FIX::MDEntryDate); + FIELD_SET(*this, FIX::MDEntryTime); + FIELD_SET(*this, FIX::TickDirection); + FIELD_SET(*this, FIX::MDMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::QuoteCondition); + FIELD_SET(*this, FIX::TradeCondition); + FIELD_SET(*this, FIX::MDEntryOriginator); + FIELD_SET(*this, FIX::LocationID); + FIELD_SET(*this, FIX::DeskID); + FIELD_SET(*this, FIX::OpenCloseSettlFlag); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::SellerDays); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::MDEntryBuyer); + FIELD_SET(*this, FIX::MDEntrySeller); + FIELD_SET(*this, FIX::NumberOfOrders); + FIELD_SET(*this, FIX::MDEntryPositionNo); + FIELD_SET(*this, FIX::Scope); + FIELD_SET(*this, FIX::PriceDelta); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::MDPriceLevel); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::MDOriginType); + FIELD_SET(*this, FIX::HighPx); + FIELD_SET(*this, FIX::LowPx); + FIELD_SET(*this, FIX::TradeVolume); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::MDQuoteType); + FIELD_SET(*this, FIX::RptSeq); + FIELD_SET(*this, FIX::DealingCapacity); + FIELD_SET(*this, FIX::MDEntrySpotRate); + FIELD_SET(*this, FIX::MDEntryForwardPoints); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::ApplQueueDepth); + FIELD_SET(*this, FIX::ApplQueueResolution); + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/MassQuote.h b/linux/include/quickfix/fix50/MassQuote.h new file mode 100644 index 000000000..5f25088c9 --- /dev/null +++ b/linux/include/quickfix/fix50/MassQuote.h @@ -0,0 +1,253 @@ +#ifndef FIX50_MASSQUOTE_H +#define FIX50_MASSQUOTE_H + +#include "Message.h" + +namespace FIX50 +{ + + class MassQuote : public Message + { + public: + MassQuote() : Message(MsgType()) {} + MassQuote(const FIX::Message& m) : Message(m) {} + MassQuote(const Message& m) : Message(m) {} + MassQuote(const MassQuote& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("i"); } + + MassQuote( + const FIX::QuoteID& aQuoteID ) + : Message(MsgType()) + { + set(aQuoteID); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DefBidSize); + FIELD_SET(*this, FIX::DefOfferSize); + FIELD_SET(*this, FIX::NoQuoteSets); + class NoQuoteSets: public FIX::Group + { + public: + NoQuoteSets() : FIX::Group(296,302,FIX::message_order(302,311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,367,304,893,295,0)) {} + FIELD_SET(*this, FIX::QuoteSetID); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::QuoteSetValidUntilTime); + FIELD_SET(*this, FIX::TotNoQuoteEntries); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoQuoteEntries); + class NoQuoteEntries: public FIX::Group + { + public: + NoQuoteEntries() : FIX::Group(295,299,FIX::message_order(299,55,65,48,22,460,461,167,762,200,541,1079,201,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,996,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,555,132,133,134,135,62,188,190,189,191,631,632,633,634,60,336,625,64,40,193,192,642,643,15,0)) {} + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::Currency); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/MassQuoteAcknowledgement.h b/linux/include/quickfix/fix50/MassQuoteAcknowledgement.h new file mode 100644 index 000000000..bd8107dd5 --- /dev/null +++ b/linux/include/quickfix/fix50/MassQuoteAcknowledgement.h @@ -0,0 +1,256 @@ +#ifndef FIX50_MASSQUOTEACKNOWLEDGEMENT_H +#define FIX50_MASSQUOTEACKNOWLEDGEMENT_H + +#include "Message.h" + +namespace FIX50 +{ + + class MassQuoteAcknowledgement : public Message + { + public: + MassQuoteAcknowledgement() : Message(MsgType()) {} + MassQuoteAcknowledgement(const FIX::Message& m) : Message(m) {} + MassQuoteAcknowledgement(const Message& m) : Message(m) {} + MassQuoteAcknowledgement(const MassQuoteAcknowledgement& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("b"); } + + MassQuoteAcknowledgement( + const FIX::QuoteStatus& aQuoteStatus ) + : Message(MsgType()) + { + set(aQuoteStatus); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteStatus); + FIELD_SET(*this, FIX::QuoteRejectReason); + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoQuoteSets); + class NoQuoteSets: public FIX::Group + { + public: + NoQuoteSets() : FIX::Group(296,302,FIX::message_order(302,311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,304,893,295,0)) {} + FIELD_SET(*this, FIX::QuoteSetID); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::TotNoQuoteEntries); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoQuoteEntries); + class NoQuoteEntries: public FIX::Group + { + public: + NoQuoteEntries() : FIX::Group(295,299,FIX::message_order(299,55,65,48,22,460,461,167,762,200,541,1079,201,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,996,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,555,132,133,134,135,62,188,190,189,191,631,632,633,634,60,336,625,64,40,193,192,642,643,15,368,0)) {} + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::QuoteEntryRejectReason); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/Message.h b/linux/include/quickfix/fix50/Message.h new file mode 100644 index 000000000..4d07f6c34 --- /dev/null +++ b/linux/include/quickfix/fix50/Message.h @@ -0,0 +1,37 @@ +#ifndef FIX50_MESSAGES_H +#define FIX50_MESSAGES_H + +#include "../Message.h" +#include "../Group.h" + +namespace FIX50 +{ + class Header : public FIX::Header + { + public: + }; + + class Trailer : public FIX::Trailer + { + public: + }; + + class Message : public FIX::Message + { + public: + Message( const FIX::MsgType& msgtype ) + : FIX::Message( + FIX::BeginString("FIXT.1.1"), msgtype ) + { getHeader().setField( FIX::ApplVerID("7") ); } + + Message(const FIX::Message& m) : FIX::Message(m) {} + Message(const Message& m) : FIX::Message(m) {} + Header& getHeader() { return (Header&)m_header; } + const Header& getHeader() const { return (Header&)m_header; } + Trailer& getTrailer() { return (Trailer&)m_trailer; } + const Trailer& getTrailer() const { return (Trailer&)m_trailer; } + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/MessageCracker.h b/linux/include/quickfix/fix50/MessageCracker.h new file mode 100644 index 000000000..6527d332c --- /dev/null +++ b/linux/include/quickfix/fix50/MessageCracker.h @@ -0,0 +1,994 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX50_MESSAGECRACKER_H +#define FIX50_MESSAGECRACKER_H + + +#include "../SessionID.h" +#include "../Exceptions.h" + +#include "../fix50/Message.h" + +namespace FIX50 +{ + class IOI; + class Advertisement; + class ExecutionReport; + class OrderCancelReject; + class News; + class Email; + class NewOrderSingle; + class NewOrderList; + class OrderCancelRequest; + class OrderCancelReplaceRequest; + class OrderStatusRequest; + class AllocationInstruction; + class ListCancelRequest; + class ListExecute; + class ListStatusRequest; + class ListStatus; + class AllocationInstructionAck; + class DontKnowTrade; + class QuoteRequest; + class Quote; + class SettlementInstructions; + class MarketDataRequest; + class MarketDataSnapshotFullRefresh; + class MarketDataIncrementalRefresh; + class MarketDataRequestReject; + class QuoteCancel; + class QuoteStatusRequest; + class MassQuoteAcknowledgement; + class SecurityDefinitionRequest; + class SecurityDefinition; + class SecurityStatusRequest; + class SecurityStatus; + class TradingSessionStatusRequest; + class TradingSessionStatus; + class MassQuote; + class BusinessMessageReject; + class BidRequest; + class BidResponse; + class ListStrikePrice; + class RegistrationInstructions; + class RegistrationInstructionsResponse; + class OrderMassCancelRequest; + class OrderMassCancelReport; + class NewOrderCross; + class CrossOrderCancelReplaceRequest; + class CrossOrderCancelRequest; + class SecurityTypeRequest; + class SecurityTypes; + class SecurityListRequest; + class SecurityList; + class DerivativeSecurityListRequest; + class DerivativeSecurityList; + class NewOrderMultileg; + class MultilegOrderCancelReplace; + class TradeCaptureReportRequest; + class TradeCaptureReport; + class OrderMassStatusRequest; + class QuoteRequestReject; + class RFQRequest; + class QuoteStatusReport; + class QuoteResponse; + class Confirmation; + class PositionMaintenanceRequest; + class PositionMaintenanceReport; + class RequestForPositions; + class RequestForPositionsAck; + class PositionReport; + class TradeCaptureReportRequestAck; + class TradeCaptureReportAck; + class AllocationReport; + class AllocationReportAck; + class ConfirmationAck; + class SettlementInstructionRequest; + class AssignmentReport; + class CollateralRequest; + class CollateralAssignment; + class CollateralResponse; + class CollateralReport; + class CollateralInquiry; + class NetworkCounterpartySystemStatusRequest; + class NetworkCounterpartySystemStatusResponse; + class UserRequest; + class UserResponse; + class CollateralInquiryAck; + class ConfirmationRequest; + class ContraryIntentionReport; + class SecurityDefinitionUpdateReport; + class SecurityListUpdateReport; + class AdjustedPositionReport; + class AllocationInstructionAlert; + class ExecutionAcknowledgement; + class TradingSessionList; + class TradingSessionListRequest; + + class MessageCracker + { + public: + virtual ~MessageCracker() {} + virtual void onMessage( const Message&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( Message&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const IOI&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Advertisement&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ExecutionReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelReject&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const News&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Email&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderSingle&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderList&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelReplaceRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AllocationInstruction&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListExecute&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListStatus&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AllocationInstructionAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const DontKnowTrade&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Quote&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SettlementInstructions&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataSnapshotFullRefresh&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataIncrementalRefresh&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataRequestReject&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteCancel&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MassQuoteAcknowledgement&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityDefinitionRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityDefinition&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityStatus&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradingSessionStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradingSessionStatus&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MassQuote&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const BusinessMessageReject&, const FIX::SessionID& ) + {} + virtual void onMessage( const BidRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const BidResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListStrikePrice&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const RegistrationInstructions&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const RegistrationInstructionsResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderMassCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderMassCancelReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderCross&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CrossOrderCancelReplaceRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CrossOrderCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityTypeRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityTypes&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityListRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityList&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const DerivativeSecurityListRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const DerivativeSecurityList&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderMultileg&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MultilegOrderCancelReplace&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradeCaptureReportRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradeCaptureReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderMassStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteRequestReject&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const RFQRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteStatusReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Confirmation&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const PositionMaintenanceRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const PositionMaintenanceReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const RequestForPositions&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const RequestForPositionsAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const PositionReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradeCaptureReportRequestAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradeCaptureReportAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AllocationReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AllocationReportAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ConfirmationAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SettlementInstructionRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AssignmentReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralAssignment&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralInquiry&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NetworkCounterpartySystemStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NetworkCounterpartySystemStatusResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const UserRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const UserResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralInquiryAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ConfirmationRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ContraryIntentionReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityDefinitionUpdateReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityListUpdateReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AdjustedPositionReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AllocationInstructionAlert&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ExecutionAcknowledgement&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradingSessionList&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradingSessionListRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( IOI&, const FIX::SessionID& ) {} + virtual void onMessage( Advertisement&, const FIX::SessionID& ) {} + virtual void onMessage( ExecutionReport&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelReject&, const FIX::SessionID& ) {} + virtual void onMessage( News&, const FIX::SessionID& ) {} + virtual void onMessage( Email&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderSingle&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderList&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelReplaceRequest&, const FIX::SessionID& ) {} + virtual void onMessage( OrderStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( AllocationInstruction&, const FIX::SessionID& ) {} + virtual void onMessage( ListCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ListExecute&, const FIX::SessionID& ) {} + virtual void onMessage( ListStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ListStatus&, const FIX::SessionID& ) {} + virtual void onMessage( AllocationInstructionAck&, const FIX::SessionID& ) {} + virtual void onMessage( DontKnowTrade&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteRequest&, const FIX::SessionID& ) {} + virtual void onMessage( Quote&, const FIX::SessionID& ) {} + virtual void onMessage( SettlementInstructions&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataRequest&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataSnapshotFullRefresh&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataIncrementalRefresh&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataRequestReject&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteCancel&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( MassQuoteAcknowledgement&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityDefinitionRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityDefinition&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityStatus&, const FIX::SessionID& ) {} + virtual void onMessage( TradingSessionStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( TradingSessionStatus&, const FIX::SessionID& ) {} + virtual void onMessage( MassQuote&, const FIX::SessionID& ) {} + virtual void onMessage( BusinessMessageReject&, const FIX::SessionID& ) {} + virtual void onMessage( BidRequest&, const FIX::SessionID& ) {} + virtual void onMessage( BidResponse&, const FIX::SessionID& ) {} + virtual void onMessage( ListStrikePrice&, const FIX::SessionID& ) {} + virtual void onMessage( RegistrationInstructions&, const FIX::SessionID& ) {} + virtual void onMessage( RegistrationInstructionsResponse&, const FIX::SessionID& ) {} + virtual void onMessage( OrderMassCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( OrderMassCancelReport&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderCross&, const FIX::SessionID& ) {} + virtual void onMessage( CrossOrderCancelReplaceRequest&, const FIX::SessionID& ) {} + virtual void onMessage( CrossOrderCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityTypeRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityTypes&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityListRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityList&, const FIX::SessionID& ) {} + virtual void onMessage( DerivativeSecurityListRequest&, const FIX::SessionID& ) {} + virtual void onMessage( DerivativeSecurityList&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderMultileg&, const FIX::SessionID& ) {} + virtual void onMessage( MultilegOrderCancelReplace&, const FIX::SessionID& ) {} + virtual void onMessage( TradeCaptureReportRequest&, const FIX::SessionID& ) {} + virtual void onMessage( TradeCaptureReport&, const FIX::SessionID& ) {} + virtual void onMessage( OrderMassStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteRequestReject&, const FIX::SessionID& ) {} + virtual void onMessage( RFQRequest&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteStatusReport&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteResponse&, const FIX::SessionID& ) {} + virtual void onMessage( Confirmation&, const FIX::SessionID& ) {} + virtual void onMessage( PositionMaintenanceRequest&, const FIX::SessionID& ) {} + virtual void onMessage( PositionMaintenanceReport&, const FIX::SessionID& ) {} + virtual void onMessage( RequestForPositions&, const FIX::SessionID& ) {} + virtual void onMessage( RequestForPositionsAck&, const FIX::SessionID& ) {} + virtual void onMessage( PositionReport&, const FIX::SessionID& ) {} + virtual void onMessage( TradeCaptureReportRequestAck&, const FIX::SessionID& ) {} + virtual void onMessage( TradeCaptureReportAck&, const FIX::SessionID& ) {} + virtual void onMessage( AllocationReport&, const FIX::SessionID& ) {} + virtual void onMessage( AllocationReportAck&, const FIX::SessionID& ) {} + virtual void onMessage( ConfirmationAck&, const FIX::SessionID& ) {} + virtual void onMessage( SettlementInstructionRequest&, const FIX::SessionID& ) {} + virtual void onMessage( AssignmentReport&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralRequest&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralAssignment&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralResponse&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralReport&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralInquiry&, const FIX::SessionID& ) {} + virtual void onMessage( NetworkCounterpartySystemStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( NetworkCounterpartySystemStatusResponse&, const FIX::SessionID& ) {} + virtual void onMessage( UserRequest&, const FIX::SessionID& ) {} + virtual void onMessage( UserResponse&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralInquiryAck&, const FIX::SessionID& ) {} + virtual void onMessage( ConfirmationRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ContraryIntentionReport&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityDefinitionUpdateReport&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityListUpdateReport&, const FIX::SessionID& ) {} + virtual void onMessage( AdjustedPositionReport&, const FIX::SessionID& ) {} + virtual void onMessage( AllocationInstructionAlert&, const FIX::SessionID& ) {} + virtual void onMessage( ExecutionAcknowledgement&, const FIX::SessionID& ) {} + virtual void onMessage( TradingSessionList&, const FIX::SessionID& ) {} + virtual void onMessage( TradingSessionListRequest&, const FIX::SessionID& ) {} + +public: + void crack( const Message& message, + const FIX::SessionID& sessionID ) + { + const std::string& msgTypeValue + = message.getHeader().getField( FIX::FIELD::MsgType ); + + if( msgTypeValue == "6" ) + onMessage( (const IOI&)message, sessionID ); + else + if( msgTypeValue == "7" ) + onMessage( (const Advertisement&)message, sessionID ); + else + if( msgTypeValue == "8" ) + onMessage( (const ExecutionReport&)message, sessionID ); + else + if( msgTypeValue == "9" ) + onMessage( (const OrderCancelReject&)message, sessionID ); + else + if( msgTypeValue == "B" ) + onMessage( (const News&)message, sessionID ); + else + if( msgTypeValue == "C" ) + onMessage( (const Email&)message, sessionID ); + else + if( msgTypeValue == "D" ) + onMessage( (const NewOrderSingle&)message, sessionID ); + else + if( msgTypeValue == "E" ) + onMessage( (const NewOrderList&)message, sessionID ); + else + if( msgTypeValue == "F" ) + onMessage( (const OrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "G" ) + onMessage( (const OrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "H" ) + onMessage( (const OrderStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "J" ) + onMessage( (const AllocationInstruction&)message, sessionID ); + else + if( msgTypeValue == "K" ) + onMessage( (const ListCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "L" ) + onMessage( (const ListExecute&)message, sessionID ); + else + if( msgTypeValue == "M" ) + onMessage( (const ListStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "N" ) + onMessage( (const ListStatus&)message, sessionID ); + else + if( msgTypeValue == "P" ) + onMessage( (const AllocationInstructionAck&)message, sessionID ); + else + if( msgTypeValue == "Q" ) + onMessage( (const DontKnowTrade&)message, sessionID ); + else + if( msgTypeValue == "R" ) + onMessage( (const QuoteRequest&)message, sessionID ); + else + if( msgTypeValue == "S" ) + onMessage( (const Quote&)message, sessionID ); + else + if( msgTypeValue == "T" ) + onMessage( (const SettlementInstructions&)message, sessionID ); + else + if( msgTypeValue == "V" ) + onMessage( (const MarketDataRequest&)message, sessionID ); + else + if( msgTypeValue == "W" ) + onMessage( (const MarketDataSnapshotFullRefresh&)message, sessionID ); + else + if( msgTypeValue == "X" ) + onMessage( (const MarketDataIncrementalRefresh&)message, sessionID ); + else + if( msgTypeValue == "Y" ) + onMessage( (const MarketDataRequestReject&)message, sessionID ); + else + if( msgTypeValue == "Z" ) + onMessage( (const QuoteCancel&)message, sessionID ); + else + if( msgTypeValue == "a" ) + onMessage( (const QuoteStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "b" ) + onMessage( (const MassQuoteAcknowledgement&)message, sessionID ); + else + if( msgTypeValue == "c" ) + onMessage( (const SecurityDefinitionRequest&)message, sessionID ); + else + if( msgTypeValue == "d" ) + onMessage( (const SecurityDefinition&)message, sessionID ); + else + if( msgTypeValue == "e" ) + onMessage( (const SecurityStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "f" ) + onMessage( (const SecurityStatus&)message, sessionID ); + else + if( msgTypeValue == "g" ) + onMessage( (const TradingSessionStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "h" ) + onMessage( (const TradingSessionStatus&)message, sessionID ); + else + if( msgTypeValue == "i" ) + onMessage( (const MassQuote&)message, sessionID ); + else + if( msgTypeValue == "j" ) + onMessage( (const BusinessMessageReject&)message, sessionID ); + else + if( msgTypeValue == "k" ) + onMessage( (const BidRequest&)message, sessionID ); + else + if( msgTypeValue == "l" ) + onMessage( (const BidResponse&)message, sessionID ); + else + if( msgTypeValue == "m" ) + onMessage( (const ListStrikePrice&)message, sessionID ); + else + if( msgTypeValue == "o" ) + onMessage( (const RegistrationInstructions&)message, sessionID ); + else + if( msgTypeValue == "p" ) + onMessage( (const RegistrationInstructionsResponse&)message, sessionID ); + else + if( msgTypeValue == "q" ) + onMessage( (const OrderMassCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "r" ) + onMessage( (const OrderMassCancelReport&)message, sessionID ); + else + if( msgTypeValue == "s" ) + onMessage( (const NewOrderCross&)message, sessionID ); + else + if( msgTypeValue == "t" ) + onMessage( (const CrossOrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "u" ) + onMessage( (const CrossOrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "v" ) + onMessage( (const SecurityTypeRequest&)message, sessionID ); + else + if( msgTypeValue == "w" ) + onMessage( (const SecurityTypes&)message, sessionID ); + else + if( msgTypeValue == "x" ) + onMessage( (const SecurityListRequest&)message, sessionID ); + else + if( msgTypeValue == "y" ) + onMessage( (const SecurityList&)message, sessionID ); + else + if( msgTypeValue == "z" ) + onMessage( (const DerivativeSecurityListRequest&)message, sessionID ); + else + if( msgTypeValue == "AA" ) + onMessage( (const DerivativeSecurityList&)message, sessionID ); + else + if( msgTypeValue == "AB" ) + onMessage( (const NewOrderMultileg&)message, sessionID ); + else + if( msgTypeValue == "AC" ) + onMessage( (const MultilegOrderCancelReplace&)message, sessionID ); + else + if( msgTypeValue == "AD" ) + onMessage( (const TradeCaptureReportRequest&)message, sessionID ); + else + if( msgTypeValue == "AE" ) + onMessage( (const TradeCaptureReport&)message, sessionID ); + else + if( msgTypeValue == "AF" ) + onMessage( (const OrderMassStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "AG" ) + onMessage( (const QuoteRequestReject&)message, sessionID ); + else + if( msgTypeValue == "AH" ) + onMessage( (const RFQRequest&)message, sessionID ); + else + if( msgTypeValue == "AI" ) + onMessage( (const QuoteStatusReport&)message, sessionID ); + else + if( msgTypeValue == "AJ" ) + onMessage( (const QuoteResponse&)message, sessionID ); + else + if( msgTypeValue == "AK" ) + onMessage( (const Confirmation&)message, sessionID ); + else + if( msgTypeValue == "AL" ) + onMessage( (const PositionMaintenanceRequest&)message, sessionID ); + else + if( msgTypeValue == "AM" ) + onMessage( (const PositionMaintenanceReport&)message, sessionID ); + else + if( msgTypeValue == "AN" ) + onMessage( (const RequestForPositions&)message, sessionID ); + else + if( msgTypeValue == "AO" ) + onMessage( (const RequestForPositionsAck&)message, sessionID ); + else + if( msgTypeValue == "AP" ) + onMessage( (const PositionReport&)message, sessionID ); + else + if( msgTypeValue == "AQ" ) + onMessage( (const TradeCaptureReportRequestAck&)message, sessionID ); + else + if( msgTypeValue == "AR" ) + onMessage( (const TradeCaptureReportAck&)message, sessionID ); + else + if( msgTypeValue == "AS" ) + onMessage( (const AllocationReport&)message, sessionID ); + else + if( msgTypeValue == "AT" ) + onMessage( (const AllocationReportAck&)message, sessionID ); + else + if( msgTypeValue == "AU" ) + onMessage( (const ConfirmationAck&)message, sessionID ); + else + if( msgTypeValue == "AV" ) + onMessage( (const SettlementInstructionRequest&)message, sessionID ); + else + if( msgTypeValue == "AW" ) + onMessage( (const AssignmentReport&)message, sessionID ); + else + if( msgTypeValue == "AX" ) + onMessage( (const CollateralRequest&)message, sessionID ); + else + if( msgTypeValue == "AY" ) + onMessage( (const CollateralAssignment&)message, sessionID ); + else + if( msgTypeValue == "AZ" ) + onMessage( (const CollateralResponse&)message, sessionID ); + else + if( msgTypeValue == "BA" ) + onMessage( (const CollateralReport&)message, sessionID ); + else + if( msgTypeValue == "BB" ) + onMessage( (const CollateralInquiry&)message, sessionID ); + else + if( msgTypeValue == "BC" ) + onMessage( (const NetworkCounterpartySystemStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "BD" ) + onMessage( (const NetworkCounterpartySystemStatusResponse&)message, sessionID ); + else + if( msgTypeValue == "BE" ) + onMessage( (const UserRequest&)message, sessionID ); + else + if( msgTypeValue == "BF" ) + onMessage( (const UserResponse&)message, sessionID ); + else + if( msgTypeValue == "BG" ) + onMessage( (const CollateralInquiryAck&)message, sessionID ); + else + if( msgTypeValue == "BH" ) + onMessage( (const ConfirmationRequest&)message, sessionID ); + else + if( msgTypeValue == "BO" ) + onMessage( (const ContraryIntentionReport&)message, sessionID ); + else + if( msgTypeValue == "BP" ) + onMessage( (const SecurityDefinitionUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BK" ) + onMessage( (const SecurityListUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BL" ) + onMessage( (const AdjustedPositionReport&)message, sessionID ); + else + if( msgTypeValue == "BM" ) + onMessage( (const AllocationInstructionAlert&)message, sessionID ); + else + if( msgTypeValue == "BN" ) + onMessage( (const ExecutionAcknowledgement&)message, sessionID ); + else + if( msgTypeValue == "BJ" ) + onMessage( (const TradingSessionList&)message, sessionID ); + else + if( msgTypeValue == "BI" ) + onMessage( (const TradingSessionListRequest&)message, sessionID ); + else onMessage( message, sessionID ); + } + +void crack( Message& message, + const FIX::SessionID& sessionID ) + { + FIX::MsgType msgType; + message.getHeader().getField(msgType); + std::string msgTypeValue = msgType.getValue(); + + if( msgTypeValue == "6" ) + onMessage( (IOI&)message, sessionID ); + else + if( msgTypeValue == "7" ) + onMessage( (Advertisement&)message, sessionID ); + else + if( msgTypeValue == "8" ) + onMessage( (ExecutionReport&)message, sessionID ); + else + if( msgTypeValue == "9" ) + onMessage( (OrderCancelReject&)message, sessionID ); + else + if( msgTypeValue == "B" ) + onMessage( (News&)message, sessionID ); + else + if( msgTypeValue == "C" ) + onMessage( (Email&)message, sessionID ); + else + if( msgTypeValue == "D" ) + onMessage( (NewOrderSingle&)message, sessionID ); + else + if( msgTypeValue == "E" ) + onMessage( (NewOrderList&)message, sessionID ); + else + if( msgTypeValue == "F" ) + onMessage( (OrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "G" ) + onMessage( (OrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "H" ) + onMessage( (OrderStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "J" ) + onMessage( (AllocationInstruction&)message, sessionID ); + else + if( msgTypeValue == "K" ) + onMessage( (ListCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "L" ) + onMessage( (ListExecute&)message, sessionID ); + else + if( msgTypeValue == "M" ) + onMessage( (ListStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "N" ) + onMessage( (ListStatus&)message, sessionID ); + else + if( msgTypeValue == "P" ) + onMessage( (AllocationInstructionAck&)message, sessionID ); + else + if( msgTypeValue == "Q" ) + onMessage( (DontKnowTrade&)message, sessionID ); + else + if( msgTypeValue == "R" ) + onMessage( (QuoteRequest&)message, sessionID ); + else + if( msgTypeValue == "S" ) + onMessage( (Quote&)message, sessionID ); + else + if( msgTypeValue == "T" ) + onMessage( (SettlementInstructions&)message, sessionID ); + else + if( msgTypeValue == "V" ) + onMessage( (MarketDataRequest&)message, sessionID ); + else + if( msgTypeValue == "W" ) + onMessage( (MarketDataSnapshotFullRefresh&)message, sessionID ); + else + if( msgTypeValue == "X" ) + onMessage( (MarketDataIncrementalRefresh&)message, sessionID ); + else + if( msgTypeValue == "Y" ) + onMessage( (MarketDataRequestReject&)message, sessionID ); + else + if( msgTypeValue == "Z" ) + onMessage( (QuoteCancel&)message, sessionID ); + else + if( msgTypeValue == "a" ) + onMessage( (QuoteStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "b" ) + onMessage( (MassQuoteAcknowledgement&)message, sessionID ); + else + if( msgTypeValue == "c" ) + onMessage( (SecurityDefinitionRequest&)message, sessionID ); + else + if( msgTypeValue == "d" ) + onMessage( (SecurityDefinition&)message, sessionID ); + else + if( msgTypeValue == "e" ) + onMessage( (SecurityStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "f" ) + onMessage( (SecurityStatus&)message, sessionID ); + else + if( msgTypeValue == "g" ) + onMessage( (TradingSessionStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "h" ) + onMessage( (TradingSessionStatus&)message, sessionID ); + else + if( msgTypeValue == "i" ) + onMessage( (MassQuote&)message, sessionID ); + else + if( msgTypeValue == "j" ) + onMessage( (BusinessMessageReject&)message, sessionID ); + else + if( msgTypeValue == "k" ) + onMessage( (BidRequest&)message, sessionID ); + else + if( msgTypeValue == "l" ) + onMessage( (BidResponse&)message, sessionID ); + else + if( msgTypeValue == "m" ) + onMessage( (ListStrikePrice&)message, sessionID ); + else + if( msgTypeValue == "o" ) + onMessage( (RegistrationInstructions&)message, sessionID ); + else + if( msgTypeValue == "p" ) + onMessage( (RegistrationInstructionsResponse&)message, sessionID ); + else + if( msgTypeValue == "q" ) + onMessage( (OrderMassCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "r" ) + onMessage( (OrderMassCancelReport&)message, sessionID ); + else + if( msgTypeValue == "s" ) + onMessage( (NewOrderCross&)message, sessionID ); + else + if( msgTypeValue == "t" ) + onMessage( (CrossOrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "u" ) + onMessage( (CrossOrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "v" ) + onMessage( (SecurityTypeRequest&)message, sessionID ); + else + if( msgTypeValue == "w" ) + onMessage( (SecurityTypes&)message, sessionID ); + else + if( msgTypeValue == "x" ) + onMessage( (SecurityListRequest&)message, sessionID ); + else + if( msgTypeValue == "y" ) + onMessage( (SecurityList&)message, sessionID ); + else + if( msgTypeValue == "z" ) + onMessage( (DerivativeSecurityListRequest&)message, sessionID ); + else + if( msgTypeValue == "AA" ) + onMessage( (DerivativeSecurityList&)message, sessionID ); + else + if( msgTypeValue == "AB" ) + onMessage( (NewOrderMultileg&)message, sessionID ); + else + if( msgTypeValue == "AC" ) + onMessage( (MultilegOrderCancelReplace&)message, sessionID ); + else + if( msgTypeValue == "AD" ) + onMessage( (TradeCaptureReportRequest&)message, sessionID ); + else + if( msgTypeValue == "AE" ) + onMessage( (TradeCaptureReport&)message, sessionID ); + else + if( msgTypeValue == "AF" ) + onMessage( (OrderMassStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "AG" ) + onMessage( (QuoteRequestReject&)message, sessionID ); + else + if( msgTypeValue == "AH" ) + onMessage( (RFQRequest&)message, sessionID ); + else + if( msgTypeValue == "AI" ) + onMessage( (QuoteStatusReport&)message, sessionID ); + else + if( msgTypeValue == "AJ" ) + onMessage( (QuoteResponse&)message, sessionID ); + else + if( msgTypeValue == "AK" ) + onMessage( (Confirmation&)message, sessionID ); + else + if( msgTypeValue == "AL" ) + onMessage( (PositionMaintenanceRequest&)message, sessionID ); + else + if( msgTypeValue == "AM" ) + onMessage( (PositionMaintenanceReport&)message, sessionID ); + else + if( msgTypeValue == "AN" ) + onMessage( (RequestForPositions&)message, sessionID ); + else + if( msgTypeValue == "AO" ) + onMessage( (RequestForPositionsAck&)message, sessionID ); + else + if( msgTypeValue == "AP" ) + onMessage( (PositionReport&)message, sessionID ); + else + if( msgTypeValue == "AQ" ) + onMessage( (TradeCaptureReportRequestAck&)message, sessionID ); + else + if( msgTypeValue == "AR" ) + onMessage( (TradeCaptureReportAck&)message, sessionID ); + else + if( msgTypeValue == "AS" ) + onMessage( (AllocationReport&)message, sessionID ); + else + if( msgTypeValue == "AT" ) + onMessage( (AllocationReportAck&)message, sessionID ); + else + if( msgTypeValue == "AU" ) + onMessage( (ConfirmationAck&)message, sessionID ); + else + if( msgTypeValue == "AV" ) + onMessage( (SettlementInstructionRequest&)message, sessionID ); + else + if( msgTypeValue == "AW" ) + onMessage( (AssignmentReport&)message, sessionID ); + else + if( msgTypeValue == "AX" ) + onMessage( (CollateralRequest&)message, sessionID ); + else + if( msgTypeValue == "AY" ) + onMessage( (CollateralAssignment&)message, sessionID ); + else + if( msgTypeValue == "AZ" ) + onMessage( (CollateralResponse&)message, sessionID ); + else + if( msgTypeValue == "BA" ) + onMessage( (CollateralReport&)message, sessionID ); + else + if( msgTypeValue == "BB" ) + onMessage( (CollateralInquiry&)message, sessionID ); + else + if( msgTypeValue == "BC" ) + onMessage( (NetworkCounterpartySystemStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "BD" ) + onMessage( (NetworkCounterpartySystemStatusResponse&)message, sessionID ); + else + if( msgTypeValue == "BE" ) + onMessage( (UserRequest&)message, sessionID ); + else + if( msgTypeValue == "BF" ) + onMessage( (UserResponse&)message, sessionID ); + else + if( msgTypeValue == "BG" ) + onMessage( (CollateralInquiryAck&)message, sessionID ); + else + if( msgTypeValue == "BH" ) + onMessage( (ConfirmationRequest&)message, sessionID ); + else + if( msgTypeValue == "BO" ) + onMessage( (ContraryIntentionReport&)message, sessionID ); + else + if( msgTypeValue == "BP" ) + onMessage( (SecurityDefinitionUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BK" ) + onMessage( (SecurityListUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BL" ) + onMessage( (AdjustedPositionReport&)message, sessionID ); + else + if( msgTypeValue == "BM" ) + onMessage( (AllocationInstructionAlert&)message, sessionID ); + else + if( msgTypeValue == "BN" ) + onMessage( (ExecutionAcknowledgement&)message, sessionID ); + else + if( msgTypeValue == "BJ" ) + onMessage( (TradingSessionList&)message, sessionID ); + else + if( msgTypeValue == "BI" ) + onMessage( (TradingSessionListRequest&)message, sessionID ); + else onMessage( message, sessionID ); + } + + }; +} + +#endif diff --git a/linux/include/quickfix/fix50/MultilegOrderCancelReplace.h b/linux/include/quickfix/fix50/MultilegOrderCancelReplace.h new file mode 100644 index 000000000..995eac319 --- /dev/null +++ b/linux/include/quickfix/fix50/MultilegOrderCancelReplace.h @@ -0,0 +1,445 @@ +#ifndef FIX50_MULTILEGORDERCANCELREPLACE_H +#define FIX50_MULTILEGORDERCANCELREPLACE_H + +#include "Message.h" + +namespace FIX50 +{ + + class MultilegOrderCancelReplace : public Message + { + public: + MultilegOrderCancelReplace() : Message(MsgType()) {} + MultilegOrderCancelReplace(const FIX::Message& m) : Message(m) {} + MultilegOrderCancelReplace(const Message& m) : Message(m) {} + MultilegOrderCancelReplace(const MultilegOrderCancelReplace& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AC"); } + + MultilegOrderCancelReplace( + const FIX::OrigClOrdID& aOrigClOrdID, + const FIX::ClOrdID& aClOrdID, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aOrigClOrdID); + set(aClOrdID); + set(aSide); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,948,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNested3PartyIDs); + class NoNested3PartyIDs: public FIX::Group + { + public: + NoNested3PartyIDs() : FIX::Group(948,949,FIX::message_order(949,950,951,952,0)) {} + FIELD_SET(*this, FIX::Nested3PartyID); + FIELD_SET(*this, FIX::Nested3PartyIDSource); + FIELD_SET(*this, FIX::Nested3PartyRole); + FIELD_SET(*this, FIX::NoNested3PartySubIDs); + class NoNested3PartySubIDs: public FIX::Group + { + public: + NoNested3PartySubIDs() : FIX::Group(952,953,FIX::message_order(953,954,0)) {} + FIELD_SET(*this, FIX::Nested3PartySubID); + FIELD_SET(*this, FIX::Nested3PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::SwapPoints); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,687,690,683,670,564,565,539,654,566,587,588,685,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoLegAllocs); + class NoLegAllocs: public FIX::Group + { + public: + NoLegAllocs() : FIX::Group(670,671,FIX::message_order(671,672,756,673,674,675,0)) {} + FIELD_SET(*this, FIX::LegAllocAccount); + FIELD_SET(*this, FIX::LegIndividualAllocID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegAllocQty); + FIELD_SET(*this, FIX::LegAllocAcctIDSource); + FIELD_SET(*this, FIX::LegSettlCurrency); + }; + FIELD_SET(*this, FIX::LegPositionEffect); + FIELD_SET(*this, FIX::LegCoveredOrUncovered); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegPrice); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::LegOrderQty); + }; + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::MultiLegRptTypeReq); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/NetworkCounterpartySystemStatusRequest.h b/linux/include/quickfix/fix50/NetworkCounterpartySystemStatusRequest.h new file mode 100644 index 000000000..94ed569ad --- /dev/null +++ b/linux/include/quickfix/fix50/NetworkCounterpartySystemStatusRequest.h @@ -0,0 +1,43 @@ +#ifndef FIX50_NETWORKCOUNTERPARTYSYSTEMSTATUSREQUEST_H +#define FIX50_NETWORKCOUNTERPARTYSYSTEMSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class NetworkCounterpartySystemStatusRequest : public Message + { + public: + NetworkCounterpartySystemStatusRequest() : Message(MsgType()) {} + NetworkCounterpartySystemStatusRequest(const FIX::Message& m) : Message(m) {} + NetworkCounterpartySystemStatusRequest(const Message& m) : Message(m) {} + NetworkCounterpartySystemStatusRequest(const NetworkCounterpartySystemStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BC"); } + + NetworkCounterpartySystemStatusRequest( + const FIX::NetworkRequestType& aNetworkRequestType, + const FIX::NetworkRequestID& aNetworkRequestID ) + : Message(MsgType()) + { + set(aNetworkRequestType); + set(aNetworkRequestID); + } + + FIELD_SET(*this, FIX::NetworkRequestType); + FIELD_SET(*this, FIX::NetworkRequestID); + FIELD_SET(*this, FIX::NoCompIDs); + class NoCompIDs: public FIX::Group + { + public: + NoCompIDs() : FIX::Group(936,930,FIX::message_order(930,931,283,284,0)) {} + FIELD_SET(*this, FIX::RefCompID); + FIELD_SET(*this, FIX::RefSubID); + FIELD_SET(*this, FIX::LocationID); + FIELD_SET(*this, FIX::DeskID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/NetworkCounterpartySystemStatusResponse.h b/linux/include/quickfix/fix50/NetworkCounterpartySystemStatusResponse.h new file mode 100644 index 000000000..cfcb9f786 --- /dev/null +++ b/linux/include/quickfix/fix50/NetworkCounterpartySystemStatusResponse.h @@ -0,0 +1,47 @@ +#ifndef FIX50_NETWORKCOUNTERPARTYSYSTEMSTATUSRESPONSE_H +#define FIX50_NETWORKCOUNTERPARTYSYSTEMSTATUSRESPONSE_H + +#include "Message.h" + +namespace FIX50 +{ + + class NetworkCounterpartySystemStatusResponse : public Message + { + public: + NetworkCounterpartySystemStatusResponse() : Message(MsgType()) {} + NetworkCounterpartySystemStatusResponse(const FIX::Message& m) : Message(m) {} + NetworkCounterpartySystemStatusResponse(const Message& m) : Message(m) {} + NetworkCounterpartySystemStatusResponse(const NetworkCounterpartySystemStatusResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BD"); } + + NetworkCounterpartySystemStatusResponse( + const FIX::NetworkStatusResponseType& aNetworkStatusResponseType, + const FIX::NetworkResponseID& aNetworkResponseID ) + : Message(MsgType()) + { + set(aNetworkStatusResponseType); + set(aNetworkResponseID); + } + + FIELD_SET(*this, FIX::NetworkStatusResponseType); + FIELD_SET(*this, FIX::NetworkRequestID); + FIELD_SET(*this, FIX::NetworkResponseID); + FIELD_SET(*this, FIX::LastNetworkResponseID); + FIELD_SET(*this, FIX::NoCompIDs); + class NoCompIDs: public FIX::Group + { + public: + NoCompIDs() : FIX::Group(936,930,FIX::message_order(930,931,283,284,928,929,0)) {} + FIELD_SET(*this, FIX::RefCompID); + FIELD_SET(*this, FIX::RefSubID); + FIELD_SET(*this, FIX::LocationID); + FIELD_SET(*this, FIX::DeskID); + FIELD_SET(*this, FIX::StatusValue); + FIELD_SET(*this, FIX::StatusText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/NewOrderCross.h b/linux/include/quickfix/fix50/NewOrderCross.h new file mode 100644 index 000000000..a961d1e7f --- /dev/null +++ b/linux/include/quickfix/fix50/NewOrderCross.h @@ -0,0 +1,429 @@ +#ifndef FIX50_NEWORDERCROSS_H +#define FIX50_NEWORDERCROSS_H + +#include "Message.h" + +namespace FIX50 +{ + + class NewOrderCross : public Message + { + public: + NewOrderCross() : Message(MsgType()) {} + NewOrderCross(const FIX::Message& m) : Message(m) {} + NewOrderCross(const Message& m) : Message(m) {} + NewOrderCross(const NewOrderCross& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("s"); } + + NewOrderCross( + const FIX::CrossID& aCrossID, + const FIX::CrossType& aCrossType, + const FIX::CrossPrioritization& aCrossPrioritization, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aCrossID); + set(aCrossType); + set(aCrossPrioritization); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::CrossID); + FIELD_SET(*this, FIX::CrossType); + FIELD_SET(*this, FIX::CrossPrioritization); + FIELD_SET(*this, FIX::NoRootPartyIDs); + class NoRootPartyIDs: public FIX::Group + { + public: + NoRootPartyIDs() : FIX::Group(1116,1117,FIX::message_order(1117,1118,1119,1120,0)) {} + FIELD_SET(*this, FIX::RootPartyID); + FIELD_SET(*this, FIX::RootPartyIDSource); + FIELD_SET(*this, FIX::RootPartyRole); + FIELD_SET(*this, FIX::NoRootPartySubIDs); + class NoRootPartySubIDs: public FIX::Group + { + public: + NoRootPartySubIDs() : FIX::Group(1120,1121,FIX::message_order(1121,1122,0)) {} + FIELD_SET(*this, FIX::RootPartySubID); + FIELD_SET(*this, FIX::RootPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoSides); + class NoSides: public FIX::Group + { + public: + NoSides() : FIX::Group(552,54,FIX::message_order(54,11,526,583,453,229,75,1,660,581,589,590,591,70,78,854,38,152,516,468,469,12,13,479,497,528,529,1091,582,121,120,775,58,354,355,77,203,544,635,377,659,962,0)) {} + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::SideComplianceID); + FIELD_SET(*this, FIX::SideTimeInForce); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TransBkdTime); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/NewOrderList.h b/linux/include/quickfix/fix50/NewOrderList.h new file mode 100644 index 000000000..51ea4fc0f --- /dev/null +++ b/linux/include/quickfix/fix50/NewOrderList.h @@ -0,0 +1,392 @@ +#ifndef FIX50_NEWORDERLIST_H +#define FIX50_NEWORDERLIST_H + +#include "Message.h" + +namespace FIX50 +{ + + class NewOrderList : public Message + { + public: + NewOrderList() : Message(MsgType()) {} + NewOrderList(const FIX::Message& m) : Message(m) {} + NewOrderList(const Message& m) : Message(m) {} + NewOrderList(const NewOrderList& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("E"); } + + NewOrderList( + const FIX::ListID& aListID, + const FIX::BidType& aBidType, + const FIX::TotNoOrders& aTotNoOrders ) + : Message(MsgType()) + { + set(aListID); + set(aBidType); + set(aTotNoOrders); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::ProgRptReqs); + FIELD_SET(*this, FIX::BidType); + FIELD_SET(*this, FIX::ProgPeriodInterval); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::ListExecInstType); + FIELD_SET(*this, FIX::ListExecInst); + FIELD_SET(*this, FIX::EncodedListExecInstLen); + FIELD_SET(*this, FIX::EncodedListExecInst); + FIELD_SET(*this, FIX::AllowableOneSidednessPct); + FIELD_SET(*this, FIX::AllowableOneSidednessValue); + FIELD_SET(*this, FIX::AllowableOneSidednessCurr); + FIELD_SET(*this, FIX::TotNoOrders); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoRootPartyIDs); + class NoRootPartyIDs: public FIX::Group + { + public: + NoRootPartyIDs() : FIX::Group(1116,1117,FIX::message_order(1117,1118,1119,1120,0)) {} + FIELD_SET(*this, FIX::RootPartyID); + FIELD_SET(*this, FIX::RootPartyIDSource); + FIELD_SET(*this, FIX::RootPartyRole); + FIELD_SET(*this, FIX::NoRootPartySubIDs); + class NoRootPartySubIDs: public FIX::Group + { + public: + NoRootPartySubIDs() : FIX::Group(1120,1121,FIX::message_order(1121,1122,0)) {} + FIELD_SET(*this, FIX::RootPartySubID); + FIELD_SET(*this, FIX::RootPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,526,67,583,160,453,229,75,1,660,581,589,590,70,591,78,63,64,544,635,21,18,110,1089,1090,1138,1082,1083,1084,1085,1086,1087,1088,111,100,1133,386,81,55,65,48,22,460,461,167,762,200,541,1079,201,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,996,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,711,140,54,401,114,60,232,854,38,152,516,468,469,40,423,44,1092,99,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,218,220,221,222,662,663,699,761,235,236,701,696,697,698,15,376,377,23,117,1080,1081,59,168,432,126,427,12,13,479,497,528,529,1091,582,121,120,775,58,354,355,193,192,640,77,203,210,211,1094,835,836,837,838,840,1096,1097,1098,1099,388,389,841,842,843,844,846,847,957,848,849,494,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListSeqNo); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::SettlInstMode); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::SideValueInd); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::RefOrderID); + FIELD_SET(*this, FIX::RefOrderIDSource); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::Designation); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/NewOrderMultileg.h b/linux/include/quickfix/fix50/NewOrderMultileg.h new file mode 100644 index 000000000..8ea57c1c1 --- /dev/null +++ b/linux/include/quickfix/fix50/NewOrderMultileg.h @@ -0,0 +1,442 @@ +#ifndef FIX50_NEWORDERMULTILEG_H +#define FIX50_NEWORDERMULTILEG_H + +#include "Message.h" + +namespace FIX50 +{ + + class NewOrderMultileg : public Message + { + public: + NewOrderMultileg() : Message(MsgType()) {} + NewOrderMultileg(const FIX::Message& m) : Message(m) {} + NewOrderMultileg(const Message& m) : Message(m) {} + NewOrderMultileg(const NewOrderMultileg& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AB"); } + + NewOrderMultileg( + const FIX::ClOrdID& aClOrdID, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aClOrdID); + set(aSide); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,948,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNested3PartyIDs); + class NoNested3PartyIDs: public FIX::Group + { + public: + NoNested3PartyIDs() : FIX::Group(948,949,FIX::message_order(949,950,951,952,0)) {} + FIELD_SET(*this, FIX::Nested3PartyID); + FIELD_SET(*this, FIX::Nested3PartyIDSource); + FIELD_SET(*this, FIX::Nested3PartyRole); + FIELD_SET(*this, FIX::NoNested3PartySubIDs); + class NoNested3PartySubIDs: public FIX::Group + { + public: + NoNested3PartySubIDs() : FIX::Group(952,953,FIX::message_order(953,954,0)) {} + FIELD_SET(*this, FIX::Nested3PartySubID); + FIELD_SET(*this, FIX::Nested3PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::SwapPoints); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,687,690,683,670,564,565,539,654,566,587,588,685,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoLegAllocs); + class NoLegAllocs: public FIX::Group + { + public: + NoLegAllocs() : FIX::Group(670,671,FIX::message_order(671,672,756,673,674,675,0)) {} + FIELD_SET(*this, FIX::LegAllocAccount); + FIELD_SET(*this, FIX::LegIndividualAllocID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegAllocQty); + FIELD_SET(*this, FIX::LegAllocAcctIDSource); + FIELD_SET(*this, FIX::LegSettlCurrency); + }; + FIELD_SET(*this, FIX::LegPositionEffect); + FIELD_SET(*this, FIX::LegCoveredOrUncovered); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegPrice); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::LegOrderQty); + }; + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::RefOrderID); + FIELD_SET(*this, FIX::RefOrderIDSource); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::MultiLegRptTypeReq); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/NewOrderSingle.h b/linux/include/quickfix/fix50/NewOrderSingle.h new file mode 100644 index 000000000..651269e31 --- /dev/null +++ b/linux/include/quickfix/fix50/NewOrderSingle.h @@ -0,0 +1,379 @@ +#ifndef FIX50_NEWORDERSINGLE_H +#define FIX50_NEWORDERSINGLE_H + +#include "Message.h" + +namespace FIX50 +{ + + class NewOrderSingle : public Message + { + public: + NewOrderSingle() : Message(MsgType()) {} + NewOrderSingle(const FIX::Message& m) : Message(m) {} + NewOrderSingle(const Message& m) : Message(m) {} + NewOrderSingle(const NewOrderSingle& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("D"); } + + NewOrderSingle( + const FIX::ClOrdID& aClOrdID, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aClOrdID); + set(aSide); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::ManualOrderIndicator); + FIELD_SET(*this, FIX::CustDirectedOrder); + FIELD_SET(*this, FIX::ReceivedDeptID); + FIELD_SET(*this, FIX::CustOrderHandlingInst); + FIELD_SET(*this, FIX::OrderHandlingInstSource); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::RefOrderID); + FIELD_SET(*this, FIX::RefOrderIDSource); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/News.h b/linux/include/quickfix/fix50/News.h new file mode 100644 index 000000000..137f606e2 --- /dev/null +++ b/linux/include/quickfix/fix50/News.h @@ -0,0 +1,224 @@ +#ifndef FIX50_NEWS_H +#define FIX50_NEWS_H + +#include "Message.h" + +namespace FIX50 +{ + + class News : public Message + { + public: + News() : Message(MsgType()) {} + News(const FIX::Message& m) : Message(m) {} + News(const Message& m) : Message(m) {} + News(const News& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("B"); } + + News( + const FIX::Headline& aHeadline ) + : Message(MsgType()) + { + set(aHeadline); + } + + FIELD_SET(*this, FIX::OrigTime); + FIELD_SET(*this, FIX::Urgency); + FIELD_SET(*this, FIX::Headline); + FIELD_SET(*this, FIX::EncodedHeadlineLen); + FIELD_SET(*this, FIX::EncodedHeadline); + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,461,167,762,200,541,1079,201,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,996,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoLinesOfText); + class NoLinesOfText: public FIX::Group + { + public: + NoLinesOfText() : FIX::Group(33,58,FIX::message_order(58,354,355,0)) {} + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + FIELD_SET(*this, FIX::URLLink); + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/OrderCancelReject.h b/linux/include/quickfix/fix50/OrderCancelReject.h new file mode 100644 index 000000000..6c2665c74 --- /dev/null +++ b/linux/include/quickfix/fix50/OrderCancelReject.h @@ -0,0 +1,58 @@ +#ifndef FIX50_ORDERCANCELREJECT_H +#define FIX50_ORDERCANCELREJECT_H + +#include "Message.h" + +namespace FIX50 +{ + + class OrderCancelReject : public Message + { + public: + OrderCancelReject() : Message(MsgType()) {} + OrderCancelReject(const FIX::Message& m) : Message(m) {} + OrderCancelReject(const Message& m) : Message(m) {} + OrderCancelReject(const OrderCancelReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("9"); } + + OrderCancelReject( + const FIX::OrderID& aOrderID, + const FIX::ClOrdID& aClOrdID, + const FIX::OrigClOrdID& aOrigClOrdID, + const FIX::OrdStatus& aOrdStatus, + const FIX::CxlRejResponseTo& aCxlRejResponseTo ) + : Message(MsgType()) + { + set(aOrderID); + set(aClOrdID); + set(aOrigClOrdID); + set(aOrdStatus); + set(aCxlRejResponseTo); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::WorkingIndicator); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::CxlRejResponseTo); + FIELD_SET(*this, FIX::CxlRejReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/OrderCancelReplaceRequest.h b/linux/include/quickfix/fix50/OrderCancelReplaceRequest.h new file mode 100644 index 000000000..6045663c5 --- /dev/null +++ b/linux/include/quickfix/fix50/OrderCancelReplaceRequest.h @@ -0,0 +1,371 @@ +#ifndef FIX50_ORDERCANCELREPLACEREQUEST_H +#define FIX50_ORDERCANCELREPLACEREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class OrderCancelReplaceRequest : public Message + { + public: + OrderCancelReplaceRequest() : Message(MsgType()) {} + OrderCancelReplaceRequest(const FIX::Message& m) : Message(m) {} + OrderCancelReplaceRequest(const Message& m) : Message(m) {} + OrderCancelReplaceRequest(const OrderCancelReplaceRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("G"); } + + OrderCancelReplaceRequest( + const FIX::OrigClOrdID& aOrigClOrdID, + const FIX::ClOrdID& aClOrdID, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aOrigClOrdID); + set(aClOrdID); + set(aSide); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::ManualOrderIndicator); + FIELD_SET(*this, FIX::CustDirectedOrder); + FIELD_SET(*this, FIX::ReceivedDeptID); + FIELD_SET(*this, FIX::CustOrderHandlingInst); + FIELD_SET(*this, FIX::OrderHandlingInstSource); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/OrderCancelRequest.h b/linux/include/quickfix/fix50/OrderCancelRequest.h new file mode 100644 index 000000000..d3840c489 --- /dev/null +++ b/linux/include/quickfix/fix50/OrderCancelRequest.h @@ -0,0 +1,196 @@ +#ifndef FIX50_ORDERCANCELREQUEST_H +#define FIX50_ORDERCANCELREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class OrderCancelRequest : public Message + { + public: + OrderCancelRequest() : Message(MsgType()) {} + OrderCancelRequest(const FIX::Message& m) : Message(m) {} + OrderCancelRequest(const Message& m) : Message(m) {} + OrderCancelRequest(const OrderCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("F"); } + + OrderCancelRequest( + const FIX::OrigClOrdID& aOrigClOrdID, + const FIX::ClOrdID& aClOrdID, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aOrigClOrdID); + set(aClOrdID); + set(aSide); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/OrderMassCancelReport.h b/linux/include/quickfix/fix50/OrderMassCancelReport.h new file mode 100644 index 000000000..99ded647f --- /dev/null +++ b/linux/include/quickfix/fix50/OrderMassCancelReport.h @@ -0,0 +1,182 @@ +#ifndef FIX50_ORDERMASSCANCELREPORT_H +#define FIX50_ORDERMASSCANCELREPORT_H + +#include "Message.h" + +namespace FIX50 +{ + + class OrderMassCancelReport : public Message + { + public: + OrderMassCancelReport() : Message(MsgType()) {} + OrderMassCancelReport(const FIX::Message& m) : Message(m) {} + OrderMassCancelReport(const Message& m) : Message(m) {} + OrderMassCancelReport(const OrderMassCancelReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("r"); } + + OrderMassCancelReport( + const FIX::OrderID& aOrderID, + const FIX::MassCancelRequestType& aMassCancelRequestType, + const FIX::MassCancelResponse& aMassCancelResponse ) + : Message(MsgType()) + { + set(aOrderID); + set(aMassCancelRequestType); + set(aMassCancelResponse); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::MassCancelRequestType); + FIELD_SET(*this, FIX::MassCancelResponse); + FIELD_SET(*this, FIX::MassCancelRejectReason); + FIELD_SET(*this, FIX::TotalAffectedOrders); + FIELD_SET(*this, FIX::NoAffectedOrders); + class NoAffectedOrders: public FIX::Group + { + public: + NoAffectedOrders() : FIX::Group(534,41,FIX::message_order(41,535,536,0)) {} + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::AffectedOrderID); + FIELD_SET(*this, FIX::AffectedSecondaryOrderID); + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/OrderMassCancelRequest.h b/linux/include/quickfix/fix50/OrderMassCancelRequest.h new file mode 100644 index 000000000..70543ffd2 --- /dev/null +++ b/linux/include/quickfix/fix50/OrderMassCancelRequest.h @@ -0,0 +1,168 @@ +#ifndef FIX50_ORDERMASSCANCELREQUEST_H +#define FIX50_ORDERMASSCANCELREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class OrderMassCancelRequest : public Message + { + public: + OrderMassCancelRequest() : Message(MsgType()) {} + OrderMassCancelRequest(const FIX::Message& m) : Message(m) {} + OrderMassCancelRequest(const Message& m) : Message(m) {} + OrderMassCancelRequest(const OrderMassCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("q"); } + + OrderMassCancelRequest( + const FIX::ClOrdID& aClOrdID, + const FIX::MassCancelRequestType& aMassCancelRequestType, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aClOrdID); + set(aMassCancelRequestType); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::MassCancelRequestType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/OrderMassStatusRequest.h b/linux/include/quickfix/fix50/OrderMassStatusRequest.h new file mode 100644 index 000000000..b88e4a0f6 --- /dev/null +++ b/linux/include/quickfix/fix50/OrderMassStatusRequest.h @@ -0,0 +1,163 @@ +#ifndef FIX50_ORDERMASSSTATUSREQUEST_H +#define FIX50_ORDERMASSSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class OrderMassStatusRequest : public Message + { + public: + OrderMassStatusRequest() : Message(MsgType()) {} + OrderMassStatusRequest(const FIX::Message& m) : Message(m) {} + OrderMassStatusRequest(const Message& m) : Message(m) {} + OrderMassStatusRequest(const OrderMassStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AF"); } + + OrderMassStatusRequest( + const FIX::MassStatusReqID& aMassStatusReqID, + const FIX::MassStatusReqType& aMassStatusReqType ) + : Message(MsgType()) + { + set(aMassStatusReqID); + set(aMassStatusReqType); + } + + FIELD_SET(*this, FIX::MassStatusReqID); + FIELD_SET(*this, FIX::MassStatusReqType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::Side); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/OrderStatusRequest.h b/linux/include/quickfix/fix50/OrderStatusRequest.h new file mode 100644 index 000000000..0ef5883e9 --- /dev/null +++ b/linux/include/quickfix/fix50/OrderStatusRequest.h @@ -0,0 +1,179 @@ +#ifndef FIX50_ORDERSTATUSREQUEST_H +#define FIX50_ORDERSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class OrderStatusRequest : public Message + { + public: + OrderStatusRequest() : Message(MsgType()) {} + OrderStatusRequest(const FIX::Message& m) : Message(m) {} + OrderStatusRequest(const Message& m) : Message(m) {} + OrderStatusRequest(const OrderStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("H"); } + + OrderStatusRequest( + const FIX::ClOrdID& aClOrdID, + const FIX::Side& aSide ) + : Message(MsgType()) + { + set(aClOrdID); + set(aSide); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OrdStatusReqID); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::Side); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/PositionMaintenanceReport.h b/linux/include/quickfix/fix50/PositionMaintenanceReport.h new file mode 100644 index 000000000..a617f4920 --- /dev/null +++ b/linux/include/quickfix/fix50/PositionMaintenanceReport.h @@ -0,0 +1,287 @@ +#ifndef FIX50_POSITIONMAINTENANCEREPORT_H +#define FIX50_POSITIONMAINTENANCEREPORT_H + +#include "Message.h" + +namespace FIX50 +{ + + class PositionMaintenanceReport : public Message + { + public: + PositionMaintenanceReport() : Message(MsgType()) {} + PositionMaintenanceReport(const FIX::Message& m) : Message(m) {} + PositionMaintenanceReport(const Message& m) : Message(m) {} + PositionMaintenanceReport(const PositionMaintenanceReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AM"); } + + PositionMaintenanceReport( + const FIX::PosMaintRptID& aPosMaintRptID, + const FIX::PosTransType& aPosTransType, + const FIX::PosMaintAction& aPosMaintAction, + const FIX::PosMaintStatus& aPosMaintStatus, + const FIX::ClearingBusinessDate& aClearingBusinessDate ) + : Message(MsgType()) + { + set(aPosMaintRptID); + set(aPosTransType); + set(aPosMaintAction); + set(aPosMaintStatus); + set(aClearingBusinessDate); + } + + FIELD_SET(*this, FIX::PosMaintRptID); + FIELD_SET(*this, FIX::PosTransType); + FIELD_SET(*this, FIX::PosReqID); + FIELD_SET(*this, FIX::PosMaintAction); + FIELD_SET(*this, FIX::OrigPosReqRefID); + FIELD_SET(*this, FIX::PosMaintStatus); + FIELD_SET(*this, FIX::PosMaintResult); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::PosMaintRptRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::ContraryInstructionIndicator); + FIELD_SET(*this, FIX::PriorSpreadIndicator); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoPositions); + class NoPositions: public FIX::Group + { + public: + NoPositions() : FIX::Group(702,703,FIX::message_order(703,704,705,706,976,539,0)) {} + FIELD_SET(*this, FIX::PosType); + FIELD_SET(*this, FIX::LongQty); + FIELD_SET(*this, FIX::ShortQty); + FIELD_SET(*this, FIX::PosQtyStatus); + FIELD_SET(*this, FIX::QuantityDate); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::AdjustmentType); + FIELD_SET(*this, FIX::ThresholdAmount); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/PositionMaintenanceRequest.h b/linux/include/quickfix/fix50/PositionMaintenanceRequest.h new file mode 100644 index 000000000..c1604285a --- /dev/null +++ b/linux/include/quickfix/fix50/PositionMaintenanceRequest.h @@ -0,0 +1,280 @@ +#ifndef FIX50_POSITIONMAINTENANCEREQUEST_H +#define FIX50_POSITIONMAINTENANCEREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class PositionMaintenanceRequest : public Message + { + public: + PositionMaintenanceRequest() : Message(MsgType()) {} + PositionMaintenanceRequest(const FIX::Message& m) : Message(m) {} + PositionMaintenanceRequest(const Message& m) : Message(m) {} + PositionMaintenanceRequest(const PositionMaintenanceRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AL"); } + + PositionMaintenanceRequest( + const FIX::PosTransType& aPosTransType, + const FIX::PosMaintAction& aPosMaintAction, + const FIX::ClearingBusinessDate& aClearingBusinessDate ) + : Message(MsgType()) + { + set(aPosTransType); + set(aPosMaintAction); + set(aClearingBusinessDate); + } + + FIELD_SET(*this, FIX::PosReqID); + FIELD_SET(*this, FIX::PosTransType); + FIELD_SET(*this, FIX::PosMaintAction); + FIELD_SET(*this, FIX::OrigPosReqRefID); + FIELD_SET(*this, FIX::PosMaintRptRefID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoPositions); + class NoPositions: public FIX::Group + { + public: + NoPositions() : FIX::Group(702,703,FIX::message_order(703,704,705,706,976,539,0)) {} + FIELD_SET(*this, FIX::PosType); + FIELD_SET(*this, FIX::LongQty); + FIELD_SET(*this, FIX::ShortQty); + FIELD_SET(*this, FIX::PosQtyStatus); + FIELD_SET(*this, FIX::QuantityDate); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::AdjustmentType); + FIELD_SET(*this, FIX::ContraryInstructionIndicator); + FIELD_SET(*this, FIX::PriorSpreadIndicator); + FIELD_SET(*this, FIX::ThresholdAmount); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::SettlCurrency); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/PositionReport.h b/linux/include/quickfix/fix50/PositionReport.h new file mode 100644 index 000000000..40e90a987 --- /dev/null +++ b/linux/include/quickfix/fix50/PositionReport.h @@ -0,0 +1,288 @@ +#ifndef FIX50_POSITIONREPORT_H +#define FIX50_POSITIONREPORT_H + +#include "Message.h" + +namespace FIX50 +{ + + class PositionReport : public Message + { + public: + PositionReport() : Message(MsgType()) {} + PositionReport(const FIX::Message& m) : Message(m) {} + PositionReport(const Message& m) : Message(m) {} + PositionReport(const PositionReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AP"); } + + PositionReport( + const FIX::PosMaintRptID& aPosMaintRptID, + const FIX::ClearingBusinessDate& aClearingBusinessDate ) + : Message(MsgType()) + { + set(aPosMaintRptID); + set(aClearingBusinessDate); + } + + FIELD_SET(*this, FIX::PosMaintRptID); + FIELD_SET(*this, FIX::PosReqID); + FIELD_SET(*this, FIX::PosReqType); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TotalNumPosReports); + FIELD_SET(*this, FIX::PosReqResult); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::MessageEventSource); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SettlPrice); + FIELD_SET(*this, FIX::SettlPriceType); + FIELD_SET(*this, FIX::PriorSettlPrice); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,732,733,1037,984,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingSettlPrice); + FIELD_SET(*this, FIX::UnderlyingSettlPriceType); + FIELD_SET(*this, FIX::UnderlyingDeliveryAmount); + FIELD_SET(*this, FIX::NoUnderlyingAmounts); + class NoUnderlyingAmounts: public FIX::Group + { + public: + NoUnderlyingAmounts() : FIX::Group(984,985,FIX::message_order(985,986,987,988,0)) {} + FIELD_SET(*this, FIX::UnderlyingPayAmount); + FIELD_SET(*this, FIX::UnderlyingCollectAmount); + FIELD_SET(*this, FIX::UnderlyingSettlementDate); + FIELD_SET(*this, FIX::UnderlyingSettlementStatus); + }; + }; + FIELD_SET(*this, FIX::NoPositions); + class NoPositions: public FIX::Group + { + public: + NoPositions() : FIX::Group(702,703,FIX::message_order(703,704,705,706,976,539,0)) {} + FIELD_SET(*this, FIX::PosType); + FIELD_SET(*this, FIX::LongQty); + FIELD_SET(*this, FIX::ShortQty); + FIELD_SET(*this, FIX::PosQtyStatus); + FIELD_SET(*this, FIX::QuantityDate); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::RegistStatus); + FIELD_SET(*this, FIX::DeliveryDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/Quote.h b/linux/include/quickfix/fix50/Quote.h new file mode 100644 index 000000000..762cbc0e8 --- /dev/null +++ b/linux/include/quickfix/fix50/Quote.h @@ -0,0 +1,346 @@ +#ifndef FIX50_QUOTE_H +#define FIX50_QUOTE_H + +#include "Message.h" + +namespace FIX50 +{ + + class Quote : public Message + { + public: + Quote() : Message(MsgType()) {} + Quote(const FIX::Message& m) : Message(m) {} + Quote(const Message& m) : Message(m) {} + Quote(const Quote& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("S"); } + + Quote( + const FIX::QuoteID& aQuoteID ) + : Message(MsgType()) + { + set(aQuoteID); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteRespID); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::NoQuoteQualifiers); + class NoQuoteQualifiers: public FIX::Group + { + public: + NoQuoteQualifiers() : FIX::Group(735,695,FIX::message_order(695,0)) {} + FIELD_SET(*this, FIX::QuoteQualifier); + }; + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,687,685,690,587,588,683,539,686,681,684,676,677,678,679,680,654,1067,1068,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegOrderQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegPriceType); + FIELD_SET(*this, FIX::LegBidPx); + FIELD_SET(*this, FIX::LegOfferPx); + FIELD_SET(*this, FIX::LegBenchmarkCurveCurrency); + FIELD_SET(*this, FIX::LegBenchmarkCurveName); + FIELD_SET(*this, FIX::LegBenchmarkCurvePoint); + FIELD_SET(*this, FIX::LegBenchmarkPrice); + FIELD_SET(*this, FIX::LegBenchmarkPriceType); + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegBidForwardPoints); + FIELD_SET(*this, FIX::LegOfferForwardPoints); + }; + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::MktBidPx); + FIELD_SET(*this, FIX::MktOfferPx); + FIELD_SET(*this, FIX::MinBidSize); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::MinOfferSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::BidSwapPoints); + FIELD_SET(*this, FIX::OfferSwapPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::SettlCurrBidFxRate); + FIELD_SET(*this, FIX::SettlCurrOfferFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/QuoteCancel.h b/linux/include/quickfix/fix50/QuoteCancel.h new file mode 100644 index 000000000..280f7e83f --- /dev/null +++ b/linux/include/quickfix/fix50/QuoteCancel.h @@ -0,0 +1,234 @@ +#ifndef FIX50_QUOTECANCEL_H +#define FIX50_QUOTECANCEL_H + +#include "Message.h" + +namespace FIX50 +{ + + class QuoteCancel : public Message + { + public: + QuoteCancel() : Message(MsgType()) {} + QuoteCancel(const FIX::Message& m) : Message(m) {} + QuoteCancel(const Message& m) : Message(m) {} + QuoteCancel(const QuoteCancel& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("Z"); } + + QuoteCancel( + const FIX::QuoteCancelType& aQuoteCancelType ) + : Message(MsgType()) + { + set(aQuoteCancelType); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteCancelType); + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NoQuoteEntries); + class NoQuoteEntries: public FIX::Group + { + public: + NoQuoteEntries() : FIX::Group(295,55,FIX::message_order(55,65,48,22,460,461,167,762,200,541,1079,201,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,996,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,913,914,915,918,788,916,917,919,898,711,555,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/QuoteRequest.h b/linux/include/quickfix/fix50/QuoteRequest.h new file mode 100644 index 000000000..6db80c243 --- /dev/null +++ b/linux/include/quickfix/fix50/QuoteRequest.h @@ -0,0 +1,327 @@ +#ifndef FIX50_QUOTEREQUEST_H +#define FIX50_QUOTEREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class QuoteRequest : public Message + { + public: + QuoteRequest() : Message(MsgType()) {} + QuoteRequest(const FIX::Message& m) : Message(m) {} + QuoteRequest(const Message& m) : Message(m) {} + QuoteRequest(const QuoteRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("R"); } + + QuoteRequest( + const FIX::QuoteReqID& aQuoteReqID ) + : Message(MsgType()) + { + set(aQuoteReqID); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::RFQReqID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,461,167,762,200,541,1079,201,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,996,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,913,914,915,918,788,916,917,919,898,711,140,303,537,336,625,229,54,854,38,152,516,468,469,63,64,193,192,15,232,1,660,581,555,735,692,40,62,126,60,218,220,221,222,662,663,699,761,423,44,640,235,236,701,696,697,698,453,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::QuoteRequestType); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,566,687,685,690,587,588,683,539,676,677,678,679,680,654,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegPrice); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegOrderQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegBenchmarkCurveCurrency); + FIELD_SET(*this, FIX::LegBenchmarkCurveName); + FIELD_SET(*this, FIX::LegBenchmarkCurvePoint); + FIELD_SET(*this, FIX::LegBenchmarkPrice); + FIELD_SET(*this, FIX::LegBenchmarkPriceType); + FIELD_SET(*this, FIX::LegRefID); + }; + FIELD_SET(*this, FIX::NoQuoteQualifiers); + class NoQuoteQualifiers: public FIX::Group + { + public: + NoQuoteQualifiers() : FIX::Group(735,695,FIX::message_order(695,0)) {} + FIELD_SET(*this, FIX::QuoteQualifier); + }; + FIELD_SET(*this, FIX::QuotePriceType); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/QuoteRequestReject.h b/linux/include/quickfix/fix50/QuoteRequestReject.h new file mode 100644 index 000000000..18b367d69 --- /dev/null +++ b/linux/include/quickfix/fix50/QuoteRequestReject.h @@ -0,0 +1,327 @@ +#ifndef FIX50_QUOTEREQUESTREJECT_H +#define FIX50_QUOTEREQUESTREJECT_H + +#include "Message.h" + +namespace FIX50 +{ + + class QuoteRequestReject : public Message + { + public: + QuoteRequestReject() : Message(MsgType()) {} + QuoteRequestReject(const FIX::Message& m) : Message(m) {} + QuoteRequestReject(const Message& m) : Message(m) {} + QuoteRequestReject(const QuoteRequestReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AG"); } + + QuoteRequestReject( + const FIX::QuoteReqID& aQuoteReqID, + const FIX::QuoteRequestRejectReason& aQuoteRequestRejectReason ) + : Message(MsgType()) + { + set(aQuoteReqID); + set(aQuoteRequestRejectReason); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::RFQReqID); + FIELD_SET(*this, FIX::QuoteRequestRejectReason); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,461,167,762,200,541,1079,201,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,996,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,913,914,915,918,788,916,917,919,898,711,140,303,537,336,625,229,54,854,38,152,516,468,469,63,64,193,192,15,232,1,660,581,555,735,692,40,126,60,218,220,221,222,662,663,699,761,423,44,640,235,236,701,696,697,698,453,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::QuoteRequestType); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,566,687,685,690,587,588,683,539,676,677,678,679,680,654,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegPrice); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegOrderQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegBenchmarkCurveCurrency); + FIELD_SET(*this, FIX::LegBenchmarkCurveName); + FIELD_SET(*this, FIX::LegBenchmarkCurvePoint); + FIELD_SET(*this, FIX::LegBenchmarkPrice); + FIELD_SET(*this, FIX::LegBenchmarkPriceType); + FIELD_SET(*this, FIX::LegRefID); + }; + FIELD_SET(*this, FIX::NoQuoteQualifiers); + class NoQuoteQualifiers: public FIX::Group + { + public: + NoQuoteQualifiers() : FIX::Group(735,695,FIX::message_order(695,0)) {} + FIELD_SET(*this, FIX::QuoteQualifier); + }; + FIELD_SET(*this, FIX::QuotePriceType); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/QuoteResponse.h b/linux/include/quickfix/fix50/QuoteResponse.h new file mode 100644 index 000000000..ea535ff19 --- /dev/null +++ b/linux/include/quickfix/fix50/QuoteResponse.h @@ -0,0 +1,348 @@ +#ifndef FIX50_QUOTERESPONSE_H +#define FIX50_QUOTERESPONSE_H + +#include "Message.h" + +namespace FIX50 +{ + + class QuoteResponse : public Message + { + public: + QuoteResponse() : Message(MsgType()) {} + QuoteResponse(const FIX::Message& m) : Message(m) {} + QuoteResponse(const Message& m) : Message(m) {} + QuoteResponse(const QuoteResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AJ"); } + + QuoteResponse( + const FIX::QuoteRespID& aQuoteRespID, + const FIX::QuoteRespType& aQuoteRespType ) + : Message(MsgType()) + { + set(aQuoteRespID); + set(aQuoteRespType); + } + + FIELD_SET(*this, FIX::QuoteRespID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteRespType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::NoQuoteQualifiers); + class NoQuoteQualifiers: public FIX::Group + { + public: + NoQuoteQualifiers() : FIX::Group(735,695,FIX::message_order(695,0)) {} + FIELD_SET(*this, FIX::QuoteQualifier); + }; + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,687,685,690,587,588,683,539,686,681,684,676,677,678,679,680,654,1067,1068,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegOrderQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegPriceType); + FIELD_SET(*this, FIX::LegBidPx); + FIELD_SET(*this, FIX::LegOfferPx); + FIELD_SET(*this, FIX::LegBenchmarkCurveCurrency); + FIELD_SET(*this, FIX::LegBenchmarkCurveName); + FIELD_SET(*this, FIX::LegBenchmarkCurvePoint); + FIELD_SET(*this, FIX::LegBenchmarkPrice); + FIELD_SET(*this, FIX::LegBenchmarkPriceType); + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegBidForwardPoints); + FIELD_SET(*this, FIX::LegOfferForwardPoints); + }; + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::MktBidPx); + FIELD_SET(*this, FIX::MktOfferPx); + FIELD_SET(*this, FIX::MinBidSize); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::MinOfferSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::SettlCurrBidFxRate); + FIELD_SET(*this, FIX::SettlCurrOfferFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/QuoteStatusReport.h b/linux/include/quickfix/fix50/QuoteStatusReport.h new file mode 100644 index 000000000..a09b83284 --- /dev/null +++ b/linux/include/quickfix/fix50/QuoteStatusReport.h @@ -0,0 +1,335 @@ +#ifndef FIX50_QUOTESTATUSREPORT_H +#define FIX50_QUOTESTATUSREPORT_H + +#include "Message.h" + +namespace FIX50 +{ + + class QuoteStatusReport : public Message + { + public: + QuoteStatusReport() : Message(MsgType()) {} + QuoteStatusReport(const FIX::Message& m) : Message(m) {} + QuoteStatusReport(const Message& m) : Message(m) {} + QuoteStatusReport(const QuoteStatusReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AI"); } + + QuoteStatusReport( + const FIX::QuoteID& aQuoteID ) + : Message(MsgType()) + { + set(aQuoteID); + } + + FIELD_SET(*this, FIX::QuoteStatusReqID); + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteRespID); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,687,685,690,587,588,683,539,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegOrderQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::NoQuoteQualifiers); + class NoQuoteQualifiers: public FIX::Group + { + public: + NoQuoteQualifiers() : FIX::Group(735,695,FIX::message_order(695,0)) {} + FIELD_SET(*this, FIX::QuoteQualifier); + }; + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::MktBidPx); + FIELD_SET(*this, FIX::MktOfferPx); + FIELD_SET(*this, FIX::MinBidSize); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::MinOfferSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::SettlCurrBidFxRate); + FIELD_SET(*this, FIX::SettlCurrOfferFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::QuoteStatus); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/QuoteStatusRequest.h b/linux/include/quickfix/fix50/QuoteStatusRequest.h new file mode 100644 index 000000000..85486b891 --- /dev/null +++ b/linux/include/quickfix/fix50/QuoteStatusRequest.h @@ -0,0 +1,220 @@ +#ifndef FIX50_QUOTESTATUSREQUEST_H +#define FIX50_QUOTESTATUSREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class QuoteStatusRequest : public Message + { + public: + QuoteStatusRequest() : Message(MsgType()) {} + QuoteStatusRequest(const FIX::Message& m) : Message(m) {} + QuoteStatusRequest(const Message& m) : Message(m) {} + QuoteStatusRequest(const QuoteStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("a"); } + + FIELD_SET(*this, FIX::QuoteStatusReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/RFQRequest.h b/linux/include/quickfix/fix50/RFQRequest.h new file mode 100644 index 000000000..bd2918cbd --- /dev/null +++ b/linux/include/quickfix/fix50/RFQRequest.h @@ -0,0 +1,206 @@ +#ifndef FIX50_RFQREQUEST_H +#define FIX50_RFQREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class RFQRequest : public Message + { + public: + RFQRequest() : Message(MsgType()) {} + RFQRequest(const FIX::Message& m) : Message(m) {} + RFQRequest(const Message& m) : Message(m) {} + RFQRequest(const RFQRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AH"); } + + RFQRequest( + const FIX::RFQReqID& aRFQReqID ) + : Message(MsgType()) + { + set(aRFQReqID); + } + + FIELD_SET(*this, FIX::RFQReqID); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,461,167,762,200,541,1079,201,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,996,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,711,555,140,303,537,336,625,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::QuoteRequestType); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/RegistrationInstructions.h b/linux/include/quickfix/fix50/RegistrationInstructions.h new file mode 100644 index 000000000..4410b0a2c --- /dev/null +++ b/linux/include/quickfix/fix50/RegistrationInstructions.h @@ -0,0 +1,103 @@ +#ifndef FIX50_REGISTRATIONINSTRUCTIONS_H +#define FIX50_REGISTRATIONINSTRUCTIONS_H + +#include "Message.h" + +namespace FIX50 +{ + + class RegistrationInstructions : public Message + { + public: + RegistrationInstructions() : Message(MsgType()) {} + RegistrationInstructions(const FIX::Message& m) : Message(m) {} + RegistrationInstructions(const Message& m) : Message(m) {} + RegistrationInstructions(const RegistrationInstructions& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("o"); } + + RegistrationInstructions( + const FIX::RegistID& aRegistID, + const FIX::RegistTransType& aRegistTransType, + const FIX::RegistRefID& aRegistRefID ) + : Message(MsgType()) + { + set(aRegistID); + set(aRegistTransType); + set(aRegistRefID); + } + + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::RegistTransType); + FIELD_SET(*this, FIX::RegistRefID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::RegistAcctType); + FIELD_SET(*this, FIX::TaxAdvantageType); + FIELD_SET(*this, FIX::OwnershipType); + FIELD_SET(*this, FIX::NoRegistDtls); + class NoRegistDtls: public FIX::Group + { + public: + NoRegistDtls() : FIX::Group(473,509,FIX::message_order(509,511,474,482,539,522,486,475,0)) {} + FIELD_SET(*this, FIX::RegistDtls); + FIELD_SET(*this, FIX::RegistEmail); + FIELD_SET(*this, FIX::MailingDtls); + FIELD_SET(*this, FIX::MailingInst); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OwnerType); + FIELD_SET(*this, FIX::DateOfBirth); + FIELD_SET(*this, FIX::InvestorCountryOfResidence); + }; + FIELD_SET(*this, FIX::NoDistribInsts); + class NoDistribInsts: public FIX::Group + { + public: + NoDistribInsts() : FIX::Group(510,477,FIX::message_order(477,512,478,498,499,500,501,502,0)) {} + FIELD_SET(*this, FIX::DistribPaymentMethod); + FIELD_SET(*this, FIX::DistribPercentage); + FIELD_SET(*this, FIX::CashDistribCurr); + FIELD_SET(*this, FIX::CashDistribAgentName); + FIELD_SET(*this, FIX::CashDistribAgentCode); + FIELD_SET(*this, FIX::CashDistribAgentAcctNumber); + FIELD_SET(*this, FIX::CashDistribPayRef); + FIELD_SET(*this, FIX::CashDistribAgentAcctName); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/RegistrationInstructionsResponse.h b/linux/include/quickfix/fix50/RegistrationInstructionsResponse.h new file mode 100644 index 000000000..c3ed815ba --- /dev/null +++ b/linux/include/quickfix/fix50/RegistrationInstructionsResponse.h @@ -0,0 +1,61 @@ +#ifndef FIX50_REGISTRATIONINSTRUCTIONSRESPONSE_H +#define FIX50_REGISTRATIONINSTRUCTIONSRESPONSE_H + +#include "Message.h" + +namespace FIX50 +{ + + class RegistrationInstructionsResponse : public Message + { + public: + RegistrationInstructionsResponse() : Message(MsgType()) {} + RegistrationInstructionsResponse(const FIX::Message& m) : Message(m) {} + RegistrationInstructionsResponse(const Message& m) : Message(m) {} + RegistrationInstructionsResponse(const RegistrationInstructionsResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("p"); } + + RegistrationInstructionsResponse( + const FIX::RegistID& aRegistID, + const FIX::RegistTransType& aRegistTransType, + const FIX::RegistRefID& aRegistRefID, + const FIX::RegistStatus& aRegistStatus ) + : Message(MsgType()) + { + set(aRegistID); + set(aRegistTransType); + set(aRegistRefID); + set(aRegistStatus); + } + + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::RegistTransType); + FIELD_SET(*this, FIX::RegistRefID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::RegistStatus); + FIELD_SET(*this, FIX::RegistRejReasonCode); + FIELD_SET(*this, FIX::RegistRejReasonText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/RequestForPositions.h b/linux/include/quickfix/fix50/RequestForPositions.h new file mode 100644 index 000000000..9732ac347 --- /dev/null +++ b/linux/include/quickfix/fix50/RequestForPositions.h @@ -0,0 +1,242 @@ +#ifndef FIX50_REQUESTFORPOSITIONS_H +#define FIX50_REQUESTFORPOSITIONS_H + +#include "Message.h" + +namespace FIX50 +{ + + class RequestForPositions : public Message + { + public: + RequestForPositions() : Message(MsgType()) {} + RequestForPositions(const FIX::Message& m) : Message(m) {} + RequestForPositions(const Message& m) : Message(m) {} + RequestForPositions(const RequestForPositions& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AN"); } + + RequestForPositions( + const FIX::PosReqID& aPosReqID, + const FIX::PosReqType& aPosReqType, + const FIX::ClearingBusinessDate& aClearingBusinessDate, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aPosReqID); + set(aPosReqType); + set(aClearingBusinessDate); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::PosReqID); + FIELD_SET(*this, FIX::PosReqType); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/RequestForPositionsAck.h b/linux/include/quickfix/fix50/RequestForPositionsAck.h new file mode 100644 index 000000000..a809628c5 --- /dev/null +++ b/linux/include/quickfix/fix50/RequestForPositionsAck.h @@ -0,0 +1,236 @@ +#ifndef FIX50_REQUESTFORPOSITIONSACK_H +#define FIX50_REQUESTFORPOSITIONSACK_H + +#include "Message.h" + +namespace FIX50 +{ + + class RequestForPositionsAck : public Message + { + public: + RequestForPositionsAck() : Message(MsgType()) {} + RequestForPositionsAck(const FIX::Message& m) : Message(m) {} + RequestForPositionsAck(const Message& m) : Message(m) {} + RequestForPositionsAck(const RequestForPositionsAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AO"); } + + RequestForPositionsAck( + const FIX::PosMaintRptID& aPosMaintRptID, + const FIX::PosReqResult& aPosReqResult, + const FIX::PosReqStatus& aPosReqStatus ) + : Message(MsgType()) + { + set(aPosMaintRptID); + set(aPosReqResult); + set(aPosReqStatus); + } + + FIELD_SET(*this, FIX::PosMaintRptID); + FIELD_SET(*this, FIX::PosReqID); + FIELD_SET(*this, FIX::TotalNumPosReports); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::PosReqResult); + FIELD_SET(*this, FIX::PosReqStatus); + FIELD_SET(*this, FIX::PosReqType); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/SecurityDefinition.h b/linux/include/quickfix/fix50/SecurityDefinition.h new file mode 100644 index 000000000..80a0d8c06 --- /dev/null +++ b/linux/include/quickfix/fix50/SecurityDefinition.h @@ -0,0 +1,202 @@ +#ifndef FIX50_SECURITYDEFINITION_H +#define FIX50_SECURITYDEFINITION_H + +#include "Message.h" + +namespace FIX50 +{ + + class SecurityDefinition : public Message + { + public: + SecurityDefinition() : Message(MsgType()) {} + SecurityDefinition(const FIX::Message& m) : Message(m) {} + SecurityDefinition(const Message& m) : Message(m) {} + SecurityDefinition(const SecurityDefinition& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("d"); } + + FIELD_SET(*this, FIX::SecurityReportID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityResponseType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::ExpirationCycle); + FIELD_SET(*this, FIX::RoundLot); + FIELD_SET(*this, FIX::MinTradeVol); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/SecurityDefinitionRequest.h b/linux/include/quickfix/fix50/SecurityDefinitionRequest.h new file mode 100644 index 000000000..88c54e528 --- /dev/null +++ b/linux/include/quickfix/fix50/SecurityDefinitionRequest.h @@ -0,0 +1,207 @@ +#ifndef FIX50_SECURITYDEFINITIONREQUEST_H +#define FIX50_SECURITYDEFINITIONREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class SecurityDefinitionRequest : public Message + { + public: + SecurityDefinitionRequest() : Message(MsgType()) {} + SecurityDefinitionRequest(const FIX::Message& m) : Message(m) {} + SecurityDefinitionRequest(const Message& m) : Message(m) {} + SecurityDefinitionRequest(const SecurityDefinitionRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("c"); } + + SecurityDefinitionRequest( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityRequestType& aSecurityRequestType ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityRequestType); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityRequestType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::ExpirationCycle); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/SecurityDefinitionUpdateReport.h b/linux/include/quickfix/fix50/SecurityDefinitionUpdateReport.h new file mode 100644 index 000000000..86f6b3d1d --- /dev/null +++ b/linux/include/quickfix/fix50/SecurityDefinitionUpdateReport.h @@ -0,0 +1,196 @@ +#ifndef FIX50_SECURITYDEFINITIONUPDATEREPORT_H +#define FIX50_SECURITYDEFINITIONUPDATEREPORT_H + +#include "Message.h" + +namespace FIX50 +{ + + class SecurityDefinitionUpdateReport : public Message + { + public: + SecurityDefinitionUpdateReport() : Message(MsgType()) {} + SecurityDefinitionUpdateReport(const FIX::Message& m) : Message(m) {} + SecurityDefinitionUpdateReport(const Message& m) : Message(m) {} + SecurityDefinitionUpdateReport(const SecurityDefinitionUpdateReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BP"); } + + FIELD_SET(*this, FIX::SecurityReportID); + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityResponseType); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SecurityUpdateAction); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::ExpirationCycle); + FIELD_SET(*this, FIX::RoundLot); + FIELD_SET(*this, FIX::MinTradeVol); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/SecurityList.h b/linux/include/quickfix/fix50/SecurityList.h new file mode 100644 index 000000000..a51ef38fc --- /dev/null +++ b/linux/include/quickfix/fix50/SecurityList.h @@ -0,0 +1,256 @@ +#ifndef FIX50_SECURITYLIST_H +#define FIX50_SECURITYLIST_H + +#include "Message.h" + +namespace FIX50 +{ + + class SecurityList : public Message + { + public: + SecurityList() : Message(MsgType()) {} + SecurityList(const FIX::Message& m) : Message(m) {} + SecurityList(const Message& m) : Message(m) {} + SecurityList(const SecurityList& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("y"); } + + FIELD_SET(*this, FIX::SecurityReportID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityRequestResult); + FIELD_SET(*this, FIX::TotNoRelatedSym); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,461,167,762,200,541,1079,201,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,996,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,668,869,913,914,915,918,788,916,917,919,898,711,15,232,555,218,220,221,222,662,663,699,761,235,236,701,696,697,698,561,562,336,625,827,58,354,355,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,690,587,683,676,677,678,679,680,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::LegBenchmarkCurveCurrency); + FIELD_SET(*this, FIX::LegBenchmarkCurveName); + FIELD_SET(*this, FIX::LegBenchmarkCurvePoint); + FIELD_SET(*this, FIX::LegBenchmarkPrice); + FIELD_SET(*this, FIX::LegBenchmarkPriceType); + }; + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::RoundLot); + FIELD_SET(*this, FIX::MinTradeVol); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::ExpirationCycle); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/SecurityListRequest.h b/linux/include/quickfix/fix50/SecurityListRequest.h new file mode 100644 index 000000000..5f143c3c1 --- /dev/null +++ b/linux/include/quickfix/fix50/SecurityListRequest.h @@ -0,0 +1,215 @@ +#ifndef FIX50_SECURITYLISTREQUEST_H +#define FIX50_SECURITYLISTREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class SecurityListRequest : public Message + { + public: + SecurityListRequest() : Message(MsgType()) {} + SecurityListRequest(const FIX::Message& m) : Message(m) {} + SecurityListRequest(const Message& m) : Message(m) {} + SecurityListRequest(const SecurityListRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("x"); } + + SecurityListRequest( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityListRequestType& aSecurityListRequestType ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityListRequestType); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityListRequestType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/SecurityListUpdateReport.h b/linux/include/quickfix/fix50/SecurityListUpdateReport.h new file mode 100644 index 000000000..5c6638d06 --- /dev/null +++ b/linux/include/quickfix/fix50/SecurityListUpdateReport.h @@ -0,0 +1,252 @@ +#ifndef FIX50_SECURITYLISTUPDATEREPORT_H +#define FIX50_SECURITYLISTUPDATEREPORT_H + +#include "Message.h" + +namespace FIX50 +{ + + class SecurityListUpdateReport : public Message + { + public: + SecurityListUpdateReport() : Message(MsgType()) {} + SecurityListUpdateReport(const FIX::Message& m) : Message(m) {} + SecurityListUpdateReport(const Message& m) : Message(m) {} + SecurityListUpdateReport(const SecurityListUpdateReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BK"); } + + FIELD_SET(*this, FIX::SecurityReportID); + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityRequestResult); + FIELD_SET(*this, FIX::TotNoRelatedSym); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SecurityUpdateAction); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,461,167,762,200,541,1079,201,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,996,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,668,869,913,914,915,918,788,916,917,919,898,311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,15,232,555,218,220,221,222,662,663,699,761,235,236,701,696,697,698,561,562,336,625,827,58,354,355,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,690,587,683,676,677,678,679,680,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::LegBenchmarkCurveCurrency); + FIELD_SET(*this, FIX::LegBenchmarkCurveName); + FIELD_SET(*this, FIX::LegBenchmarkCurvePoint); + FIELD_SET(*this, FIX::LegBenchmarkPrice); + FIELD_SET(*this, FIX::LegBenchmarkPriceType); + }; + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::RoundLot); + FIELD_SET(*this, FIX::MinTradeVol); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::ExpirationCycle); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/SecurityStatus.h b/linux/include/quickfix/fix50/SecurityStatus.h new file mode 100644 index 000000000..f52d53e16 --- /dev/null +++ b/linux/include/quickfix/fix50/SecurityStatus.h @@ -0,0 +1,210 @@ +#ifndef FIX50_SECURITYSTATUS_H +#define FIX50_SECURITYSTATUS_H + +#include "Message.h" + +namespace FIX50 +{ + + class SecurityStatus : public Message + { + public: + SecurityStatus() : Message(MsgType()) {} + SecurityStatus(const FIX::Message& m) : Message(m) {} + SecurityStatus(const Message& m) : Message(m) {} + SecurityStatus(const SecurityStatus& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("f"); } + + FIELD_SET(*this, FIX::SecurityStatusReqID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::SecurityTradingStatus); + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::HaltReasonChar); + FIELD_SET(*this, FIX::InViewOfCommon); + FIELD_SET(*this, FIX::DueToRelated); + FIELD_SET(*this, FIX::BuyVolume); + FIELD_SET(*this, FIX::SellVolume); + FIELD_SET(*this, FIX::HighPx); + FIELD_SET(*this, FIX::LowPx); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Adjustment); + FIELD_SET(*this, FIX::FirstPx); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/SecurityStatusRequest.h b/linux/include/quickfix/fix50/SecurityStatusRequest.h new file mode 100644 index 000000000..f96e5f81c --- /dev/null +++ b/linux/include/quickfix/fix50/SecurityStatusRequest.h @@ -0,0 +1,202 @@ +#ifndef FIX50_SECURITYSTATUSREQUEST_H +#define FIX50_SECURITYSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class SecurityStatusRequest : public Message + { + public: + SecurityStatusRequest() : Message(MsgType()) {} + SecurityStatusRequest(const FIX::Message& m) : Message(m) {} + SecurityStatusRequest(const Message& m) : Message(m) {} + SecurityStatusRequest(const SecurityStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("e"); } + + SecurityStatusRequest( + const FIX::SecurityStatusReqID& aSecurityStatusReqID, + const FIX::SubscriptionRequestType& aSubscriptionRequestType ) + : Message(MsgType()) + { + set(aSecurityStatusReqID); + set(aSubscriptionRequestType); + } + + FIELD_SET(*this, FIX::SecurityStatusReqID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/SecurityTypeRequest.h b/linux/include/quickfix/fix50/SecurityTypeRequest.h new file mode 100644 index 000000000..71a1ff4de --- /dev/null +++ b/linux/include/quickfix/fix50/SecurityTypeRequest.h @@ -0,0 +1,38 @@ +#ifndef FIX50_SECURITYTYPEREQUEST_H +#define FIX50_SECURITYTYPEREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class SecurityTypeRequest : public Message + { + public: + SecurityTypeRequest() : Message(MsgType()) {} + SecurityTypeRequest(const FIX::Message& m) : Message(m) {} + SecurityTypeRequest(const Message& m) : Message(m) {} + SecurityTypeRequest(const SecurityTypeRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("v"); } + + SecurityTypeRequest( + const FIX::SecurityReqID& aSecurityReqID ) + : Message(MsgType()) + { + set(aSecurityReqID); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/SecurityTypes.h b/linux/include/quickfix/fix50/SecurityTypes.h new file mode 100644 index 000000000..27adcfa89 --- /dev/null +++ b/linux/include/quickfix/fix50/SecurityTypes.h @@ -0,0 +1,54 @@ +#ifndef FIX50_SECURITYTYPES_H +#define FIX50_SECURITYTYPES_H + +#include "Message.h" + +namespace FIX50 +{ + + class SecurityTypes : public Message + { + public: + SecurityTypes() : Message(MsgType()) {} + SecurityTypes(const FIX::Message& m) : Message(m) {} + SecurityTypes(const Message& m) : Message(m) {} + SecurityTypes(const SecurityTypes& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("w"); } + + SecurityTypes( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityResponseID& aSecurityResponseID, + const FIX::SecurityResponseType& aSecurityResponseType ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityResponseID); + set(aSecurityResponseType); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityResponseType); + FIELD_SET(*this, FIX::TotNoSecurityTypes); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoSecurityTypes); + class NoSecurityTypes: public FIX::Group + { + public: + NoSecurityTypes() : FIX::Group(558,167,FIX::message_order(167,762,460,461,0)) {} + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/SettlementInstructionRequest.h b/linux/include/quickfix/fix50/SettlementInstructionRequest.h new file mode 100644 index 000000000..aea468a02 --- /dev/null +++ b/linux/include/quickfix/fix50/SettlementInstructionRequest.h @@ -0,0 +1,63 @@ +#ifndef FIX50_SETTLEMENTINSTRUCTIONREQUEST_H +#define FIX50_SETTLEMENTINSTRUCTIONREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class SettlementInstructionRequest : public Message + { + public: + SettlementInstructionRequest() : Message(MsgType()) {} + SettlementInstructionRequest(const FIX::Message& m) : Message(m) {} + SettlementInstructionRequest(const Message& m) : Message(m) {} + SettlementInstructionRequest(const SettlementInstructionRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AV"); } + + SettlementInstructionRequest( + const FIX::SettlInstReqID& aSettlInstReqID, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aSettlInstReqID); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::SettlInstReqID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::LastUpdateTime); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/SettlementInstructions.h b/linux/include/quickfix/fix50/SettlementInstructions.h new file mode 100644 index 000000000..f2c2f1c1e --- /dev/null +++ b/linux/include/quickfix/fix50/SettlementInstructions.h @@ -0,0 +1,89 @@ +#ifndef FIX50_SETTLEMENTINSTRUCTIONS_H +#define FIX50_SETTLEMENTINSTRUCTIONS_H + +#include "Message.h" + +namespace FIX50 +{ + + class SettlementInstructions : public Message + { + public: + SettlementInstructions() : Message(MsgType()) {} + SettlementInstructions(const FIX::Message& m) : Message(m) {} + SettlementInstructions(const Message& m) : Message(m) {} + SettlementInstructions(const SettlementInstructions& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("T"); } + + SettlementInstructions( + const FIX::SettlInstMsgID& aSettlInstMsgID, + const FIX::SettlInstMode& aSettlInstMode, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aSettlInstMsgID); + set(aSettlInstMode); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::SettlInstMsgID); + FIELD_SET(*this, FIX::SettlInstReqID); + FIELD_SET(*this, FIX::SettlInstMode); + FIELD_SET(*this, FIX::SettlInstReqRejCode); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoSettlInst); + class NoSettlInst: public FIX::Group + { + public: + NoSettlInst() : FIX::Group(778,162,FIX::message_order(162,163,214,453,54,460,167,461,120,168,126,779,172,169,170,171,492,476,488,489,503,490,491,504,505,0)) {} + FIELD_SET(*this, FIX::SettlInstID); + FIELD_SET(*this, FIX::SettlInstTransType); + FIELD_SET(*this, FIX::SettlInstRefID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::LastUpdateTime); + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + FIELD_SET(*this, FIX::PaymentMethod); + FIELD_SET(*this, FIX::PaymentRef); + FIELD_SET(*this, FIX::CardHolderName); + FIELD_SET(*this, FIX::CardNumber); + FIELD_SET(*this, FIX::CardStartDate); + FIELD_SET(*this, FIX::CardExpDate); + FIELD_SET(*this, FIX::CardIssNum); + FIELD_SET(*this, FIX::PaymentDate); + FIELD_SET(*this, FIX::PaymentRemitterID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/TradeCaptureReport.h b/linux/include/quickfix/fix50/TradeCaptureReport.h new file mode 100644 index 000000000..f329dd3c0 --- /dev/null +++ b/linux/include/quickfix/fix50/TradeCaptureReport.h @@ -0,0 +1,536 @@ +#ifndef FIX50_TRADECAPTUREREPORT_H +#define FIX50_TRADECAPTUREREPORT_H + +#include "Message.h" + +namespace FIX50 +{ + + class TradeCaptureReport : public Message + { + public: + TradeCaptureReport() : Message(MsgType()) {} + TradeCaptureReport(const FIX::Message& m) : Message(m) {} + TradeCaptureReport(const Message& m) : Message(m) {} + TradeCaptureReport(const TradeCaptureReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AE"); } + + TradeCaptureReport( + const FIX::LastQty& aLastQty, + const FIX::LastPx& aLastPx, + const FIX::TradeDate& aTradeDate ) + : Message(MsgType()) + { + set(aLastQty); + set(aLastPx); + set(aTradeDate); + } + + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::TradeID); + FIELD_SET(*this, FIX::SecondaryTradeID); + FIELD_SET(*this, FIX::FirmTradeID); + FIELD_SET(*this, FIX::SecondaryFirmTradeID); + FIELD_SET(*this, FIX::TradeReportTransType); + FIELD_SET(*this, FIX::TradeReportType); + FIELD_SET(*this, FIX::TrdRptStatus); + FIELD_SET(*this, FIX::TradeRequestID); + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::TrdSubType); + FIELD_SET(*this, FIX::SecondaryTrdType); + FIELD_SET(*this, FIX::TradeHandlingInstr); + FIELD_SET(*this, FIX::OrigTradeHandlingInstr); + FIELD_SET(*this, FIX::OrigTradeDate); + FIELD_SET(*this, FIX::OrigTradeID); + FIELD_SET(*this, FIX::OrigSecondaryTradeID); + FIELD_SET(*this, FIX::TransferReason); + FIELD_SET(*this, FIX::ExecType); + FIELD_SET(*this, FIX::TotNumTradeReports); + FIELD_SET(*this, FIX::LastRptRequested); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TradeReportRefID); + FIELD_SET(*this, FIX::SecondaryTradeReportRefID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + FIELD_SET(*this, FIX::TradeLinkID); + FIELD_SET(*this, FIX::TrdMatchID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::ExecRestatementReason); + FIELD_SET(*this, FIX::PreviouslyReported); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::NoRootPartyIDs); + class NoRootPartyIDs: public FIX::Group + { + public: + NoRootPartyIDs() : FIX::Group(1116,1117,FIX::message_order(1117,1118,1119,1120,0)) {} + FIELD_SET(*this, FIX::RootPartyID); + FIELD_SET(*this, FIX::RootPartyIDSource); + FIELD_SET(*this, FIX::RootPartyRole); + FIELD_SET(*this, FIX::NoRootPartySubIDs); + class NoRootPartySubIDs: public FIX::Group + { + public: + NoRootPartySubIDs() : FIX::Group(1120,1121,FIX::message_order(1121,1122,0)) {} + FIELD_SET(*this, FIX::RootPartySubID); + FIELD_SET(*this, FIX::RootPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AsOfIndicator); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::UnderlyingTradingSessionID); + FIELD_SET(*this, FIX::UnderlyingTradingSessionSubID); + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::CalculatedCcyLastQty); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::LastSpotRate); + FIELD_SET(*this, FIX::LastForwardPoints); + FIELD_SET(*this, FIX::LastSwapPoints); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::AvgPxIndicator); + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::TradeLegRefID); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,687,690,990,683,564,565,539,654,566,587,588,637,675,1073,1074,1075,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegReportID); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::LegPositionEffect); + FIELD_SET(*this, FIX::LegCoveredOrUncovered); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegPrice); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::LegLastPx); + FIELD_SET(*this, FIX::LegSettlCurrency); + FIELD_SET(*this, FIX::LegLastForwardPoints); + FIELD_SET(*this, FIX::LegCalculatedCcyLastQty); + FIELD_SET(*this, FIX::LegGrossTradeAmt); + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::UnderlyingSettlementDate); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::OrderCategory); + FIELD_SET(*this, FIX::NoSides); + class NoSides: public FIX::Group + { + public: + NoSides() : FIX::Group(552,54,FIX::message_order(54,37,198,11,19,526,66,1009,1005,1006,1007,83,1008,453,1,660,581,81,1093,575,576,578,579,821,15,376,377,528,529,582,40,18,483,336,625,943,12,13,479,497,157,230,158,159,738,920,921,922,238,237,118,119,120,155,156,77,58,354,355,752,518,232,136,825,826,591,70,78,1016,1072,1057,1139,0)) {} + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ExecRefID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::SideQty); + FIELD_SET(*this, FIX::SideTradeReportID); + FIELD_SET(*this, FIX::SideFillStationCd); + FIELD_SET(*this, FIX::SideReasonCd); + FIELD_SET(*this, FIX::RptSeq); + FIELD_SET(*this, FIX::SideTrdSubTyp); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::LotType); + FIELD_SET(*this, FIX::OddLot); + FIELD_SET(*this, FIX::NoClearingInstructions); + class NoClearingInstructions: public FIX::Group + { + public: + NoClearingInstructions() : FIX::Group(576,577,FIX::message_order(577,0)) {} + FIELD_SET(*this, FIX::ClearingInstruction); + }; + FIELD_SET(*this, FIX::TradeInputSource); + FIELD_SET(*this, FIX::TradeInputDevice); + FIELD_SET(*this, FIX::OrderInputDevice); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::TransBkdTime); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TimeBracket); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::ExDate); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::SideMultiLegReportingType); + FIELD_SET(*this, FIX::NoContAmts); + class NoContAmts: public FIX::Group + { + public: + NoContAmts() : FIX::Group(518,519,FIX::message_order(519,520,521,0)) {} + FIELD_SET(*this, FIX::ContAmtType); + FIELD_SET(*this, FIX::ContAmtValue); + FIELD_SET(*this, FIX::ContAmtCurr); + }; + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::ExchangeRule); + FIELD_SET(*this, FIX::TradeAllocIndicator); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,756,80,993,1002,989,1136,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + FIELD_SET(*this, FIX::AllocCustomerCapacity); + FIELD_SET(*this, FIX::AllocMethod); + FIELD_SET(*this, FIX::SecondaryIndividualAllocID); + FIELD_SET(*this, FIX::AllocClearingFeeIndicator); + }; + FIELD_SET(*this, FIX::NoSideTrdRegTS); + class NoSideTrdRegTS: public FIX::Group + { + public: + NoSideTrdRegTS() : FIX::Group(1016,1012,FIX::message_order(1012,1013,1014,0)) {} + FIELD_SET(*this, FIX::SideTrdRegTimestamp); + FIELD_SET(*this, FIX::SideTrdRegTimestampType); + FIELD_SET(*this, FIX::SideTrdRegTimestampSrc); + }; + FIELD_SET(*this, FIX::SideGrossTradeAmt); + FIELD_SET(*this, FIX::AggressorIndicator); + FIELD_SET(*this, FIX::ExchangeSpecialInstructions); + }; + FIELD_SET(*this, FIX::CopyMsgIndicator); + FIELD_SET(*this, FIX::PublishTrdIndicator); + FIELD_SET(*this, FIX::ShortSaleReason); + FIELD_SET(*this, FIX::TierCode); + FIELD_SET(*this, FIX::MessageEventSource); + FIELD_SET(*this, FIX::LastUpdateTime); + FIELD_SET(*this, FIX::RndPx); + FIELD_SET(*this, FIX::TZTransactTime); + FIELD_SET(*this, FIX::ReportedPxDiff); + FIELD_SET(*this, FIX::GrossTradeAmt); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/TradeCaptureReportAck.h b/linux/include/quickfix/fix50/TradeCaptureReportAck.h new file mode 100644 index 000000000..cf178c38e --- /dev/null +++ b/linux/include/quickfix/fix50/TradeCaptureReportAck.h @@ -0,0 +1,492 @@ +#ifndef FIX50_TRADECAPTUREREPORTACK_H +#define FIX50_TRADECAPTUREREPORTACK_H + +#include "Message.h" + +namespace FIX50 +{ + + class TradeCaptureReportAck : public Message + { + public: + TradeCaptureReportAck() : Message(MsgType()) {} + TradeCaptureReportAck(const FIX::Message& m) : Message(m) {} + TradeCaptureReportAck(const Message& m) : Message(m) {} + TradeCaptureReportAck(const TradeCaptureReportAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AR"); } + + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::TradeID); + FIELD_SET(*this, FIX::SecondaryTradeID); + FIELD_SET(*this, FIX::FirmTradeID); + FIELD_SET(*this, FIX::SecondaryFirmTradeID); + FIELD_SET(*this, FIX::TradeReportTransType); + FIELD_SET(*this, FIX::TradeReportType); + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::TrdSubType); + FIELD_SET(*this, FIX::SecondaryTrdType); + FIELD_SET(*this, FIX::TradeHandlingInstr); + FIELD_SET(*this, FIX::OrigTradeHandlingInstr); + FIELD_SET(*this, FIX::OrigTradeDate); + FIELD_SET(*this, FIX::OrigTradeID); + FIELD_SET(*this, FIX::OrigSecondaryTradeID); + FIELD_SET(*this, FIX::TransferReason); + FIELD_SET(*this, FIX::NoRootPartyIDs); + class NoRootPartyIDs: public FIX::Group + { + public: + NoRootPartyIDs() : FIX::Group(1116,1117,FIX::message_order(1117,1118,1119,1120,0)) {} + FIELD_SET(*this, FIX::RootPartyID); + FIELD_SET(*this, FIX::RootPartyIDSource); + FIELD_SET(*this, FIX::RootPartyRole); + FIELD_SET(*this, FIX::NoRootPartySubIDs); + class NoRootPartySubIDs: public FIX::Group + { + public: + NoRootPartySubIDs() : FIX::Group(1120,1121,FIX::message_order(1121,1122,0)) {} + FIELD_SET(*this, FIX::RootPartySubID); + FIELD_SET(*this, FIX::RootPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::ExecType); + FIELD_SET(*this, FIX::TradeReportRefID); + FIELD_SET(*this, FIX::SecondaryTradeReportRefID); + FIELD_SET(*this, FIX::TrdRptStatus); + FIELD_SET(*this, FIX::TradeReportRejectReason); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TradeLinkID); + FIELD_SET(*this, FIX::TrdMatchID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::ExecRestatementReason); + FIELD_SET(*this, FIX::PreviouslyReported); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::UnderlyingTradingSessionID); + FIELD_SET(*this, FIX::UnderlyingTradingSessionSubID); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::CalculatedCcyLastQty); + FIELD_SET(*this, FIX::LastSwapPoints); + FIELD_SET(*this, FIX::LastSpotRate); + FIELD_SET(*this, FIX::LastForwardPoints); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::AvgPxIndicator); + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::TradeLegRefID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::CopyMsgIndicator); + FIELD_SET(*this, FIX::PublishTrdIndicator); + FIELD_SET(*this, FIX::ShortSaleReason); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,687,690,990,683,564,565,539,654,566,587,588,637,675,1073,1074,1075,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegReportID); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::LegPositionEffect); + FIELD_SET(*this, FIX::LegCoveredOrUncovered); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegPrice); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::LegLastPx); + FIELD_SET(*this, FIX::LegSettlCurrency); + FIELD_SET(*this, FIX::LegLastForwardPoints); + FIELD_SET(*this, FIX::LegCalculatedCcyLastQty); + FIELD_SET(*this, FIX::LegGrossTradeAmt); + }; + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::AsOfIndicator); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::TierCode); + FIELD_SET(*this, FIX::MessageEventSource); + FIELD_SET(*this, FIX::LastUpdateTime); + FIELD_SET(*this, FIX::RndPx); + FIELD_SET(*this, FIX::NoSides); + class NoSides: public FIX::Group + { + public: + NoSides() : FIX::Group(552,54,FIX::message_order(54,37,198,11,526,66,453,1,660,581,81,575,1093,576,578,579,821,15,376,377,528,529,582,40,18,483,336,625,943,12,13,479,497,157,230,158,159,738,920,921,922,238,237,118,119,120,155,156,77,752,518,232,136,825,826,591,70,78,1072,1057,1009,1005,1006,1007,83,1008,1016,0)) {} + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::OddLot); + FIELD_SET(*this, FIX::LotType); + FIELD_SET(*this, FIX::NoClearingInstructions); + class NoClearingInstructions: public FIX::Group + { + public: + NoClearingInstructions() : FIX::Group(576,577,FIX::message_order(577,0)) {} + FIELD_SET(*this, FIX::ClearingInstruction); + }; + FIELD_SET(*this, FIX::TradeInputSource); + FIELD_SET(*this, FIX::TradeInputDevice); + FIELD_SET(*this, FIX::OrderInputDevice); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::TransBkdTime); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TimeBracket); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::ExDate); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::SideMultiLegReportingType); + FIELD_SET(*this, FIX::NoContAmts); + class NoContAmts: public FIX::Group + { + public: + NoContAmts() : FIX::Group(518,519,FIX::message_order(519,520,521,0)) {} + FIELD_SET(*this, FIX::ContAmtType); + FIELD_SET(*this, FIX::ContAmtValue); + FIELD_SET(*this, FIX::ContAmtCurr); + }; + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::ExchangeRule); + FIELD_SET(*this, FIX::TradeAllocIndicator); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,756,80,993,1002,989,1136,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + FIELD_SET(*this, FIX::AllocCustomerCapacity); + FIELD_SET(*this, FIX::AllocMethod); + FIELD_SET(*this, FIX::SecondaryIndividualAllocID); + FIELD_SET(*this, FIX::AllocClearingFeeIndicator); + }; + FIELD_SET(*this, FIX::SideGrossTradeAmt); + FIELD_SET(*this, FIX::AggressorIndicator); + FIELD_SET(*this, FIX::SideQty); + FIELD_SET(*this, FIX::SideTradeReportID); + FIELD_SET(*this, FIX::SideFillStationCd); + FIELD_SET(*this, FIX::SideReasonCd); + FIELD_SET(*this, FIX::RptSeq); + FIELD_SET(*this, FIX::SideTrdSubTyp); + FIELD_SET(*this, FIX::NoSideTrdRegTS); + class NoSideTrdRegTS: public FIX::Group + { + public: + NoSideTrdRegTS() : FIX::Group(1016,1012,FIX::message_order(1012,1013,1014,0)) {} + FIELD_SET(*this, FIX::SideTrdRegTimestamp); + FIELD_SET(*this, FIX::SideTrdRegTimestampType); + FIELD_SET(*this, FIX::SideTrdRegTimestampSrc); + }; + }; + FIELD_SET(*this, FIX::RptSys); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::SettlDate); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/TradeCaptureReportRequest.h b/linux/include/quickfix/fix50/TradeCaptureReportRequest.h new file mode 100644 index 000000000..6b6a3812c --- /dev/null +++ b/linux/include/quickfix/fix50/TradeCaptureReportRequest.h @@ -0,0 +1,267 @@ +#ifndef FIX50_TRADECAPTUREREPORTREQUEST_H +#define FIX50_TRADECAPTUREREPORTREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class TradeCaptureReportRequest : public Message + { + public: + TradeCaptureReportRequest() : Message(MsgType()) {} + TradeCaptureReportRequest(const FIX::Message& m) : Message(m) {} + TradeCaptureReportRequest(const Message& m) : Message(m) {} + TradeCaptureReportRequest(const TradeCaptureReportRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AD"); } + + TradeCaptureReportRequest( + const FIX::TradeRequestID& aTradeRequestID, + const FIX::TradeRequestType& aTradeRequestType ) + : Message(MsgType()) + { + set(aTradeRequestID); + set(aTradeRequestType); + } + + FIELD_SET(*this, FIX::TradeRequestID); + FIELD_SET(*this, FIX::TradeID); + FIELD_SET(*this, FIX::SecondaryTradeID); + FIELD_SET(*this, FIX::FirmTradeID); + FIELD_SET(*this, FIX::SecondaryFirmTradeID); + FIELD_SET(*this, FIX::TradeRequestType); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::ExecType); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::TrdSubType); + FIELD_SET(*this, FIX::TradeHandlingInstr); + FIELD_SET(*this, FIX::TransferReason); + FIELD_SET(*this, FIX::SecondaryTrdType); + FIELD_SET(*this, FIX::TradeLinkID); + FIELD_SET(*this, FIX::TrdMatchID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoDates); + class NoDates: public FIX::Group + { + public: + NoDates() : FIX::Group(580,75,FIX::message_order(75,779,60,0)) {} + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::LastUpdateTime); + FIELD_SET(*this, FIX::TransactTime); + }; + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TimeBracket); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::TradeInputSource); + FIELD_SET(*this, FIX::TradeInputDevice); + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::MessageEventSource); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/TradeCaptureReportRequestAck.h b/linux/include/quickfix/fix50/TradeCaptureReportRequestAck.h new file mode 100644 index 000000000..108198976 --- /dev/null +++ b/linux/include/quickfix/fix50/TradeCaptureReportRequestAck.h @@ -0,0 +1,216 @@ +#ifndef FIX50_TRADECAPTUREREPORTREQUESTACK_H +#define FIX50_TRADECAPTUREREPORTREQUESTACK_H + +#include "Message.h" + +namespace FIX50 +{ + + class TradeCaptureReportRequestAck : public Message + { + public: + TradeCaptureReportRequestAck() : Message(MsgType()) {} + TradeCaptureReportRequestAck(const FIX::Message& m) : Message(m) {} + TradeCaptureReportRequestAck(const Message& m) : Message(m) {} + TradeCaptureReportRequestAck(const TradeCaptureReportRequestAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AQ"); } + + TradeCaptureReportRequestAck( + const FIX::TradeRequestID& aTradeRequestID, + const FIX::TradeRequestType& aTradeRequestType, + const FIX::TradeRequestResult& aTradeRequestResult, + const FIX::TradeRequestStatus& aTradeRequestStatus ) + : Message(MsgType()) + { + set(aTradeRequestID); + set(aTradeRequestType); + set(aTradeRequestResult); + set(aTradeRequestStatus); + } + + FIELD_SET(*this, FIX::TradeRequestID); + FIELD_SET(*this, FIX::TradeID); + FIELD_SET(*this, FIX::SecondaryTradeID); + FIELD_SET(*this, FIX::FirmTradeID); + FIELD_SET(*this, FIX::SecondaryFirmTradeID); + FIELD_SET(*this, FIX::TradeRequestType); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TotNumTradeReports); + FIELD_SET(*this, FIX::TradeRequestResult); + FIELD_SET(*this, FIX::TradeRequestStatus); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1001,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::MessageEventSource); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/TradingSessionList.h b/linux/include/quickfix/fix50/TradingSessionList.h new file mode 100644 index 000000000..9771af713 --- /dev/null +++ b/linux/include/quickfix/fix50/TradingSessionList.h @@ -0,0 +1,46 @@ +#ifndef FIX50_TRADINGSESSIONLIST_H +#define FIX50_TRADINGSESSIONLIST_H + +#include "Message.h" + +namespace FIX50 +{ + + class TradingSessionList : public Message + { + public: + TradingSessionList() : Message(MsgType()) {} + TradingSessionList(const FIX::Message& m) : Message(m) {} + TradingSessionList(const Message& m) : Message(m) {} + TradingSessionList(const TradingSessionList& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BJ"); } + + FIELD_SET(*this, FIX::TradSesReqID); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,207,338,339,325,340,567,341,342,343,344,345,387,58,354,355,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::TradSesMethod); + FIELD_SET(*this, FIX::TradSesMode); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::TradSesStatus); + FIELD_SET(*this, FIX::TradSesStatusRejReason); + FIELD_SET(*this, FIX::TradSesStartTime); + FIELD_SET(*this, FIX::TradSesOpenTime); + FIELD_SET(*this, FIX::TradSesPreCloseTime); + FIELD_SET(*this, FIX::TradSesCloseTime); + FIELD_SET(*this, FIX::TradSesEndTime); + FIELD_SET(*this, FIX::TotalVolumeTraded); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/TradingSessionListRequest.h b/linux/include/quickfix/fix50/TradingSessionListRequest.h new file mode 100644 index 000000000..2a16717ce --- /dev/null +++ b/linux/include/quickfix/fix50/TradingSessionListRequest.h @@ -0,0 +1,38 @@ +#ifndef FIX50_TRADINGSESSIONLISTREQUEST_H +#define FIX50_TRADINGSESSIONLISTREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class TradingSessionListRequest : public Message + { + public: + TradingSessionListRequest() : Message(MsgType()) {} + TradingSessionListRequest(const FIX::Message& m) : Message(m) {} + TradingSessionListRequest(const Message& m) : Message(m) {} + TradingSessionListRequest(const TradingSessionListRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BI"); } + + TradingSessionListRequest( + const FIX::TradSesReqID& aTradSesReqID, + const FIX::SubscriptionRequestType& aSubscriptionRequestType ) + : Message(MsgType()) + { + set(aTradSesReqID); + set(aSubscriptionRequestType); + } + + FIELD_SET(*this, FIX::TradSesReqID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::TradSesMethod); + FIELD_SET(*this, FIX::TradSesMode); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/TradingSessionStatus.h b/linux/include/quickfix/fix50/TradingSessionStatus.h new file mode 100644 index 000000000..2ca2ffab1 --- /dev/null +++ b/linux/include/quickfix/fix50/TradingSessionStatus.h @@ -0,0 +1,100 @@ +#ifndef FIX50_TRADINGSESSIONSTATUS_H +#define FIX50_TRADINGSESSIONSTATUS_H + +#include "Message.h" + +namespace FIX50 +{ + + class TradingSessionStatus : public Message + { + public: + TradingSessionStatus() : Message(MsgType()) {} + TradingSessionStatus(const FIX::Message& m) : Message(m) {} + TradingSessionStatus(const Message& m) : Message(m) {} + TradingSessionStatus(const TradingSessionStatus& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("h"); } + + TradingSessionStatus( + const FIX::TradingSessionID& aTradingSessionID, + const FIX::TradSesStatus& aTradSesStatus ) + : Message(MsgType()) + { + set(aTradingSessionID); + set(aTradSesStatus); + } + + FIELD_SET(*this, FIX::TradSesReqID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TradSesMethod); + FIELD_SET(*this, FIX::TradSesMode); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::TradSesStatus); + FIELD_SET(*this, FIX::TradSesStatusRejReason); + FIELD_SET(*this, FIX::TradSesStartTime); + FIELD_SET(*this, FIX::TradSesOpenTime); + FIELD_SET(*this, FIX::TradSesPreCloseTime); + FIELD_SET(*this, FIX::TradSesCloseTime); + FIELD_SET(*this, FIX::TradSesEndTime); + FIELD_SET(*this, FIX::TotalVolumeTraded); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/TradingSessionStatusRequest.h b/linux/include/quickfix/fix50/TradingSessionStatusRequest.h new file mode 100644 index 000000000..dc9862bfe --- /dev/null +++ b/linux/include/quickfix/fix50/TradingSessionStatusRequest.h @@ -0,0 +1,38 @@ +#ifndef FIX50_TRADINGSESSIONSTATUSREQUEST_H +#define FIX50_TRADINGSESSIONSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class TradingSessionStatusRequest : public Message + { + public: + TradingSessionStatusRequest() : Message(MsgType()) {} + TradingSessionStatusRequest(const FIX::Message& m) : Message(m) {} + TradingSessionStatusRequest(const Message& m) : Message(m) {} + TradingSessionStatusRequest(const TradingSessionStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("g"); } + + TradingSessionStatusRequest( + const FIX::TradSesReqID& aTradSesReqID, + const FIX::SubscriptionRequestType& aSubscriptionRequestType ) + : Message(MsgType()) + { + set(aTradSesReqID); + set(aSubscriptionRequestType); + } + + FIELD_SET(*this, FIX::TradSesReqID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TradSesMethod); + FIELD_SET(*this, FIX::TradSesMode); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::SecurityExchange); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/UserRequest.h b/linux/include/quickfix/fix50/UserRequest.h new file mode 100644 index 000000000..f3cf0b934 --- /dev/null +++ b/linux/include/quickfix/fix50/UserRequest.h @@ -0,0 +1,40 @@ +#ifndef FIX50_USERREQUEST_H +#define FIX50_USERREQUEST_H + +#include "Message.h" + +namespace FIX50 +{ + + class UserRequest : public Message + { + public: + UserRequest() : Message(MsgType()) {} + UserRequest(const FIX::Message& m) : Message(m) {} + UserRequest(const Message& m) : Message(m) {} + UserRequest(const UserRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BE"); } + + UserRequest( + const FIX::UserRequestID& aUserRequestID, + const FIX::UserRequestType& aUserRequestType, + const FIX::Username& aUsername ) + : Message(MsgType()) + { + set(aUserRequestID); + set(aUserRequestType); + set(aUsername); + } + + FIELD_SET(*this, FIX::UserRequestID); + FIELD_SET(*this, FIX::UserRequestType); + FIELD_SET(*this, FIX::Username); + FIELD_SET(*this, FIX::Password); + FIELD_SET(*this, FIX::NewPassword); + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50/UserResponse.h b/linux/include/quickfix/fix50/UserResponse.h new file mode 100644 index 000000000..7140fe480 --- /dev/null +++ b/linux/include/quickfix/fix50/UserResponse.h @@ -0,0 +1,35 @@ +#ifndef FIX50_USERRESPONSE_H +#define FIX50_USERRESPONSE_H + +#include "Message.h" + +namespace FIX50 +{ + + class UserResponse : public Message + { + public: + UserResponse() : Message(MsgType()) {} + UserResponse(const FIX::Message& m) : Message(m) {} + UserResponse(const Message& m) : Message(m) {} + UserResponse(const UserResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BF"); } + + UserResponse( + const FIX::UserRequestID& aUserRequestID, + const FIX::Username& aUsername ) + : Message(MsgType()) + { + set(aUserRequestID); + set(aUsername); + } + + FIELD_SET(*this, FIX::UserRequestID); + FIELD_SET(*this, FIX::Username); + FIELD_SET(*this, FIX::UserStatus); + FIELD_SET(*this, FIX::UserStatusText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/AdjustedPositionReport.h b/linux/include/quickfix/fix50sp1/AdjustedPositionReport.h new file mode 100644 index 000000000..318050a02 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/AdjustedPositionReport.h @@ -0,0 +1,157 @@ +#ifndef FIX50SP1_ADJUSTEDPOSITIONREPORT_H +#define FIX50SP1_ADJUSTEDPOSITIONREPORT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class AdjustedPositionReport : public Message + { + public: + AdjustedPositionReport() : Message(MsgType()) {} + AdjustedPositionReport(const FIX::Message& m) : Message(m) {} + AdjustedPositionReport(const Message& m) : Message(m) {} + AdjustedPositionReport(const AdjustedPositionReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BL"); } + + AdjustedPositionReport( + const FIX::PosMaintRptID& aPosMaintRptID, + const FIX::ClearingBusinessDate& aClearingBusinessDate ) + : Message(MsgType()) + { + set(aPosMaintRptID); + set(aClearingBusinessDate); + } + + FIELD_SET(*this, FIX::PosMaintRptID); + FIELD_SET(*this, FIX::PosReqType); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::PosMaintRptRefID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoPositions); + class NoPositions: public FIX::Group + { + public: + NoPositions() : FIX::Group(702,703,FIX::message_order(703,704,705,706,976,539,0)) {} + FIELD_SET(*this, FIX::PosType); + FIELD_SET(*this, FIX::LongQty); + FIELD_SET(*this, FIX::ShortQty); + FIELD_SET(*this, FIX::PosQtyStatus); + FIELD_SET(*this, FIX::QuantityDate); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + }; + FIELD_SET(*this, FIX::SettlPrice); + FIELD_SET(*this, FIX::PriorSettlPrice); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/Advertisement.h b/linux/include/quickfix/fix50sp1/Advertisement.h new file mode 100644 index 000000000..d8271cfd7 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/Advertisement.h @@ -0,0 +1,243 @@ +#ifndef FIX50SP1_ADVERTISEMENT_H +#define FIX50SP1_ADVERTISEMENT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class Advertisement : public Message + { + public: + Advertisement() : Message(MsgType()) {} + Advertisement(const FIX::Message& m) : Message(m) {} + Advertisement(const Message& m) : Message(m) {} + Advertisement(const Advertisement& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("7"); } + + Advertisement( + const FIX::AdvId& aAdvId, + const FIX::AdvTransType& aAdvTransType, + const FIX::AdvSide& aAdvSide, + const FIX::Quantity& aQuantity ) + : Message(MsgType()) + { + set(aAdvId); + set(aAdvTransType); + set(aAdvSide); + set(aQuantity); + } + + FIELD_SET(*this, FIX::AdvId); + FIELD_SET(*this, FIX::AdvTransType); + FIELD_SET(*this, FIX::AdvRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::AdvSide); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::URLLink); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/AllocationInstruction.h b/linux/include/quickfix/fix50sp1/AllocationInstruction.h new file mode 100644 index 000000000..e1ca19640 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/AllocationInstruction.h @@ -0,0 +1,471 @@ +#ifndef FIX50SP1_ALLOCATIONINSTRUCTION_H +#define FIX50SP1_ALLOCATIONINSTRUCTION_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class AllocationInstruction : public Message + { + public: + AllocationInstruction() : Message(MsgType()) {} + AllocationInstruction(const FIX::Message& m) : Message(m) {} + AllocationInstruction(const Message& m) : Message(m) {} + AllocationInstruction(const AllocationInstruction& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("J"); } + + AllocationInstruction( + const FIX::AllocID& aAllocID, + const FIX::AllocTransType& aAllocTransType, + const FIX::AllocType& aAllocType, + const FIX::Side& aSide, + const FIX::Quantity& aQuantity, + const FIX::TradeDate& aTradeDate ) + : Message(MsgType()) + { + set(aAllocID); + set(aAllocTransType); + set(aAllocType); + set(aSide); + set(aQuantity); + set(aTradeDate); + } + + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::AllocTransType); + FIELD_SET(*this, FIX::AllocType); + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::RefAllocID); + FIELD_SET(*this, FIX::AllocCancReplaceReason); + FIELD_SET(*this, FIX::AllocIntermedReqType); + FIELD_SET(*this, FIX::AllocLinkID); + FIELD_SET(*this, FIX::AllocLinkType); + FIELD_SET(*this, FIX::BookingRefID); + FIELD_SET(*this, FIX::AllocNoOrdersType); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,526,66,756,38,799,800,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrderAvgPx); + FIELD_SET(*this, FIX::OrderBookingQty); + }; + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,32,FIX::message_order(32,17,527,31,669,29,1003,1041,0)) {} + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::LastCapacity); + FIELD_SET(*this, FIX::TradeID); + FIELD_SET(*this, FIX::FirmTradeID); + }; + FIELD_SET(*this, FIX::PreviouslyReported); + FIELD_SET(*this, FIX::ReversalIndicator); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::AvgParPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::AvgPxPrecision); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::AutoAcceptIndicator); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::TotalAccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::LegalConfirm); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::TotNoAllocs); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,573,366,80,467,81,989,1002,993,1047,992,539,208,209,161,360,361,12,13,479,497,153,154,119,737,120,736,155,156,742,741,136,576,635,780,172,169,170,171,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::AllocPrice); + FIELD_SET(*this, FIX::AllocQty); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::SecondaryIndividualAllocID); + FIELD_SET(*this, FIX::AllocMethod); + FIELD_SET(*this, FIX::AllocCustomerCapacity); + FIELD_SET(*this, FIX::AllocPositionEffect); + FIELD_SET(*this, FIX::IndividualAllocType); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NotifyBrokerOfCredit); + FIELD_SET(*this, FIX::AllocHandlInst); + FIELD_SET(*this, FIX::AllocText); + FIELD_SET(*this, FIX::EncodedAllocTextLen); + FIELD_SET(*this, FIX::EncodedAllocText); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::AllocAvgPx); + FIELD_SET(*this, FIX::AllocNetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::AllocSettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::AllocAccruedInterestAmt); + FIELD_SET(*this, FIX::AllocInterestAtMaturity); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::NoClearingInstructions); + class NoClearingInstructions: public FIX::Group + { + public: + NoClearingInstructions() : FIX::Group(576,577,FIX::message_order(577,0)) {} + FIELD_SET(*this, FIX::ClearingInstruction); + }; + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::AllocSettlInstType); + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + }; + FIELD_SET(*this, FIX::AvgPxIndicator); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::TrdSubType); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::TradeInputSource); + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::MessageEventSource); + FIELD_SET(*this, FIX::RndPx); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/AllocationInstructionAck.h b/linux/include/quickfix/fix50sp1/AllocationInstructionAck.h new file mode 100644 index 000000000..4ff8c5f42 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/AllocationInstructionAck.h @@ -0,0 +1,98 @@ +#ifndef FIX50SP1_ALLOCATIONINSTRUCTIONACK_H +#define FIX50SP1_ALLOCATIONINSTRUCTIONACK_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class AllocationInstructionAck : public Message + { + public: + AllocationInstructionAck() : Message(MsgType()) {} + AllocationInstructionAck(const FIX::Message& m) : Message(m) {} + AllocationInstructionAck(const Message& m) : Message(m) {} + AllocationInstructionAck(const AllocationInstructionAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("P"); } + + AllocationInstructionAck( + const FIX::AllocID& aAllocID, + const FIX::AllocStatus& aAllocStatus ) + : Message(MsgType()) + { + set(aAllocID); + set(aAllocStatus); + } + + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::AllocStatus); + FIELD_SET(*this, FIX::AllocRejCode); + FIELD_SET(*this, FIX::AllocType); + FIELD_SET(*this, FIX::AllocIntermedReqType); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,366,1047,467,776,539,161,360,361,989,993,992,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocPrice); + FIELD_SET(*this, FIX::AllocPositionEffect); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::IndividualAllocRejCode); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocText); + FIELD_SET(*this, FIX::EncodedAllocTextLen); + FIELD_SET(*this, FIX::EncodedAllocText); + FIELD_SET(*this, FIX::SecondaryIndividualAllocID); + FIELD_SET(*this, FIX::AllocCustomerCapacity); + FIELD_SET(*this, FIX::IndividualAllocType); + FIELD_SET(*this, FIX::AllocQty); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/AllocationInstructionAlert.h b/linux/include/quickfix/fix50sp1/AllocationInstructionAlert.h new file mode 100644 index 000000000..1bd7e9275 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/AllocationInstructionAlert.h @@ -0,0 +1,471 @@ +#ifndef FIX50SP1_ALLOCATIONINSTRUCTIONALERT_H +#define FIX50SP1_ALLOCATIONINSTRUCTIONALERT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class AllocationInstructionAlert : public Message + { + public: + AllocationInstructionAlert() : Message(MsgType()) {} + AllocationInstructionAlert(const FIX::Message& m) : Message(m) {} + AllocationInstructionAlert(const Message& m) : Message(m) {} + AllocationInstructionAlert(const AllocationInstructionAlert& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BM"); } + + AllocationInstructionAlert( + const FIX::AllocID& aAllocID, + const FIX::AllocTransType& aAllocTransType, + const FIX::AllocType& aAllocType, + const FIX::Side& aSide, + const FIX::Quantity& aQuantity, + const FIX::TradeDate& aTradeDate ) + : Message(MsgType()) + { + set(aAllocID); + set(aAllocTransType); + set(aAllocType); + set(aSide); + set(aQuantity); + set(aTradeDate); + } + + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::AllocTransType); + FIELD_SET(*this, FIX::AllocType); + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::RefAllocID); + FIELD_SET(*this, FIX::AllocCancReplaceReason); + FIELD_SET(*this, FIX::AllocIntermedReqType); + FIELD_SET(*this, FIX::AllocLinkID); + FIELD_SET(*this, FIX::AllocLinkType); + FIELD_SET(*this, FIX::BookingRefID); + FIELD_SET(*this, FIX::AllocNoOrdersType); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,526,66,756,38,799,800,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrderAvgPx); + FIELD_SET(*this, FIX::OrderBookingQty); + }; + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,32,FIX::message_order(32,17,527,31,669,29,1003,1041,0)) {} + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::LastCapacity); + FIELD_SET(*this, FIX::TradeID); + FIELD_SET(*this, FIX::FirmTradeID); + }; + FIELD_SET(*this, FIX::PreviouslyReported); + FIELD_SET(*this, FIX::ReversalIndicator); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::AvgParPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::AvgPxPrecision); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::AutoAcceptIndicator); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::TotalAccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::LegalConfirm); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::TotNoAllocs); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,573,366,80,467,81,989,1002,993,1047,992,539,208,209,161,360,361,12,13,479,497,153,154,119,737,120,736,155,156,742,741,136,576,635,780,172,169,170,171,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::AllocPrice); + FIELD_SET(*this, FIX::AllocQty); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::SecondaryIndividualAllocID); + FIELD_SET(*this, FIX::AllocMethod); + FIELD_SET(*this, FIX::AllocCustomerCapacity); + FIELD_SET(*this, FIX::AllocPositionEffect); + FIELD_SET(*this, FIX::IndividualAllocType); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NotifyBrokerOfCredit); + FIELD_SET(*this, FIX::AllocHandlInst); + FIELD_SET(*this, FIX::AllocText); + FIELD_SET(*this, FIX::EncodedAllocTextLen); + FIELD_SET(*this, FIX::EncodedAllocText); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::AllocAvgPx); + FIELD_SET(*this, FIX::AllocNetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::AllocSettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::AllocAccruedInterestAmt); + FIELD_SET(*this, FIX::AllocInterestAtMaturity); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::NoClearingInstructions); + class NoClearingInstructions: public FIX::Group + { + public: + NoClearingInstructions() : FIX::Group(576,577,FIX::message_order(577,0)) {} + FIELD_SET(*this, FIX::ClearingInstruction); + }; + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::AllocSettlInstType); + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + }; + FIELD_SET(*this, FIX::AvgPxIndicator); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::TrdSubType); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::TradeInputSource); + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::MessageEventSource); + FIELD_SET(*this, FIX::RndPx); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/AllocationReport.h b/linux/include/quickfix/fix50sp1/AllocationReport.h new file mode 100644 index 000000000..f171ed00c --- /dev/null +++ b/linux/include/quickfix/fix50sp1/AllocationReport.h @@ -0,0 +1,480 @@ +#ifndef FIX50SP1_ALLOCATIONREPORT_H +#define FIX50SP1_ALLOCATIONREPORT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class AllocationReport : public Message + { + public: + AllocationReport() : Message(MsgType()) {} + AllocationReport(const FIX::Message& m) : Message(m) {} + AllocationReport(const Message& m) : Message(m) {} + AllocationReport(const AllocationReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AS"); } + + AllocationReport( + const FIX::AllocReportID& aAllocReportID, + const FIX::AllocTransType& aAllocTransType, + const FIX::AllocReportType& aAllocReportType, + const FIX::AllocStatus& aAllocStatus, + const FIX::Side& aSide, + const FIX::Quantity& aQuantity, + const FIX::AvgPx& aAvgPx, + const FIX::TradeDate& aTradeDate ) + : Message(MsgType()) + { + set(aAllocReportID); + set(aAllocTransType); + set(aAllocReportType); + set(aAllocStatus); + set(aSide); + set(aQuantity); + set(aAvgPx); + set(aTradeDate); + } + + FIELD_SET(*this, FIX::AllocReportID); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::AllocTransType); + FIELD_SET(*this, FIX::AllocReportRefID); + FIELD_SET(*this, FIX::AllocCancReplaceReason); + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::AllocReportType); + FIELD_SET(*this, FIX::AllocStatus); + FIELD_SET(*this, FIX::AllocRejCode); + FIELD_SET(*this, FIX::RefAllocID); + FIELD_SET(*this, FIX::AllocIntermedReqType); + FIELD_SET(*this, FIX::AllocLinkID); + FIELD_SET(*this, FIX::AllocLinkType); + FIELD_SET(*this, FIX::BookingRefID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::TrdSubType); + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::TradeInputSource); + FIELD_SET(*this, FIX::RndPx); + FIELD_SET(*this, FIX::MessageEventSource); + FIELD_SET(*this, FIX::TradeInputDevice); + FIELD_SET(*this, FIX::AvgPxIndicator); + FIELD_SET(*this, FIX::AllocNoOrdersType); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,526,66,756,38,799,800,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrderAvgPx); + FIELD_SET(*this, FIX::OrderBookingQty); + }; + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,32,FIX::message_order(32,17,527,31,669,29,1003,1041,0)) {} + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::LastCapacity); + FIELD_SET(*this, FIX::TradeID); + FIELD_SET(*this, FIX::FirmTradeID); + }; + FIELD_SET(*this, FIX::PreviouslyReported); + FIELD_SET(*this, FIX::ReversalIndicator); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::AvgParPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::AvgPxPrecision); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::AutoAcceptIndicator); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::TotalAccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::LegalConfirm); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::TotNoAllocs); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,573,366,80,467,81,989,1002,993,1047,992,539,208,209,161,360,361,12,13,479,497,153,154,119,737,120,736,155,156,742,741,136,576,635,780,172,169,170,171,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::AllocPrice); + FIELD_SET(*this, FIX::AllocQty); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::SecondaryIndividualAllocID); + FIELD_SET(*this, FIX::AllocMethod); + FIELD_SET(*this, FIX::AllocCustomerCapacity); + FIELD_SET(*this, FIX::AllocPositionEffect); + FIELD_SET(*this, FIX::IndividualAllocType); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NotifyBrokerOfCredit); + FIELD_SET(*this, FIX::AllocHandlInst); + FIELD_SET(*this, FIX::AllocText); + FIELD_SET(*this, FIX::EncodedAllocTextLen); + FIELD_SET(*this, FIX::EncodedAllocText); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::AllocAvgPx); + FIELD_SET(*this, FIX::AllocNetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::AllocSettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::AllocAccruedInterestAmt); + FIELD_SET(*this, FIX::AllocInterestAtMaturity); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::NoClearingInstructions); + class NoClearingInstructions: public FIX::Group + { + public: + NoClearingInstructions() : FIX::Group(576,577,FIX::message_order(577,0)) {} + FIELD_SET(*this, FIX::ClearingInstruction); + }; + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::AllocSettlInstType); + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/AllocationReportAck.h b/linux/include/quickfix/fix50sp1/AllocationReportAck.h new file mode 100644 index 000000000..3803295a5 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/AllocationReportAck.h @@ -0,0 +1,103 @@ +#ifndef FIX50SP1_ALLOCATIONREPORTACK_H +#define FIX50SP1_ALLOCATIONREPORTACK_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class AllocationReportAck : public Message + { + public: + AllocationReportAck() : Message(MsgType()) {} + AllocationReportAck(const FIX::Message& m) : Message(m) {} + AllocationReportAck(const Message& m) : Message(m) {} + AllocationReportAck(const AllocationReportAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AT"); } + + AllocationReportAck( + const FIX::AllocReportID& aAllocReportID, + const FIX::AllocID& aAllocID ) + : Message(MsgType()) + { + set(aAllocReportID); + set(aAllocID); + } + + FIELD_SET(*this, FIX::AllocReportID); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::AvgPxIndicator); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::AllocTransType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::AllocStatus); + FIELD_SET(*this, FIX::AllocRejCode); + FIELD_SET(*this, FIX::AllocReportType); + FIELD_SET(*this, FIX::AllocIntermedReqType); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,366,1047,467,776,539,161,360,361,989,993,992,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocPrice); + FIELD_SET(*this, FIX::AllocPositionEffect); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::IndividualAllocRejCode); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocText); + FIELD_SET(*this, FIX::EncodedAllocTextLen); + FIELD_SET(*this, FIX::EncodedAllocText); + FIELD_SET(*this, FIX::SecondaryIndividualAllocID); + FIELD_SET(*this, FIX::AllocCustomerCapacity); + FIELD_SET(*this, FIX::IndividualAllocType); + FIELD_SET(*this, FIX::AllocQty); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/ApplicationMessageReport.h b/linux/include/quickfix/fix50sp1/ApplicationMessageReport.h new file mode 100644 index 000000000..590dedc16 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/ApplicationMessageReport.h @@ -0,0 +1,45 @@ +#ifndef FIX50SP1_APPLICATIONMESSAGEREPORT_H +#define FIX50SP1_APPLICATIONMESSAGEREPORT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class ApplicationMessageReport : public Message + { + public: + ApplicationMessageReport() : Message(MsgType()) {} + ApplicationMessageReport(const FIX::Message& m) : Message(m) {} + ApplicationMessageReport(const Message& m) : Message(m) {} + ApplicationMessageReport(const ApplicationMessageReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BY"); } + + ApplicationMessageReport( + const FIX::ApplReportID& aApplReportID, + const FIX::ApplReportType& aApplReportType ) + : Message(MsgType()) + { + set(aApplReportID); + set(aApplReportType); + } + + FIELD_SET(*this, FIX::ApplReportID); + FIELD_SET(*this, FIX::ApplReportType); + FIELD_SET(*this, FIX::NoApplIDs); + class NoApplIDs: public FIX::Group + { + public: + NoApplIDs() : FIX::Group(1351,1355,FIX::message_order(1355,1399,1357,0)) {} + FIELD_SET(*this, FIX::RefApplID); + FIELD_SET(*this, FIX::ApplNewSeqNum); + FIELD_SET(*this, FIX::RefApplLastSeqNum); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/ApplicationMessageRequest.h b/linux/include/quickfix/fix50sp1/ApplicationMessageRequest.h new file mode 100644 index 000000000..a57ff1cd2 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/ApplicationMessageRequest.h @@ -0,0 +1,45 @@ +#ifndef FIX50SP1_APPLICATIONMESSAGEREQUEST_H +#define FIX50SP1_APPLICATIONMESSAGEREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class ApplicationMessageRequest : public Message + { + public: + ApplicationMessageRequest() : Message(MsgType()) {} + ApplicationMessageRequest(const FIX::Message& m) : Message(m) {} + ApplicationMessageRequest(const Message& m) : Message(m) {} + ApplicationMessageRequest(const ApplicationMessageRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BW"); } + + ApplicationMessageRequest( + const FIX::ApplReqID& aApplReqID, + const FIX::ApplReqType& aApplReqType ) + : Message(MsgType()) + { + set(aApplReqID); + set(aApplReqType); + } + + FIELD_SET(*this, FIX::ApplReqID); + FIELD_SET(*this, FIX::ApplReqType); + FIELD_SET(*this, FIX::NoApplIDs); + class NoApplIDs: public FIX::Group + { + public: + NoApplIDs() : FIX::Group(1351,1355,FIX::message_order(1355,1182,1183,0)) {} + FIELD_SET(*this, FIX::RefApplID); + FIELD_SET(*this, FIX::ApplBegSeqNum); + FIELD_SET(*this, FIX::ApplEndSeqNum); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/ApplicationMessageRequestAck.h b/linux/include/quickfix/fix50sp1/ApplicationMessageRequestAck.h new file mode 100644 index 000000000..3ff6abc89 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/ApplicationMessageRequestAck.h @@ -0,0 +1,48 @@ +#ifndef FIX50SP1_APPLICATIONMESSAGEREQUESTACK_H +#define FIX50SP1_APPLICATIONMESSAGEREQUESTACK_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class ApplicationMessageRequestAck : public Message + { + public: + ApplicationMessageRequestAck() : Message(MsgType()) {} + ApplicationMessageRequestAck(const FIX::Message& m) : Message(m) {} + ApplicationMessageRequestAck(const Message& m) : Message(m) {} + ApplicationMessageRequestAck(const ApplicationMessageRequestAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BX"); } + + ApplicationMessageRequestAck( + const FIX::ApplResponseID& aApplResponseID ) + : Message(MsgType()) + { + set(aApplResponseID); + } + + FIELD_SET(*this, FIX::ApplResponseID); + FIELD_SET(*this, FIX::ApplReqID); + FIELD_SET(*this, FIX::ApplReqType); + FIELD_SET(*this, FIX::ApplResponseType); + FIELD_SET(*this, FIX::ApplTotalMessageCount); + FIELD_SET(*this, FIX::NoApplIDs); + class NoApplIDs: public FIX::Group + { + public: + NoApplIDs() : FIX::Group(1351,1355,FIX::message_order(1355,1182,1183,1357,1354,0)) {} + FIELD_SET(*this, FIX::RefApplID); + FIELD_SET(*this, FIX::ApplBegSeqNum); + FIELD_SET(*this, FIX::ApplEndSeqNum); + FIELD_SET(*this, FIX::RefApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResponseError); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/AssignmentReport.h b/linux/include/quickfix/fix50sp1/AssignmentReport.h new file mode 100644 index 000000000..a256637dc --- /dev/null +++ b/linux/include/quickfix/fix50sp1/AssignmentReport.h @@ -0,0 +1,302 @@ +#ifndef FIX50SP1_ASSIGNMENTREPORT_H +#define FIX50SP1_ASSIGNMENTREPORT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class AssignmentReport : public Message + { + public: + AssignmentReport() : Message(MsgType()) {} + AssignmentReport(const FIX::Message& m) : Message(m) {} + AssignmentReport(const Message& m) : Message(m) {} + AssignmentReport(const AssignmentReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AW"); } + + AssignmentReport( + const FIX::AsgnRptID& aAsgnRptID, + const FIX::ClearingBusinessDate& aClearingBusinessDate ) + : Message(MsgType()) + { + set(aAsgnRptID); + set(aClearingBusinessDate); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::AsgnRptID); + FIELD_SET(*this, FIX::TotNumAssignmentReports); + FIELD_SET(*this, FIX::LastRptRequested); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoPositions); + class NoPositions: public FIX::Group + { + public: + NoPositions() : FIX::Group(702,703,FIX::message_order(703,704,705,706,976,539,0)) {} + FIELD_SET(*this, FIX::PosType); + FIELD_SET(*this, FIX::LongQty); + FIELD_SET(*this, FIX::ShortQty); + FIELD_SET(*this, FIX::PosQtyStatus); + FIELD_SET(*this, FIX::QuantityDate); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::ThresholdAmount); + FIELD_SET(*this, FIX::SettlPrice); + FIELD_SET(*this, FIX::SettlPriceType); + FIELD_SET(*this, FIX::UnderlyingSettlPrice); + FIELD_SET(*this, FIX::PriorSettlPrice); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::AssignmentMethod); + FIELD_SET(*this, FIX::AssignmentUnit); + FIELD_SET(*this, FIX::OpenInterest); + FIELD_SET(*this, FIX::ExerciseMethod); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/BidRequest.h b/linux/include/quickfix/fix50sp1/BidRequest.h new file mode 100644 index 000000000..080aa60fe --- /dev/null +++ b/linux/include/quickfix/fix50sp1/BidRequest.h @@ -0,0 +1,98 @@ +#ifndef FIX50SP1_BIDREQUEST_H +#define FIX50SP1_BIDREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class BidRequest : public Message + { + public: + BidRequest() : Message(MsgType()) {} + BidRequest(const FIX::Message& m) : Message(m) {} + BidRequest(const Message& m) : Message(m) {} + BidRequest(const BidRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("k"); } + + BidRequest( + const FIX::ClientBidID& aClientBidID, + const FIX::BidRequestTransType& aBidRequestTransType, + const FIX::TotNoRelatedSym& aTotNoRelatedSym, + const FIX::BidType& aBidType, + const FIX::BidTradeType& aBidTradeType, + const FIX::BasisPxType& aBasisPxType ) + : Message(MsgType()) + { + set(aClientBidID); + set(aBidRequestTransType); + set(aTotNoRelatedSym); + set(aBidType); + set(aBidTradeType); + set(aBasisPxType); + } + + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::BidRequestTransType); + FIELD_SET(*this, FIX::ListName); + FIELD_SET(*this, FIX::TotNoRelatedSym); + FIELD_SET(*this, FIX::BidType); + FIELD_SET(*this, FIX::NumTickets); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SideValue1); + FIELD_SET(*this, FIX::SideValue2); + FIELD_SET(*this, FIX::NoBidDescriptors); + class NoBidDescriptors: public FIX::Group + { + public: + NoBidDescriptors() : FIX::Group(398,399,FIX::message_order(399,400,401,404,441,402,403,405,406,407,408,0)) {} + FIELD_SET(*this, FIX::BidDescriptorType); + FIELD_SET(*this, FIX::BidDescriptor); + FIELD_SET(*this, FIX::SideValueInd); + FIELD_SET(*this, FIX::LiquidityValue); + FIELD_SET(*this, FIX::LiquidityNumSecurities); + FIELD_SET(*this, FIX::LiquidityPctLow); + FIELD_SET(*this, FIX::LiquidityPctHigh); + FIELD_SET(*this, FIX::EFPTrackingError); + FIELD_SET(*this, FIX::FairValue); + FIELD_SET(*this, FIX::OutsideIndexPct); + FIELD_SET(*this, FIX::ValueOfFutures); + }; + FIELD_SET(*this, FIX::NoBidComponents); + class NoBidComponents: public FIX::Group + { + public: + NoBidComponents() : FIX::Group(420,66,FIX::message_order(66,54,336,625,430,63,64,1,660,0)) {} + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NetGrossInd); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + }; + FIELD_SET(*this, FIX::LiquidityIndType); + FIELD_SET(*this, FIX::WtAverageLiquidity); + FIELD_SET(*this, FIX::ExchangeForPhysical); + FIELD_SET(*this, FIX::OutMainCntryUIndex); + FIELD_SET(*this, FIX::CrossPercent); + FIELD_SET(*this, FIX::ProgRptReqs); + FIELD_SET(*this, FIX::ProgPeriodInterval); + FIELD_SET(*this, FIX::IncTaxInd); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::NumBidders); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::BidTradeType); + FIELD_SET(*this, FIX::BasisPxType); + FIELD_SET(*this, FIX::StrikeTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/BidResponse.h b/linux/include/quickfix/fix50sp1/BidResponse.h new file mode 100644 index 000000000..d881843e0 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/BidResponse.h @@ -0,0 +1,48 @@ +#ifndef FIX50SP1_BIDRESPONSE_H +#define FIX50SP1_BIDRESPONSE_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class BidResponse : public Message + { + public: + BidResponse() : Message(MsgType()) {} + BidResponse(const FIX::Message& m) : Message(m) {} + BidResponse(const Message& m) : Message(m) {} + BidResponse(const BidResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("l"); } + + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::NoBidComponents); + class NoBidComponents: public FIX::Group + { + public: + NoBidComponents() : FIX::Group(420,12,FIX::message_order(12,13,479,497,66,421,54,44,423,406,430,63,64,336,625,58,354,355,0)) {} + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Country); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::FairValue); + FIELD_SET(*this, FIX::NetGrossInd); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/BusinessMessageReject.h b/linux/include/quickfix/fix50sp1/BusinessMessageReject.h new file mode 100644 index 000000000..1dc703498 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/BusinessMessageReject.h @@ -0,0 +1,41 @@ +#ifndef FIX50SP1_BUSINESSMESSAGEREJECT_H +#define FIX50SP1_BUSINESSMESSAGEREJECT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class BusinessMessageReject : public Message + { + public: + BusinessMessageReject() : Message(MsgType()) {} + BusinessMessageReject(const FIX::Message& m) : Message(m) {} + BusinessMessageReject(const Message& m) : Message(m) {} + BusinessMessageReject(const BusinessMessageReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("j"); } + + BusinessMessageReject( + const FIX::RefMsgType& aRefMsgType, + const FIX::BusinessRejectReason& aBusinessRejectReason ) + : Message(MsgType()) + { + set(aRefMsgType); + set(aBusinessRejectReason); + } + + FIELD_SET(*this, FIX::RefSeqNum); + FIELD_SET(*this, FIX::RefMsgType); + FIELD_SET(*this, FIX::RefApplVerID); + FIELD_SET(*this, FIX::RefApplExtID); + FIELD_SET(*this, FIX::RefCstmApplVerID); + FIELD_SET(*this, FIX::BusinessRejectRefID); + FIELD_SET(*this, FIX::BusinessRejectReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/CollateralAssignment.h b/linux/include/quickfix/fix50sp1/CollateralAssignment.h new file mode 100644 index 000000000..4f976a28d --- /dev/null +++ b/linux/include/quickfix/fix50sp1/CollateralAssignment.h @@ -0,0 +1,345 @@ +#ifndef FIX50SP1_COLLATERALASSIGNMENT_H +#define FIX50SP1_COLLATERALASSIGNMENT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class CollateralAssignment : public Message + { + public: + CollateralAssignment() : Message(MsgType()) {} + CollateralAssignment(const FIX::Message& m) : Message(m) {} + CollateralAssignment(const Message& m) : Message(m) {} + CollateralAssignment(const CollateralAssignment& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AY"); } + + CollateralAssignment( + const FIX::CollAsgnID& aCollAsgnID, + const FIX::CollAsgnReason& aCollAsgnReason, + const FIX::CollAsgnTransType& aCollAsgnTransType, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aCollAsgnID); + set(aCollAsgnReason); + set(aCollAsgnTransType); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::CollAsgnID); + FIELD_SET(*this, FIX::CollReqID); + FIELD_SET(*this, FIX::CollAsgnReason); + FIELD_SET(*this, FIX::CollAsgnTransType); + FIELD_SET(*this, FIX::CollAsgnRefID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,944,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::CollAction); + }; + FIELD_SET(*this, FIX::MarginExcess); + FIELD_SET(*this, FIX::TotalNetValue); + FIELD_SET(*this, FIX::CashOutstanding); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/CollateralInquiry.h b/linux/include/quickfix/fix50sp1/CollateralInquiry.h new file mode 100644 index 000000000..82cb1a9bc --- /dev/null +++ b/linux/include/quickfix/fix50sp1/CollateralInquiry.h @@ -0,0 +1,325 @@ +#ifndef FIX50SP1_COLLATERALINQUIRY_H +#define FIX50SP1_COLLATERALINQUIRY_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class CollateralInquiry : public Message + { + public: + CollateralInquiry() : Message(MsgType()) {} + CollateralInquiry(const FIX::Message& m) : Message(m) {} + CollateralInquiry(const Message& m) : Message(m) {} + CollateralInquiry(const CollateralInquiry& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BB"); } + + FIELD_SET(*this, FIX::CollInquiryID); + FIELD_SET(*this, FIX::NoCollInquiryQualifier); + class NoCollInquiryQualifier: public FIX::Group + { + public: + NoCollInquiryQualifier() : FIX::Group(938,896,FIX::message_order(896,0)) {} + FIELD_SET(*this, FIX::CollInquiryQualifier); + }; + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::MarginExcess); + FIELD_SET(*this, FIX::TotalNetValue); + FIELD_SET(*this, FIX::CashOutstanding); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/CollateralInquiryAck.h b/linux/include/quickfix/fix50sp1/CollateralInquiryAck.h new file mode 100644 index 000000000..31c7da33c --- /dev/null +++ b/linux/include/quickfix/fix50sp1/CollateralInquiryAck.h @@ -0,0 +1,294 @@ +#ifndef FIX50SP1_COLLATERALINQUIRYACK_H +#define FIX50SP1_COLLATERALINQUIRYACK_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class CollateralInquiryAck : public Message + { + public: + CollateralInquiryAck() : Message(MsgType()) {} + CollateralInquiryAck(const FIX::Message& m) : Message(m) {} + CollateralInquiryAck(const Message& m) : Message(m) {} + CollateralInquiryAck(const CollateralInquiryAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BG"); } + + CollateralInquiryAck( + const FIX::CollInquiryID& aCollInquiryID, + const FIX::CollInquiryStatus& aCollInquiryStatus ) + : Message(MsgType()) + { + set(aCollInquiryID); + set(aCollInquiryStatus); + } + + FIELD_SET(*this, FIX::CollInquiryID); + FIELD_SET(*this, FIX::CollInquiryStatus); + FIELD_SET(*this, FIX::CollInquiryResult); + FIELD_SET(*this, FIX::NoCollInquiryQualifier); + class NoCollInquiryQualifier: public FIX::Group + { + public: + NoCollInquiryQualifier() : FIX::Group(938,896,FIX::message_order(896,0)) {} + FIELD_SET(*this, FIX::CollInquiryQualifier); + }; + FIELD_SET(*this, FIX::TotNumReports); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/CollateralReport.h b/linux/include/quickfix/fix50sp1/CollateralReport.h new file mode 100644 index 000000000..182e4a440 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/CollateralReport.h @@ -0,0 +1,341 @@ +#ifndef FIX50SP1_COLLATERALREPORT_H +#define FIX50SP1_COLLATERALREPORT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class CollateralReport : public Message + { + public: + CollateralReport() : Message(MsgType()) {} + CollateralReport(const FIX::Message& m) : Message(m) {} + CollateralReport(const Message& m) : Message(m) {} + CollateralReport(const CollateralReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BA"); } + + CollateralReport( + const FIX::CollRptID& aCollRptID, + const FIX::CollStatus& aCollStatus ) + : Message(MsgType()) + { + set(aCollRptID); + set(aCollStatus); + } + + FIELD_SET(*this, FIX::CollRptID); + FIELD_SET(*this, FIX::CollInquiryID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::CollApplType); + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::CollStatus); + FIELD_SET(*this, FIX::TotNumReports); + FIELD_SET(*this, FIX::LastRptRequested); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::MarginExcess); + FIELD_SET(*this, FIX::TotalNetValue); + FIELD_SET(*this, FIX::CashOutstanding); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/CollateralRequest.h b/linux/include/quickfix/fix50sp1/CollateralRequest.h new file mode 100644 index 000000000..d1eae33a3 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/CollateralRequest.h @@ -0,0 +1,336 @@ +#ifndef FIX50SP1_COLLATERALREQUEST_H +#define FIX50SP1_COLLATERALREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class CollateralRequest : public Message + { + public: + CollateralRequest() : Message(MsgType()) {} + CollateralRequest(const FIX::Message& m) : Message(m) {} + CollateralRequest(const Message& m) : Message(m) {} + CollateralRequest(const CollateralRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AX"); } + + CollateralRequest( + const FIX::CollReqID& aCollReqID, + const FIX::CollAsgnReason& aCollAsgnReason, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aCollReqID); + set(aCollAsgnReason); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::CollReqID); + FIELD_SET(*this, FIX::CollAsgnReason); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,944,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::CollAction); + }; + FIELD_SET(*this, FIX::MarginExcess); + FIELD_SET(*this, FIX::TotalNetValue); + FIELD_SET(*this, FIX::CashOutstanding); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/CollateralResponse.h b/linux/include/quickfix/fix50sp1/CollateralResponse.h new file mode 100644 index 000000000..b45196508 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/CollateralResponse.h @@ -0,0 +1,338 @@ +#ifndef FIX50SP1_COLLATERALRESPONSE_H +#define FIX50SP1_COLLATERALRESPONSE_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class CollateralResponse : public Message + { + public: + CollateralResponse() : Message(MsgType()) {} + CollateralResponse(const FIX::Message& m) : Message(m) {} + CollateralResponse(const Message& m) : Message(m) {} + CollateralResponse(const CollateralResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AZ"); } + + CollateralResponse( + const FIX::CollRespID& aCollRespID, + const FIX::CollAsgnRespType& aCollAsgnRespType, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aCollRespID); + set(aCollAsgnRespType); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::CollRespID); + FIELD_SET(*this, FIX::CollAsgnID); + FIELD_SET(*this, FIX::CollReqID); + FIELD_SET(*this, FIX::CollAsgnReason); + FIELD_SET(*this, FIX::CollAsgnTransType); + FIELD_SET(*this, FIX::CollAsgnRespType); + FIELD_SET(*this, FIX::CollAsgnRejectReason); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::CollApplType); + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,944,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::CollAction); + }; + FIELD_SET(*this, FIX::MarginExcess); + FIELD_SET(*this, FIX::TotalNetValue); + FIELD_SET(*this, FIX::CashOutstanding); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/Confirmation.h b/linux/include/quickfix/fix50sp1/Confirmation.h new file mode 100644 index 000000000..346f56a2c --- /dev/null +++ b/linux/include/quickfix/fix50sp1/Confirmation.h @@ -0,0 +1,412 @@ +#ifndef FIX50SP1_CONFIRMATION_H +#define FIX50SP1_CONFIRMATION_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class Confirmation : public Message + { + public: + Confirmation() : Message(MsgType()) {} + Confirmation(const FIX::Message& m) : Message(m) {} + Confirmation(const Message& m) : Message(m) {} + Confirmation(const Confirmation& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AK"); } + + Confirmation( + const FIX::ConfirmID& aConfirmID, + const FIX::ConfirmTransType& aConfirmTransType, + const FIX::ConfirmType& aConfirmType, + const FIX::ConfirmStatus& aConfirmStatus, + const FIX::TransactTime& aTransactTime, + const FIX::TradeDate& aTradeDate, + const FIX::AllocQty& aAllocQty, + const FIX::Side& aSide, + const FIX::AllocAccount& aAllocAccount, + const FIX::AvgPx& aAvgPx, + const FIX::GrossTradeAmt& aGrossTradeAmt, + const FIX::NetMoney& aNetMoney ) + : Message(MsgType()) + { + set(aConfirmID); + set(aConfirmTransType); + set(aConfirmType); + set(aConfirmStatus); + set(aTransactTime); + set(aTradeDate); + set(aAllocQty); + set(aSide); + set(aAllocAccount); + set(aAvgPx); + set(aGrossTradeAmt); + set(aNetMoney); + } + + FIELD_SET(*this, FIX::ConfirmID); + FIELD_SET(*this, FIX::ConfirmRefID); + FIELD_SET(*this, FIX::ConfirmReqID); + FIELD_SET(*this, FIX::ConfirmTransType); + FIELD_SET(*this, FIX::ConfirmType); + FIELD_SET(*this, FIX::CopyMsgIndicator); + FIELD_SET(*this, FIX::LegalConfirm); + FIELD_SET(*this, FIX::ConfirmStatus); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,526,66,756,38,799,800,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrderAvgPx); + FIELD_SET(*this, FIX::OrderBookingQty); + }; + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::AllocQty); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::NoCapacities); + class NoCapacities: public FIX::Group + { + public: + NoCapacities() : FIX::Group(862,528,FIX::message_order(528,529,863,0)) {} + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::OrderCapacityQty); + }; + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocAccountType); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::AvgPxPrecision); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AvgParPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::ReportedPx); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::ExDate); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::MaturityNetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::SharedCommission); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/ConfirmationAck.h b/linux/include/quickfix/fix50sp1/ConfirmationAck.h new file mode 100644 index 000000000..2b75d7425 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/ConfirmationAck.h @@ -0,0 +1,44 @@ +#ifndef FIX50SP1_CONFIRMATIONACK_H +#define FIX50SP1_CONFIRMATIONACK_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class ConfirmationAck : public Message + { + public: + ConfirmationAck() : Message(MsgType()) {} + ConfirmationAck(const FIX::Message& m) : Message(m) {} + ConfirmationAck(const Message& m) : Message(m) {} + ConfirmationAck(const ConfirmationAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AU"); } + + ConfirmationAck( + const FIX::ConfirmID& aConfirmID, + const FIX::TradeDate& aTradeDate, + const FIX::TransactTime& aTransactTime, + const FIX::AffirmStatus& aAffirmStatus ) + : Message(MsgType()) + { + set(aConfirmID); + set(aTradeDate); + set(aTransactTime); + set(aAffirmStatus); + } + + FIELD_SET(*this, FIX::ConfirmID); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::AffirmStatus); + FIELD_SET(*this, FIX::ConfirmRejReason); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/ConfirmationRequest.h b/linux/include/quickfix/fix50sp1/ConfirmationRequest.h new file mode 100644 index 000000000..a252a6a34 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/ConfirmationRequest.h @@ -0,0 +1,76 @@ +#ifndef FIX50SP1_CONFIRMATIONREQUEST_H +#define FIX50SP1_CONFIRMATIONREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class ConfirmationRequest : public Message + { + public: + ConfirmationRequest() : Message(MsgType()) {} + ConfirmationRequest(const FIX::Message& m) : Message(m) {} + ConfirmationRequest(const Message& m) : Message(m) {} + ConfirmationRequest(const ConfirmationRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BH"); } + + ConfirmationRequest( + const FIX::ConfirmReqID& aConfirmReqID, + const FIX::ConfirmType& aConfirmType, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aConfirmReqID); + set(aConfirmType); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::ConfirmReqID); + FIELD_SET(*this, FIX::ConfirmType); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,526,66,756,38,799,800,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrderAvgPx); + FIELD_SET(*this, FIX::OrderBookingQty); + }; + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocAccountType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/ContraryIntentionReport.h b/linux/include/quickfix/fix50sp1/ContraryIntentionReport.h new file mode 100644 index 000000000..89922d874 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/ContraryIntentionReport.h @@ -0,0 +1,203 @@ +#ifndef FIX50SP1_CONTRARYINTENTIONREPORT_H +#define FIX50SP1_CONTRARYINTENTIONREPORT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class ContraryIntentionReport : public Message + { + public: + ContraryIntentionReport() : Message(MsgType()) {} + ContraryIntentionReport(const FIX::Message& m) : Message(m) {} + ContraryIntentionReport(const Message& m) : Message(m) {} + ContraryIntentionReport(const ContraryIntentionReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BO"); } + + ContraryIntentionReport( + const FIX::ContIntRptID& aContIntRptID, + const FIX::ClearingBusinessDate& aClearingBusinessDate ) + : Message(MsgType()) + { + set(aContIntRptID); + set(aClearingBusinessDate); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::ContIntRptID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::LateIndicator); + FIELD_SET(*this, FIX::InputSource); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoExpiration); + class NoExpiration: public FIX::Group + { + public: + NoExpiration() : FIX::Group(981,982,FIX::message_order(982,983,0)) {} + FIELD_SET(*this, FIX::ExpirationQtyType); + FIELD_SET(*this, FIX::ExpQty); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/CrossOrderCancelReplaceRequest.h b/linux/include/quickfix/fix50sp1/CrossOrderCancelReplaceRequest.h new file mode 100644 index 000000000..a51d306d4 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/CrossOrderCancelReplaceRequest.h @@ -0,0 +1,462 @@ +#ifndef FIX50SP1_CROSSORDERCANCELREPLACEREQUEST_H +#define FIX50SP1_CROSSORDERCANCELREPLACEREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class CrossOrderCancelReplaceRequest : public Message + { + public: + CrossOrderCancelReplaceRequest() : Message(MsgType()) {} + CrossOrderCancelReplaceRequest(const FIX::Message& m) : Message(m) {} + CrossOrderCancelReplaceRequest(const Message& m) : Message(m) {} + CrossOrderCancelReplaceRequest(const CrossOrderCancelReplaceRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("t"); } + + CrossOrderCancelReplaceRequest( + const FIX::CrossID& aCrossID, + const FIX::OrigCrossID& aOrigCrossID, + const FIX::CrossType& aCrossType, + const FIX::CrossPrioritization& aCrossPrioritization, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aCrossID); + set(aOrigCrossID); + set(aCrossType); + set(aCrossPrioritization); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::CrossID); + FIELD_SET(*this, FIX::OrigCrossID); + FIELD_SET(*this, FIX::HostCrossID); + FIELD_SET(*this, FIX::CrossType); + FIELD_SET(*this, FIX::CrossPrioritization); + FIELD_SET(*this, FIX::NoRootPartyIDs); + class NoRootPartyIDs: public FIX::Group + { + public: + NoRootPartyIDs() : FIX::Group(1116,1117,FIX::message_order(1117,1118,1119,1120,0)) {} + FIELD_SET(*this, FIX::RootPartyID); + FIELD_SET(*this, FIX::RootPartyIDSource); + FIELD_SET(*this, FIX::RootPartyRole); + FIELD_SET(*this, FIX::NoRootPartySubIDs); + class NoRootPartySubIDs: public FIX::Group + { + public: + NoRootPartySubIDs() : FIX::Group(1120,1121,FIX::message_order(1121,1122,0)) {} + FIELD_SET(*this, FIX::RootPartySubID); + FIELD_SET(*this, FIX::RootPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoSides); + class NoSides: public FIX::Group + { + public: + NoSides() : FIX::Group(552,54,FIX::message_order(54,41,11,526,583,453,229,75,1,660,581,589,590,591,70,78,854,38,152,516,468,469,12,13,479,497,528,529,1091,582,121,120,775,58,354,355,77,203,544,635,377,659,962,0)) {} + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::SideComplianceID); + FIELD_SET(*this, FIX::SideTimeInForce); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TransBkdTime); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/CrossOrderCancelRequest.h b/linux/include/quickfix/fix50sp1/CrossOrderCancelRequest.h new file mode 100644 index 000000000..c25a1fd5f --- /dev/null +++ b/linux/include/quickfix/fix50sp1/CrossOrderCancelRequest.h @@ -0,0 +1,292 @@ +#ifndef FIX50SP1_CROSSORDERCANCELREQUEST_H +#define FIX50SP1_CROSSORDERCANCELREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class CrossOrderCancelRequest : public Message + { + public: + CrossOrderCancelRequest() : Message(MsgType()) {} + CrossOrderCancelRequest(const FIX::Message& m) : Message(m) {} + CrossOrderCancelRequest(const Message& m) : Message(m) {} + CrossOrderCancelRequest(const CrossOrderCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("u"); } + + CrossOrderCancelRequest( + const FIX::CrossID& aCrossID, + const FIX::OrigCrossID& aOrigCrossID, + const FIX::CrossType& aCrossType, + const FIX::CrossPrioritization& aCrossPrioritization, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aCrossID); + set(aOrigCrossID); + set(aCrossType); + set(aCrossPrioritization); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::CrossID); + FIELD_SET(*this, FIX::OrigCrossID); + FIELD_SET(*this, FIX::HostCrossID); + FIELD_SET(*this, FIX::CrossType); + FIELD_SET(*this, FIX::CrossPrioritization); + FIELD_SET(*this, FIX::NoRootPartyIDs); + class NoRootPartyIDs: public FIX::Group + { + public: + NoRootPartyIDs() : FIX::Group(1116,1117,FIX::message_order(1117,1118,1119,1120,0)) {} + FIELD_SET(*this, FIX::RootPartyID); + FIELD_SET(*this, FIX::RootPartyIDSource); + FIELD_SET(*this, FIX::RootPartyRole); + FIELD_SET(*this, FIX::NoRootPartySubIDs); + class NoRootPartySubIDs: public FIX::Group + { + public: + NoRootPartySubIDs() : FIX::Group(1120,1121,FIX::message_order(1121,1122,0)) {} + FIELD_SET(*this, FIX::RootPartySubID); + FIELD_SET(*this, FIX::RootPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoSides); + class NoSides: public FIX::Group + { + public: + NoSides() : FIX::Group(552,54,FIX::message_order(54,41,11,526,583,586,453,229,75,38,152,516,468,469,376,58,354,355,0)) {} + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::TransactTime); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/DerivativeSecurityList.h b/linux/include/quickfix/fix50sp1/DerivativeSecurityList.h new file mode 100644 index 000000000..b3ed47fd2 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/DerivativeSecurityList.h @@ -0,0 +1,240 @@ +#ifndef FIX50SP1_DERIVATIVESECURITYLIST_H +#define FIX50SP1_DERIVATIVESECURITYLIST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class DerivativeSecurityList : public Message + { + public: + DerivativeSecurityList() : Message(MsgType()) {} + DerivativeSecurityList(const FIX::Message& m) : Message(m) {} + DerivativeSecurityList(const Message& m) : Message(m) {} + DerivativeSecurityList(const DerivativeSecurityList& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AA"); } + + DerivativeSecurityList( + const FIX::SecurityResponseID& aSecurityResponseID ) + : Message(MsgType()) + { + set(aSecurityResponseID); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityRequestResult); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::TotNoRelatedSym); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,1305,1221,1230,1240,15,292,668,869,555,58,354,355,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::SecondaryPriceLimitType); + FIELD_SET(*this, FIX::SecondaryLowLimitPrice); + FIELD_SET(*this, FIX::SecondaryHighLimitPrice); + FIELD_SET(*this, FIX::SecondaryTradingReferencePrice); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/DerivativeSecurityListRequest.h b/linux/include/quickfix/fix50sp1/DerivativeSecurityListRequest.h new file mode 100644 index 000000000..4329f03ef --- /dev/null +++ b/linux/include/quickfix/fix50sp1/DerivativeSecurityListRequest.h @@ -0,0 +1,158 @@ +#ifndef FIX50SP1_DERIVATIVESECURITYLISTREQUEST_H +#define FIX50SP1_DERIVATIVESECURITYLISTREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class DerivativeSecurityListRequest : public Message + { + public: + DerivativeSecurityListRequest() : Message(MsgType()) {} + DerivativeSecurityListRequest(const FIX::Message& m) : Message(m) {} + DerivativeSecurityListRequest(const Message& m) : Message(m) {} + DerivativeSecurityListRequest(const DerivativeSecurityListRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("z"); } + + DerivativeSecurityListRequest( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityListRequestType& aSecurityListRequestType ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityListRequestType); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityListRequestType); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::DerivativeSymbol); + FIELD_SET(*this, FIX::DerivativeSymbolSfx); + FIELD_SET(*this, FIX::DerivativeSecurityID); + FIELD_SET(*this, FIX::DerivativeSecurityIDSource); + FIELD_SET(*this, FIX::DerivativeProduct); + FIELD_SET(*this, FIX::DerivativeProductComplex); + FIELD_SET(*this, FIX::DerivFlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::DerivativeSecurityGroup); + FIELD_SET(*this, FIX::DerivativeCFICode); + FIELD_SET(*this, FIX::DerivativeSecurityType); + FIELD_SET(*this, FIX::DerivativeSecuritySubType); + FIELD_SET(*this, FIX::DerivativeMaturityMonthYear); + FIELD_SET(*this, FIX::DerivativeMaturityDate); + FIELD_SET(*this, FIX::DerivativeMaturityTime); + FIELD_SET(*this, FIX::DerivativeSettleOnOpenFlag); + FIELD_SET(*this, FIX::DerivativeInstrmtAssignmentMethod); + FIELD_SET(*this, FIX::DerivativeSecurityStatus); + FIELD_SET(*this, FIX::DerivativeIssueDate); + FIELD_SET(*this, FIX::DerivativeInstrRegistry); + FIELD_SET(*this, FIX::DerivativeCountryOfIssue); + FIELD_SET(*this, FIX::DerivativeStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::DerivativeLocaleOfIssue); + FIELD_SET(*this, FIX::DerivativeStrikePrice); + FIELD_SET(*this, FIX::DerivativeStrikeCurrency); + FIELD_SET(*this, FIX::DerivativeStrikeMultiplier); + FIELD_SET(*this, FIX::DerivativeStrikeValue); + FIELD_SET(*this, FIX::DerivativeOptAttribute); + FIELD_SET(*this, FIX::DerivativeContractMultiplier); + FIELD_SET(*this, FIX::DerivativeMinPriceIncrement); + FIELD_SET(*this, FIX::DerivativeMinPriceIncrementAmount); + FIELD_SET(*this, FIX::DerivativeUnitOfMeasure); + FIELD_SET(*this, FIX::DerivativeUnitOfMeasureQty); + FIELD_SET(*this, FIX::DerivativePriceUnitOfMeasure); + FIELD_SET(*this, FIX::DerivativePriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::DerivativeSettlMethod); + FIELD_SET(*this, FIX::DerivativePriceQuoteMethod); + FIELD_SET(*this, FIX::DerivativeFuturesValuationMethod); + FIELD_SET(*this, FIX::DerivativeListMethod); + FIELD_SET(*this, FIX::DerivativeCapPrice); + FIELD_SET(*this, FIX::DerivativeFloorPrice); + FIELD_SET(*this, FIX::DerivativePutOrCall); + FIELD_SET(*this, FIX::DerivativeExerciseStyle); + FIELD_SET(*this, FIX::DerivativeOptPayAmount); + FIELD_SET(*this, FIX::DerivativeTimeUnit); + FIELD_SET(*this, FIX::DerivativeSecurityExchange); + FIELD_SET(*this, FIX::DerivativePositionLimit); + FIELD_SET(*this, FIX::DerivativeNTPositionLimit); + FIELD_SET(*this, FIX::DerivativeIssuer); + FIELD_SET(*this, FIX::DerivativeEncodedIssuerLen); + FIELD_SET(*this, FIX::DerivativeEncodedIssuer); + FIELD_SET(*this, FIX::DerivativeSecurityDesc); + FIELD_SET(*this, FIX::DerivativeEncodedSecurityDescLen); + FIELD_SET(*this, FIX::DerivativeEncodedSecurityDesc); + FIELD_SET(*this, FIX::DerivativeContractSettlMonth); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/DerivativeSecurityListUpdateReport.h b/linux/include/quickfix/fix50sp1/DerivativeSecurityListUpdateReport.h new file mode 100644 index 000000000..0c67abf66 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/DerivativeSecurityListUpdateReport.h @@ -0,0 +1,235 @@ +#ifndef FIX50SP1_DERIVATIVESECURITYLISTUPDATEREPORT_H +#define FIX50SP1_DERIVATIVESECURITYLISTUPDATEREPORT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class DerivativeSecurityListUpdateReport : public Message + { + public: + DerivativeSecurityListUpdateReport() : Message(MsgType()) {} + DerivativeSecurityListUpdateReport(const FIX::Message& m) : Message(m) {} + DerivativeSecurityListUpdateReport(const Message& m) : Message(m) {} + DerivativeSecurityListUpdateReport(const DerivativeSecurityListUpdateReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BR"); } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityRequestResult); + FIELD_SET(*this, FIX::SecurityUpdateAction); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::TotNoRelatedSym); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,1324,FIX::message_order(1324,292,55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,668,869,1305,1221,1230,1240,15,555,58,354,355,0)) {} + FIELD_SET(*this, FIX::ListUpdateAction); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::SecondaryPriceLimitType); + FIELD_SET(*this, FIX::SecondaryLowLimitPrice); + FIELD_SET(*this, FIX::SecondaryHighLimitPrice); + FIELD_SET(*this, FIX::SecondaryTradingReferencePrice); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/DontKnowTrade.h b/linux/include/quickfix/fix50sp1/DontKnowTrade.h new file mode 100644 index 000000000..35bd27de6 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/DontKnowTrade.h @@ -0,0 +1,241 @@ +#ifndef FIX50SP1_DONTKNOWTRADE_H +#define FIX50SP1_DONTKNOWTRADE_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class DontKnowTrade : public Message + { + public: + DontKnowTrade() : Message(MsgType()) {} + DontKnowTrade(const FIX::Message& m) : Message(m) {} + DontKnowTrade(const Message& m) : Message(m) {} + DontKnowTrade(const DontKnowTrade& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("Q"); } + + DontKnowTrade( + const FIX::OrderID& aOrderID, + const FIX::ExecID& aExecID, + const FIX::DKReason& aDKReason, + const FIX::Side& aSide ) + : Message(MsgType()) + { + set(aOrderID); + set(aExecID); + set(aDKReason); + set(aSide); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::DKReason); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/Email.h b/linux/include/quickfix/fix50sp1/Email.h new file mode 100644 index 000000000..c315064e0 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/Email.h @@ -0,0 +1,257 @@ +#ifndef FIX50SP1_EMAIL_H +#define FIX50SP1_EMAIL_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class Email : public Message + { + public: + Email() : Message(MsgType()) {} + Email(const FIX::Message& m) : Message(m) {} + Email(const Message& m) : Message(m) {} + Email(const Email& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("C"); } + + Email( + const FIX::EmailThreadID& aEmailThreadID, + const FIX::EmailType& aEmailType, + const FIX::Subject& aSubject ) + : Message(MsgType()) + { + set(aEmailThreadID); + set(aEmailType); + set(aSubject); + } + + FIELD_SET(*this, FIX::EmailThreadID); + FIELD_SET(*this, FIX::EmailType); + FIELD_SET(*this, FIX::OrigTime); + FIELD_SET(*this, FIX::Subject); + FIELD_SET(*this, FIX::EncodedSubjectLen); + FIELD_SET(*this, FIX::EncodedSubject); + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::NoLinesOfText); + class NoLinesOfText: public FIX::Group + { + public: + NoLinesOfText() : FIX::Group(33,58,FIX::message_order(58,354,355,0)) {} + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/ExecutionAcknowledgement.h b/linux/include/quickfix/fix50sp1/ExecutionAcknowledgement.h new file mode 100644 index 000000000..3dfff160e --- /dev/null +++ b/linux/include/quickfix/fix50sp1/ExecutionAcknowledgement.h @@ -0,0 +1,247 @@ +#ifndef FIX50SP1_EXECUTIONACKNOWLEDGEMENT_H +#define FIX50SP1_EXECUTIONACKNOWLEDGEMENT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class ExecutionAcknowledgement : public Message + { + public: + ExecutionAcknowledgement() : Message(MsgType()) {} + ExecutionAcknowledgement(const FIX::Message& m) : Message(m) {} + ExecutionAcknowledgement(const Message& m) : Message(m) {} + ExecutionAcknowledgement(const ExecutionAcknowledgement& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BN"); } + + ExecutionAcknowledgement( + const FIX::OrderID& aOrderID, + const FIX::ExecAckStatus& aExecAckStatus, + const FIX::ExecID& aExecID, + const FIX::Side& aSide ) + : Message(MsgType()) + { + set(aOrderID); + set(aExecAckStatus); + set(aExecID); + set(aSide); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ExecAckStatus); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::DKReason); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::CumQty); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/ExecutionReport.h b/linux/include/quickfix/fix50sp1/ExecutionReport.h new file mode 100644 index 000000000..875141d38 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/ExecutionReport.h @@ -0,0 +1,660 @@ +#ifndef FIX50SP1_EXECUTIONREPORT_H +#define FIX50SP1_EXECUTIONREPORT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class ExecutionReport : public Message + { + public: + ExecutionReport() : Message(MsgType()) {} + ExecutionReport(const FIX::Message& m) : Message(m) {} + ExecutionReport(const Message& m) : Message(m) {} + ExecutionReport(const ExecutionReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("8"); } + + ExecutionReport( + const FIX::OrderID& aOrderID, + const FIX::ExecID& aExecID, + const FIX::ExecType& aExecType, + const FIX::OrdStatus& aOrdStatus, + const FIX::Side& aSide, + const FIX::LeavesQty& aLeavesQty, + const FIX::CumQty& aCumQty ) + : Message(MsgType()) + { + set(aOrderID); + set(aExecID); + set(aExecType); + set(aOrdStatus); + set(aSide); + set(aLeavesQty); + set(aCumQty); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::QuoteRespID); + FIELD_SET(*this, FIX::OrdStatusReqID); + FIELD_SET(*this, FIX::MassStatusReqID); + FIELD_SET(*this, FIX::HostCrossID); + FIELD_SET(*this, FIX::TotNumReports); + FIELD_SET(*this, FIX::LastRptRequested); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::NoContraBrokers); + class NoContraBrokers: public FIX::Group + { + public: + NoContraBrokers() : FIX::Group(382,375,FIX::message_order(375,337,437,438,655,0)) {} + FIELD_SET(*this, FIX::ContraBroker); + FIELD_SET(*this, FIX::ContraTrader); + FIELD_SET(*this, FIX::ContraTradeQty); + FIELD_SET(*this, FIX::ContraTradeTime); + FIELD_SET(*this, FIX::ContraLegRefID); + }; + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::CrossID); + FIELD_SET(*this, FIX::OrigCrossID); + FIELD_SET(*this, FIX::CrossType); + FIELD_SET(*this, FIX::TrdMatchID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::ExecRefID); + FIELD_SET(*this, FIX::ExecType); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::WorkingIndicator); + FIELD_SET(*this, FIX::OrdRejReason); + FIELD_SET(*this, FIX::ExecRestatementReason); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::OrderCategory); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::LotType); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::PeggedPrice); + FIELD_SET(*this, FIX::PeggedRefPrice); + FIELD_SET(*this, FIX::DiscretionPrice); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::TargetStrategyPerformance); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::AggressorIndicator); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::CalculatedCcyLastQty); + FIELD_SET(*this, FIX::LastSwapPoints); + FIELD_SET(*this, FIX::UnderlyingLastQty); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::UnderlyingLastPx); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::LastSpotRate); + FIELD_SET(*this, FIX::LastForwardPoints); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TimeBracket); + FIELD_SET(*this, FIX::LastCapacity); + FIELD_SET(*this, FIX::LeavesQty); + FIELD_SET(*this, FIX::CumQty); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::DayOrderQty); + FIELD_SET(*this, FIX::DayCumQty); + FIELD_SET(*this, FIX::DayAvgPx); + FIELD_SET(*this, FIX::TotNoFills); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoFills); + class NoFills: public FIX::Group + { + public: + NoFills() : FIX::Group(1362,1363,FIX::message_order(1363,1364,1365,1414,0)) {} + FIELD_SET(*this, FIX::FillExecID); + FIELD_SET(*this, FIX::FillPx); + FIELD_SET(*this, FIX::FillQty); + FIELD_SET(*this, FIX::NoNested4PartyIDs); + class NoNested4PartyIDs: public FIX::Group + { + public: + NoNested4PartyIDs() : FIX::Group(1414,1415,FIX::message_order(1415,1416,1417,1413,0)) {} + FIELD_SET(*this, FIX::Nested4PartyID); + FIELD_SET(*this, FIX::Nested4PartyIDSource); + FIELD_SET(*this, FIX::Nested4PartyRole); + FIELD_SET(*this, FIX::NoNested4PartySubIDs); + class NoNested4PartySubIDs: public FIX::Group + { + public: + NoNested4PartySubIDs() : FIX::Group(1413,1412,FIX::message_order(1412,1411,0)) {} + FIELD_SET(*this, FIX::Nested4PartySubID); + FIELD_SET(*this, FIX::Nested4PartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::ReportToExch); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::ExDate); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::TradedFlatSwitch); + FIELD_SET(*this, FIX::BasisFeatureDate); + FIELD_SET(*this, FIX::BasisFeaturePrice); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::LastForwardPoints2); + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::TransBkdTime); + FIELD_SET(*this, FIX::ExecValuationPoint); + FIELD_SET(*this, FIX::ExecPriceType); + FIELD_SET(*this, FIX::ExecPriceAdjustment); + FIELD_SET(*this, FIX::PriorityIndicator); + FIELD_SET(*this, FIX::PriceImprovement); + FIELD_SET(*this, FIX::LastLiquidityInd); + FIELD_SET(*this, FIX::NoContAmts); + class NoContAmts: public FIX::Group + { + public: + NoContAmts() : FIX::Group(518,519,FIX::message_order(519,520,521,0)) {} + FIELD_SET(*this, FIX::ContAmtType); + FIELD_SET(*this, FIX::ContAmtValue); + FIELD_SET(*this, FIX::ContAmtCurr); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,687,685,690,683,1366,670,564,565,948,654,587,588,637,675,1073,1074,1075,1379,1381,1383,1384,1418,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegOrderQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::LegAllocID); + FIELD_SET(*this, FIX::NoLegAllocs); + class NoLegAllocs: public FIX::Group + { + public: + NoLegAllocs() : FIX::Group(670,671,FIX::message_order(671,672,756,673,674,1367,0)) {} + FIELD_SET(*this, FIX::LegAllocAccount); + FIELD_SET(*this, FIX::LegIndividualAllocID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegAllocQty); + FIELD_SET(*this, FIX::LegAllocAcctIDSource); + FIELD_SET(*this, FIX::LegAllocSettlCurrency); + }; + FIELD_SET(*this, FIX::LegPositionEffect); + FIELD_SET(*this, FIX::LegCoveredOrUncovered); + FIELD_SET(*this, FIX::NoNested3PartyIDs); + class NoNested3PartyIDs: public FIX::Group + { + public: + NoNested3PartyIDs() : FIX::Group(948,949,FIX::message_order(949,950,951,952,0)) {} + FIELD_SET(*this, FIX::Nested3PartyID); + FIELD_SET(*this, FIX::Nested3PartyIDSource); + FIELD_SET(*this, FIX::Nested3PartyRole); + FIELD_SET(*this, FIX::NoNested3PartySubIDs); + class NoNested3PartySubIDs: public FIX::Group + { + public: + NoNested3PartySubIDs() : FIX::Group(952,953,FIX::message_order(953,954,0)) {} + FIELD_SET(*this, FIX::Nested3PartySubID); + FIELD_SET(*this, FIX::Nested3PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::LegLastPx); + FIELD_SET(*this, FIX::LegSettlCurrency); + FIELD_SET(*this, FIX::LegLastForwardPoints); + FIELD_SET(*this, FIX::LegCalculatedCcyLastQty); + FIELD_SET(*this, FIX::LegGrossTradeAmt); + FIELD_SET(*this, FIX::LegVolatility); + FIELD_SET(*this, FIX::LegDividendYield); + FIELD_SET(*this, FIX::LegCurrencyRatio); + FIELD_SET(*this, FIX::LegExecInst); + FIELD_SET(*this, FIX::LegLastQty); + }; + FIELD_SET(*this, FIX::CopyMsgIndicator); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::DividendYield); + FIELD_SET(*this, FIX::ManualOrderIndicator); + FIELD_SET(*this, FIX::CustDirectedOrder); + FIELD_SET(*this, FIX::ReceivedDeptID); + FIELD_SET(*this, FIX::CustOrderHandlingInst); + FIELD_SET(*this, FIX::OrderHandlingInstSource); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::Volatility); + FIELD_SET(*this, FIX::TimeToExpiration); + FIELD_SET(*this, FIX::RiskFreeRate); + FIELD_SET(*this, FIX::PriceDelta); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/IOI.h b/linux/include/quickfix/fix50sp1/IOI.h new file mode 100644 index 000000000..64aea3ac5 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/IOI.h @@ -0,0 +1,324 @@ +#ifndef FIX50SP1_IOI_H +#define FIX50SP1_IOI_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class IOI : public Message + { + public: + IOI() : Message(MsgType()) {} + IOI(const FIX::Message& m) : Message(m) {} + IOI(const Message& m) : Message(m) {} + IOI(const IOI& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("6"); } + + IOI( + const FIX::IOIID& aIOIID, + const FIX::IOITransType& aIOITransType, + const FIX::Side& aSide, + const FIX::IOIQty& aIOIQty ) + : Message(MsgType()) + { + set(aIOIID); + set(aIOITransType); + set(aSide); + set(aIOIQty); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::IOITransType); + FIELD_SET(*this, FIX::IOIRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::IOIQty); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,682,683,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegIOIQty); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + }; + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::IOIQltyInd); + FIELD_SET(*this, FIX::IOINaturalFlag); + FIELD_SET(*this, FIX::NoIOIQualifiers); + class NoIOIQualifiers: public FIX::Group + { + public: + NoIOIQualifiers() : FIX::Group(199,104,FIX::message_order(104,0)) {} + FIELD_SET(*this, FIX::IOIQualifier); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::URLLink); + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/ListCancelRequest.h b/linux/include/quickfix/fix50sp1/ListCancelRequest.h new file mode 100644 index 000000000..4e77154b9 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/ListCancelRequest.h @@ -0,0 +1,55 @@ +#ifndef FIX50SP1_LISTCANCELREQUEST_H +#define FIX50SP1_LISTCANCELREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class ListCancelRequest : public Message + { + public: + ListCancelRequest() : Message(MsgType()) {} + ListCancelRequest(const FIX::Message& m) : Message(m) {} + ListCancelRequest(const Message& m) : Message(m) {} + ListCancelRequest(const ListCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("K"); } + + ListCancelRequest( + const FIX::ListID& aListID, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aListID); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/ListExecute.h b/linux/include/quickfix/fix50sp1/ListExecute.h new file mode 100644 index 000000000..618d7a602 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/ListExecute.h @@ -0,0 +1,38 @@ +#ifndef FIX50SP1_LISTEXECUTE_H +#define FIX50SP1_LISTEXECUTE_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class ListExecute : public Message + { + public: + ListExecute() : Message(MsgType()) {} + ListExecute(const FIX::Message& m) : Message(m) {} + ListExecute(const Message& m) : Message(m) {} + ListExecute(const ListExecute& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("L"); } + + ListExecute( + const FIX::ListID& aListID, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aListID); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/ListStatus.h b/linux/include/quickfix/fix50sp1/ListStatus.h new file mode 100644 index 000000000..5b5aef5e9 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/ListStatus.h @@ -0,0 +1,71 @@ +#ifndef FIX50SP1_LISTSTATUS_H +#define FIX50SP1_LISTSTATUS_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class ListStatus : public Message + { + public: + ListStatus() : Message(MsgType()) {} + ListStatus(const FIX::Message& m) : Message(m) {} + ListStatus(const Message& m) : Message(m) {} + ListStatus(const ListStatus& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("N"); } + + ListStatus( + const FIX::ListID& aListID, + const FIX::ListStatusType& aListStatusType, + const FIX::NoRpts& aNoRpts, + const FIX::ListOrderStatus& aListOrderStatus, + const FIX::RptSeq& aRptSeq, + const FIX::TotNoOrders& aTotNoOrders ) + : Message(MsgType()) + { + set(aListID); + set(aListStatusType); + set(aNoRpts); + set(aListOrderStatus); + set(aRptSeq); + set(aTotNoOrders); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::ListStatusType); + FIELD_SET(*this, FIX::NoRpts); + FIELD_SET(*this, FIX::ListOrderStatus); + FIELD_SET(*this, FIX::ContingencyType); + FIELD_SET(*this, FIX::ListRejectReason); + FIELD_SET(*this, FIX::RptSeq); + FIELD_SET(*this, FIX::ListStatusText); + FIELD_SET(*this, FIX::EncodedListStatusTextLen); + FIELD_SET(*this, FIX::EncodedListStatusText); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TotNoOrders); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,526,14,39,636,151,84,6,103,58,354,355,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::CumQty); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::WorkingIndicator); + FIELD_SET(*this, FIX::LeavesQty); + FIELD_SET(*this, FIX::CxlQty); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::OrdRejReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/ListStatusRequest.h b/linux/include/quickfix/fix50sp1/ListStatusRequest.h new file mode 100644 index 000000000..a5ec8647b --- /dev/null +++ b/linux/include/quickfix/fix50sp1/ListStatusRequest.h @@ -0,0 +1,33 @@ +#ifndef FIX50SP1_LISTSTATUSREQUEST_H +#define FIX50SP1_LISTSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class ListStatusRequest : public Message + { + public: + ListStatusRequest() : Message(MsgType()) {} + ListStatusRequest(const FIX::Message& m) : Message(m) {} + ListStatusRequest(const Message& m) : Message(m) {} + ListStatusRequest(const ListStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("M"); } + + ListStatusRequest( + const FIX::ListID& aListID ) + : Message(MsgType()) + { + set(aListID); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/ListStrikePrice.h b/linux/include/quickfix/fix50sp1/ListStrikePrice.h new file mode 100644 index 000000000..1f9cd554d --- /dev/null +++ b/linux/include/quickfix/fix50sp1/ListStrikePrice.h @@ -0,0 +1,184 @@ +#ifndef FIX50SP1_LISTSTRIKEPRICE_H +#define FIX50SP1_LISTSTRIKEPRICE_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class ListStrikePrice : public Message + { + public: + ListStrikePrice() : Message(MsgType()) {} + ListStrikePrice(const FIX::Message& m) : Message(m) {} + ListStrikePrice(const Message& m) : Message(m) {} + ListStrikePrice(const ListStrikePrice& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("m"); } + + ListStrikePrice( + const FIX::ListID& aListID, + const FIX::TotNoStrikes& aTotNoStrikes ) + : Message(MsgType()) + { + set(aListID); + set(aTotNoStrikes); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::TotNoStrikes); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoStrikes); + class NoStrikes: public FIX::Group + { + public: + NoStrikes() : FIX::Group(428,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,711,140,11,526,54,44,15,58,354,355,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/MarketDataIncrementalRefresh.h b/linux/include/quickfix/fix50sp1/MarketDataIncrementalRefresh.h new file mode 100644 index 000000000..fb6c42472 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/MarketDataIncrementalRefresh.h @@ -0,0 +1,349 @@ +#ifndef FIX50SP1_MARKETDATAINCREMENTALREFRESH_H +#define FIX50SP1_MARKETDATAINCREMENTALREFRESH_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class MarketDataIncrementalRefresh : public Message + { + public: + MarketDataIncrementalRefresh() : Message(MsgType()) {} + MarketDataIncrementalRefresh(const FIX::Message& m) : Message(m) {} + MarketDataIncrementalRefresh(const Message& m) : Message(m) {} + MarketDataIncrementalRefresh(const MarketDataIncrementalRefresh& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("X"); } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::MDBookType); + FIELD_SET(*this, FIX::MDFeedType); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::NoMDEntries); + class NoMDEntries: public FIX::Group + { + public: + NoMDEntries() : FIX::Group(268,279,FIX::message_order(279,285,1173,264,269,278,280,55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,711,555,291,292,270,423,235,236,701,696,697,698,218,220,221,222,662,663,699,761,40,15,271,1177,1093,272,273,274,275,336,625,326,327,276,277,828,574,282,283,284,286,59,432,126,110,18,287,37,198,299,1003,288,289,346,290,546,811,451,58,354,355,1023,528,1024,332,333,1020,63,64,483,60,1070,83,1048,1026,1027,1175,453,0)) {} + FIELD_SET(*this, FIX::MDUpdateAction); + FIELD_SET(*this, FIX::DeleteReason); + FIELD_SET(*this, FIX::MDSubBookType); + FIELD_SET(*this, FIX::MarketDepth); + FIELD_SET(*this, FIX::MDEntryType); + FIELD_SET(*this, FIX::MDEntryID); + FIELD_SET(*this, FIX::MDEntryRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::MDEntryPx); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::MDEntrySize); + FIELD_SET(*this, FIX::NoOfSecSizes); + class NoOfSecSizes: public FIX::Group + { + public: + NoOfSecSizes() : FIX::Group(1177,1178,FIX::message_order(1178,1179,0)) {} + FIELD_SET(*this, FIX::MDSecSizeType); + FIELD_SET(*this, FIX::MDSecSize); + }; + FIELD_SET(*this, FIX::LotType); + FIELD_SET(*this, FIX::MDEntryDate); + FIELD_SET(*this, FIX::MDEntryTime); + FIELD_SET(*this, FIX::TickDirection); + FIELD_SET(*this, FIX::MDMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SecurityTradingStatus); + FIELD_SET(*this, FIX::HaltReasonChar); + FIELD_SET(*this, FIX::QuoteCondition); + FIELD_SET(*this, FIX::TradeCondition); + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::MDEntryOriginator); + FIELD_SET(*this, FIX::LocationID); + FIELD_SET(*this, FIX::DeskID); + FIELD_SET(*this, FIX::OpenCloseSettlFlag); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::SellerDays); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::TradeID); + FIELD_SET(*this, FIX::MDEntryBuyer); + FIELD_SET(*this, FIX::MDEntrySeller); + FIELD_SET(*this, FIX::NumberOfOrders); + FIELD_SET(*this, FIX::MDEntryPositionNo); + FIELD_SET(*this, FIX::Scope); + FIELD_SET(*this, FIX::PriceDelta); + FIELD_SET(*this, FIX::NetChgPrevDay); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::MDPriceLevel); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::MDOriginType); + FIELD_SET(*this, FIX::HighPx); + FIELD_SET(*this, FIX::LowPx); + FIELD_SET(*this, FIX::TradeVolume); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::TransBkdTime); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::MDQuoteType); + FIELD_SET(*this, FIX::RptSeq); + FIELD_SET(*this, FIX::DealingCapacity); + FIELD_SET(*this, FIX::MDEntrySpotRate); + FIELD_SET(*this, FIX::MDEntryForwardPoints); + FIELD_SET(*this, FIX::NoStatsIndicators); + class NoStatsIndicators: public FIX::Group + { + public: + NoStatsIndicators() : FIX::Group(1175,1176,FIX::message_order(1176,0)) {} + FIELD_SET(*this, FIX::StatsType); + }; + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::ApplQueueDepth); + FIELD_SET(*this, FIX::ApplQueueResolution); + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/MarketDataRequest.h b/linux/include/quickfix/fix50sp1/MarketDataRequest.h new file mode 100644 index 000000000..5eca27b8a --- /dev/null +++ b/linux/include/quickfix/fix50sp1/MarketDataRequest.h @@ -0,0 +1,278 @@ +#ifndef FIX50SP1_MARKETDATAREQUEST_H +#define FIX50SP1_MARKETDATAREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class MarketDataRequest : public Message + { + public: + MarketDataRequest() : Message(MsgType()) {} + MarketDataRequest(const FIX::Message& m) : Message(m) {} + MarketDataRequest(const Message& m) : Message(m) {} + MarketDataRequest(const MarketDataRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("V"); } + + MarketDataRequest( + const FIX::MDReqID& aMDReqID, + const FIX::SubscriptionRequestType& aSubscriptionRequestType, + const FIX::MarketDepth& aMarketDepth ) + : Message(MsgType()) + { + set(aMDReqID); + set(aSubscriptionRequestType); + set(aMarketDepth); + } + + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::MarketDepth); + FIELD_SET(*this, FIX::MDUpdateType); + FIELD_SET(*this, FIX::AggregatedBook); + FIELD_SET(*this, FIX::OpenCloseSettlFlag); + FIELD_SET(*this, FIX::Scope); + FIELD_SET(*this, FIX::MDImplicitDelete); + FIELD_SET(*this, FIX::NoMDEntryTypes); + class NoMDEntryTypes: public FIX::Group + { + public: + NoMDEntryTypes() : FIX::Group(267,269,FIX::message_order(269,0)) {} + FIELD_SET(*this, FIX::MDEntryType); + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,711,555,15,537,63,64,271,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::MDEntrySize); + }; + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ApplQueueAction); + FIELD_SET(*this, FIX::ApplQueueMax); + FIELD_SET(*this, FIX::MDQuoteType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/MarketDataRequestReject.h b/linux/include/quickfix/fix50sp1/MarketDataRequestReject.h new file mode 100644 index 000000000..47e322b84 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/MarketDataRequestReject.h @@ -0,0 +1,58 @@ +#ifndef FIX50SP1_MARKETDATAREQUESTREJECT_H +#define FIX50SP1_MARKETDATAREQUESTREJECT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class MarketDataRequestReject : public Message + { + public: + MarketDataRequestReject() : Message(MsgType()) {} + MarketDataRequestReject(const FIX::Message& m) : Message(m) {} + MarketDataRequestReject(const Message& m) : Message(m) {} + MarketDataRequestReject(const MarketDataRequestReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("Y"); } + + MarketDataRequestReject( + const FIX::MDReqID& aMDReqID ) + : Message(MsgType()) + { + set(aMDReqID); + } + + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::MDReqRejReason); + FIELD_SET(*this, FIX::NoAltMDSource); + class NoAltMDSource: public FIX::Group + { + public: + NoAltMDSource() : FIX::Group(816,817,FIX::message_order(817,0)) {} + FIELD_SET(*this, FIX::AltMDSourceID); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/MarketDataSnapshotFullRefresh.h b/linux/include/quickfix/fix50sp1/MarketDataSnapshotFullRefresh.h new file mode 100644 index 000000000..3f4d593e3 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/MarketDataSnapshotFullRefresh.h @@ -0,0 +1,338 @@ +#ifndef FIX50SP1_MARKETDATASNAPSHOTFULLREFRESH_H +#define FIX50SP1_MARKETDATASNAPSHOTFULLREFRESH_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class MarketDataSnapshotFullRefresh : public Message + { + public: + MarketDataSnapshotFullRefresh() : Message(MsgType()) {} + MarketDataSnapshotFullRefresh(const FIX::Message& m) : Message(m) {} + MarketDataSnapshotFullRefresh(const Message& m) : Message(m) {} + MarketDataSnapshotFullRefresh(const MarketDataSnapshotFullRefresh& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("W"); } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::TotNumReports); + FIELD_SET(*this, FIX::MDReportID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::MDBookType); + FIELD_SET(*this, FIX::MDSubBookType); + FIELD_SET(*this, FIX::MarketDepth); + FIELD_SET(*this, FIX::MDFeedType); + FIELD_SET(*this, FIX::RefreshIndicator); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::NetChgPrevDay); + FIELD_SET(*this, FIX::NoMDEntries); + class NoMDEntries: public FIX::Group + { + public: + NoMDEntries() : FIX::Group(268,269,FIX::message_order(269,278,270,423,235,236,701,696,697,698,218,220,221,222,662,663,699,761,40,15,271,1177,1093,272,273,274,275,336,625,326,327,276,277,282,283,284,286,59,432,126,110,18,287,37,198,299,288,289,346,290,546,811,58,354,355,1023,528,1024,332,333,1020,63,64,1070,83,1048,1026,1027,453,0)) {} + FIELD_SET(*this, FIX::MDEntryType); + FIELD_SET(*this, FIX::MDEntryID); + FIELD_SET(*this, FIX::MDEntryPx); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::MDEntrySize); + FIELD_SET(*this, FIX::NoOfSecSizes); + class NoOfSecSizes: public FIX::Group + { + public: + NoOfSecSizes() : FIX::Group(1177,1178,FIX::message_order(1178,1179,0)) {} + FIELD_SET(*this, FIX::MDSecSizeType); + FIELD_SET(*this, FIX::MDSecSize); + }; + FIELD_SET(*this, FIX::LotType); + FIELD_SET(*this, FIX::MDEntryDate); + FIELD_SET(*this, FIX::MDEntryTime); + FIELD_SET(*this, FIX::TickDirection); + FIELD_SET(*this, FIX::MDMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SecurityTradingStatus); + FIELD_SET(*this, FIX::HaltReasonChar); + FIELD_SET(*this, FIX::QuoteCondition); + FIELD_SET(*this, FIX::TradeCondition); + FIELD_SET(*this, FIX::MDEntryOriginator); + FIELD_SET(*this, FIX::LocationID); + FIELD_SET(*this, FIX::DeskID); + FIELD_SET(*this, FIX::OpenCloseSettlFlag); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::SellerDays); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::MDEntryBuyer); + FIELD_SET(*this, FIX::MDEntrySeller); + FIELD_SET(*this, FIX::NumberOfOrders); + FIELD_SET(*this, FIX::MDEntryPositionNo); + FIELD_SET(*this, FIX::Scope); + FIELD_SET(*this, FIX::PriceDelta); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::MDPriceLevel); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::MDOriginType); + FIELD_SET(*this, FIX::HighPx); + FIELD_SET(*this, FIX::LowPx); + FIELD_SET(*this, FIX::TradeVolume); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::MDQuoteType); + FIELD_SET(*this, FIX::RptSeq); + FIELD_SET(*this, FIX::DealingCapacity); + FIELD_SET(*this, FIX::MDEntrySpotRate); + FIELD_SET(*this, FIX::MDEntryForwardPoints); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::ApplQueueDepth); + FIELD_SET(*this, FIX::ApplQueueResolution); + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/MarketDefinition.h b/linux/include/quickfix/fix50sp1/MarketDefinition.h new file mode 100644 index 000000000..7f54a66d0 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/MarketDefinition.h @@ -0,0 +1,79 @@ +#ifndef FIX50SP1_MARKETDEFINITION_H +#define FIX50SP1_MARKETDEFINITION_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class MarketDefinition : public Message + { + public: + MarketDefinition() : Message(MsgType()) {} + MarketDefinition(const FIX::Message& m) : Message(m) {} + MarketDefinition(const Message& m) : Message(m) {} + MarketDefinition(const MarketDefinition& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BU"); } + + MarketDefinition( + const FIX::MarketReportID& aMarketReportID, + const FIX::MarketID& aMarketID ) + : Message(MsgType()) + { + set(aMarketReportID); + set(aMarketID); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::MarketReportID); + FIELD_SET(*this, FIX::MarketReqID); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::MarketSegmentDesc); + FIELD_SET(*this, FIX::EncodedMktSegmDescLen); + FIELD_SET(*this, FIX::EncodedMktSegmDesc); + FIELD_SET(*this, FIX::ParentMktSegmID); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ExpirationCycle); + FIELD_SET(*this, FIX::MinTradeVol); + FIELD_SET(*this, FIX::MaxTradeVol); + FIELD_SET(*this, FIX::MaxPriceVariation); + FIELD_SET(*this, FIX::ImpliedMarketIndicator); + FIELD_SET(*this, FIX::TradingCurrency); + FIELD_SET(*this, FIX::RoundLot); + FIELD_SET(*this, FIX::MultilegModel); + FIELD_SET(*this, FIX::MultilegPriceMethod); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::NoOrdTypeRules); + class NoOrdTypeRules: public FIX::Group + { + public: + NoOrdTypeRules() : FIX::Group(1237,40,FIX::message_order(40,0)) {} + FIELD_SET(*this, FIX::OrdType); + }; + FIELD_SET(*this, FIX::NoTimeInForceRules); + class NoTimeInForceRules: public FIX::Group + { + public: + NoTimeInForceRules() : FIX::Group(1239,59,FIX::message_order(59,0)) {} + FIELD_SET(*this, FIX::TimeInForce); + }; + FIELD_SET(*this, FIX::NoExecInstRules); + class NoExecInstRules: public FIX::Group + { + public: + NoExecInstRules() : FIX::Group(1232,1308,FIX::message_order(1308,0)) {} + FIELD_SET(*this, FIX::ExecInstValue); + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/MarketDefinitionRequest.h b/linux/include/quickfix/fix50sp1/MarketDefinitionRequest.h new file mode 100644 index 000000000..4dd6918f4 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/MarketDefinitionRequest.h @@ -0,0 +1,36 @@ +#ifndef FIX50SP1_MARKETDEFINITIONREQUEST_H +#define FIX50SP1_MARKETDEFINITIONREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class MarketDefinitionRequest : public Message + { + public: + MarketDefinitionRequest() : Message(MsgType()) {} + MarketDefinitionRequest(const FIX::Message& m) : Message(m) {} + MarketDefinitionRequest(const Message& m) : Message(m) {} + MarketDefinitionRequest(const MarketDefinitionRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BT"); } + + MarketDefinitionRequest( + const FIX::MarketReqID& aMarketReqID, + const FIX::SubscriptionRequestType& aSubscriptionRequestType ) + : Message(MsgType()) + { + set(aMarketReqID); + set(aSubscriptionRequestType); + } + + FIELD_SET(*this, FIX::MarketReqID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::ParentMktSegmID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/MarketDefinitionUpdateReport.h b/linux/include/quickfix/fix50sp1/MarketDefinitionUpdateReport.h new file mode 100644 index 000000000..0f8bf65c5 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/MarketDefinitionUpdateReport.h @@ -0,0 +1,80 @@ +#ifndef FIX50SP1_MARKETDEFINITIONUPDATEREPORT_H +#define FIX50SP1_MARKETDEFINITIONUPDATEREPORT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class MarketDefinitionUpdateReport : public Message + { + public: + MarketDefinitionUpdateReport() : Message(MsgType()) {} + MarketDefinitionUpdateReport(const FIX::Message& m) : Message(m) {} + MarketDefinitionUpdateReport(const Message& m) : Message(m) {} + MarketDefinitionUpdateReport(const MarketDefinitionUpdateReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BV"); } + + MarketDefinitionUpdateReport( + const FIX::MarketReportID& aMarketReportID, + const FIX::MarketID& aMarketID ) + : Message(MsgType()) + { + set(aMarketReportID); + set(aMarketID); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::MarketReportID); + FIELD_SET(*this, FIX::MarketReqID); + FIELD_SET(*this, FIX::MarketUpdateAction); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::MarketSegmentDesc); + FIELD_SET(*this, FIX::EncodedMktSegmDescLen); + FIELD_SET(*this, FIX::EncodedMktSegmDesc); + FIELD_SET(*this, FIX::ParentMktSegmID); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ExpirationCycle); + FIELD_SET(*this, FIX::MinTradeVol); + FIELD_SET(*this, FIX::MaxTradeVol); + FIELD_SET(*this, FIX::MaxPriceVariation); + FIELD_SET(*this, FIX::ImpliedMarketIndicator); + FIELD_SET(*this, FIX::TradingCurrency); + FIELD_SET(*this, FIX::RoundLot); + FIELD_SET(*this, FIX::MultilegModel); + FIELD_SET(*this, FIX::MultilegPriceMethod); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::NoOrdTypeRules); + class NoOrdTypeRules: public FIX::Group + { + public: + NoOrdTypeRules() : FIX::Group(1237,40,FIX::message_order(40,0)) {} + FIELD_SET(*this, FIX::OrdType); + }; + FIELD_SET(*this, FIX::NoTimeInForceRules); + class NoTimeInForceRules: public FIX::Group + { + public: + NoTimeInForceRules() : FIX::Group(1239,59,FIX::message_order(59,0)) {} + FIELD_SET(*this, FIX::TimeInForce); + }; + FIELD_SET(*this, FIX::NoExecInstRules); + class NoExecInstRules: public FIX::Group + { + public: + NoExecInstRules() : FIX::Group(1232,1308,FIX::message_order(1308,0)) {} + FIELD_SET(*this, FIX::ExecInstValue); + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/MassQuote.h b/linux/include/quickfix/fix50sp1/MassQuote.h new file mode 100644 index 000000000..54a7ddb39 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/MassQuote.h @@ -0,0 +1,280 @@ +#ifndef FIX50SP1_MASSQUOTE_H +#define FIX50SP1_MASSQUOTE_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class MassQuote : public Message + { + public: + MassQuote() : Message(MsgType()) {} + MassQuote(const FIX::Message& m) : Message(m) {} + MassQuote(const Message& m) : Message(m) {} + MassQuote(const MassQuote& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("i"); } + + MassQuote( + const FIX::QuoteID& aQuoteID ) + : Message(MsgType()) + { + set(aQuoteID); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DefBidSize); + FIELD_SET(*this, FIX::DefOfferSize); + FIELD_SET(*this, FIX::NoQuoteSets); + class NoQuoteSets: public FIX::Group + { + public: + NoQuoteSets() : FIX::Group(296,302,FIX::message_order(302,311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,367,304,893,295,0)) {} + FIELD_SET(*this, FIX::QuoteSetID); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::QuoteSetValidUntilTime); + FIELD_SET(*this, FIX::TotNoQuoteEntries); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoQuoteEntries); + class NoQuoteEntries: public FIX::Group + { + public: + NoQuoteEntries() : FIX::Group(295,299,FIX::message_order(299,55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,555,132,133,134,135,62,188,190,189,191,631,632,633,634,60,336,625,64,40,193,192,642,643,15,0)) {} + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::Currency); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/MassQuoteAcknowledgement.h b/linux/include/quickfix/fix50sp1/MassQuoteAcknowledgement.h new file mode 100644 index 000000000..2cfc8f7e9 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/MassQuoteAcknowledgement.h @@ -0,0 +1,288 @@ +#ifndef FIX50SP1_MASSQUOTEACKNOWLEDGEMENT_H +#define FIX50SP1_MASSQUOTEACKNOWLEDGEMENT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class MassQuoteAcknowledgement : public Message + { + public: + MassQuoteAcknowledgement() : Message(MsgType()) {} + MassQuoteAcknowledgement(const FIX::Message& m) : Message(m) {} + MassQuoteAcknowledgement(const Message& m) : Message(m) {} + MassQuoteAcknowledgement(const MassQuoteAcknowledgement& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("b"); } + + MassQuoteAcknowledgement( + const FIX::QuoteStatus& aQuoteStatus ) + : Message(MsgType()) + { + set(aQuoteStatus); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteStatus); + FIELD_SET(*this, FIX::QuoteRejectReason); + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::QuoteCancelType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoQuoteSets); + class NoQuoteSets: public FIX::Group + { + public: + NoQuoteSets() : FIX::Group(296,302,FIX::message_order(302,311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,304,1168,1169,1170,893,295,0)) {} + FIELD_SET(*this, FIX::QuoteSetID); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::TotNoQuoteEntries); + FIELD_SET(*this, FIX::TotNoCxldQuotes); + FIELD_SET(*this, FIX::TotNoAccQuotes); + FIELD_SET(*this, FIX::TotNoRejQuotes); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoQuoteEntries); + class NoQuoteEntries: public FIX::Group + { + public: + NoQuoteEntries() : FIX::Group(295,299,FIX::message_order(299,55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,555,132,133,134,135,62,188,190,189,191,631,632,633,634,60,336,625,64,40,193,192,642,643,15,1167,368,0)) {} + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::QuoteEntryStatus); + FIELD_SET(*this, FIX::QuoteEntryRejectReason); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/Message.h b/linux/include/quickfix/fix50sp1/Message.h new file mode 100644 index 000000000..879c18077 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/Message.h @@ -0,0 +1,37 @@ +#ifndef FIX50SP1_MESSAGES_H +#define FIX50SP1_MESSAGES_H + +#include "../Message.h" +#include "../Group.h" + +namespace FIX50SP1 +{ + class Header : public FIX::Header + { + public: + }; + + class Trailer : public FIX::Trailer + { + public: + }; + + class Message : public FIX::Message + { + public: + Message( const FIX::MsgType& msgtype ) + : FIX::Message( + FIX::BeginString("FIXT.1.1"), msgtype ) + { getHeader().setField( FIX::ApplVerID("8") ); } + + Message(const FIX::Message& m) : FIX::Message(m) {} + Message(const Message& m) : FIX::Message(m) {} + Header& getHeader() { return (Header&)m_header; } + const Header& getHeader() const { return (Header&)m_header; } + Trailer& getTrailer() { return (Trailer&)m_trailer; } + const Trailer& getTrailer() const { return (Trailer&)m_trailer; } + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/MessageCracker.h b/linux/include/quickfix/fix50sp1/MessageCracker.h new file mode 100644 index 000000000..524ec9fbe --- /dev/null +++ b/linux/include/quickfix/fix50sp1/MessageCracker.h @@ -0,0 +1,1114 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX50SP1_MESSAGECRACKER_H +#define FIX50SP1_MESSAGECRACKER_H + + +#include "../SessionID.h" +#include "../Exceptions.h" + +#include "../fix50sp1/Message.h" + +namespace FIX50SP1 +{ + class IOI; + class Advertisement; + class ExecutionReport; + class OrderCancelReject; + class News; + class Email; + class NewOrderSingle; + class NewOrderList; + class OrderCancelRequest; + class OrderCancelReplaceRequest; + class OrderStatusRequest; + class AllocationInstruction; + class ListCancelRequest; + class ListExecute; + class ListStatusRequest; + class ListStatus; + class AllocationInstructionAck; + class DontKnowTrade; + class QuoteRequest; + class Quote; + class SettlementInstructions; + class MarketDataRequest; + class MarketDataSnapshotFullRefresh; + class MarketDataIncrementalRefresh; + class MarketDataRequestReject; + class QuoteCancel; + class QuoteStatusRequest; + class MassQuoteAcknowledgement; + class SecurityDefinitionRequest; + class SecurityDefinition; + class SecurityStatusRequest; + class SecurityStatus; + class TradingSessionStatusRequest; + class TradingSessionStatus; + class MassQuote; + class BusinessMessageReject; + class BidRequest; + class BidResponse; + class ListStrikePrice; + class RegistrationInstructions; + class RegistrationInstructionsResponse; + class OrderMassCancelRequest; + class OrderMassCancelReport; + class NewOrderCross; + class CrossOrderCancelReplaceRequest; + class CrossOrderCancelRequest; + class SecurityTypeRequest; + class SecurityTypes; + class SecurityListRequest; + class SecurityList; + class DerivativeSecurityListRequest; + class DerivativeSecurityList; + class NewOrderMultileg; + class MultilegOrderCancelReplace; + class TradeCaptureReportRequest; + class TradeCaptureReport; + class OrderMassStatusRequest; + class QuoteRequestReject; + class RFQRequest; + class QuoteStatusReport; + class QuoteResponse; + class Confirmation; + class PositionMaintenanceRequest; + class PositionMaintenanceReport; + class RequestForPositions; + class RequestForPositionsAck; + class PositionReport; + class TradeCaptureReportRequestAck; + class TradeCaptureReportAck; + class AllocationReport; + class AllocationReportAck; + class ConfirmationAck; + class SettlementInstructionRequest; + class AssignmentReport; + class CollateralRequest; + class CollateralAssignment; + class CollateralResponse; + class CollateralReport; + class CollateralInquiry; + class NetworkCounterpartySystemStatusRequest; + class NetworkCounterpartySystemStatusResponse; + class UserRequest; + class UserResponse; + class CollateralInquiryAck; + class ConfirmationRequest; + class ContraryIntentionReport; + class SecurityDefinitionUpdateReport; + class SecurityListUpdateReport; + class AdjustedPositionReport; + class AllocationInstructionAlert; + class ExecutionAcknowledgement; + class TradingSessionList; + class TradingSessionListRequest; + class SettlementObligationReport; + class DerivativeSecurityListUpdateReport; + class TradingSessionListUpdateReport; + class MarketDefinitionRequest; + class MarketDefinition; + class MarketDefinitionUpdateReport; + class ApplicationMessageRequest; + class ApplicationMessageRequestAck; + class ApplicationMessageReport; + class OrderMassActionReport; + class OrderMassActionRequest; + class UserNotification; + + class MessageCracker + { + public: + virtual ~MessageCracker() {} + virtual void onMessage( const Message&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( Message&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const IOI&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Advertisement&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ExecutionReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelReject&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const News&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Email&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderSingle&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderList&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelReplaceRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AllocationInstruction&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListExecute&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListStatus&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AllocationInstructionAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const DontKnowTrade&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Quote&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SettlementInstructions&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataSnapshotFullRefresh&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataIncrementalRefresh&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataRequestReject&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteCancel&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MassQuoteAcknowledgement&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityDefinitionRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityDefinition&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityStatus&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradingSessionStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradingSessionStatus&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MassQuote&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const BusinessMessageReject&, const FIX::SessionID& ) + {} + virtual void onMessage( const BidRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const BidResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListStrikePrice&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const RegistrationInstructions&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const RegistrationInstructionsResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderMassCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderMassCancelReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderCross&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CrossOrderCancelReplaceRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CrossOrderCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityTypeRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityTypes&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityListRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityList&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const DerivativeSecurityListRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const DerivativeSecurityList&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderMultileg&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MultilegOrderCancelReplace&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradeCaptureReportRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradeCaptureReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderMassStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteRequestReject&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const RFQRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteStatusReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Confirmation&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const PositionMaintenanceRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const PositionMaintenanceReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const RequestForPositions&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const RequestForPositionsAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const PositionReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradeCaptureReportRequestAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradeCaptureReportAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AllocationReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AllocationReportAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ConfirmationAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SettlementInstructionRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AssignmentReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralAssignment&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralInquiry&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NetworkCounterpartySystemStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NetworkCounterpartySystemStatusResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const UserRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const UserResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralInquiryAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ConfirmationRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ContraryIntentionReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityDefinitionUpdateReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityListUpdateReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AdjustedPositionReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AllocationInstructionAlert&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ExecutionAcknowledgement&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradingSessionList&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradingSessionListRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SettlementObligationReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const DerivativeSecurityListUpdateReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradingSessionListUpdateReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDefinitionRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDefinition&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDefinitionUpdateReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ApplicationMessageRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ApplicationMessageRequestAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ApplicationMessageReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderMassActionReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderMassActionRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const UserNotification&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( IOI&, const FIX::SessionID& ) {} + virtual void onMessage( Advertisement&, const FIX::SessionID& ) {} + virtual void onMessage( ExecutionReport&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelReject&, const FIX::SessionID& ) {} + virtual void onMessage( News&, const FIX::SessionID& ) {} + virtual void onMessage( Email&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderSingle&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderList&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelReplaceRequest&, const FIX::SessionID& ) {} + virtual void onMessage( OrderStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( AllocationInstruction&, const FIX::SessionID& ) {} + virtual void onMessage( ListCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ListExecute&, const FIX::SessionID& ) {} + virtual void onMessage( ListStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ListStatus&, const FIX::SessionID& ) {} + virtual void onMessage( AllocationInstructionAck&, const FIX::SessionID& ) {} + virtual void onMessage( DontKnowTrade&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteRequest&, const FIX::SessionID& ) {} + virtual void onMessage( Quote&, const FIX::SessionID& ) {} + virtual void onMessage( SettlementInstructions&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataRequest&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataSnapshotFullRefresh&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataIncrementalRefresh&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataRequestReject&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteCancel&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( MassQuoteAcknowledgement&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityDefinitionRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityDefinition&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityStatus&, const FIX::SessionID& ) {} + virtual void onMessage( TradingSessionStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( TradingSessionStatus&, const FIX::SessionID& ) {} + virtual void onMessage( MassQuote&, const FIX::SessionID& ) {} + virtual void onMessage( BusinessMessageReject&, const FIX::SessionID& ) {} + virtual void onMessage( BidRequest&, const FIX::SessionID& ) {} + virtual void onMessage( BidResponse&, const FIX::SessionID& ) {} + virtual void onMessage( ListStrikePrice&, const FIX::SessionID& ) {} + virtual void onMessage( RegistrationInstructions&, const FIX::SessionID& ) {} + virtual void onMessage( RegistrationInstructionsResponse&, const FIX::SessionID& ) {} + virtual void onMessage( OrderMassCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( OrderMassCancelReport&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderCross&, const FIX::SessionID& ) {} + virtual void onMessage( CrossOrderCancelReplaceRequest&, const FIX::SessionID& ) {} + virtual void onMessage( CrossOrderCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityTypeRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityTypes&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityListRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityList&, const FIX::SessionID& ) {} + virtual void onMessage( DerivativeSecurityListRequest&, const FIX::SessionID& ) {} + virtual void onMessage( DerivativeSecurityList&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderMultileg&, const FIX::SessionID& ) {} + virtual void onMessage( MultilegOrderCancelReplace&, const FIX::SessionID& ) {} + virtual void onMessage( TradeCaptureReportRequest&, const FIX::SessionID& ) {} + virtual void onMessage( TradeCaptureReport&, const FIX::SessionID& ) {} + virtual void onMessage( OrderMassStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteRequestReject&, const FIX::SessionID& ) {} + virtual void onMessage( RFQRequest&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteStatusReport&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteResponse&, const FIX::SessionID& ) {} + virtual void onMessage( Confirmation&, const FIX::SessionID& ) {} + virtual void onMessage( PositionMaintenanceRequest&, const FIX::SessionID& ) {} + virtual void onMessage( PositionMaintenanceReport&, const FIX::SessionID& ) {} + virtual void onMessage( RequestForPositions&, const FIX::SessionID& ) {} + virtual void onMessage( RequestForPositionsAck&, const FIX::SessionID& ) {} + virtual void onMessage( PositionReport&, const FIX::SessionID& ) {} + virtual void onMessage( TradeCaptureReportRequestAck&, const FIX::SessionID& ) {} + virtual void onMessage( TradeCaptureReportAck&, const FIX::SessionID& ) {} + virtual void onMessage( AllocationReport&, const FIX::SessionID& ) {} + virtual void onMessage( AllocationReportAck&, const FIX::SessionID& ) {} + virtual void onMessage( ConfirmationAck&, const FIX::SessionID& ) {} + virtual void onMessage( SettlementInstructionRequest&, const FIX::SessionID& ) {} + virtual void onMessage( AssignmentReport&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralRequest&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralAssignment&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralResponse&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralReport&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralInquiry&, const FIX::SessionID& ) {} + virtual void onMessage( NetworkCounterpartySystemStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( NetworkCounterpartySystemStatusResponse&, const FIX::SessionID& ) {} + virtual void onMessage( UserRequest&, const FIX::SessionID& ) {} + virtual void onMessage( UserResponse&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralInquiryAck&, const FIX::SessionID& ) {} + virtual void onMessage( ConfirmationRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ContraryIntentionReport&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityDefinitionUpdateReport&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityListUpdateReport&, const FIX::SessionID& ) {} + virtual void onMessage( AdjustedPositionReport&, const FIX::SessionID& ) {} + virtual void onMessage( AllocationInstructionAlert&, const FIX::SessionID& ) {} + virtual void onMessage( ExecutionAcknowledgement&, const FIX::SessionID& ) {} + virtual void onMessage( TradingSessionList&, const FIX::SessionID& ) {} + virtual void onMessage( TradingSessionListRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SettlementObligationReport&, const FIX::SessionID& ) {} + virtual void onMessage( DerivativeSecurityListUpdateReport&, const FIX::SessionID& ) {} + virtual void onMessage( TradingSessionListUpdateReport&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDefinitionRequest&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDefinition&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDefinitionUpdateReport&, const FIX::SessionID& ) {} + virtual void onMessage( ApplicationMessageRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ApplicationMessageRequestAck&, const FIX::SessionID& ) {} + virtual void onMessage( ApplicationMessageReport&, const FIX::SessionID& ) {} + virtual void onMessage( OrderMassActionReport&, const FIX::SessionID& ) {} + virtual void onMessage( OrderMassActionRequest&, const FIX::SessionID& ) {} + virtual void onMessage( UserNotification&, const FIX::SessionID& ) {} + +public: + void crack( const Message& message, + const FIX::SessionID& sessionID ) + { + const std::string& msgTypeValue + = message.getHeader().getField( FIX::FIELD::MsgType ); + + if( msgTypeValue == "6" ) + onMessage( (const IOI&)message, sessionID ); + else + if( msgTypeValue == "7" ) + onMessage( (const Advertisement&)message, sessionID ); + else + if( msgTypeValue == "8" ) + onMessage( (const ExecutionReport&)message, sessionID ); + else + if( msgTypeValue == "9" ) + onMessage( (const OrderCancelReject&)message, sessionID ); + else + if( msgTypeValue == "B" ) + onMessage( (const News&)message, sessionID ); + else + if( msgTypeValue == "C" ) + onMessage( (const Email&)message, sessionID ); + else + if( msgTypeValue == "D" ) + onMessage( (const NewOrderSingle&)message, sessionID ); + else + if( msgTypeValue == "E" ) + onMessage( (const NewOrderList&)message, sessionID ); + else + if( msgTypeValue == "F" ) + onMessage( (const OrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "G" ) + onMessage( (const OrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "H" ) + onMessage( (const OrderStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "J" ) + onMessage( (const AllocationInstruction&)message, sessionID ); + else + if( msgTypeValue == "K" ) + onMessage( (const ListCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "L" ) + onMessage( (const ListExecute&)message, sessionID ); + else + if( msgTypeValue == "M" ) + onMessage( (const ListStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "N" ) + onMessage( (const ListStatus&)message, sessionID ); + else + if( msgTypeValue == "P" ) + onMessage( (const AllocationInstructionAck&)message, sessionID ); + else + if( msgTypeValue == "Q" ) + onMessage( (const DontKnowTrade&)message, sessionID ); + else + if( msgTypeValue == "R" ) + onMessage( (const QuoteRequest&)message, sessionID ); + else + if( msgTypeValue == "S" ) + onMessage( (const Quote&)message, sessionID ); + else + if( msgTypeValue == "T" ) + onMessage( (const SettlementInstructions&)message, sessionID ); + else + if( msgTypeValue == "V" ) + onMessage( (const MarketDataRequest&)message, sessionID ); + else + if( msgTypeValue == "W" ) + onMessage( (const MarketDataSnapshotFullRefresh&)message, sessionID ); + else + if( msgTypeValue == "X" ) + onMessage( (const MarketDataIncrementalRefresh&)message, sessionID ); + else + if( msgTypeValue == "Y" ) + onMessage( (const MarketDataRequestReject&)message, sessionID ); + else + if( msgTypeValue == "Z" ) + onMessage( (const QuoteCancel&)message, sessionID ); + else + if( msgTypeValue == "a" ) + onMessage( (const QuoteStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "b" ) + onMessage( (const MassQuoteAcknowledgement&)message, sessionID ); + else + if( msgTypeValue == "c" ) + onMessage( (const SecurityDefinitionRequest&)message, sessionID ); + else + if( msgTypeValue == "d" ) + onMessage( (const SecurityDefinition&)message, sessionID ); + else + if( msgTypeValue == "e" ) + onMessage( (const SecurityStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "f" ) + onMessage( (const SecurityStatus&)message, sessionID ); + else + if( msgTypeValue == "g" ) + onMessage( (const TradingSessionStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "h" ) + onMessage( (const TradingSessionStatus&)message, sessionID ); + else + if( msgTypeValue == "i" ) + onMessage( (const MassQuote&)message, sessionID ); + else + if( msgTypeValue == "j" ) + onMessage( (const BusinessMessageReject&)message, sessionID ); + else + if( msgTypeValue == "k" ) + onMessage( (const BidRequest&)message, sessionID ); + else + if( msgTypeValue == "l" ) + onMessage( (const BidResponse&)message, sessionID ); + else + if( msgTypeValue == "m" ) + onMessage( (const ListStrikePrice&)message, sessionID ); + else + if( msgTypeValue == "o" ) + onMessage( (const RegistrationInstructions&)message, sessionID ); + else + if( msgTypeValue == "p" ) + onMessage( (const RegistrationInstructionsResponse&)message, sessionID ); + else + if( msgTypeValue == "q" ) + onMessage( (const OrderMassCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "r" ) + onMessage( (const OrderMassCancelReport&)message, sessionID ); + else + if( msgTypeValue == "s" ) + onMessage( (const NewOrderCross&)message, sessionID ); + else + if( msgTypeValue == "t" ) + onMessage( (const CrossOrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "u" ) + onMessage( (const CrossOrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "v" ) + onMessage( (const SecurityTypeRequest&)message, sessionID ); + else + if( msgTypeValue == "w" ) + onMessage( (const SecurityTypes&)message, sessionID ); + else + if( msgTypeValue == "x" ) + onMessage( (const SecurityListRequest&)message, sessionID ); + else + if( msgTypeValue == "y" ) + onMessage( (const SecurityList&)message, sessionID ); + else + if( msgTypeValue == "z" ) + onMessage( (const DerivativeSecurityListRequest&)message, sessionID ); + else + if( msgTypeValue == "AA" ) + onMessage( (const DerivativeSecurityList&)message, sessionID ); + else + if( msgTypeValue == "AB" ) + onMessage( (const NewOrderMultileg&)message, sessionID ); + else + if( msgTypeValue == "AC" ) + onMessage( (const MultilegOrderCancelReplace&)message, sessionID ); + else + if( msgTypeValue == "AD" ) + onMessage( (const TradeCaptureReportRequest&)message, sessionID ); + else + if( msgTypeValue == "AE" ) + onMessage( (const TradeCaptureReport&)message, sessionID ); + else + if( msgTypeValue == "AF" ) + onMessage( (const OrderMassStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "AG" ) + onMessage( (const QuoteRequestReject&)message, sessionID ); + else + if( msgTypeValue == "AH" ) + onMessage( (const RFQRequest&)message, sessionID ); + else + if( msgTypeValue == "AI" ) + onMessage( (const QuoteStatusReport&)message, sessionID ); + else + if( msgTypeValue == "AJ" ) + onMessage( (const QuoteResponse&)message, sessionID ); + else + if( msgTypeValue == "AK" ) + onMessage( (const Confirmation&)message, sessionID ); + else + if( msgTypeValue == "AL" ) + onMessage( (const PositionMaintenanceRequest&)message, sessionID ); + else + if( msgTypeValue == "AM" ) + onMessage( (const PositionMaintenanceReport&)message, sessionID ); + else + if( msgTypeValue == "AN" ) + onMessage( (const RequestForPositions&)message, sessionID ); + else + if( msgTypeValue == "AO" ) + onMessage( (const RequestForPositionsAck&)message, sessionID ); + else + if( msgTypeValue == "AP" ) + onMessage( (const PositionReport&)message, sessionID ); + else + if( msgTypeValue == "AQ" ) + onMessage( (const TradeCaptureReportRequestAck&)message, sessionID ); + else + if( msgTypeValue == "AR" ) + onMessage( (const TradeCaptureReportAck&)message, sessionID ); + else + if( msgTypeValue == "AS" ) + onMessage( (const AllocationReport&)message, sessionID ); + else + if( msgTypeValue == "AT" ) + onMessage( (const AllocationReportAck&)message, sessionID ); + else + if( msgTypeValue == "AU" ) + onMessage( (const ConfirmationAck&)message, sessionID ); + else + if( msgTypeValue == "AV" ) + onMessage( (const SettlementInstructionRequest&)message, sessionID ); + else + if( msgTypeValue == "AW" ) + onMessage( (const AssignmentReport&)message, sessionID ); + else + if( msgTypeValue == "AX" ) + onMessage( (const CollateralRequest&)message, sessionID ); + else + if( msgTypeValue == "AY" ) + onMessage( (const CollateralAssignment&)message, sessionID ); + else + if( msgTypeValue == "AZ" ) + onMessage( (const CollateralResponse&)message, sessionID ); + else + if( msgTypeValue == "BA" ) + onMessage( (const CollateralReport&)message, sessionID ); + else + if( msgTypeValue == "BB" ) + onMessage( (const CollateralInquiry&)message, sessionID ); + else + if( msgTypeValue == "BC" ) + onMessage( (const NetworkCounterpartySystemStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "BD" ) + onMessage( (const NetworkCounterpartySystemStatusResponse&)message, sessionID ); + else + if( msgTypeValue == "BE" ) + onMessage( (const UserRequest&)message, sessionID ); + else + if( msgTypeValue == "BF" ) + onMessage( (const UserResponse&)message, sessionID ); + else + if( msgTypeValue == "BG" ) + onMessage( (const CollateralInquiryAck&)message, sessionID ); + else + if( msgTypeValue == "BH" ) + onMessage( (const ConfirmationRequest&)message, sessionID ); + else + if( msgTypeValue == "BO" ) + onMessage( (const ContraryIntentionReport&)message, sessionID ); + else + if( msgTypeValue == "BP" ) + onMessage( (const SecurityDefinitionUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BK" ) + onMessage( (const SecurityListUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BL" ) + onMessage( (const AdjustedPositionReport&)message, sessionID ); + else + if( msgTypeValue == "BM" ) + onMessage( (const AllocationInstructionAlert&)message, sessionID ); + else + if( msgTypeValue == "BN" ) + onMessage( (const ExecutionAcknowledgement&)message, sessionID ); + else + if( msgTypeValue == "BJ" ) + onMessage( (const TradingSessionList&)message, sessionID ); + else + if( msgTypeValue == "BI" ) + onMessage( (const TradingSessionListRequest&)message, sessionID ); + else + if( msgTypeValue == "BQ" ) + onMessage( (const SettlementObligationReport&)message, sessionID ); + else + if( msgTypeValue == "BR" ) + onMessage( (const DerivativeSecurityListUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BS" ) + onMessage( (const TradingSessionListUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BT" ) + onMessage( (const MarketDefinitionRequest&)message, sessionID ); + else + if( msgTypeValue == "BU" ) + onMessage( (const MarketDefinition&)message, sessionID ); + else + if( msgTypeValue == "BV" ) + onMessage( (const MarketDefinitionUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BW" ) + onMessage( (const ApplicationMessageRequest&)message, sessionID ); + else + if( msgTypeValue == "BX" ) + onMessage( (const ApplicationMessageRequestAck&)message, sessionID ); + else + if( msgTypeValue == "BY" ) + onMessage( (const ApplicationMessageReport&)message, sessionID ); + else + if( msgTypeValue == "BZ" ) + onMessage( (const OrderMassActionReport&)message, sessionID ); + else + if( msgTypeValue == "CA" ) + onMessage( (const OrderMassActionRequest&)message, sessionID ); + else + if( msgTypeValue == "CB" ) + onMessage( (const UserNotification&)message, sessionID ); + else onMessage( message, sessionID ); + } + +void crack( Message& message, + const FIX::SessionID& sessionID ) + { + FIX::MsgType msgType; + message.getHeader().getField(msgType); + std::string msgTypeValue = msgType.getValue(); + + if( msgTypeValue == "6" ) + onMessage( (IOI&)message, sessionID ); + else + if( msgTypeValue == "7" ) + onMessage( (Advertisement&)message, sessionID ); + else + if( msgTypeValue == "8" ) + onMessage( (ExecutionReport&)message, sessionID ); + else + if( msgTypeValue == "9" ) + onMessage( (OrderCancelReject&)message, sessionID ); + else + if( msgTypeValue == "B" ) + onMessage( (News&)message, sessionID ); + else + if( msgTypeValue == "C" ) + onMessage( (Email&)message, sessionID ); + else + if( msgTypeValue == "D" ) + onMessage( (NewOrderSingle&)message, sessionID ); + else + if( msgTypeValue == "E" ) + onMessage( (NewOrderList&)message, sessionID ); + else + if( msgTypeValue == "F" ) + onMessage( (OrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "G" ) + onMessage( (OrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "H" ) + onMessage( (OrderStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "J" ) + onMessage( (AllocationInstruction&)message, sessionID ); + else + if( msgTypeValue == "K" ) + onMessage( (ListCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "L" ) + onMessage( (ListExecute&)message, sessionID ); + else + if( msgTypeValue == "M" ) + onMessage( (ListStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "N" ) + onMessage( (ListStatus&)message, sessionID ); + else + if( msgTypeValue == "P" ) + onMessage( (AllocationInstructionAck&)message, sessionID ); + else + if( msgTypeValue == "Q" ) + onMessage( (DontKnowTrade&)message, sessionID ); + else + if( msgTypeValue == "R" ) + onMessage( (QuoteRequest&)message, sessionID ); + else + if( msgTypeValue == "S" ) + onMessage( (Quote&)message, sessionID ); + else + if( msgTypeValue == "T" ) + onMessage( (SettlementInstructions&)message, sessionID ); + else + if( msgTypeValue == "V" ) + onMessage( (MarketDataRequest&)message, sessionID ); + else + if( msgTypeValue == "W" ) + onMessage( (MarketDataSnapshotFullRefresh&)message, sessionID ); + else + if( msgTypeValue == "X" ) + onMessage( (MarketDataIncrementalRefresh&)message, sessionID ); + else + if( msgTypeValue == "Y" ) + onMessage( (MarketDataRequestReject&)message, sessionID ); + else + if( msgTypeValue == "Z" ) + onMessage( (QuoteCancel&)message, sessionID ); + else + if( msgTypeValue == "a" ) + onMessage( (QuoteStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "b" ) + onMessage( (MassQuoteAcknowledgement&)message, sessionID ); + else + if( msgTypeValue == "c" ) + onMessage( (SecurityDefinitionRequest&)message, sessionID ); + else + if( msgTypeValue == "d" ) + onMessage( (SecurityDefinition&)message, sessionID ); + else + if( msgTypeValue == "e" ) + onMessage( (SecurityStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "f" ) + onMessage( (SecurityStatus&)message, sessionID ); + else + if( msgTypeValue == "g" ) + onMessage( (TradingSessionStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "h" ) + onMessage( (TradingSessionStatus&)message, sessionID ); + else + if( msgTypeValue == "i" ) + onMessage( (MassQuote&)message, sessionID ); + else + if( msgTypeValue == "j" ) + onMessage( (BusinessMessageReject&)message, sessionID ); + else + if( msgTypeValue == "k" ) + onMessage( (BidRequest&)message, sessionID ); + else + if( msgTypeValue == "l" ) + onMessage( (BidResponse&)message, sessionID ); + else + if( msgTypeValue == "m" ) + onMessage( (ListStrikePrice&)message, sessionID ); + else + if( msgTypeValue == "o" ) + onMessage( (RegistrationInstructions&)message, sessionID ); + else + if( msgTypeValue == "p" ) + onMessage( (RegistrationInstructionsResponse&)message, sessionID ); + else + if( msgTypeValue == "q" ) + onMessage( (OrderMassCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "r" ) + onMessage( (OrderMassCancelReport&)message, sessionID ); + else + if( msgTypeValue == "s" ) + onMessage( (NewOrderCross&)message, sessionID ); + else + if( msgTypeValue == "t" ) + onMessage( (CrossOrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "u" ) + onMessage( (CrossOrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "v" ) + onMessage( (SecurityTypeRequest&)message, sessionID ); + else + if( msgTypeValue == "w" ) + onMessage( (SecurityTypes&)message, sessionID ); + else + if( msgTypeValue == "x" ) + onMessage( (SecurityListRequest&)message, sessionID ); + else + if( msgTypeValue == "y" ) + onMessage( (SecurityList&)message, sessionID ); + else + if( msgTypeValue == "z" ) + onMessage( (DerivativeSecurityListRequest&)message, sessionID ); + else + if( msgTypeValue == "AA" ) + onMessage( (DerivativeSecurityList&)message, sessionID ); + else + if( msgTypeValue == "AB" ) + onMessage( (NewOrderMultileg&)message, sessionID ); + else + if( msgTypeValue == "AC" ) + onMessage( (MultilegOrderCancelReplace&)message, sessionID ); + else + if( msgTypeValue == "AD" ) + onMessage( (TradeCaptureReportRequest&)message, sessionID ); + else + if( msgTypeValue == "AE" ) + onMessage( (TradeCaptureReport&)message, sessionID ); + else + if( msgTypeValue == "AF" ) + onMessage( (OrderMassStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "AG" ) + onMessage( (QuoteRequestReject&)message, sessionID ); + else + if( msgTypeValue == "AH" ) + onMessage( (RFQRequest&)message, sessionID ); + else + if( msgTypeValue == "AI" ) + onMessage( (QuoteStatusReport&)message, sessionID ); + else + if( msgTypeValue == "AJ" ) + onMessage( (QuoteResponse&)message, sessionID ); + else + if( msgTypeValue == "AK" ) + onMessage( (Confirmation&)message, sessionID ); + else + if( msgTypeValue == "AL" ) + onMessage( (PositionMaintenanceRequest&)message, sessionID ); + else + if( msgTypeValue == "AM" ) + onMessage( (PositionMaintenanceReport&)message, sessionID ); + else + if( msgTypeValue == "AN" ) + onMessage( (RequestForPositions&)message, sessionID ); + else + if( msgTypeValue == "AO" ) + onMessage( (RequestForPositionsAck&)message, sessionID ); + else + if( msgTypeValue == "AP" ) + onMessage( (PositionReport&)message, sessionID ); + else + if( msgTypeValue == "AQ" ) + onMessage( (TradeCaptureReportRequestAck&)message, sessionID ); + else + if( msgTypeValue == "AR" ) + onMessage( (TradeCaptureReportAck&)message, sessionID ); + else + if( msgTypeValue == "AS" ) + onMessage( (AllocationReport&)message, sessionID ); + else + if( msgTypeValue == "AT" ) + onMessage( (AllocationReportAck&)message, sessionID ); + else + if( msgTypeValue == "AU" ) + onMessage( (ConfirmationAck&)message, sessionID ); + else + if( msgTypeValue == "AV" ) + onMessage( (SettlementInstructionRequest&)message, sessionID ); + else + if( msgTypeValue == "AW" ) + onMessage( (AssignmentReport&)message, sessionID ); + else + if( msgTypeValue == "AX" ) + onMessage( (CollateralRequest&)message, sessionID ); + else + if( msgTypeValue == "AY" ) + onMessage( (CollateralAssignment&)message, sessionID ); + else + if( msgTypeValue == "AZ" ) + onMessage( (CollateralResponse&)message, sessionID ); + else + if( msgTypeValue == "BA" ) + onMessage( (CollateralReport&)message, sessionID ); + else + if( msgTypeValue == "BB" ) + onMessage( (CollateralInquiry&)message, sessionID ); + else + if( msgTypeValue == "BC" ) + onMessage( (NetworkCounterpartySystemStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "BD" ) + onMessage( (NetworkCounterpartySystemStatusResponse&)message, sessionID ); + else + if( msgTypeValue == "BE" ) + onMessage( (UserRequest&)message, sessionID ); + else + if( msgTypeValue == "BF" ) + onMessage( (UserResponse&)message, sessionID ); + else + if( msgTypeValue == "BG" ) + onMessage( (CollateralInquiryAck&)message, sessionID ); + else + if( msgTypeValue == "BH" ) + onMessage( (ConfirmationRequest&)message, sessionID ); + else + if( msgTypeValue == "BO" ) + onMessage( (ContraryIntentionReport&)message, sessionID ); + else + if( msgTypeValue == "BP" ) + onMessage( (SecurityDefinitionUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BK" ) + onMessage( (SecurityListUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BL" ) + onMessage( (AdjustedPositionReport&)message, sessionID ); + else + if( msgTypeValue == "BM" ) + onMessage( (AllocationInstructionAlert&)message, sessionID ); + else + if( msgTypeValue == "BN" ) + onMessage( (ExecutionAcknowledgement&)message, sessionID ); + else + if( msgTypeValue == "BJ" ) + onMessage( (TradingSessionList&)message, sessionID ); + else + if( msgTypeValue == "BI" ) + onMessage( (TradingSessionListRequest&)message, sessionID ); + else + if( msgTypeValue == "BQ" ) + onMessage( (SettlementObligationReport&)message, sessionID ); + else + if( msgTypeValue == "BR" ) + onMessage( (DerivativeSecurityListUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BS" ) + onMessage( (TradingSessionListUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BT" ) + onMessage( (MarketDefinitionRequest&)message, sessionID ); + else + if( msgTypeValue == "BU" ) + onMessage( (MarketDefinition&)message, sessionID ); + else + if( msgTypeValue == "BV" ) + onMessage( (MarketDefinitionUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BW" ) + onMessage( (ApplicationMessageRequest&)message, sessionID ); + else + if( msgTypeValue == "BX" ) + onMessage( (ApplicationMessageRequestAck&)message, sessionID ); + else + if( msgTypeValue == "BY" ) + onMessage( (ApplicationMessageReport&)message, sessionID ); + else + if( msgTypeValue == "BZ" ) + onMessage( (OrderMassActionReport&)message, sessionID ); + else + if( msgTypeValue == "CA" ) + onMessage( (OrderMassActionRequest&)message, sessionID ); + else + if( msgTypeValue == "CB" ) + onMessage( (UserNotification&)message, sessionID ); + else onMessage( message, sessionID ); + } + + }; +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/MultilegOrderCancelReplace.h b/linux/include/quickfix/fix50sp1/MultilegOrderCancelReplace.h new file mode 100644 index 000000000..975500257 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/MultilegOrderCancelReplace.h @@ -0,0 +1,476 @@ +#ifndef FIX50SP1_MULTILEGORDERCANCELREPLACE_H +#define FIX50SP1_MULTILEGORDERCANCELREPLACE_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class MultilegOrderCancelReplace : public Message + { + public: + MultilegOrderCancelReplace() : Message(MsgType()) {} + MultilegOrderCancelReplace(const FIX::Message& m) : Message(m) {} + MultilegOrderCancelReplace(const Message& m) : Message(m) {} + MultilegOrderCancelReplace(const MultilegOrderCancelReplace& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AC"); } + + MultilegOrderCancelReplace( + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aSide); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,948,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNested3PartyIDs); + class NoNested3PartyIDs: public FIX::Group + { + public: + NoNested3PartyIDs() : FIX::Group(948,949,FIX::message_order(949,950,951,952,0)) {} + FIELD_SET(*this, FIX::Nested3PartyID); + FIELD_SET(*this, FIX::Nested3PartyIDSource); + FIELD_SET(*this, FIX::Nested3PartyRole); + FIELD_SET(*this, FIX::NoNested3PartySubIDs); + class NoNested3PartySubIDs: public FIX::Group + { + public: + NoNested3PartySubIDs() : FIX::Group(952,953,FIX::message_order(953,954,0)) {} + FIELD_SET(*this, FIX::Nested3PartySubID); + FIELD_SET(*this, FIX::Nested3PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::SwapPoints); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,687,690,683,1366,670,564,565,539,654,587,588,675,685,1379,1381,1383,1384,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::LegAllocID); + FIELD_SET(*this, FIX::NoLegAllocs); + class NoLegAllocs: public FIX::Group + { + public: + NoLegAllocs() : FIX::Group(670,671,FIX::message_order(671,672,756,673,674,1367,0)) {} + FIELD_SET(*this, FIX::LegAllocAccount); + FIELD_SET(*this, FIX::LegIndividualAllocID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegAllocQty); + FIELD_SET(*this, FIX::LegAllocAcctIDSource); + FIELD_SET(*this, FIX::LegAllocSettlCurrency); + }; + FIELD_SET(*this, FIX::LegPositionEffect); + FIELD_SET(*this, FIX::LegCoveredOrUncovered); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::LegSettlCurrency); + FIELD_SET(*this, FIX::LegOrderQty); + FIELD_SET(*this, FIX::LegVolatility); + FIELD_SET(*this, FIX::LegDividendYield); + FIELD_SET(*this, FIX::LegCurrencyRatio); + FIELD_SET(*this, FIX::LegExecInst); + }; + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::MultilegModel); + FIELD_SET(*this, FIX::MultilegPriceMethod); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::RiskFreeRate); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::MultiLegRptTypeReq); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/NetworkCounterpartySystemStatusRequest.h b/linux/include/quickfix/fix50sp1/NetworkCounterpartySystemStatusRequest.h new file mode 100644 index 000000000..ff0faeb50 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/NetworkCounterpartySystemStatusRequest.h @@ -0,0 +1,43 @@ +#ifndef FIX50SP1_NETWORKCOUNTERPARTYSYSTEMSTATUSREQUEST_H +#define FIX50SP1_NETWORKCOUNTERPARTYSYSTEMSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class NetworkCounterpartySystemStatusRequest : public Message + { + public: + NetworkCounterpartySystemStatusRequest() : Message(MsgType()) {} + NetworkCounterpartySystemStatusRequest(const FIX::Message& m) : Message(m) {} + NetworkCounterpartySystemStatusRequest(const Message& m) : Message(m) {} + NetworkCounterpartySystemStatusRequest(const NetworkCounterpartySystemStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BC"); } + + NetworkCounterpartySystemStatusRequest( + const FIX::NetworkRequestType& aNetworkRequestType, + const FIX::NetworkRequestID& aNetworkRequestID ) + : Message(MsgType()) + { + set(aNetworkRequestType); + set(aNetworkRequestID); + } + + FIELD_SET(*this, FIX::NetworkRequestType); + FIELD_SET(*this, FIX::NetworkRequestID); + FIELD_SET(*this, FIX::NoCompIDs); + class NoCompIDs: public FIX::Group + { + public: + NoCompIDs() : FIX::Group(936,930,FIX::message_order(930,931,283,284,0)) {} + FIELD_SET(*this, FIX::RefCompID); + FIELD_SET(*this, FIX::RefSubID); + FIELD_SET(*this, FIX::LocationID); + FIELD_SET(*this, FIX::DeskID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/NetworkCounterpartySystemStatusResponse.h b/linux/include/quickfix/fix50sp1/NetworkCounterpartySystemStatusResponse.h new file mode 100644 index 000000000..f4983cb5c --- /dev/null +++ b/linux/include/quickfix/fix50sp1/NetworkCounterpartySystemStatusResponse.h @@ -0,0 +1,47 @@ +#ifndef FIX50SP1_NETWORKCOUNTERPARTYSYSTEMSTATUSRESPONSE_H +#define FIX50SP1_NETWORKCOUNTERPARTYSYSTEMSTATUSRESPONSE_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class NetworkCounterpartySystemStatusResponse : public Message + { + public: + NetworkCounterpartySystemStatusResponse() : Message(MsgType()) {} + NetworkCounterpartySystemStatusResponse(const FIX::Message& m) : Message(m) {} + NetworkCounterpartySystemStatusResponse(const Message& m) : Message(m) {} + NetworkCounterpartySystemStatusResponse(const NetworkCounterpartySystemStatusResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BD"); } + + NetworkCounterpartySystemStatusResponse( + const FIX::NetworkStatusResponseType& aNetworkStatusResponseType, + const FIX::NetworkResponseID& aNetworkResponseID ) + : Message(MsgType()) + { + set(aNetworkStatusResponseType); + set(aNetworkResponseID); + } + + FIELD_SET(*this, FIX::NetworkStatusResponseType); + FIELD_SET(*this, FIX::NetworkRequestID); + FIELD_SET(*this, FIX::NetworkResponseID); + FIELD_SET(*this, FIX::LastNetworkResponseID); + FIELD_SET(*this, FIX::NoCompIDs); + class NoCompIDs: public FIX::Group + { + public: + NoCompIDs() : FIX::Group(936,930,FIX::message_order(930,931,283,284,928,929,0)) {} + FIELD_SET(*this, FIX::RefCompID); + FIELD_SET(*this, FIX::RefSubID); + FIELD_SET(*this, FIX::LocationID); + FIELD_SET(*this, FIX::DeskID); + FIELD_SET(*this, FIX::StatusValue); + FIELD_SET(*this, FIX::StatusText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/NewOrderCross.h b/linux/include/quickfix/fix50sp1/NewOrderCross.h new file mode 100644 index 000000000..82ebdeaf9 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/NewOrderCross.h @@ -0,0 +1,457 @@ +#ifndef FIX50SP1_NEWORDERCROSS_H +#define FIX50SP1_NEWORDERCROSS_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class NewOrderCross : public Message + { + public: + NewOrderCross() : Message(MsgType()) {} + NewOrderCross(const FIX::Message& m) : Message(m) {} + NewOrderCross(const Message& m) : Message(m) {} + NewOrderCross(const NewOrderCross& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("s"); } + + NewOrderCross( + const FIX::CrossID& aCrossID, + const FIX::CrossType& aCrossType, + const FIX::CrossPrioritization& aCrossPrioritization, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aCrossID); + set(aCrossType); + set(aCrossPrioritization); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::CrossID); + FIELD_SET(*this, FIX::CrossType); + FIELD_SET(*this, FIX::CrossPrioritization); + FIELD_SET(*this, FIX::NoRootPartyIDs); + class NoRootPartyIDs: public FIX::Group + { + public: + NoRootPartyIDs() : FIX::Group(1116,1117,FIX::message_order(1117,1118,1119,1120,0)) {} + FIELD_SET(*this, FIX::RootPartyID); + FIELD_SET(*this, FIX::RootPartyIDSource); + FIELD_SET(*this, FIX::RootPartyRole); + FIELD_SET(*this, FIX::NoRootPartySubIDs); + class NoRootPartySubIDs: public FIX::Group + { + public: + NoRootPartySubIDs() : FIX::Group(1120,1121,FIX::message_order(1121,1122,0)) {} + FIELD_SET(*this, FIX::RootPartySubID); + FIELD_SET(*this, FIX::RootPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoSides); + class NoSides: public FIX::Group + { + public: + NoSides() : FIX::Group(552,54,FIX::message_order(54,41,11,526,583,453,229,75,1,660,581,589,590,591,70,78,854,38,152,516,468,469,12,13,479,497,528,529,1091,582,121,120,775,58,354,355,77,203,544,635,377,659,962,0)) {} + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::SideComplianceID); + FIELD_SET(*this, FIX::SideTimeInForce); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TransBkdTime); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/NewOrderList.h b/linux/include/quickfix/fix50sp1/NewOrderList.h new file mode 100644 index 000000000..c4595c1dd --- /dev/null +++ b/linux/include/quickfix/fix50sp1/NewOrderList.h @@ -0,0 +1,414 @@ +#ifndef FIX50SP1_NEWORDERLIST_H +#define FIX50SP1_NEWORDERLIST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class NewOrderList : public Message + { + public: + NewOrderList() : Message(MsgType()) {} + NewOrderList(const FIX::Message& m) : Message(m) {} + NewOrderList(const Message& m) : Message(m) {} + NewOrderList(const NewOrderList& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("E"); } + + NewOrderList( + const FIX::ListID& aListID, + const FIX::BidType& aBidType, + const FIX::TotNoOrders& aTotNoOrders ) + : Message(MsgType()) + { + set(aListID); + set(aBidType); + set(aTotNoOrders); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::ProgRptReqs); + FIELD_SET(*this, FIX::BidType); + FIELD_SET(*this, FIX::ProgPeriodInterval); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::ListExecInstType); + FIELD_SET(*this, FIX::ListExecInst); + FIELD_SET(*this, FIX::ContingencyType); + FIELD_SET(*this, FIX::EncodedListExecInstLen); + FIELD_SET(*this, FIX::EncodedListExecInst); + FIELD_SET(*this, FIX::AllowableOneSidednessPct); + FIELD_SET(*this, FIX::AllowableOneSidednessValue); + FIELD_SET(*this, FIX::AllowableOneSidednessCurr); + FIELD_SET(*this, FIX::TotNoOrders); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoRootPartyIDs); + class NoRootPartyIDs: public FIX::Group + { + public: + NoRootPartyIDs() : FIX::Group(1116,1117,FIX::message_order(1117,1118,1119,1120,0)) {} + FIELD_SET(*this, FIX::RootPartyID); + FIELD_SET(*this, FIX::RootPartyIDSource); + FIELD_SET(*this, FIX::RootPartyRole); + FIELD_SET(*this, FIX::NoRootPartySubIDs); + class NoRootPartySubIDs: public FIX::Group + { + public: + NoRootPartySubIDs() : FIX::Group(1120,1121,FIX::message_order(1121,1122,0)) {} + FIELD_SET(*this, FIX::RootPartySubID); + FIELD_SET(*this, FIX::RootPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,526,67,583,160,453,229,75,1,660,581,589,590,70,591,78,63,64,544,635,21,18,110,1089,1090,1138,1082,1083,1084,1085,1086,1087,1088,111,100,1133,386,81,55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,711,140,54,401,114,60,232,854,38,152,516,468,469,40,423,44,1092,99,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,218,220,221,222,662,663,699,761,235,236,701,696,697,698,15,376,377,23,117,1080,1081,59,168,432,126,427,12,13,479,497,528,529,1091,582,121,120,775,58,354,355,193,192,640,77,203,210,211,1094,835,836,837,838,840,1096,1097,1098,1099,388,389,841,842,843,844,846,847,957,848,849,494,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListSeqNo); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::SettlInstMode); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::SideValueInd); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::RefOrderID); + FIELD_SET(*this, FIX::RefOrderIDSource); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::Designation); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/NewOrderMultileg.h b/linux/include/quickfix/fix50sp1/NewOrderMultileg.h new file mode 100644 index 000000000..bdd68eee0 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/NewOrderMultileg.h @@ -0,0 +1,477 @@ +#ifndef FIX50SP1_NEWORDERMULTILEG_H +#define FIX50SP1_NEWORDERMULTILEG_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class NewOrderMultileg : public Message + { + public: + NewOrderMultileg() : Message(MsgType()) {} + NewOrderMultileg(const FIX::Message& m) : Message(m) {} + NewOrderMultileg(const Message& m) : Message(m) {} + NewOrderMultileg(const NewOrderMultileg& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AB"); } + + NewOrderMultileg( + const FIX::ClOrdID& aClOrdID, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aClOrdID); + set(aSide); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,948,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNested3PartyIDs); + class NoNested3PartyIDs: public FIX::Group + { + public: + NoNested3PartyIDs() : FIX::Group(948,949,FIX::message_order(949,950,951,952,0)) {} + FIELD_SET(*this, FIX::Nested3PartyID); + FIELD_SET(*this, FIX::Nested3PartyIDSource); + FIELD_SET(*this, FIX::Nested3PartyRole); + FIELD_SET(*this, FIX::NoNested3PartySubIDs); + class NoNested3PartySubIDs: public FIX::Group + { + public: + NoNested3PartySubIDs() : FIX::Group(952,953,FIX::message_order(953,954,0)) {} + FIELD_SET(*this, FIX::Nested3PartySubID); + FIELD_SET(*this, FIX::Nested3PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::SwapPoints); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,687,690,683,1366,670,564,565,539,654,587,588,675,685,1379,1381,1383,1384,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::LegAllocID); + FIELD_SET(*this, FIX::NoLegAllocs); + class NoLegAllocs: public FIX::Group + { + public: + NoLegAllocs() : FIX::Group(670,671,FIX::message_order(671,672,756,673,674,1367,0)) {} + FIELD_SET(*this, FIX::LegAllocAccount); + FIELD_SET(*this, FIX::LegIndividualAllocID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegAllocQty); + FIELD_SET(*this, FIX::LegAllocAcctIDSource); + FIELD_SET(*this, FIX::LegAllocSettlCurrency); + }; + FIELD_SET(*this, FIX::LegPositionEffect); + FIELD_SET(*this, FIX::LegCoveredOrUncovered); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::LegSettlCurrency); + FIELD_SET(*this, FIX::LegOrderQty); + FIELD_SET(*this, FIX::LegVolatility); + FIELD_SET(*this, FIX::LegDividendYield); + FIELD_SET(*this, FIX::LegCurrencyRatio); + FIELD_SET(*this, FIX::LegExecInst); + }; + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::MultilegModel); + FIELD_SET(*this, FIX::MultilegPriceMethod); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::RefOrderID); + FIELD_SET(*this, FIX::RefOrderIDSource); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::RiskFreeRate); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::MultiLegRptTypeReq); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/NewOrderSingle.h b/linux/include/quickfix/fix50sp1/NewOrderSingle.h new file mode 100644 index 000000000..6e163b73e --- /dev/null +++ b/linux/include/quickfix/fix50sp1/NewOrderSingle.h @@ -0,0 +1,400 @@ +#ifndef FIX50SP1_NEWORDERSINGLE_H +#define FIX50SP1_NEWORDERSINGLE_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class NewOrderSingle : public Message + { + public: + NewOrderSingle() : Message(MsgType()) {} + NewOrderSingle(const FIX::Message& m) : Message(m) {} + NewOrderSingle(const Message& m) : Message(m) {} + NewOrderSingle(const NewOrderSingle& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("D"); } + + NewOrderSingle( + const FIX::ClOrdID& aClOrdID, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aClOrdID); + set(aSide); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::ManualOrderIndicator); + FIELD_SET(*this, FIX::CustDirectedOrder); + FIELD_SET(*this, FIX::ReceivedDeptID); + FIELD_SET(*this, FIX::CustOrderHandlingInst); + FIELD_SET(*this, FIX::OrderHandlingInstSource); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::RefOrderID); + FIELD_SET(*this, FIX::RefOrderIDSource); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/News.h b/linux/include/quickfix/fix50sp1/News.h new file mode 100644 index 000000000..c6c4901f1 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/News.h @@ -0,0 +1,255 @@ +#ifndef FIX50SP1_NEWS_H +#define FIX50SP1_NEWS_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class News : public Message + { + public: + News() : Message(MsgType()) {} + News(const FIX::Message& m) : Message(m) {} + News(const Message& m) : Message(m) {} + News(const News& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("B"); } + + News( + const FIX::Headline& aHeadline ) + : Message(MsgType()) + { + set(aHeadline); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::OrigTime); + FIELD_SET(*this, FIX::Urgency); + FIELD_SET(*this, FIX::Headline); + FIELD_SET(*this, FIX::EncodedHeadlineLen); + FIELD_SET(*this, FIX::EncodedHeadline); + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoLinesOfText); + class NoLinesOfText: public FIX::Group + { + public: + NoLinesOfText() : FIX::Group(33,58,FIX::message_order(58,354,355,0)) {} + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + FIELD_SET(*this, FIX::URLLink); + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/OrderCancelReject.h b/linux/include/quickfix/fix50sp1/OrderCancelReject.h new file mode 100644 index 000000000..a8e243edf --- /dev/null +++ b/linux/include/quickfix/fix50sp1/OrderCancelReject.h @@ -0,0 +1,56 @@ +#ifndef FIX50SP1_ORDERCANCELREJECT_H +#define FIX50SP1_ORDERCANCELREJECT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class OrderCancelReject : public Message + { + public: + OrderCancelReject() : Message(MsgType()) {} + OrderCancelReject(const FIX::Message& m) : Message(m) {} + OrderCancelReject(const Message& m) : Message(m) {} + OrderCancelReject(const OrderCancelReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("9"); } + + OrderCancelReject( + const FIX::OrderID& aOrderID, + const FIX::ClOrdID& aClOrdID, + const FIX::OrdStatus& aOrdStatus, + const FIX::CxlRejResponseTo& aCxlRejResponseTo ) + : Message(MsgType()) + { + set(aOrderID); + set(aClOrdID); + set(aOrdStatus); + set(aCxlRejResponseTo); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::WorkingIndicator); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::CxlRejResponseTo); + FIELD_SET(*this, FIX::CxlRejReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/OrderCancelReplaceRequest.h b/linux/include/quickfix/fix50sp1/OrderCancelReplaceRequest.h new file mode 100644 index 000000000..46e5786d3 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/OrderCancelReplaceRequest.h @@ -0,0 +1,390 @@ +#ifndef FIX50SP1_ORDERCANCELREPLACEREQUEST_H +#define FIX50SP1_ORDERCANCELREPLACEREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class OrderCancelReplaceRequest : public Message + { + public: + OrderCancelReplaceRequest() : Message(MsgType()) {} + OrderCancelReplaceRequest(const FIX::Message& m) : Message(m) {} + OrderCancelReplaceRequest(const Message& m) : Message(m) {} + OrderCancelReplaceRequest(const OrderCancelReplaceRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("G"); } + + OrderCancelReplaceRequest( + const FIX::ClOrdID& aClOrdID, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aClOrdID); + set(aSide); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::ManualOrderIndicator); + FIELD_SET(*this, FIX::CustDirectedOrder); + FIELD_SET(*this, FIX::ReceivedDeptID); + FIELD_SET(*this, FIX::CustOrderHandlingInst); + FIELD_SET(*this, FIX::OrderHandlingInstSource); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/OrderCancelRequest.h b/linux/include/quickfix/fix50sp1/OrderCancelRequest.h new file mode 100644 index 000000000..166184cc2 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/OrderCancelRequest.h @@ -0,0 +1,215 @@ +#ifndef FIX50SP1_ORDERCANCELREQUEST_H +#define FIX50SP1_ORDERCANCELREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class OrderCancelRequest : public Message + { + public: + OrderCancelRequest() : Message(MsgType()) {} + OrderCancelRequest(const FIX::Message& m) : Message(m) {} + OrderCancelRequest(const Message& m) : Message(m) {} + OrderCancelRequest(const OrderCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("F"); } + + OrderCancelRequest( + const FIX::ClOrdID& aClOrdID, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aClOrdID); + set(aSide); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/OrderMassActionReport.h b/linux/include/quickfix/fix50sp1/OrderMassActionReport.h new file mode 100644 index 000000000..cacbffb35 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/OrderMassActionReport.h @@ -0,0 +1,215 @@ +#ifndef FIX50SP1_ORDERMASSACTIONREPORT_H +#define FIX50SP1_ORDERMASSACTIONREPORT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class OrderMassActionReport : public Message + { + public: + OrderMassActionReport() : Message(MsgType()) {} + OrderMassActionReport(const FIX::Message& m) : Message(m) {} + OrderMassActionReport(const Message& m) : Message(m) {} + OrderMassActionReport(const OrderMassActionReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BZ"); } + + OrderMassActionReport( + const FIX::MassActionReportID& aMassActionReportID, + const FIX::MassActionType& aMassActionType, + const FIX::MassActionScope& aMassActionScope, + const FIX::MassActionResponse& aMassActionResponse ) + : Message(MsgType()) + { + set(aMassActionReportID); + set(aMassActionType); + set(aMassActionScope); + set(aMassActionResponse); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::MassActionReportID); + FIELD_SET(*this, FIX::MassActionType); + FIELD_SET(*this, FIX::MassActionScope); + FIELD_SET(*this, FIX::MassActionResponse); + FIELD_SET(*this, FIX::MassActionRejectReason); + FIELD_SET(*this, FIX::TotalAffectedOrders); + FIELD_SET(*this, FIX::NoAffectedOrders); + class NoAffectedOrders: public FIX::Group + { + public: + NoAffectedOrders() : FIX::Group(534,41,FIX::message_order(41,535,536,0)) {} + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::AffectedOrderID); + FIELD_SET(*this, FIX::AffectedSecondaryOrderID); + }; + FIELD_SET(*this, FIX::NoNotAffectedOrders); + class NoNotAffectedOrders: public FIX::Group + { + public: + NoNotAffectedOrders() : FIX::Group(1370,1372,FIX::message_order(1372,1371,0)) {} + FIELD_SET(*this, FIX::NotAffOrigClOrdID); + FIELD_SET(*this, FIX::NotAffectedOrderID); + }; + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/OrderMassActionRequest.h b/linux/include/quickfix/fix50sp1/OrderMassActionRequest.h new file mode 100644 index 000000000..529a52b52 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/OrderMassActionRequest.h @@ -0,0 +1,194 @@ +#ifndef FIX50SP1_ORDERMASSACTIONREQUEST_H +#define FIX50SP1_ORDERMASSACTIONREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class OrderMassActionRequest : public Message + { + public: + OrderMassActionRequest() : Message(MsgType()) {} + OrderMassActionRequest(const FIX::Message& m) : Message(m) {} + OrderMassActionRequest(const Message& m) : Message(m) {} + OrderMassActionRequest(const OrderMassActionRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("CA"); } + + OrderMassActionRequest( + const FIX::ClOrdID& aClOrdID, + const FIX::MassActionType& aMassActionType, + const FIX::MassActionScope& aMassActionScope, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aClOrdID); + set(aMassActionType); + set(aMassActionScope); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::MassActionType); + FIELD_SET(*this, FIX::MassActionScope); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/OrderMassCancelReport.h b/linux/include/quickfix/fix50sp1/OrderMassCancelReport.h new file mode 100644 index 000000000..d379ff6a5 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/OrderMassCancelReport.h @@ -0,0 +1,216 @@ +#ifndef FIX50SP1_ORDERMASSCANCELREPORT_H +#define FIX50SP1_ORDERMASSCANCELREPORT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class OrderMassCancelReport : public Message + { + public: + OrderMassCancelReport() : Message(MsgType()) {} + OrderMassCancelReport(const FIX::Message& m) : Message(m) {} + OrderMassCancelReport(const Message& m) : Message(m) {} + OrderMassCancelReport(const OrderMassCancelReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("r"); } + + OrderMassCancelReport( + const FIX::OrderID& aOrderID, + const FIX::MassActionReportID& aMassActionReportID, + const FIX::MassCancelRequestType& aMassCancelRequestType, + const FIX::MassCancelResponse& aMassCancelResponse ) + : Message(MsgType()) + { + set(aOrderID); + set(aMassActionReportID); + set(aMassCancelRequestType); + set(aMassCancelResponse); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::MassActionReportID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::MassCancelRequestType); + FIELD_SET(*this, FIX::MassCancelResponse); + FIELD_SET(*this, FIX::MassCancelRejectReason); + FIELD_SET(*this, FIX::TotalAffectedOrders); + FIELD_SET(*this, FIX::NoAffectedOrders); + class NoAffectedOrders: public FIX::Group + { + public: + NoAffectedOrders() : FIX::Group(534,41,FIX::message_order(41,535,536,0)) {} + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::AffectedOrderID); + FIELD_SET(*this, FIX::AffectedSecondaryOrderID); + }; + FIELD_SET(*this, FIX::NoNotAffectedOrders); + class NoNotAffectedOrders: public FIX::Group + { + public: + NoNotAffectedOrders() : FIX::Group(1370,1372,FIX::message_order(1372,1371,0)) {} + FIELD_SET(*this, FIX::NotAffOrigClOrdID); + FIELD_SET(*this, FIX::NotAffectedOrderID); + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/OrderMassCancelRequest.h b/linux/include/quickfix/fix50sp1/OrderMassCancelRequest.h new file mode 100644 index 000000000..2ce03befe --- /dev/null +++ b/linux/include/quickfix/fix50sp1/OrderMassCancelRequest.h @@ -0,0 +1,191 @@ +#ifndef FIX50SP1_ORDERMASSCANCELREQUEST_H +#define FIX50SP1_ORDERMASSCANCELREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class OrderMassCancelRequest : public Message + { + public: + OrderMassCancelRequest() : Message(MsgType()) {} + OrderMassCancelRequest(const FIX::Message& m) : Message(m) {} + OrderMassCancelRequest(const Message& m) : Message(m) {} + OrderMassCancelRequest(const OrderMassCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("q"); } + + OrderMassCancelRequest( + const FIX::ClOrdID& aClOrdID, + const FIX::MassCancelRequestType& aMassCancelRequestType, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aClOrdID); + set(aMassCancelRequestType); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::MassCancelRequestType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/OrderMassStatusRequest.h b/linux/include/quickfix/fix50sp1/OrderMassStatusRequest.h new file mode 100644 index 000000000..77b998e9d --- /dev/null +++ b/linux/include/quickfix/fix50sp1/OrderMassStatusRequest.h @@ -0,0 +1,184 @@ +#ifndef FIX50SP1_ORDERMASSSTATUSREQUEST_H +#define FIX50SP1_ORDERMASSSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class OrderMassStatusRequest : public Message + { + public: + OrderMassStatusRequest() : Message(MsgType()) {} + OrderMassStatusRequest(const FIX::Message& m) : Message(m) {} + OrderMassStatusRequest(const Message& m) : Message(m) {} + OrderMassStatusRequest(const OrderMassStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AF"); } + + OrderMassStatusRequest( + const FIX::MassStatusReqID& aMassStatusReqID, + const FIX::MassStatusReqType& aMassStatusReqType ) + : Message(MsgType()) + { + set(aMassStatusReqID); + set(aMassStatusReqType); + } + + FIELD_SET(*this, FIX::MassStatusReqID); + FIELD_SET(*this, FIX::MassStatusReqType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::Side); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/OrderStatusRequest.h b/linux/include/quickfix/fix50sp1/OrderStatusRequest.h new file mode 100644 index 000000000..e5843932f --- /dev/null +++ b/linux/include/quickfix/fix50sp1/OrderStatusRequest.h @@ -0,0 +1,198 @@ +#ifndef FIX50SP1_ORDERSTATUSREQUEST_H +#define FIX50SP1_ORDERSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class OrderStatusRequest : public Message + { + public: + OrderStatusRequest() : Message(MsgType()) {} + OrderStatusRequest(const FIX::Message& m) : Message(m) {} + OrderStatusRequest(const Message& m) : Message(m) {} + OrderStatusRequest(const OrderStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("H"); } + + OrderStatusRequest( + const FIX::Side& aSide ) + : Message(MsgType()) + { + set(aSide); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OrdStatusReqID); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::Side); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/PositionMaintenanceReport.h b/linux/include/quickfix/fix50sp1/PositionMaintenanceReport.h new file mode 100644 index 000000000..52aa8d647 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/PositionMaintenanceReport.h @@ -0,0 +1,314 @@ +#ifndef FIX50SP1_POSITIONMAINTENANCEREPORT_H +#define FIX50SP1_POSITIONMAINTENANCEREPORT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class PositionMaintenanceReport : public Message + { + public: + PositionMaintenanceReport() : Message(MsgType()) {} + PositionMaintenanceReport(const FIX::Message& m) : Message(m) {} + PositionMaintenanceReport(const Message& m) : Message(m) {} + PositionMaintenanceReport(const PositionMaintenanceReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AM"); } + + PositionMaintenanceReport( + const FIX::PosMaintRptID& aPosMaintRptID, + const FIX::PosTransType& aPosTransType, + const FIX::PosMaintAction& aPosMaintAction, + const FIX::PosMaintStatus& aPosMaintStatus, + const FIX::ClearingBusinessDate& aClearingBusinessDate ) + : Message(MsgType()) + { + set(aPosMaintRptID); + set(aPosTransType); + set(aPosMaintAction); + set(aPosMaintStatus); + set(aClearingBusinessDate); + } + + FIELD_SET(*this, FIX::PosMaintRptID); + FIELD_SET(*this, FIX::PosTransType); + FIELD_SET(*this, FIX::PosReqID); + FIELD_SET(*this, FIX::PosMaintAction); + FIELD_SET(*this, FIX::OrigPosReqRefID); + FIELD_SET(*this, FIX::PosMaintStatus); + FIELD_SET(*this, FIX::PosMaintResult); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::PosMaintRptRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::ContraryInstructionIndicator); + FIELD_SET(*this, FIX::PriorSpreadIndicator); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoPositions); + class NoPositions: public FIX::Group + { + public: + NoPositions() : FIX::Group(702,703,FIX::message_order(703,704,705,706,976,539,0)) {} + FIELD_SET(*this, FIX::PosType); + FIELD_SET(*this, FIX::LongQty); + FIELD_SET(*this, FIX::ShortQty); + FIELD_SET(*this, FIX::PosQtyStatus); + FIELD_SET(*this, FIX::QuantityDate); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::AdjustmentType); + FIELD_SET(*this, FIX::ThresholdAmount); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/PositionMaintenanceRequest.h b/linux/include/quickfix/fix50sp1/PositionMaintenanceRequest.h new file mode 100644 index 000000000..6c97a4b12 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/PositionMaintenanceRequest.h @@ -0,0 +1,307 @@ +#ifndef FIX50SP1_POSITIONMAINTENANCEREQUEST_H +#define FIX50SP1_POSITIONMAINTENANCEREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class PositionMaintenanceRequest : public Message + { + public: + PositionMaintenanceRequest() : Message(MsgType()) {} + PositionMaintenanceRequest(const FIX::Message& m) : Message(m) {} + PositionMaintenanceRequest(const Message& m) : Message(m) {} + PositionMaintenanceRequest(const PositionMaintenanceRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AL"); } + + PositionMaintenanceRequest( + const FIX::PosTransType& aPosTransType, + const FIX::PosMaintAction& aPosMaintAction, + const FIX::ClearingBusinessDate& aClearingBusinessDate ) + : Message(MsgType()) + { + set(aPosTransType); + set(aPosMaintAction); + set(aClearingBusinessDate); + } + + FIELD_SET(*this, FIX::PosReqID); + FIELD_SET(*this, FIX::PosTransType); + FIELD_SET(*this, FIX::PosMaintAction); + FIELD_SET(*this, FIX::OrigPosReqRefID); + FIELD_SET(*this, FIX::PosMaintRptRefID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoPositions); + class NoPositions: public FIX::Group + { + public: + NoPositions() : FIX::Group(702,703,FIX::message_order(703,704,705,706,976,539,0)) {} + FIELD_SET(*this, FIX::PosType); + FIELD_SET(*this, FIX::LongQty); + FIELD_SET(*this, FIX::ShortQty); + FIELD_SET(*this, FIX::PosQtyStatus); + FIELD_SET(*this, FIX::QuantityDate); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::AdjustmentType); + FIELD_SET(*this, FIX::ContraryInstructionIndicator); + FIELD_SET(*this, FIX::PriorSpreadIndicator); + FIELD_SET(*this, FIX::ThresholdAmount); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::SettlCurrency); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/PositionReport.h b/linux/include/quickfix/fix50sp1/PositionReport.h new file mode 100644 index 000000000..22bb5efe9 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/PositionReport.h @@ -0,0 +1,319 @@ +#ifndef FIX50SP1_POSITIONREPORT_H +#define FIX50SP1_POSITIONREPORT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class PositionReport : public Message + { + public: + PositionReport() : Message(MsgType()) {} + PositionReport(const FIX::Message& m) : Message(m) {} + PositionReport(const Message& m) : Message(m) {} + PositionReport(const PositionReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AP"); } + + PositionReport( + const FIX::PosMaintRptID& aPosMaintRptID, + const FIX::ClearingBusinessDate& aClearingBusinessDate ) + : Message(MsgType()) + { + set(aPosMaintRptID); + set(aClearingBusinessDate); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::PosMaintRptID); + FIELD_SET(*this, FIX::PosReqID); + FIELD_SET(*this, FIX::PosReqType); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TotalNumPosReports); + FIELD_SET(*this, FIX::PosReqResult); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::MessageEventSource); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SettlPrice); + FIELD_SET(*this, FIX::SettlPriceType); + FIELD_SET(*this, FIX::PriorSettlPrice); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,732,733,1037,984,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingSettlPrice); + FIELD_SET(*this, FIX::UnderlyingSettlPriceType); + FIELD_SET(*this, FIX::UnderlyingDeliveryAmount); + FIELD_SET(*this, FIX::NoUnderlyingAmounts); + class NoUnderlyingAmounts: public FIX::Group + { + public: + NoUnderlyingAmounts() : FIX::Group(984,985,FIX::message_order(985,986,987,988,0)) {} + FIELD_SET(*this, FIX::UnderlyingPayAmount); + FIELD_SET(*this, FIX::UnderlyingCollectAmount); + FIELD_SET(*this, FIX::UnderlyingSettlementDate); + FIELD_SET(*this, FIX::UnderlyingSettlementStatus); + }; + }; + FIELD_SET(*this, FIX::NoPositions); + class NoPositions: public FIX::Group + { + public: + NoPositions() : FIX::Group(702,703,FIX::message_order(703,704,705,706,976,539,0)) {} + FIELD_SET(*this, FIX::PosType); + FIELD_SET(*this, FIX::LongQty); + FIELD_SET(*this, FIX::ShortQty); + FIELD_SET(*this, FIX::PosQtyStatus); + FIELD_SET(*this, FIX::QuantityDate); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::RegistStatus); + FIELD_SET(*this, FIX::DeliveryDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/Quote.h b/linux/include/quickfix/fix50sp1/Quote.h new file mode 100644 index 000000000..f6f59b802 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/Quote.h @@ -0,0 +1,376 @@ +#ifndef FIX50SP1_QUOTE_H +#define FIX50SP1_QUOTE_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class Quote : public Message + { + public: + Quote() : Message(MsgType()) {} + Quote(const FIX::Message& m) : Message(m) {} + Quote(const Message& m) : Message(m) {} + Quote(const Quote& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("S"); } + + Quote( + const FIX::QuoteID& aQuoteID ) + : Message(MsgType()) + { + set(aQuoteID); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteMsgID); + FIELD_SET(*this, FIX::QuoteRespID); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::PrivateQuote); + FIELD_SET(*this, FIX::NoQuoteQualifiers); + class NoQuoteQualifiers: public FIX::Group + { + public: + NoQuoteQualifiers() : FIX::Group(735,695,FIX::message_order(695,0)) {} + FIELD_SET(*this, FIX::QuoteQualifier); + }; + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,687,685,690,587,588,683,539,686,681,684,676,677,678,679,680,654,1067,1068,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegOrderQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegPriceType); + FIELD_SET(*this, FIX::LegBidPx); + FIELD_SET(*this, FIX::LegOfferPx); + FIELD_SET(*this, FIX::LegBenchmarkCurveCurrency); + FIELD_SET(*this, FIX::LegBenchmarkCurveName); + FIELD_SET(*this, FIX::LegBenchmarkCurvePoint); + FIELD_SET(*this, FIX::LegBenchmarkPrice); + FIELD_SET(*this, FIX::LegBenchmarkPriceType); + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegBidForwardPoints); + FIELD_SET(*this, FIX::LegOfferForwardPoints); + }; + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::MktBidPx); + FIELD_SET(*this, FIX::MktOfferPx); + FIELD_SET(*this, FIX::MinBidSize); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::MinOfferSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::BidSwapPoints); + FIELD_SET(*this, FIX::OfferSwapPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::SettlCurrBidFxRate); + FIELD_SET(*this, FIX::SettlCurrOfferFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/QuoteCancel.h b/linux/include/quickfix/fix50sp1/QuoteCancel.h new file mode 100644 index 000000000..c49cf265f --- /dev/null +++ b/linux/include/quickfix/fix50sp1/QuoteCancel.h @@ -0,0 +1,262 @@ +#ifndef FIX50SP1_QUOTECANCEL_H +#define FIX50SP1_QUOTECANCEL_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class QuoteCancel : public Message + { + public: + QuoteCancel() : Message(MsgType()) {} + QuoteCancel(const FIX::Message& m) : Message(m) {} + QuoteCancel(const Message& m) : Message(m) {} + QuoteCancel(const QuoteCancel& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("Z"); } + + QuoteCancel( + const FIX::QuoteCancelType& aQuoteCancelType ) + : Message(MsgType()) + { + set(aQuoteCancelType); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteMsgID); + FIELD_SET(*this, FIX::QuoteCancelType); + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NoQuoteEntries); + class NoQuoteEntries: public FIX::Group + { + public: + NoQuoteEntries() : FIX::Group(295,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,913,914,915,918,788,916,917,919,898,711,555,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/QuoteRequest.h b/linux/include/quickfix/fix50sp1/QuoteRequest.h new file mode 100644 index 000000000..77182f175 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/QuoteRequest.h @@ -0,0 +1,374 @@ +#ifndef FIX50SP1_QUOTEREQUEST_H +#define FIX50SP1_QUOTEREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class QuoteRequest : public Message + { + public: + QuoteRequest() : Message(MsgType()) {} + QuoteRequest(const FIX::Message& m) : Message(m) {} + QuoteRequest(const Message& m) : Message(m) {} + QuoteRequest(const QuoteRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("R"); } + + QuoteRequest( + const FIX::QuoteReqID& aQuoteReqID ) + : Message(MsgType()) + { + set(aQuoteReqID); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::RFQReqID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::PrivateQuote); + FIELD_SET(*this, FIX::RespondentType); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::NoRootPartyIDs); + class NoRootPartyIDs: public FIX::Group + { + public: + NoRootPartyIDs() : FIX::Group(1116,1117,FIX::message_order(1117,1118,1119,1120,0)) {} + FIELD_SET(*this, FIX::RootPartyID); + FIELD_SET(*this, FIX::RootPartyIDSource); + FIELD_SET(*this, FIX::RootPartyRole); + FIELD_SET(*this, FIX::NoRootPartySubIDs); + class NoRootPartySubIDs: public FIX::Group + { + public: + NoRootPartySubIDs() : FIX::Group(1120,1121,FIX::message_order(1121,1122,0)) {} + FIELD_SET(*this, FIX::RootPartySubID); + FIELD_SET(*this, FIX::RootPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,913,914,915,918,788,916,917,919,898,711,140,303,537,336,625,229,54,854,38,152,516,468,469,110,63,64,193,192,15,232,1,660,581,555,735,692,40,62,126,60,218,220,221,222,662,663,699,761,423,44,640,235,236,701,696,697,698,453,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::QuoteRequestType); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,687,685,690,587,588,683,539,676,677,678,679,680,654,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegOrderQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegBenchmarkCurveCurrency); + FIELD_SET(*this, FIX::LegBenchmarkCurveName); + FIELD_SET(*this, FIX::LegBenchmarkCurvePoint); + FIELD_SET(*this, FIX::LegBenchmarkPrice); + FIELD_SET(*this, FIX::LegBenchmarkPriceType); + FIELD_SET(*this, FIX::LegRefID); + }; + FIELD_SET(*this, FIX::NoQuoteQualifiers); + class NoQuoteQualifiers: public FIX::Group + { + public: + NoQuoteQualifiers() : FIX::Group(735,695,FIX::message_order(695,0)) {} + FIELD_SET(*this, FIX::QuoteQualifier); + }; + FIELD_SET(*this, FIX::QuotePriceType); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/QuoteRequestReject.h b/linux/include/quickfix/fix50sp1/QuoteRequestReject.h new file mode 100644 index 000000000..64f8682a9 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/QuoteRequestReject.h @@ -0,0 +1,373 @@ +#ifndef FIX50SP1_QUOTEREQUESTREJECT_H +#define FIX50SP1_QUOTEREQUESTREJECT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class QuoteRequestReject : public Message + { + public: + QuoteRequestReject() : Message(MsgType()) {} + QuoteRequestReject(const FIX::Message& m) : Message(m) {} + QuoteRequestReject(const Message& m) : Message(m) {} + QuoteRequestReject(const QuoteRequestReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AG"); } + + QuoteRequestReject( + const FIX::QuoteReqID& aQuoteReqID, + const FIX::QuoteRequestRejectReason& aQuoteRequestRejectReason ) + : Message(MsgType()) + { + set(aQuoteReqID); + set(aQuoteRequestRejectReason); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::RFQReqID); + FIELD_SET(*this, FIX::QuoteRequestRejectReason); + FIELD_SET(*this, FIX::PrivateQuote); + FIELD_SET(*this, FIX::RespondentType); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::NoRootPartyIDs); + class NoRootPartyIDs: public FIX::Group + { + public: + NoRootPartyIDs() : FIX::Group(1116,1117,FIX::message_order(1117,1118,1119,1120,0)) {} + FIELD_SET(*this, FIX::RootPartyID); + FIELD_SET(*this, FIX::RootPartyIDSource); + FIELD_SET(*this, FIX::RootPartyRole); + FIELD_SET(*this, FIX::NoRootPartySubIDs); + class NoRootPartySubIDs: public FIX::Group + { + public: + NoRootPartySubIDs() : FIX::Group(1120,1121,FIX::message_order(1121,1122,0)) {} + FIELD_SET(*this, FIX::RootPartySubID); + FIELD_SET(*this, FIX::RootPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,913,914,915,918,788,916,917,919,898,711,140,303,537,336,625,229,54,854,38,152,516,468,469,63,64,193,192,15,232,1,660,581,555,735,692,40,126,60,218,220,221,222,662,663,699,761,423,44,640,235,236,701,696,697,698,453,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::QuoteRequestType); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,687,685,690,587,588,683,539,676,677,678,679,680,654,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegOrderQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegBenchmarkCurveCurrency); + FIELD_SET(*this, FIX::LegBenchmarkCurveName); + FIELD_SET(*this, FIX::LegBenchmarkCurvePoint); + FIELD_SET(*this, FIX::LegBenchmarkPrice); + FIELD_SET(*this, FIX::LegBenchmarkPriceType); + FIELD_SET(*this, FIX::LegRefID); + }; + FIELD_SET(*this, FIX::NoQuoteQualifiers); + class NoQuoteQualifiers: public FIX::Group + { + public: + NoQuoteQualifiers() : FIX::Group(735,695,FIX::message_order(695,0)) {} + FIELD_SET(*this, FIX::QuoteQualifier); + }; + FIELD_SET(*this, FIX::QuotePriceType); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/QuoteResponse.h b/linux/include/quickfix/fix50sp1/QuoteResponse.h new file mode 100644 index 000000000..71799eda4 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/QuoteResponse.h @@ -0,0 +1,379 @@ +#ifndef FIX50SP1_QUOTERESPONSE_H +#define FIX50SP1_QUOTERESPONSE_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class QuoteResponse : public Message + { + public: + QuoteResponse() : Message(MsgType()) {} + QuoteResponse(const FIX::Message& m) : Message(m) {} + QuoteResponse(const Message& m) : Message(m) {} + QuoteResponse(const QuoteResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AJ"); } + + QuoteResponse( + const FIX::QuoteRespID& aQuoteRespID, + const FIX::QuoteRespType& aQuoteRespType ) + : Message(MsgType()) + { + set(aQuoteRespID); + set(aQuoteRespType); + } + + FIELD_SET(*this, FIX::QuoteRespID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteMsgID); + FIELD_SET(*this, FIX::QuoteRespType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::NoQuoteQualifiers); + class NoQuoteQualifiers: public FIX::Group + { + public: + NoQuoteQualifiers() : FIX::Group(735,695,FIX::message_order(695,0)) {} + FIELD_SET(*this, FIX::QuoteQualifier); + }; + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,687,685,690,587,588,683,539,686,681,684,676,677,678,679,680,654,1067,1068,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegOrderQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegPriceType); + FIELD_SET(*this, FIX::LegBidPx); + FIELD_SET(*this, FIX::LegOfferPx); + FIELD_SET(*this, FIX::LegBenchmarkCurveCurrency); + FIELD_SET(*this, FIX::LegBenchmarkCurveName); + FIELD_SET(*this, FIX::LegBenchmarkCurvePoint); + FIELD_SET(*this, FIX::LegBenchmarkPrice); + FIELD_SET(*this, FIX::LegBenchmarkPriceType); + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegBidForwardPoints); + FIELD_SET(*this, FIX::LegOfferForwardPoints); + }; + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::MktBidPx); + FIELD_SET(*this, FIX::MktOfferPx); + FIELD_SET(*this, FIX::MinBidSize); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::MinOfferSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::SettlCurrBidFxRate); + FIELD_SET(*this, FIX::SettlCurrOfferFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/QuoteStatusReport.h b/linux/include/quickfix/fix50sp1/QuoteStatusReport.h new file mode 100644 index 000000000..d03283005 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/QuoteStatusReport.h @@ -0,0 +1,359 @@ +#ifndef FIX50SP1_QUOTESTATUSREPORT_H +#define FIX50SP1_QUOTESTATUSREPORT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class QuoteStatusReport : public Message + { + public: + QuoteStatusReport() : Message(MsgType()) {} + QuoteStatusReport(const FIX::Message& m) : Message(m) {} + QuoteStatusReport(const Message& m) : Message(m) {} + QuoteStatusReport(const QuoteStatusReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AI"); } + + FIELD_SET(*this, FIX::QuoteStatusReqID); + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteMsgID); + FIELD_SET(*this, FIX::QuoteRespID); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::QuoteCancelType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,687,685,690,587,588,683,539,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegOrderQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::NoQuoteQualifiers); + class NoQuoteQualifiers: public FIX::Group + { + public: + NoQuoteQualifiers() : FIX::Group(735,695,FIX::message_order(695,0)) {} + FIELD_SET(*this, FIX::QuoteQualifier); + }; + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::MktBidPx); + FIELD_SET(*this, FIX::MktOfferPx); + FIELD_SET(*this, FIX::MinBidSize); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::MinOfferSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::SettlCurrBidFxRate); + FIELD_SET(*this, FIX::SettlCurrOfferFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::QuoteStatus); + FIELD_SET(*this, FIX::QuoteRejectReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/QuoteStatusRequest.h b/linux/include/quickfix/fix50sp1/QuoteStatusRequest.h new file mode 100644 index 000000000..6685d4dbe --- /dev/null +++ b/linux/include/quickfix/fix50sp1/QuoteStatusRequest.h @@ -0,0 +1,247 @@ +#ifndef FIX50SP1_QUOTESTATUSREQUEST_H +#define FIX50SP1_QUOTESTATUSREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class QuoteStatusRequest : public Message + { + public: + QuoteStatusRequest() : Message(MsgType()) {} + QuoteStatusRequest(const FIX::Message& m) : Message(m) {} + QuoteStatusRequest(const Message& m) : Message(m) {} + QuoteStatusRequest(const QuoteStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("a"); } + + FIELD_SET(*this, FIX::QuoteStatusReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/RFQRequest.h b/linux/include/quickfix/fix50sp1/RFQRequest.h new file mode 100644 index 000000000..013dbd3b1 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/RFQRequest.h @@ -0,0 +1,251 @@ +#ifndef FIX50SP1_RFQREQUEST_H +#define FIX50SP1_RFQREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class RFQRequest : public Message + { + public: + RFQRequest() : Message(MsgType()) {} + RFQRequest(const FIX::Message& m) : Message(m) {} + RFQRequest(const Message& m) : Message(m) {} + RFQRequest(const RFQRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AH"); } + + RFQRequest( + const FIX::RFQReqID& aRFQReqID ) + : Message(MsgType()) + { + set(aRFQReqID); + } + + FIELD_SET(*this, FIX::RFQReqID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,711,555,140,303,537,336,625,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::QuoteRequestType); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::PrivateQuote); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/RegistrationInstructions.h b/linux/include/quickfix/fix50sp1/RegistrationInstructions.h new file mode 100644 index 000000000..c010792e2 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/RegistrationInstructions.h @@ -0,0 +1,103 @@ +#ifndef FIX50SP1_REGISTRATIONINSTRUCTIONS_H +#define FIX50SP1_REGISTRATIONINSTRUCTIONS_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class RegistrationInstructions : public Message + { + public: + RegistrationInstructions() : Message(MsgType()) {} + RegistrationInstructions(const FIX::Message& m) : Message(m) {} + RegistrationInstructions(const Message& m) : Message(m) {} + RegistrationInstructions(const RegistrationInstructions& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("o"); } + + RegistrationInstructions( + const FIX::RegistID& aRegistID, + const FIX::RegistTransType& aRegistTransType, + const FIX::RegistRefID& aRegistRefID ) + : Message(MsgType()) + { + set(aRegistID); + set(aRegistTransType); + set(aRegistRefID); + } + + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::RegistTransType); + FIELD_SET(*this, FIX::RegistRefID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::RegistAcctType); + FIELD_SET(*this, FIX::TaxAdvantageType); + FIELD_SET(*this, FIX::OwnershipType); + FIELD_SET(*this, FIX::NoRegistDtls); + class NoRegistDtls: public FIX::Group + { + public: + NoRegistDtls() : FIX::Group(473,509,FIX::message_order(509,511,474,482,539,522,486,475,0)) {} + FIELD_SET(*this, FIX::RegistDtls); + FIELD_SET(*this, FIX::RegistEmail); + FIELD_SET(*this, FIX::MailingDtls); + FIELD_SET(*this, FIX::MailingInst); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OwnerType); + FIELD_SET(*this, FIX::DateOfBirth); + FIELD_SET(*this, FIX::InvestorCountryOfResidence); + }; + FIELD_SET(*this, FIX::NoDistribInsts); + class NoDistribInsts: public FIX::Group + { + public: + NoDistribInsts() : FIX::Group(510,477,FIX::message_order(477,512,478,498,499,500,501,502,0)) {} + FIELD_SET(*this, FIX::DistribPaymentMethod); + FIELD_SET(*this, FIX::DistribPercentage); + FIELD_SET(*this, FIX::CashDistribCurr); + FIELD_SET(*this, FIX::CashDistribAgentName); + FIELD_SET(*this, FIX::CashDistribAgentCode); + FIELD_SET(*this, FIX::CashDistribAgentAcctNumber); + FIELD_SET(*this, FIX::CashDistribPayRef); + FIELD_SET(*this, FIX::CashDistribAgentAcctName); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/RegistrationInstructionsResponse.h b/linux/include/quickfix/fix50sp1/RegistrationInstructionsResponse.h new file mode 100644 index 000000000..86ee4ac9f --- /dev/null +++ b/linux/include/quickfix/fix50sp1/RegistrationInstructionsResponse.h @@ -0,0 +1,61 @@ +#ifndef FIX50SP1_REGISTRATIONINSTRUCTIONSRESPONSE_H +#define FIX50SP1_REGISTRATIONINSTRUCTIONSRESPONSE_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class RegistrationInstructionsResponse : public Message + { + public: + RegistrationInstructionsResponse() : Message(MsgType()) {} + RegistrationInstructionsResponse(const FIX::Message& m) : Message(m) {} + RegistrationInstructionsResponse(const Message& m) : Message(m) {} + RegistrationInstructionsResponse(const RegistrationInstructionsResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("p"); } + + RegistrationInstructionsResponse( + const FIX::RegistID& aRegistID, + const FIX::RegistTransType& aRegistTransType, + const FIX::RegistRefID& aRegistRefID, + const FIX::RegistStatus& aRegistStatus ) + : Message(MsgType()) + { + set(aRegistID); + set(aRegistTransType); + set(aRegistRefID); + set(aRegistStatus); + } + + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::RegistTransType); + FIELD_SET(*this, FIX::RegistRefID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::RegistStatus); + FIELD_SET(*this, FIX::RegistRejReasonCode); + FIELD_SET(*this, FIX::RegistRejReasonText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/RequestForPositions.h b/linux/include/quickfix/fix50sp1/RequestForPositions.h new file mode 100644 index 000000000..6a8a5bcc0 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/RequestForPositions.h @@ -0,0 +1,269 @@ +#ifndef FIX50SP1_REQUESTFORPOSITIONS_H +#define FIX50SP1_REQUESTFORPOSITIONS_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class RequestForPositions : public Message + { + public: + RequestForPositions() : Message(MsgType()) {} + RequestForPositions(const FIX::Message& m) : Message(m) {} + RequestForPositions(const Message& m) : Message(m) {} + RequestForPositions(const RequestForPositions& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AN"); } + + RequestForPositions( + const FIX::PosReqID& aPosReqID, + const FIX::PosReqType& aPosReqType, + const FIX::ClearingBusinessDate& aClearingBusinessDate, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aPosReqID); + set(aPosReqType); + set(aClearingBusinessDate); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::PosReqID); + FIELD_SET(*this, FIX::PosReqType); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/RequestForPositionsAck.h b/linux/include/quickfix/fix50sp1/RequestForPositionsAck.h new file mode 100644 index 000000000..0cde56118 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/RequestForPositionsAck.h @@ -0,0 +1,263 @@ +#ifndef FIX50SP1_REQUESTFORPOSITIONSACK_H +#define FIX50SP1_REQUESTFORPOSITIONSACK_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class RequestForPositionsAck : public Message + { + public: + RequestForPositionsAck() : Message(MsgType()) {} + RequestForPositionsAck(const FIX::Message& m) : Message(m) {} + RequestForPositionsAck(const Message& m) : Message(m) {} + RequestForPositionsAck(const RequestForPositionsAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AO"); } + + RequestForPositionsAck( + const FIX::PosMaintRptID& aPosMaintRptID, + const FIX::PosReqResult& aPosReqResult, + const FIX::PosReqStatus& aPosReqStatus ) + : Message(MsgType()) + { + set(aPosMaintRptID); + set(aPosReqResult); + set(aPosReqStatus); + } + + FIELD_SET(*this, FIX::PosMaintRptID); + FIELD_SET(*this, FIX::PosReqID); + FIELD_SET(*this, FIX::TotalNumPosReports); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::PosReqResult); + FIELD_SET(*this, FIX::PosReqStatus); + FIELD_SET(*this, FIX::PosReqType); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/SecurityDefinition.h b/linux/include/quickfix/fix50sp1/SecurityDefinition.h new file mode 100644 index 000000000..22bc6e67f --- /dev/null +++ b/linux/include/quickfix/fix50sp1/SecurityDefinition.h @@ -0,0 +1,282 @@ +#ifndef FIX50SP1_SECURITYDEFINITION_H +#define FIX50SP1_SECURITYDEFINITION_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class SecurityDefinition : public Message + { + public: + SecurityDefinition() : Message(MsgType()) {} + SecurityDefinition(const FIX::Message& m) : Message(m) {} + SecurityDefinition(const Message& m) : Message(m) {} + SecurityDefinition(const SecurityDefinition& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("d"); } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::SecurityReportID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityResponseType); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoMarketSegments); + class NoMarketSegments: public FIX::Group + { + public: + NoMarketSegments() : FIX::Group(1310,1301,FIX::message_order(1301,1300,1201,0)) {} + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::NoStrikeRules); + class NoStrikeRules: public FIX::Group + { + public: + NoStrikeRules() : FIX::Group(1201,1223,FIX::message_order(1223,1202,1203,1204,1304,1236,0)) {} + FIELD_SET(*this, FIX::StrikeRuleID); + FIELD_SET(*this, FIX::StartStrikePxRange); + FIELD_SET(*this, FIX::EndStrikePxRange); + FIELD_SET(*this, FIX::StrikeIncrement); + FIELD_SET(*this, FIX::StrikeExerciseStyle); + FIELD_SET(*this, FIX::NoMaturityRules); + class NoMaturityRules: public FIX::Group + { + public: + NoMaturityRules() : FIX::Group(1236,1222,FIX::message_order(1222,1303,1302,1241,1226,1229,0)) {} + FIELD_SET(*this, FIX::MaturityRuleID); + FIELD_SET(*this, FIX::MaturityMonthYearFormat); + FIELD_SET(*this, FIX::MaturityMonthYearIncrementUnits); + FIELD_SET(*this, FIX::StartMaturityMonthYear); + FIELD_SET(*this, FIX::EndMaturityMonthYear); + FIELD_SET(*this, FIX::MaturityMonthYearIncrement); + }; + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/SecurityDefinitionRequest.h b/linux/include/quickfix/fix50sp1/SecurityDefinitionRequest.h new file mode 100644 index 000000000..8671640ff --- /dev/null +++ b/linux/include/quickfix/fix50sp1/SecurityDefinitionRequest.h @@ -0,0 +1,258 @@ +#ifndef FIX50SP1_SECURITYDEFINITIONREQUEST_H +#define FIX50SP1_SECURITYDEFINITIONREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class SecurityDefinitionRequest : public Message + { + public: + SecurityDefinitionRequest() : Message(MsgType()) {} + SecurityDefinitionRequest(const FIX::Message& m) : Message(m) {} + SecurityDefinitionRequest(const Message& m) : Message(m) {} + SecurityDefinitionRequest(const SecurityDefinitionRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("c"); } + + SecurityDefinitionRequest( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityRequestType& aSecurityRequestType ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityRequestType); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityRequestType); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::ExpirationCycle); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/SecurityDefinitionUpdateReport.h b/linux/include/quickfix/fix50sp1/SecurityDefinitionUpdateReport.h new file mode 100644 index 000000000..a3af334d7 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/SecurityDefinitionUpdateReport.h @@ -0,0 +1,283 @@ +#ifndef FIX50SP1_SECURITYDEFINITIONUPDATEREPORT_H +#define FIX50SP1_SECURITYDEFINITIONUPDATEREPORT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class SecurityDefinitionUpdateReport : public Message + { + public: + SecurityDefinitionUpdateReport() : Message(MsgType()) {} + SecurityDefinitionUpdateReport(const FIX::Message& m) : Message(m) {} + SecurityDefinitionUpdateReport(const Message& m) : Message(m) {} + SecurityDefinitionUpdateReport(const SecurityDefinitionUpdateReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BP"); } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::SecurityReportID); + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityResponseType); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SecurityUpdateAction); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoMarketSegments); + class NoMarketSegments: public FIX::Group + { + public: + NoMarketSegments() : FIX::Group(1310,1301,FIX::message_order(1301,1300,1201,0)) {} + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::NoStrikeRules); + class NoStrikeRules: public FIX::Group + { + public: + NoStrikeRules() : FIX::Group(1201,1223,FIX::message_order(1223,1202,1203,1204,1304,1236,0)) {} + FIELD_SET(*this, FIX::StrikeRuleID); + FIELD_SET(*this, FIX::StartStrikePxRange); + FIELD_SET(*this, FIX::EndStrikePxRange); + FIELD_SET(*this, FIX::StrikeIncrement); + FIELD_SET(*this, FIX::StrikeExerciseStyle); + FIELD_SET(*this, FIX::NoMaturityRules); + class NoMaturityRules: public FIX::Group + { + public: + NoMaturityRules() : FIX::Group(1236,1222,FIX::message_order(1222,1303,1302,1241,1226,1229,0)) {} + FIELD_SET(*this, FIX::MaturityRuleID); + FIELD_SET(*this, FIX::MaturityMonthYearFormat); + FIELD_SET(*this, FIX::MaturityMonthYearIncrementUnits); + FIELD_SET(*this, FIX::StartMaturityMonthYear); + FIELD_SET(*this, FIX::EndMaturityMonthYear); + FIELD_SET(*this, FIX::MaturityMonthYearIncrement); + }; + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/SecurityList.h b/linux/include/quickfix/fix50sp1/SecurityList.h new file mode 100644 index 000000000..68aa2066b --- /dev/null +++ b/linux/include/quickfix/fix50sp1/SecurityList.h @@ -0,0 +1,307 @@ +#ifndef FIX50SP1_SECURITYLIST_H +#define FIX50SP1_SECURITYLIST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class SecurityList : public Message + { + public: + SecurityList() : Message(MsgType()) {} + SecurityList(const FIX::Message& m) : Message(m) {} + SecurityList(const Message& m) : Message(m) {} + SecurityList(const SecurityList& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("y"); } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::SecurityReportID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityRequestResult); + FIELD_SET(*this, FIX::TotNoRelatedSym); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,668,869,913,914,915,918,788,916,917,919,898,1201,711,15,232,555,218,220,221,222,662,663,699,761,235,236,701,696,697,698,58,354,355,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoStrikeRules); + class NoStrikeRules: public FIX::Group + { + public: + NoStrikeRules() : FIX::Group(1201,1223,FIX::message_order(1223,1202,1203,1204,1304,1236,0)) {} + FIELD_SET(*this, FIX::StrikeRuleID); + FIELD_SET(*this, FIX::StartStrikePxRange); + FIELD_SET(*this, FIX::EndStrikePxRange); + FIELD_SET(*this, FIX::StrikeIncrement); + FIELD_SET(*this, FIX::StrikeExerciseStyle); + FIELD_SET(*this, FIX::NoMaturityRules); + class NoMaturityRules: public FIX::Group + { + public: + NoMaturityRules() : FIX::Group(1236,1222,FIX::message_order(1222,1303,1302,1241,1226,1229,0)) {} + FIELD_SET(*this, FIX::MaturityRuleID); + FIELD_SET(*this, FIX::MaturityMonthYearFormat); + FIELD_SET(*this, FIX::MaturityMonthYearIncrementUnits); + FIELD_SET(*this, FIX::StartMaturityMonthYear); + FIELD_SET(*this, FIX::EndMaturityMonthYear); + FIELD_SET(*this, FIX::MaturityMonthYearIncrement); + }; + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,690,587,683,676,677,678,679,680,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::LegBenchmarkCurveCurrency); + FIELD_SET(*this, FIX::LegBenchmarkCurveName); + FIELD_SET(*this, FIX::LegBenchmarkCurvePoint); + FIELD_SET(*this, FIX::LegBenchmarkPrice); + FIELD_SET(*this, FIX::LegBenchmarkPriceType); + }; + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/SecurityListRequest.h b/linux/include/quickfix/fix50sp1/SecurityListRequest.h new file mode 100644 index 000000000..41b5886ec --- /dev/null +++ b/linux/include/quickfix/fix50sp1/SecurityListRequest.h @@ -0,0 +1,244 @@ +#ifndef FIX50SP1_SECURITYLISTREQUEST_H +#define FIX50SP1_SECURITYLISTREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class SecurityListRequest : public Message + { + public: + SecurityListRequest() : Message(MsgType()) {} + SecurityListRequest(const FIX::Message& m) : Message(m) {} + SecurityListRequest(const Message& m) : Message(m) {} + SecurityListRequest(const SecurityListRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("x"); } + + SecurityListRequest( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityListRequestType& aSecurityListRequestType ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityListRequestType); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityListRequestType); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/SecurityListUpdateReport.h b/linux/include/quickfix/fix50sp1/SecurityListUpdateReport.h new file mode 100644 index 000000000..9e5a92961 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/SecurityListUpdateReport.h @@ -0,0 +1,310 @@ +#ifndef FIX50SP1_SECURITYLISTUPDATEREPORT_H +#define FIX50SP1_SECURITYLISTUPDATEREPORT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class SecurityListUpdateReport : public Message + { + public: + SecurityListUpdateReport() : Message(MsgType()) {} + SecurityListUpdateReport(const FIX::Message& m) : Message(m) {} + SecurityListUpdateReport(const Message& m) : Message(m) {} + SecurityListUpdateReport(const SecurityListUpdateReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BK"); } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::SecurityReportID); + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityRequestResult); + FIELD_SET(*this, FIX::TotNoRelatedSym); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SecurityUpdateAction); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,1324,FIX::message_order(1324,55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,668,869,913,914,915,918,788,916,917,919,898,1201,711,15,232,555,218,220,221,222,662,663,699,761,235,236,701,696,697,698,58,354,355,0)) {} + FIELD_SET(*this, FIX::ListUpdateAction); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoStrikeRules); + class NoStrikeRules: public FIX::Group + { + public: + NoStrikeRules() : FIX::Group(1201,1223,FIX::message_order(1223,1202,1203,1204,1304,1236,0)) {} + FIELD_SET(*this, FIX::StrikeRuleID); + FIELD_SET(*this, FIX::StartStrikePxRange); + FIELD_SET(*this, FIX::EndStrikePxRange); + FIELD_SET(*this, FIX::StrikeIncrement); + FIELD_SET(*this, FIX::StrikeExerciseStyle); + FIELD_SET(*this, FIX::NoMaturityRules); + class NoMaturityRules: public FIX::Group + { + public: + NoMaturityRules() : FIX::Group(1236,1222,FIX::message_order(1222,1303,1302,1241,1226,1229,0)) {} + FIELD_SET(*this, FIX::MaturityRuleID); + FIELD_SET(*this, FIX::MaturityMonthYearFormat); + FIELD_SET(*this, FIX::MaturityMonthYearIncrementUnits); + FIELD_SET(*this, FIX::StartMaturityMonthYear); + FIELD_SET(*this, FIX::EndMaturityMonthYear); + FIELD_SET(*this, FIX::MaturityMonthYearIncrement); + }; + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,690,587,683,676,677,678,679,680,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::LegBenchmarkCurveCurrency); + FIELD_SET(*this, FIX::LegBenchmarkCurveName); + FIELD_SET(*this, FIX::LegBenchmarkCurvePoint); + FIELD_SET(*this, FIX::LegBenchmarkPrice); + FIELD_SET(*this, FIX::LegBenchmarkPriceType); + }; + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/SecurityStatus.h b/linux/include/quickfix/fix50sp1/SecurityStatus.h new file mode 100644 index 000000000..730c47ca9 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/SecurityStatus.h @@ -0,0 +1,246 @@ +#ifndef FIX50SP1_SECURITYSTATUS_H +#define FIX50SP1_SECURITYSTATUS_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class SecurityStatus : public Message + { + public: + SecurityStatus() : Message(MsgType()) {} + SecurityStatus(const FIX::Message& m) : Message(m) {} + SecurityStatus(const Message& m) : Message(m) {} + SecurityStatus(const SecurityStatus& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("f"); } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::SecurityStatusReqID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::SecurityTradingStatus); + FIELD_SET(*this, FIX::SecurityTradingEvent); + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::HaltReasonChar); + FIELD_SET(*this, FIX::InViewOfCommon); + FIELD_SET(*this, FIX::DueToRelated); + FIELD_SET(*this, FIX::MDBookType); + FIELD_SET(*this, FIX::MarketDepth); + FIELD_SET(*this, FIX::BuyVolume); + FIELD_SET(*this, FIX::SellVolume); + FIELD_SET(*this, FIX::HighPx); + FIELD_SET(*this, FIX::LowPx); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Adjustment); + FIELD_SET(*this, FIX::FirstPx); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/SecurityStatusRequest.h b/linux/include/quickfix/fix50sp1/SecurityStatusRequest.h new file mode 100644 index 000000000..d9b2d7d94 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/SecurityStatusRequest.h @@ -0,0 +1,231 @@ +#ifndef FIX50SP1_SECURITYSTATUSREQUEST_H +#define FIX50SP1_SECURITYSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class SecurityStatusRequest : public Message + { + public: + SecurityStatusRequest() : Message(MsgType()) {} + SecurityStatusRequest(const FIX::Message& m) : Message(m) {} + SecurityStatusRequest(const Message& m) : Message(m) {} + SecurityStatusRequest(const SecurityStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("e"); } + + SecurityStatusRequest( + const FIX::SecurityStatusReqID& aSecurityStatusReqID, + const FIX::SubscriptionRequestType& aSubscriptionRequestType ) + : Message(MsgType()) + { + set(aSecurityStatusReqID); + set(aSubscriptionRequestType); + } + + FIELD_SET(*this, FIX::SecurityStatusReqID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/SecurityTypeRequest.h b/linux/include/quickfix/fix50sp1/SecurityTypeRequest.h new file mode 100644 index 000000000..b49264e50 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/SecurityTypeRequest.h @@ -0,0 +1,40 @@ +#ifndef FIX50SP1_SECURITYTYPEREQUEST_H +#define FIX50SP1_SECURITYTYPEREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class SecurityTypeRequest : public Message + { + public: + SecurityTypeRequest() : Message(MsgType()) {} + SecurityTypeRequest(const FIX::Message& m) : Message(m) {} + SecurityTypeRequest(const Message& m) : Message(m) {} + SecurityTypeRequest(const SecurityTypeRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("v"); } + + SecurityTypeRequest( + const FIX::SecurityReqID& aSecurityReqID ) + : Message(MsgType()) + { + set(aSecurityReqID); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/SecurityTypes.h b/linux/include/quickfix/fix50sp1/SecurityTypes.h new file mode 100644 index 000000000..8d651dd11 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/SecurityTypes.h @@ -0,0 +1,60 @@ +#ifndef FIX50SP1_SECURITYTYPES_H +#define FIX50SP1_SECURITYTYPES_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class SecurityTypes : public Message + { + public: + SecurityTypes() : Message(MsgType()) {} + SecurityTypes(const FIX::Message& m) : Message(m) {} + SecurityTypes(const Message& m) : Message(m) {} + SecurityTypes(const SecurityTypes& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("w"); } + + SecurityTypes( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityResponseID& aSecurityResponseID, + const FIX::SecurityResponseType& aSecurityResponseType ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityResponseID); + set(aSecurityResponseType); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityResponseType); + FIELD_SET(*this, FIX::TotNoSecurityTypes); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoSecurityTypes); + class NoSecurityTypes: public FIX::Group + { + public: + NoSecurityTypes() : FIX::Group(558,167,FIX::message_order(167,762,460,461,0)) {} + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/SettlementInstructionRequest.h b/linux/include/quickfix/fix50sp1/SettlementInstructionRequest.h new file mode 100644 index 000000000..b3eaf1e8d --- /dev/null +++ b/linux/include/quickfix/fix50sp1/SettlementInstructionRequest.h @@ -0,0 +1,63 @@ +#ifndef FIX50SP1_SETTLEMENTINSTRUCTIONREQUEST_H +#define FIX50SP1_SETTLEMENTINSTRUCTIONREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class SettlementInstructionRequest : public Message + { + public: + SettlementInstructionRequest() : Message(MsgType()) {} + SettlementInstructionRequest(const FIX::Message& m) : Message(m) {} + SettlementInstructionRequest(const Message& m) : Message(m) {} + SettlementInstructionRequest(const SettlementInstructionRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AV"); } + + SettlementInstructionRequest( + const FIX::SettlInstReqID& aSettlInstReqID, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aSettlInstReqID); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::SettlInstReqID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::LastUpdateTime); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/SettlementInstructions.h b/linux/include/quickfix/fix50sp1/SettlementInstructions.h new file mode 100644 index 000000000..7ed32618d --- /dev/null +++ b/linux/include/quickfix/fix50sp1/SettlementInstructions.h @@ -0,0 +1,89 @@ +#ifndef FIX50SP1_SETTLEMENTINSTRUCTIONS_H +#define FIX50SP1_SETTLEMENTINSTRUCTIONS_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class SettlementInstructions : public Message + { + public: + SettlementInstructions() : Message(MsgType()) {} + SettlementInstructions(const FIX::Message& m) : Message(m) {} + SettlementInstructions(const Message& m) : Message(m) {} + SettlementInstructions(const SettlementInstructions& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("T"); } + + SettlementInstructions( + const FIX::SettlInstMsgID& aSettlInstMsgID, + const FIX::SettlInstMode& aSettlInstMode, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aSettlInstMsgID); + set(aSettlInstMode); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::SettlInstMsgID); + FIELD_SET(*this, FIX::SettlInstReqID); + FIELD_SET(*this, FIX::SettlInstMode); + FIELD_SET(*this, FIX::SettlInstReqRejCode); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoSettlInst); + class NoSettlInst: public FIX::Group + { + public: + NoSettlInst() : FIX::Group(778,162,FIX::message_order(162,163,214,453,54,460,167,461,120,168,126,779,172,169,170,171,492,476,488,489,503,490,491,504,505,0)) {} + FIELD_SET(*this, FIX::SettlInstID); + FIELD_SET(*this, FIX::SettlInstTransType); + FIELD_SET(*this, FIX::SettlInstRefID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::LastUpdateTime); + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + FIELD_SET(*this, FIX::PaymentMethod); + FIELD_SET(*this, FIX::PaymentRef); + FIELD_SET(*this, FIX::CardHolderName); + FIELD_SET(*this, FIX::CardNumber); + FIELD_SET(*this, FIX::CardStartDate); + FIELD_SET(*this, FIX::CardExpDate); + FIELD_SET(*this, FIX::CardIssNum); + FIELD_SET(*this, FIX::PaymentDate); + FIELD_SET(*this, FIX::PaymentRemitterID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/SettlementObligationReport.h b/linux/include/quickfix/fix50sp1/SettlementObligationReport.h new file mode 100644 index 000000000..8de1d2e1a --- /dev/null +++ b/linux/include/quickfix/fix50sp1/SettlementObligationReport.h @@ -0,0 +1,171 @@ +#ifndef FIX50SP1_SETTLEMENTOBLIGATIONREPORT_H +#define FIX50SP1_SETTLEMENTOBLIGATIONREPORT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class SettlementObligationReport : public Message + { + public: + SettlementObligationReport() : Message(MsgType()) {} + SettlementObligationReport(const FIX::Message& m) : Message(m) {} + SettlementObligationReport(const Message& m) : Message(m) {} + SettlementObligationReport(const SettlementObligationReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BQ"); } + + SettlementObligationReport( + const FIX::SettlObligMsgID& aSettlObligMsgID, + const FIX::SettlObligMode& aSettlObligMode ) + : Message(MsgType()) + { + set(aSettlObligMsgID); + set(aSettlObligMode); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SettlementCycleNo); + FIELD_SET(*this, FIX::SettlObligMsgID); + FIELD_SET(*this, FIX::SettlObligMode); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoSettlOblig); + class NoSettlOblig: public FIX::Group + { + public: + NoSettlOblig() : FIX::Group(1165,430,FIX::message_order(430,1161,1162,1163,1157,119,15,120,155,64,55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,453,168,126,779,1158,0)) {} + FIELD_SET(*this, FIX::NetGrossInd); + FIELD_SET(*this, FIX::SettlObligID); + FIELD_SET(*this, FIX::SettlObligTransType); + FIELD_SET(*this, FIX::SettlObligRefID); + FIELD_SET(*this, FIX::CcyAmt); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::LastUpdateTime); + FIELD_SET(*this, FIX::NoSettlDetails); + class NoSettlDetails: public FIX::Group + { + public: + NoSettlDetails() : FIX::Group(1158,1164,FIX::message_order(1164,781,0)) {} + FIELD_SET(*this, FIX::SettlObligSource); + FIELD_SET(*this, FIX::NoSettlPartyIDs); + class NoSettlPartyIDs: public FIX::Group + { + public: + NoSettlPartyIDs() : FIX::Group(781,782,FIX::message_order(782,783,784,801,0)) {} + FIELD_SET(*this, FIX::SettlPartyID); + FIELD_SET(*this, FIX::SettlPartyIDSource); + FIELD_SET(*this, FIX::SettlPartyRole); + FIELD_SET(*this, FIX::NoSettlPartySubIDs); + class NoSettlPartySubIDs: public FIX::Group + { + public: + NoSettlPartySubIDs() : FIX::Group(801,785,FIX::message_order(785,786,0)) {} + FIELD_SET(*this, FIX::SettlPartySubID); + FIELD_SET(*this, FIX::SettlPartySubIDType); + }; + }; + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/TradeCaptureReport.h b/linux/include/quickfix/fix50sp1/TradeCaptureReport.h new file mode 100644 index 000000000..274f49401 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/TradeCaptureReport.h @@ -0,0 +1,633 @@ +#ifndef FIX50SP1_TRADECAPTUREREPORT_H +#define FIX50SP1_TRADECAPTUREREPORT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class TradeCaptureReport : public Message + { + public: + TradeCaptureReport() : Message(MsgType()) {} + TradeCaptureReport(const FIX::Message& m) : Message(m) {} + TradeCaptureReport(const Message& m) : Message(m) {} + TradeCaptureReport(const TradeCaptureReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AE"); } + + TradeCaptureReport( + const FIX::LastQty& aLastQty, + const FIX::LastPx& aLastPx ) + : Message(MsgType()) + { + set(aLastQty); + set(aLastPx); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::TradeID); + FIELD_SET(*this, FIX::SecondaryTradeID); + FIELD_SET(*this, FIX::FirmTradeID); + FIELD_SET(*this, FIX::SecondaryFirmTradeID); + FIELD_SET(*this, FIX::TradeReportTransType); + FIELD_SET(*this, FIX::TradeReportType); + FIELD_SET(*this, FIX::TrdRptStatus); + FIELD_SET(*this, FIX::TradeRequestID); + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::TrdSubType); + FIELD_SET(*this, FIX::SecondaryTrdType); + FIELD_SET(*this, FIX::TradeHandlingInstr); + FIELD_SET(*this, FIX::OrigTradeHandlingInstr); + FIELD_SET(*this, FIX::OrigTradeDate); + FIELD_SET(*this, FIX::OrigTradeID); + FIELD_SET(*this, FIX::OrigSecondaryTradeID); + FIELD_SET(*this, FIX::TransferReason); + FIELD_SET(*this, FIX::ExecType); + FIELD_SET(*this, FIX::TotNumTradeReports); + FIELD_SET(*this, FIX::LastRptRequested); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TradeReportRefID); + FIELD_SET(*this, FIX::SecondaryTradeReportRefID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + FIELD_SET(*this, FIX::TradeLinkID); + FIELD_SET(*this, FIX::TrdMatchID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::ExecRestatementReason); + FIELD_SET(*this, FIX::PreviouslyReported); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::NoRootPartyIDs); + class NoRootPartyIDs: public FIX::Group + { + public: + NoRootPartyIDs() : FIX::Group(1116,1117,FIX::message_order(1117,1118,1119,1120,0)) {} + FIELD_SET(*this, FIX::RootPartyID); + FIELD_SET(*this, FIX::RootPartyIDSource); + FIELD_SET(*this, FIX::RootPartyRole); + FIELD_SET(*this, FIX::NoRootPartySubIDs); + class NoRootPartySubIDs: public FIX::Group + { + public: + NoRootPartySubIDs() : FIX::Group(1120,1121,FIX::message_order(1121,1122,0)) {} + FIELD_SET(*this, FIX::RootPartySubID); + FIELD_SET(*this, FIX::RootPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AsOfIndicator); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::UnderlyingTradingSessionID); + FIELD_SET(*this, FIX::UnderlyingTradingSessionSubID); + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::CalculatedCcyLastQty); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::LastSpotRate); + FIELD_SET(*this, FIX::LastForwardPoints); + FIELD_SET(*this, FIX::LastSwapPoints); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::AvgPxIndicator); + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::TradeLegRefID); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,687,690,990,1152,683,564,565,539,654,587,588,637,675,1073,1074,1075,1379,1381,1383,1384,1418,1342,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegReportID); + FIELD_SET(*this, FIX::LegNumber); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::LegPositionEffect); + FIELD_SET(*this, FIX::LegCoveredOrUncovered); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::LegLastPx); + FIELD_SET(*this, FIX::LegSettlCurrency); + FIELD_SET(*this, FIX::LegLastForwardPoints); + FIELD_SET(*this, FIX::LegCalculatedCcyLastQty); + FIELD_SET(*this, FIX::LegGrossTradeAmt); + FIELD_SET(*this, FIX::LegVolatility); + FIELD_SET(*this, FIX::LegDividendYield); + FIELD_SET(*this, FIX::LegCurrencyRatio); + FIELD_SET(*this, FIX::LegExecInst); + FIELD_SET(*this, FIX::LegLastQty); + FIELD_SET(*this, FIX::NoOfLegUnderlyings); + class NoOfLegUnderlyings: public FIX::Group + { + public: + NoOfLegUnderlyings() : FIX::Group(1342,1330,FIX::message_order(1330,1331,1332,1333,1344,1337,1338,1339,1345,1405,1340,1391,1343,1341,1392,0)) {} + FIELD_SET(*this, FIX::UnderlyingLegSymbol); + FIELD_SET(*this, FIX::UnderlyingLegSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingLegSecurityID); + FIELD_SET(*this, FIX::UnderlyingLegSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingLegCFICode); + FIELD_SET(*this, FIX::UnderlyingLegSecurityType); + FIELD_SET(*this, FIX::UnderlyingLegSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingLegMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingLegMaturityDate); + FIELD_SET(*this, FIX::UnderlyingLegMaturityTime); + FIELD_SET(*this, FIX::UnderlyingLegStrikePrice); + FIELD_SET(*this, FIX::UnderlyingLegOptAttribute); + FIELD_SET(*this, FIX::UnderlyingLegPutOrCall); + FIELD_SET(*this, FIX::UnderlyingLegSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingLegSecurityDesc); + }; + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::UnderlyingSettlementDate); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::OrderCategory); + FIELD_SET(*this, FIX::NoSides); + class NoSides: public FIX::Group + { + public: + NoSides() : FIX::Group(552,54,FIX::message_order(54,37,198,11,19,526,66,1009,1005,1006,1007,83,1008,430,1154,1155,453,1,660,581,81,1093,575,576,578,579,821,376,377,528,529,582,40,18,483,336,625,943,12,13,479,497,157,230,158,159,738,920,921,922,238,237,118,119,155,156,77,58,354,355,752,518,232,136,825,826,591,70,78,1016,1158,1072,1057,1139,0)) {} + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ExecRefID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::SideQty); + FIELD_SET(*this, FIX::SideTradeReportID); + FIELD_SET(*this, FIX::SideFillStationCd); + FIELD_SET(*this, FIX::SideReasonCd); + FIELD_SET(*this, FIX::RptSeq); + FIELD_SET(*this, FIX::SideTrdSubTyp); + FIELD_SET(*this, FIX::NetGrossInd); + FIELD_SET(*this, FIX::SideCurrency); + FIELD_SET(*this, FIX::SideSettlCurrency); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::LotType); + FIELD_SET(*this, FIX::OddLot); + FIELD_SET(*this, FIX::NoClearingInstructions); + class NoClearingInstructions: public FIX::Group + { + public: + NoClearingInstructions() : FIX::Group(576,577,FIX::message_order(577,0)) {} + FIELD_SET(*this, FIX::ClearingInstruction); + }; + FIELD_SET(*this, FIX::TradeInputSource); + FIELD_SET(*this, FIX::TradeInputDevice); + FIELD_SET(*this, FIX::OrderInputDevice); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::TransBkdTime); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TimeBracket); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::ExDate); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::SideMultiLegReportingType); + FIELD_SET(*this, FIX::NoContAmts); + class NoContAmts: public FIX::Group + { + public: + NoContAmts() : FIX::Group(518,519,FIX::message_order(519,520,521,0)) {} + FIELD_SET(*this, FIX::ContAmtType); + FIELD_SET(*this, FIX::ContAmtValue); + FIELD_SET(*this, FIX::ContAmtCurr); + }; + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::ExchangeRule); + FIELD_SET(*this, FIX::TradeAllocIndicator); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,756,80,993,1002,989,1136,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + FIELD_SET(*this, FIX::AllocCustomerCapacity); + FIELD_SET(*this, FIX::AllocMethod); + FIELD_SET(*this, FIX::SecondaryIndividualAllocID); + FIELD_SET(*this, FIX::AllocClearingFeeIndicator); + }; + FIELD_SET(*this, FIX::NoSideTrdRegTS); + class NoSideTrdRegTS: public FIX::Group + { + public: + NoSideTrdRegTS() : FIX::Group(1016,1012,FIX::message_order(1012,1013,1014,0)) {} + FIELD_SET(*this, FIX::SideTrdRegTimestamp); + FIELD_SET(*this, FIX::SideTrdRegTimestampType); + FIELD_SET(*this, FIX::SideTrdRegTimestampSrc); + }; + FIELD_SET(*this, FIX::NoSettlDetails); + class NoSettlDetails: public FIX::Group + { + public: + NoSettlDetails() : FIX::Group(1158,1164,FIX::message_order(1164,781,0)) {} + FIELD_SET(*this, FIX::SettlObligSource); + FIELD_SET(*this, FIX::NoSettlPartyIDs); + class NoSettlPartyIDs: public FIX::Group + { + public: + NoSettlPartyIDs() : FIX::Group(781,782,FIX::message_order(782,783,784,801,0)) {} + FIELD_SET(*this, FIX::SettlPartyID); + FIELD_SET(*this, FIX::SettlPartyIDSource); + FIELD_SET(*this, FIX::SettlPartyRole); + FIELD_SET(*this, FIX::NoSettlPartySubIDs); + class NoSettlPartySubIDs: public FIX::Group + { + public: + NoSettlPartySubIDs() : FIX::Group(801,785,FIX::message_order(785,786,0)) {} + FIELD_SET(*this, FIX::SettlPartySubID); + FIELD_SET(*this, FIX::SettlPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::SideGrossTradeAmt); + FIELD_SET(*this, FIX::AggressorIndicator); + FIELD_SET(*this, FIX::ExchangeSpecialInstructions); + }; + FIELD_SET(*this, FIX::Volatility); + FIELD_SET(*this, FIX::DividendYield); + FIELD_SET(*this, FIX::RiskFreeRate); + FIELD_SET(*this, FIX::CurrencyRatio); + FIELD_SET(*this, FIX::CopyMsgIndicator); + FIELD_SET(*this, FIX::NoTrdRepIndicators); + class NoTrdRepIndicators: public FIX::Group + { + public: + NoTrdRepIndicators() : FIX::Group(1387,1388,FIX::message_order(1388,1389,0)) {} + FIELD_SET(*this, FIX::TrdRepPartyRole); + FIELD_SET(*this, FIX::TrdRepIndicator); + }; + FIELD_SET(*this, FIX::PublishTrdIndicator); + FIELD_SET(*this, FIX::TradePublishIndicator); + FIELD_SET(*this, FIX::ShortSaleReason); + FIELD_SET(*this, FIX::TierCode); + FIELD_SET(*this, FIX::MessageEventSource); + FIELD_SET(*this, FIX::LastUpdateTime); + FIELD_SET(*this, FIX::RndPx); + FIELD_SET(*this, FIX::TZTransactTime); + FIELD_SET(*this, FIX::ReportedPxDiff); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::RejectText); + FIELD_SET(*this, FIX::FeeMultiplier); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/TradeCaptureReportAck.h b/linux/include/quickfix/fix50sp1/TradeCaptureReportAck.h new file mode 100644 index 000000000..ec8939e4f --- /dev/null +++ b/linux/include/quickfix/fix50sp1/TradeCaptureReportAck.h @@ -0,0 +1,582 @@ +#ifndef FIX50SP1_TRADECAPTUREREPORTACK_H +#define FIX50SP1_TRADECAPTUREREPORTACK_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class TradeCaptureReportAck : public Message + { + public: + TradeCaptureReportAck() : Message(MsgType()) {} + TradeCaptureReportAck(const FIX::Message& m) : Message(m) {} + TradeCaptureReportAck(const Message& m) : Message(m) {} + TradeCaptureReportAck(const TradeCaptureReportAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AR"); } + + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::TradeID); + FIELD_SET(*this, FIX::SecondaryTradeID); + FIELD_SET(*this, FIX::FirmTradeID); + FIELD_SET(*this, FIX::SecondaryFirmTradeID); + FIELD_SET(*this, FIX::TradeReportTransType); + FIELD_SET(*this, FIX::TradeReportType); + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::TrdSubType); + FIELD_SET(*this, FIX::SecondaryTrdType); + FIELD_SET(*this, FIX::TradeHandlingInstr); + FIELD_SET(*this, FIX::OrigTradeHandlingInstr); + FIELD_SET(*this, FIX::OrigTradeDate); + FIELD_SET(*this, FIX::OrigTradeID); + FIELD_SET(*this, FIX::OrigSecondaryTradeID); + FIELD_SET(*this, FIX::TransferReason); + FIELD_SET(*this, FIX::NoRootPartyIDs); + class NoRootPartyIDs: public FIX::Group + { + public: + NoRootPartyIDs() : FIX::Group(1116,1117,FIX::message_order(1117,1118,1119,1120,0)) {} + FIELD_SET(*this, FIX::RootPartyID); + FIELD_SET(*this, FIX::RootPartyIDSource); + FIELD_SET(*this, FIX::RootPartyRole); + FIELD_SET(*this, FIX::NoRootPartySubIDs); + class NoRootPartySubIDs: public FIX::Group + { + public: + NoRootPartySubIDs() : FIX::Group(1120,1121,FIX::message_order(1121,1122,0)) {} + FIELD_SET(*this, FIX::RootPartySubID); + FIELD_SET(*this, FIX::RootPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::ExecType); + FIELD_SET(*this, FIX::TradeReportRefID); + FIELD_SET(*this, FIX::SecondaryTradeReportRefID); + FIELD_SET(*this, FIX::TrdRptStatus); + FIELD_SET(*this, FIX::TradeReportRejectReason); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TradeLinkID); + FIELD_SET(*this, FIX::TrdMatchID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::ExecRestatementReason); + FIELD_SET(*this, FIX::PreviouslyReported); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::UnderlyingTradingSessionID); + FIELD_SET(*this, FIX::UnderlyingTradingSessionSubID); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::CalculatedCcyLastQty); + FIELD_SET(*this, FIX::LastSwapPoints); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::LastSpotRate); + FIELD_SET(*this, FIX::LastForwardPoints); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::AvgPxIndicator); + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::TradeLegRefID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::CopyMsgIndicator); + FIELD_SET(*this, FIX::NoTrdRepIndicators); + class NoTrdRepIndicators: public FIX::Group + { + public: + NoTrdRepIndicators() : FIX::Group(1387,1388,FIX::message_order(1388,1389,0)) {} + FIELD_SET(*this, FIX::TrdRepPartyRole); + FIELD_SET(*this, FIX::TrdRepIndicator); + }; + FIELD_SET(*this, FIX::PublishTrdIndicator); + FIELD_SET(*this, FIX::TradePublishIndicator); + FIELD_SET(*this, FIX::ShortSaleReason); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,687,690,990,1152,683,564,565,539,654,587,588,637,675,1073,1074,1075,1379,1381,1383,1384,1418,1342,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegReportID); + FIELD_SET(*this, FIX::LegNumber); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::LegPositionEffect); + FIELD_SET(*this, FIX::LegCoveredOrUncovered); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::LegLastPx); + FIELD_SET(*this, FIX::LegSettlCurrency); + FIELD_SET(*this, FIX::LegLastForwardPoints); + FIELD_SET(*this, FIX::LegCalculatedCcyLastQty); + FIELD_SET(*this, FIX::LegGrossTradeAmt); + FIELD_SET(*this, FIX::LegVolatility); + FIELD_SET(*this, FIX::LegDividendYield); + FIELD_SET(*this, FIX::LegCurrencyRatio); + FIELD_SET(*this, FIX::LegExecInst); + FIELD_SET(*this, FIX::LegLastQty); + FIELD_SET(*this, FIX::NoOfLegUnderlyings); + class NoOfLegUnderlyings: public FIX::Group + { + public: + NoOfLegUnderlyings() : FIX::Group(1342,1330,FIX::message_order(1330,1331,1332,1333,1344,1337,1338,1339,1345,1405,1340,1391,1343,1341,1392,0)) {} + FIELD_SET(*this, FIX::UnderlyingLegSymbol); + FIELD_SET(*this, FIX::UnderlyingLegSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingLegSecurityID); + FIELD_SET(*this, FIX::UnderlyingLegSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingLegCFICode); + FIELD_SET(*this, FIX::UnderlyingLegSecurityType); + FIELD_SET(*this, FIX::UnderlyingLegSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingLegMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingLegMaturityDate); + FIELD_SET(*this, FIX::UnderlyingLegMaturityTime); + FIELD_SET(*this, FIX::UnderlyingLegStrikePrice); + FIELD_SET(*this, FIX::UnderlyingLegOptAttribute); + FIELD_SET(*this, FIX::UnderlyingLegPutOrCall); + FIELD_SET(*this, FIX::UnderlyingLegSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingLegSecurityDesc); + }; + }; + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::AsOfIndicator); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::TierCode); + FIELD_SET(*this, FIX::MessageEventSource); + FIELD_SET(*this, FIX::LastUpdateTime); + FIELD_SET(*this, FIX::RndPx); + FIELD_SET(*this, FIX::NoSides); + class NoSides: public FIX::Group + { + public: + NoSides() : FIX::Group(552,54,FIX::message_order(54,37,198,11,526,66,453,1,660,581,81,575,1093,576,578,579,821,376,377,528,529,582,40,18,483,336,625,943,430,1154,1155,12,13,479,497,157,230,158,159,738,920,921,922,238,237,118,119,155,156,77,752,518,232,136,825,1158,826,591,70,78,1072,1057,1009,1005,1006,1007,83,1008,1016,0)) {} + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::OddLot); + FIELD_SET(*this, FIX::LotType); + FIELD_SET(*this, FIX::NoClearingInstructions); + class NoClearingInstructions: public FIX::Group + { + public: + NoClearingInstructions() : FIX::Group(576,577,FIX::message_order(577,0)) {} + FIELD_SET(*this, FIX::ClearingInstruction); + }; + FIELD_SET(*this, FIX::TradeInputSource); + FIELD_SET(*this, FIX::TradeInputDevice); + FIELD_SET(*this, FIX::OrderInputDevice); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::TransBkdTime); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TimeBracket); + FIELD_SET(*this, FIX::NetGrossInd); + FIELD_SET(*this, FIX::SideCurrency); + FIELD_SET(*this, FIX::SideSettlCurrency); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::ExDate); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::SideMultiLegReportingType); + FIELD_SET(*this, FIX::NoContAmts); + class NoContAmts: public FIX::Group + { + public: + NoContAmts() : FIX::Group(518,519,FIX::message_order(519,520,521,0)) {} + FIELD_SET(*this, FIX::ContAmtType); + FIELD_SET(*this, FIX::ContAmtValue); + FIELD_SET(*this, FIX::ContAmtCurr); + }; + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::ExchangeRule); + FIELD_SET(*this, FIX::NoSettlDetails); + class NoSettlDetails: public FIX::Group + { + public: + NoSettlDetails() : FIX::Group(1158,1164,FIX::message_order(1164,781,0)) {} + FIELD_SET(*this, FIX::SettlObligSource); + FIELD_SET(*this, FIX::NoSettlPartyIDs); + class NoSettlPartyIDs: public FIX::Group + { + public: + NoSettlPartyIDs() : FIX::Group(781,782,FIX::message_order(782,783,784,801,0)) {} + FIELD_SET(*this, FIX::SettlPartyID); + FIELD_SET(*this, FIX::SettlPartyIDSource); + FIELD_SET(*this, FIX::SettlPartyRole); + FIELD_SET(*this, FIX::NoSettlPartySubIDs); + class NoSettlPartySubIDs: public FIX::Group + { + public: + NoSettlPartySubIDs() : FIX::Group(801,785,FIX::message_order(785,786,0)) {} + FIELD_SET(*this, FIX::SettlPartySubID); + FIELD_SET(*this, FIX::SettlPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::TradeAllocIndicator); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,756,80,993,1002,989,1136,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + FIELD_SET(*this, FIX::AllocCustomerCapacity); + FIELD_SET(*this, FIX::AllocMethod); + FIELD_SET(*this, FIX::SecondaryIndividualAllocID); + FIELD_SET(*this, FIX::AllocClearingFeeIndicator); + }; + FIELD_SET(*this, FIX::SideGrossTradeAmt); + FIELD_SET(*this, FIX::AggressorIndicator); + FIELD_SET(*this, FIX::SideQty); + FIELD_SET(*this, FIX::SideTradeReportID); + FIELD_SET(*this, FIX::SideFillStationCd); + FIELD_SET(*this, FIX::SideReasonCd); + FIELD_SET(*this, FIX::RptSeq); + FIELD_SET(*this, FIX::SideTrdSubTyp); + FIELD_SET(*this, FIX::NoSideTrdRegTS); + class NoSideTrdRegTS: public FIX::Group + { + public: + NoSideTrdRegTS() : FIX::Group(1016,1012,FIX::message_order(1012,1013,1014,0)) {} + FIELD_SET(*this, FIX::SideTrdRegTimestamp); + FIELD_SET(*this, FIX::SideTrdRegTimestampType); + FIELD_SET(*this, FIX::SideTrdRegTimestampSrc); + }; + }; + FIELD_SET(*this, FIX::RptSys); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::FeeMultiplier); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/TradeCaptureReportRequest.h b/linux/include/quickfix/fix50sp1/TradeCaptureReportRequest.h new file mode 100644 index 000000000..10463d918 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/TradeCaptureReportRequest.h @@ -0,0 +1,294 @@ +#ifndef FIX50SP1_TRADECAPTUREREPORTREQUEST_H +#define FIX50SP1_TRADECAPTUREREPORTREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class TradeCaptureReportRequest : public Message + { + public: + TradeCaptureReportRequest() : Message(MsgType()) {} + TradeCaptureReportRequest(const FIX::Message& m) : Message(m) {} + TradeCaptureReportRequest(const Message& m) : Message(m) {} + TradeCaptureReportRequest(const TradeCaptureReportRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AD"); } + + TradeCaptureReportRequest( + const FIX::TradeRequestID& aTradeRequestID, + const FIX::TradeRequestType& aTradeRequestType ) + : Message(MsgType()) + { + set(aTradeRequestID); + set(aTradeRequestType); + } + + FIELD_SET(*this, FIX::TradeRequestID); + FIELD_SET(*this, FIX::TradeID); + FIELD_SET(*this, FIX::SecondaryTradeID); + FIELD_SET(*this, FIX::FirmTradeID); + FIELD_SET(*this, FIX::SecondaryFirmTradeID); + FIELD_SET(*this, FIX::TradeRequestType); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::ExecType); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::TrdSubType); + FIELD_SET(*this, FIX::TradeHandlingInstr); + FIELD_SET(*this, FIX::TransferReason); + FIELD_SET(*this, FIX::SecondaryTrdType); + FIELD_SET(*this, FIX::TradeLinkID); + FIELD_SET(*this, FIX::TrdMatchID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::NoDates); + class NoDates: public FIX::Group + { + public: + NoDates() : FIX::Group(580,75,FIX::message_order(75,779,60,0)) {} + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::LastUpdateTime); + FIELD_SET(*this, FIX::TransactTime); + }; + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TimeBracket); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::TradeInputSource); + FIELD_SET(*this, FIX::TradeInputDevice); + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::MessageEventSource); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/TradeCaptureReportRequestAck.h b/linux/include/quickfix/fix50sp1/TradeCaptureReportRequestAck.h new file mode 100644 index 000000000..9739ac403 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/TradeCaptureReportRequestAck.h @@ -0,0 +1,243 @@ +#ifndef FIX50SP1_TRADECAPTUREREPORTREQUESTACK_H +#define FIX50SP1_TRADECAPTUREREPORTREQUESTACK_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class TradeCaptureReportRequestAck : public Message + { + public: + TradeCaptureReportRequestAck() : Message(MsgType()) {} + TradeCaptureReportRequestAck(const FIX::Message& m) : Message(m) {} + TradeCaptureReportRequestAck(const Message& m) : Message(m) {} + TradeCaptureReportRequestAck(const TradeCaptureReportRequestAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AQ"); } + + TradeCaptureReportRequestAck( + const FIX::TradeRequestID& aTradeRequestID, + const FIX::TradeRequestType& aTradeRequestType, + const FIX::TradeRequestResult& aTradeRequestResult, + const FIX::TradeRequestStatus& aTradeRequestStatus ) + : Message(MsgType()) + { + set(aTradeRequestID); + set(aTradeRequestType); + set(aTradeRequestResult); + set(aTradeRequestStatus); + } + + FIELD_SET(*this, FIX::TradeRequestID); + FIELD_SET(*this, FIX::TradeID); + FIELD_SET(*this, FIX::SecondaryTradeID); + FIELD_SET(*this, FIX::FirmTradeID); + FIELD_SET(*this, FIX::SecondaryFirmTradeID); + FIELD_SET(*this, FIX::TradeRequestType); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TotNumTradeReports); + FIELD_SET(*this, FIX::TradeRequestResult); + FIELD_SET(*this, FIX::TradeRequestStatus); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + }; + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::MessageEventSource); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/TradingSessionList.h b/linux/include/quickfix/fix50sp1/TradingSessionList.h new file mode 100644 index 000000000..99f2b7c93 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/TradingSessionList.h @@ -0,0 +1,53 @@ +#ifndef FIX50SP1_TRADINGSESSIONLIST_H +#define FIX50SP1_TRADINGSESSIONLIST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class TradingSessionList : public Message + { + public: + TradingSessionList() : Message(MsgType()) {} + TradingSessionList(const FIX::Message& m) : Message(m) {} + TradingSessionList(const Message& m) : Message(m) {} + TradingSessionList(const TradingSessionList& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BJ"); } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::TradSesReqID); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,207,1301,1300,1326,338,339,325,340,567,341,342,343,344,345,387,58,354,355,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::TradingSessionDesc); + FIELD_SET(*this, FIX::TradSesMethod); + FIELD_SET(*this, FIX::TradSesMode); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::TradSesStatus); + FIELD_SET(*this, FIX::TradSesStatusRejReason); + FIELD_SET(*this, FIX::TradSesStartTime); + FIELD_SET(*this, FIX::TradSesOpenTime); + FIELD_SET(*this, FIX::TradSesPreCloseTime); + FIELD_SET(*this, FIX::TradSesCloseTime); + FIELD_SET(*this, FIX::TradSesEndTime); + FIELD_SET(*this, FIX::TotalVolumeTraded); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/TradingSessionListRequest.h b/linux/include/quickfix/fix50sp1/TradingSessionListRequest.h new file mode 100644 index 000000000..84f7a2194 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/TradingSessionListRequest.h @@ -0,0 +1,40 @@ +#ifndef FIX50SP1_TRADINGSESSIONLISTREQUEST_H +#define FIX50SP1_TRADINGSESSIONLISTREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class TradingSessionListRequest : public Message + { + public: + TradingSessionListRequest() : Message(MsgType()) {} + TradingSessionListRequest(const FIX::Message& m) : Message(m) {} + TradingSessionListRequest(const Message& m) : Message(m) {} + TradingSessionListRequest(const TradingSessionListRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BI"); } + + TradingSessionListRequest( + const FIX::TradSesReqID& aTradSesReqID, + const FIX::SubscriptionRequestType& aSubscriptionRequestType ) + : Message(MsgType()) + { + set(aTradSesReqID); + set(aSubscriptionRequestType); + } + + FIELD_SET(*this, FIX::TradSesReqID); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::TradSesMethod); + FIELD_SET(*this, FIX::TradSesMode); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/TradingSessionListUpdateReport.h b/linux/include/quickfix/fix50sp1/TradingSessionListUpdateReport.h new file mode 100644 index 000000000..2108a721a --- /dev/null +++ b/linux/include/quickfix/fix50sp1/TradingSessionListUpdateReport.h @@ -0,0 +1,54 @@ +#ifndef FIX50SP1_TRADINGSESSIONLISTUPDATEREPORT_H +#define FIX50SP1_TRADINGSESSIONLISTUPDATEREPORT_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class TradingSessionListUpdateReport : public Message + { + public: + TradingSessionListUpdateReport() : Message(MsgType()) {} + TradingSessionListUpdateReport(const FIX::Message& m) : Message(m) {} + TradingSessionListUpdateReport(const Message& m) : Message(m) {} + TradingSessionListUpdateReport(const TradingSessionListUpdateReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BS"); } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::TradSesReqID); + FIELD_SET(*this, FIX::TradSesUpdateAction); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,207,1301,1300,1326,338,339,325,340,567,341,342,343,344,345,387,58,354,355,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::TradingSessionDesc); + FIELD_SET(*this, FIX::TradSesMethod); + FIELD_SET(*this, FIX::TradSesMode); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::TradSesStatus); + FIELD_SET(*this, FIX::TradSesStatusRejReason); + FIELD_SET(*this, FIX::TradSesStartTime); + FIELD_SET(*this, FIX::TradSesOpenTime); + FIELD_SET(*this, FIX::TradSesPreCloseTime); + FIELD_SET(*this, FIX::TradSesCloseTime); + FIELD_SET(*this, FIX::TradSesEndTime); + FIELD_SET(*this, FIX::TotalVolumeTraded); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/TradingSessionStatus.h b/linux/include/quickfix/fix50sp1/TradingSessionStatus.h new file mode 100644 index 000000000..e17920e11 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/TradingSessionStatus.h @@ -0,0 +1,123 @@ +#ifndef FIX50SP1_TRADINGSESSIONSTATUS_H +#define FIX50SP1_TRADINGSESSIONSTATUS_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class TradingSessionStatus : public Message + { + public: + TradingSessionStatus() : Message(MsgType()) {} + TradingSessionStatus(const FIX::Message& m) : Message(m) {} + TradingSessionStatus(const Message& m) : Message(m) {} + TradingSessionStatus(const TradingSessionStatus& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("h"); } + + TradingSessionStatus( + const FIX::TradingSessionID& aTradingSessionID, + const FIX::TradSesStatus& aTradSesStatus ) + : Message(MsgType()) + { + set(aTradingSessionID); + set(aTradSesStatus); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::TradSesReqID); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TradSesMethod); + FIELD_SET(*this, FIX::TradSesMode); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::TradSesStatus); + FIELD_SET(*this, FIX::TradSesEvent); + FIELD_SET(*this, FIX::TradSesStatusRejReason); + FIELD_SET(*this, FIX::TradSesStartTime); + FIELD_SET(*this, FIX::TradSesOpenTime); + FIELD_SET(*this, FIX::TradSesPreCloseTime); + FIELD_SET(*this, FIX::TradSesCloseTime); + FIELD_SET(*this, FIX::TradSesEndTime); + FIELD_SET(*this, FIX::TotalVolumeTraded); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::FuturesValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/TradingSessionStatusRequest.h b/linux/include/quickfix/fix50sp1/TradingSessionStatusRequest.h new file mode 100644 index 000000000..74e6af92b --- /dev/null +++ b/linux/include/quickfix/fix50sp1/TradingSessionStatusRequest.h @@ -0,0 +1,40 @@ +#ifndef FIX50SP1_TRADINGSESSIONSTATUSREQUEST_H +#define FIX50SP1_TRADINGSESSIONSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class TradingSessionStatusRequest : public Message + { + public: + TradingSessionStatusRequest() : Message(MsgType()) {} + TradingSessionStatusRequest(const FIX::Message& m) : Message(m) {} + TradingSessionStatusRequest(const Message& m) : Message(m) {} + TradingSessionStatusRequest(const TradingSessionStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("g"); } + + TradingSessionStatusRequest( + const FIX::TradSesReqID& aTradSesReqID, + const FIX::SubscriptionRequestType& aSubscriptionRequestType ) + : Message(MsgType()) + { + set(aTradSesReqID); + set(aSubscriptionRequestType); + } + + FIELD_SET(*this, FIX::TradSesReqID); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TradSesMethod); + FIELD_SET(*this, FIX::TradSesMode); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::SecurityExchange); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/UserNotification.h b/linux/include/quickfix/fix50sp1/UserNotification.h new file mode 100644 index 000000000..171af0c5c --- /dev/null +++ b/linux/include/quickfix/fix50sp1/UserNotification.h @@ -0,0 +1,34 @@ +#ifndef FIX50SP1_USERNOTIFICATION_H +#define FIX50SP1_USERNOTIFICATION_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class UserNotification : public Message + { + public: + UserNotification() : Message(MsgType()) {} + UserNotification(const FIX::Message& m) : Message(m) {} + UserNotification(const Message& m) : Message(m) {} + UserNotification(const UserNotification& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("CB"); } + + UserNotification( + const FIX::UserStatus& aUserStatus ) + : Message(MsgType()) + { + set(aUserStatus); + } + + FIELD_SET(*this, FIX::Username); + FIELD_SET(*this, FIX::UserStatus); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/UserRequest.h b/linux/include/quickfix/fix50sp1/UserRequest.h new file mode 100644 index 000000000..7bc6b3aab --- /dev/null +++ b/linux/include/quickfix/fix50sp1/UserRequest.h @@ -0,0 +1,45 @@ +#ifndef FIX50SP1_USERREQUEST_H +#define FIX50SP1_USERREQUEST_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class UserRequest : public Message + { + public: + UserRequest() : Message(MsgType()) {} + UserRequest(const FIX::Message& m) : Message(m) {} + UserRequest(const Message& m) : Message(m) {} + UserRequest(const UserRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BE"); } + + UserRequest( + const FIX::UserRequestID& aUserRequestID, + const FIX::UserRequestType& aUserRequestType, + const FIX::Username& aUsername ) + : Message(MsgType()) + { + set(aUserRequestID); + set(aUserRequestType); + set(aUsername); + } + + FIELD_SET(*this, FIX::UserRequestID); + FIELD_SET(*this, FIX::UserRequestType); + FIELD_SET(*this, FIX::Username); + FIELD_SET(*this, FIX::Password); + FIELD_SET(*this, FIX::NewPassword); + FIELD_SET(*this, FIX::EncryptedPasswordMethod); + FIELD_SET(*this, FIX::EncryptedPasswordLen); + FIELD_SET(*this, FIX::EncryptedPassword); + FIELD_SET(*this, FIX::EncryptedNewPasswordLen); + FIELD_SET(*this, FIX::EncryptedNewPassword); + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp1/UserResponse.h b/linux/include/quickfix/fix50sp1/UserResponse.h new file mode 100644 index 000000000..234814912 --- /dev/null +++ b/linux/include/quickfix/fix50sp1/UserResponse.h @@ -0,0 +1,35 @@ +#ifndef FIX50SP1_USERRESPONSE_H +#define FIX50SP1_USERRESPONSE_H + +#include "Message.h" + +namespace FIX50SP1 +{ + + class UserResponse : public Message + { + public: + UserResponse() : Message(MsgType()) {} + UserResponse(const FIX::Message& m) : Message(m) {} + UserResponse(const Message& m) : Message(m) {} + UserResponse(const UserResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BF"); } + + UserResponse( + const FIX::UserRequestID& aUserRequestID, + const FIX::Username& aUsername ) + : Message(MsgType()) + { + set(aUserRequestID); + set(aUsername); + } + + FIELD_SET(*this, FIX::UserRequestID); + FIELD_SET(*this, FIX::Username); + FIELD_SET(*this, FIX::UserStatus); + FIELD_SET(*this, FIX::UserStatusText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/AdjustedPositionReport.h b/linux/include/quickfix/fix50sp2/AdjustedPositionReport.h new file mode 100644 index 000000000..a96906303 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/AdjustedPositionReport.h @@ -0,0 +1,170 @@ +#ifndef FIX50SP2_ADJUSTEDPOSITIONREPORT_H +#define FIX50SP2_ADJUSTEDPOSITIONREPORT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class AdjustedPositionReport : public Message + { + public: + AdjustedPositionReport() : Message(MsgType()) {} + AdjustedPositionReport(const FIX::Message& m) : Message(m) {} + AdjustedPositionReport(const Message& m) : Message(m) {} + AdjustedPositionReport(const AdjustedPositionReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BL"); } + + AdjustedPositionReport( + const FIX::PosMaintRptID& aPosMaintRptID, + const FIX::ClearingBusinessDate& aClearingBusinessDate ) + : Message(MsgType()) + { + set(aPosMaintRptID); + set(aClearingBusinessDate); + } + + FIELD_SET(*this, FIX::PosMaintRptID); + FIELD_SET(*this, FIX::PosReqType); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::PosMaintRptRefID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoPositions); + class NoPositions: public FIX::Group + { + public: + NoPositions() : FIX::Group(702,703,FIX::message_order(703,704,705,706,976,539,0)) {} + FIELD_SET(*this, FIX::PosType); + FIELD_SET(*this, FIX::LongQty); + FIELD_SET(*this, FIX::ShortQty); + FIELD_SET(*this, FIX::PosQtyStatus); + FIELD_SET(*this, FIX::QuantityDate); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,1435,1439,1449,1450,1451,1452,1457,1458,1478,1479,1480,1481,1482,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + }; + FIELD_SET(*this, FIX::SettlPrice); + FIELD_SET(*this, FIX::PriorSettlPrice); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/Advertisement.h b/linux/include/quickfix/fix50sp2/Advertisement.h new file mode 100644 index 000000000..854035e57 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/Advertisement.h @@ -0,0 +1,266 @@ +#ifndef FIX50SP2_ADVERTISEMENT_H +#define FIX50SP2_ADVERTISEMENT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class Advertisement : public Message + { + public: + Advertisement() : Message(MsgType()) {} + Advertisement(const FIX::Message& m) : Message(m) {} + Advertisement(const Message& m) : Message(m) {} + Advertisement(const Advertisement& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("7"); } + + Advertisement( + const FIX::AdvId& aAdvId, + const FIX::AdvTransType& aAdvTransType, + const FIX::AdvSide& aAdvSide, + const FIX::Quantity& aQuantity ) + : Message(MsgType()) + { + set(aAdvId); + set(aAdvTransType); + set(aAdvSide); + set(aQuantity); + } + + FIELD_SET(*this, FIX::AdvId); + FIELD_SET(*this, FIX::AdvTransType); + FIELD_SET(*this, FIX::AdvRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::AdvSide); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::URLLink); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/AllocationInstruction.h b/linux/include/quickfix/fix50sp2/AllocationInstruction.h new file mode 100644 index 000000000..c59bd5cf0 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/AllocationInstruction.h @@ -0,0 +1,503 @@ +#ifndef FIX50SP2_ALLOCATIONINSTRUCTION_H +#define FIX50SP2_ALLOCATIONINSTRUCTION_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class AllocationInstruction : public Message + { + public: + AllocationInstruction() : Message(MsgType()) {} + AllocationInstruction(const FIX::Message& m) : Message(m) {} + AllocationInstruction(const Message& m) : Message(m) {} + AllocationInstruction(const AllocationInstruction& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("J"); } + + AllocationInstruction( + const FIX::AllocID& aAllocID, + const FIX::AllocTransType& aAllocTransType, + const FIX::AllocType& aAllocType, + const FIX::Side& aSide, + const FIX::Quantity& aQuantity, + const FIX::TradeDate& aTradeDate ) + : Message(MsgType()) + { + set(aAllocID); + set(aAllocTransType); + set(aAllocType); + set(aSide); + set(aQuantity); + set(aTradeDate); + } + + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::AllocTransType); + FIELD_SET(*this, FIX::AllocType); + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::RefAllocID); + FIELD_SET(*this, FIX::AllocCancReplaceReason); + FIELD_SET(*this, FIX::AllocIntermedReqType); + FIELD_SET(*this, FIX::AllocLinkID); + FIELD_SET(*this, FIX::AllocLinkType); + FIELD_SET(*this, FIX::BookingRefID); + FIELD_SET(*this, FIX::AllocNoOrdersType); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,526,66,756,38,799,800,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrderAvgPx); + FIELD_SET(*this, FIX::OrderBookingQty); + }; + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,32,FIX::message_order(32,17,527,31,669,29,1003,1041,0)) {} + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::LastCapacity); + FIELD_SET(*this, FIX::TradeID); + FIELD_SET(*this, FIX::FirmTradeID); + }; + FIELD_SET(*this, FIX::PreviouslyReported); + FIELD_SET(*this, FIX::ReversalIndicator); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::AvgParPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::AvgPxPrecision); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::AutoAcceptIndicator); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::TotalAccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::LegalConfirm); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::TotNoAllocs); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,573,366,80,467,81,989,1002,993,1047,992,539,208,209,161,360,361,12,13,479,497,153,154,119,737,120,736,155,156,742,741,136,576,635,780,172,169,170,171,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::AllocPrice); + FIELD_SET(*this, FIX::AllocQty); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::SecondaryIndividualAllocID); + FIELD_SET(*this, FIX::AllocMethod); + FIELD_SET(*this, FIX::AllocCustomerCapacity); + FIELD_SET(*this, FIX::AllocPositionEffect); + FIELD_SET(*this, FIX::IndividualAllocType); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NotifyBrokerOfCredit); + FIELD_SET(*this, FIX::AllocHandlInst); + FIELD_SET(*this, FIX::AllocText); + FIELD_SET(*this, FIX::EncodedAllocTextLen); + FIELD_SET(*this, FIX::EncodedAllocText); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::AllocAvgPx); + FIELD_SET(*this, FIX::AllocNetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::AllocSettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::AllocAccruedInterestAmt); + FIELD_SET(*this, FIX::AllocInterestAtMaturity); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::NoClearingInstructions); + class NoClearingInstructions: public FIX::Group + { + public: + NoClearingInstructions() : FIX::Group(576,577,FIX::message_order(577,0)) {} + FIELD_SET(*this, FIX::ClearingInstruction); + }; + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::AllocSettlInstType); + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + }; + FIELD_SET(*this, FIX::AvgPxIndicator); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::TrdSubType); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::TradeInputSource); + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::MessageEventSource); + FIELD_SET(*this, FIX::RndPx); + FIELD_SET(*this, FIX::NoRateSources); + class NoRateSources: public FIX::Group + { + public: + NoRateSources() : FIX::Group(1445,1446,FIX::message_order(1446,1447,1448,0)) {} + FIELD_SET(*this, FIX::RateSource); + FIELD_SET(*this, FIX::RateSourceType); + FIELD_SET(*this, FIX::ReferencePage); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/AllocationInstructionAck.h b/linux/include/quickfix/fix50sp2/AllocationInstructionAck.h new file mode 100644 index 000000000..745d4f591 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/AllocationInstructionAck.h @@ -0,0 +1,98 @@ +#ifndef FIX50SP2_ALLOCATIONINSTRUCTIONACK_H +#define FIX50SP2_ALLOCATIONINSTRUCTIONACK_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class AllocationInstructionAck : public Message + { + public: + AllocationInstructionAck() : Message(MsgType()) {} + AllocationInstructionAck(const FIX::Message& m) : Message(m) {} + AllocationInstructionAck(const Message& m) : Message(m) {} + AllocationInstructionAck(const AllocationInstructionAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("P"); } + + AllocationInstructionAck( + const FIX::AllocID& aAllocID, + const FIX::AllocStatus& aAllocStatus ) + : Message(MsgType()) + { + set(aAllocID); + set(aAllocStatus); + } + + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::AllocStatus); + FIELD_SET(*this, FIX::AllocRejCode); + FIELD_SET(*this, FIX::AllocType); + FIELD_SET(*this, FIX::AllocIntermedReqType); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,366,1047,467,776,539,161,360,361,989,993,992,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocPrice); + FIELD_SET(*this, FIX::AllocPositionEffect); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::IndividualAllocRejCode); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocText); + FIELD_SET(*this, FIX::EncodedAllocTextLen); + FIELD_SET(*this, FIX::EncodedAllocText); + FIELD_SET(*this, FIX::SecondaryIndividualAllocID); + FIELD_SET(*this, FIX::AllocCustomerCapacity); + FIELD_SET(*this, FIX::IndividualAllocType); + FIELD_SET(*this, FIX::AllocQty); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/AllocationInstructionAlert.h b/linux/include/quickfix/fix50sp2/AllocationInstructionAlert.h new file mode 100644 index 000000000..4a9341858 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/AllocationInstructionAlert.h @@ -0,0 +1,494 @@ +#ifndef FIX50SP2_ALLOCATIONINSTRUCTIONALERT_H +#define FIX50SP2_ALLOCATIONINSTRUCTIONALERT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class AllocationInstructionAlert : public Message + { + public: + AllocationInstructionAlert() : Message(MsgType()) {} + AllocationInstructionAlert(const FIX::Message& m) : Message(m) {} + AllocationInstructionAlert(const Message& m) : Message(m) {} + AllocationInstructionAlert(const AllocationInstructionAlert& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BM"); } + + AllocationInstructionAlert( + const FIX::AllocID& aAllocID, + const FIX::AllocTransType& aAllocTransType, + const FIX::AllocType& aAllocType, + const FIX::Side& aSide, + const FIX::Quantity& aQuantity, + const FIX::TradeDate& aTradeDate ) + : Message(MsgType()) + { + set(aAllocID); + set(aAllocTransType); + set(aAllocType); + set(aSide); + set(aQuantity); + set(aTradeDate); + } + + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::AllocTransType); + FIELD_SET(*this, FIX::AllocType); + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::RefAllocID); + FIELD_SET(*this, FIX::AllocCancReplaceReason); + FIELD_SET(*this, FIX::AllocIntermedReqType); + FIELD_SET(*this, FIX::AllocLinkID); + FIELD_SET(*this, FIX::AllocLinkType); + FIELD_SET(*this, FIX::BookingRefID); + FIELD_SET(*this, FIX::AllocNoOrdersType); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,526,66,756,38,799,800,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrderAvgPx); + FIELD_SET(*this, FIX::OrderBookingQty); + }; + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,32,FIX::message_order(32,17,527,31,669,29,1003,1041,0)) {} + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::LastCapacity); + FIELD_SET(*this, FIX::TradeID); + FIELD_SET(*this, FIX::FirmTradeID); + }; + FIELD_SET(*this, FIX::PreviouslyReported); + FIELD_SET(*this, FIX::ReversalIndicator); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::AvgParPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::AvgPxPrecision); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::AutoAcceptIndicator); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::TotalAccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::LegalConfirm); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::TotNoAllocs); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,573,366,80,467,81,989,1002,993,1047,992,539,208,209,161,360,361,12,13,479,497,153,154,119,737,120,736,155,156,742,741,136,576,635,780,172,169,170,171,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::AllocPrice); + FIELD_SET(*this, FIX::AllocQty); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::SecondaryIndividualAllocID); + FIELD_SET(*this, FIX::AllocMethod); + FIELD_SET(*this, FIX::AllocCustomerCapacity); + FIELD_SET(*this, FIX::AllocPositionEffect); + FIELD_SET(*this, FIX::IndividualAllocType); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NotifyBrokerOfCredit); + FIELD_SET(*this, FIX::AllocHandlInst); + FIELD_SET(*this, FIX::AllocText); + FIELD_SET(*this, FIX::EncodedAllocTextLen); + FIELD_SET(*this, FIX::EncodedAllocText); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::AllocAvgPx); + FIELD_SET(*this, FIX::AllocNetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::AllocSettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::AllocAccruedInterestAmt); + FIELD_SET(*this, FIX::AllocInterestAtMaturity); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::NoClearingInstructions); + class NoClearingInstructions: public FIX::Group + { + public: + NoClearingInstructions() : FIX::Group(576,577,FIX::message_order(577,0)) {} + FIELD_SET(*this, FIX::ClearingInstruction); + }; + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::AllocSettlInstType); + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + }; + FIELD_SET(*this, FIX::AvgPxIndicator); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::TrdSubType); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::TradeInputSource); + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::MessageEventSource); + FIELD_SET(*this, FIX::RndPx); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/AllocationReport.h b/linux/include/quickfix/fix50sp2/AllocationReport.h new file mode 100644 index 000000000..044123cec --- /dev/null +++ b/linux/include/quickfix/fix50sp2/AllocationReport.h @@ -0,0 +1,512 @@ +#ifndef FIX50SP2_ALLOCATIONREPORT_H +#define FIX50SP2_ALLOCATIONREPORT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class AllocationReport : public Message + { + public: + AllocationReport() : Message(MsgType()) {} + AllocationReport(const FIX::Message& m) : Message(m) {} + AllocationReport(const Message& m) : Message(m) {} + AllocationReport(const AllocationReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AS"); } + + AllocationReport( + const FIX::AllocReportID& aAllocReportID, + const FIX::AllocTransType& aAllocTransType, + const FIX::AllocReportType& aAllocReportType, + const FIX::AllocStatus& aAllocStatus, + const FIX::Side& aSide, + const FIX::Quantity& aQuantity, + const FIX::AvgPx& aAvgPx, + const FIX::TradeDate& aTradeDate ) + : Message(MsgType()) + { + set(aAllocReportID); + set(aAllocTransType); + set(aAllocReportType); + set(aAllocStatus); + set(aSide); + set(aQuantity); + set(aAvgPx); + set(aTradeDate); + } + + FIELD_SET(*this, FIX::AllocReportID); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::AllocTransType); + FIELD_SET(*this, FIX::AllocReportRefID); + FIELD_SET(*this, FIX::AllocCancReplaceReason); + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::AllocReportType); + FIELD_SET(*this, FIX::AllocStatus); + FIELD_SET(*this, FIX::AllocRejCode); + FIELD_SET(*this, FIX::RefAllocID); + FIELD_SET(*this, FIX::AllocIntermedReqType); + FIELD_SET(*this, FIX::AllocLinkID); + FIELD_SET(*this, FIX::AllocLinkType); + FIELD_SET(*this, FIX::BookingRefID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::TrdSubType); + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::TradeInputSource); + FIELD_SET(*this, FIX::RndPx); + FIELD_SET(*this, FIX::MessageEventSource); + FIELD_SET(*this, FIX::TradeInputDevice); + FIELD_SET(*this, FIX::AvgPxIndicator); + FIELD_SET(*this, FIX::AllocNoOrdersType); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,526,66,756,38,799,800,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrderAvgPx); + FIELD_SET(*this, FIX::OrderBookingQty); + }; + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,32,FIX::message_order(32,17,527,31,669,29,1003,1041,0)) {} + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::LastCapacity); + FIELD_SET(*this, FIX::TradeID); + FIELD_SET(*this, FIX::FirmTradeID); + }; + FIELD_SET(*this, FIX::PreviouslyReported); + FIELD_SET(*this, FIX::ReversalIndicator); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::AvgParPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::AvgPxPrecision); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::AutoAcceptIndicator); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::TotalAccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::LegalConfirm); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::TotNoAllocs); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,573,366,80,467,81,989,1002,993,1047,992,539,208,209,161,360,361,12,13,479,497,153,154,119,737,120,736,155,156,742,741,136,576,635,780,172,169,170,171,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::AllocPrice); + FIELD_SET(*this, FIX::AllocQty); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::SecondaryIndividualAllocID); + FIELD_SET(*this, FIX::AllocMethod); + FIELD_SET(*this, FIX::AllocCustomerCapacity); + FIELD_SET(*this, FIX::AllocPositionEffect); + FIELD_SET(*this, FIX::IndividualAllocType); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NotifyBrokerOfCredit); + FIELD_SET(*this, FIX::AllocHandlInst); + FIELD_SET(*this, FIX::AllocText); + FIELD_SET(*this, FIX::EncodedAllocTextLen); + FIELD_SET(*this, FIX::EncodedAllocText); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::AllocAvgPx); + FIELD_SET(*this, FIX::AllocNetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::AllocSettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::AllocAccruedInterestAmt); + FIELD_SET(*this, FIX::AllocInterestAtMaturity); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::NoClearingInstructions); + class NoClearingInstructions: public FIX::Group + { + public: + NoClearingInstructions() : FIX::Group(576,577,FIX::message_order(577,0)) {} + FIELD_SET(*this, FIX::ClearingInstruction); + }; + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::AllocSettlInstType); + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + }; + FIELD_SET(*this, FIX::NoRateSources); + class NoRateSources: public FIX::Group + { + public: + NoRateSources() : FIX::Group(1445,1446,FIX::message_order(1446,1447,1448,0)) {} + FIELD_SET(*this, FIX::RateSource); + FIELD_SET(*this, FIX::RateSourceType); + FIELD_SET(*this, FIX::ReferencePage); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/AllocationReportAck.h b/linux/include/quickfix/fix50sp2/AllocationReportAck.h new file mode 100644 index 000000000..529800d45 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/AllocationReportAck.h @@ -0,0 +1,101 @@ +#ifndef FIX50SP2_ALLOCATIONREPORTACK_H +#define FIX50SP2_ALLOCATIONREPORTACK_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class AllocationReportAck : public Message + { + public: + AllocationReportAck() : Message(MsgType()) {} + AllocationReportAck(const FIX::Message& m) : Message(m) {} + AllocationReportAck(const Message& m) : Message(m) {} + AllocationReportAck(const AllocationReportAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AT"); } + + AllocationReportAck( + const FIX::AllocReportID& aAllocReportID ) + : Message(MsgType()) + { + set(aAllocReportID); + } + + FIELD_SET(*this, FIX::AllocReportID); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::AvgPxIndicator); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::AllocTransType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::AllocStatus); + FIELD_SET(*this, FIX::AllocRejCode); + FIELD_SET(*this, FIX::AllocReportType); + FIELD_SET(*this, FIX::AllocIntermedReqType); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,366,1047,467,776,539,161,360,361,989,993,992,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocPrice); + FIELD_SET(*this, FIX::AllocPositionEffect); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::IndividualAllocRejCode); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocText); + FIELD_SET(*this, FIX::EncodedAllocTextLen); + FIELD_SET(*this, FIX::EncodedAllocText); + FIELD_SET(*this, FIX::SecondaryIndividualAllocID); + FIELD_SET(*this, FIX::AllocCustomerCapacity); + FIELD_SET(*this, FIX::IndividualAllocType); + FIELD_SET(*this, FIX::AllocQty); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/ApplicationMessageReport.h b/linux/include/quickfix/fix50sp2/ApplicationMessageReport.h new file mode 100644 index 000000000..5c9bbf611 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/ApplicationMessageReport.h @@ -0,0 +1,46 @@ +#ifndef FIX50SP2_APPLICATIONMESSAGEREPORT_H +#define FIX50SP2_APPLICATIONMESSAGEREPORT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class ApplicationMessageReport : public Message + { + public: + ApplicationMessageReport() : Message(MsgType()) {} + ApplicationMessageReport(const FIX::Message& m) : Message(m) {} + ApplicationMessageReport(const Message& m) : Message(m) {} + ApplicationMessageReport(const ApplicationMessageReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BY"); } + + ApplicationMessageReport( + const FIX::ApplReportID& aApplReportID, + const FIX::ApplReportType& aApplReportType ) + : Message(MsgType()) + { + set(aApplReportID); + set(aApplReportType); + } + + FIELD_SET(*this, FIX::ApplReportID); + FIELD_SET(*this, FIX::ApplReportType); + FIELD_SET(*this, FIX::NoApplIDs); + class NoApplIDs: public FIX::Group + { + public: + NoApplIDs() : FIX::Group(1351,1355,FIX::message_order(1355,1399,1357,0)) {} + FIELD_SET(*this, FIX::RefApplID); + FIELD_SET(*this, FIX::ApplNewSeqNum); + FIELD_SET(*this, FIX::RefApplLastSeqNum); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::ApplReqID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/ApplicationMessageRequest.h b/linux/include/quickfix/fix50sp2/ApplicationMessageRequest.h new file mode 100644 index 000000000..ed8d06a7b --- /dev/null +++ b/linux/include/quickfix/fix50sp2/ApplicationMessageRequest.h @@ -0,0 +1,80 @@ +#ifndef FIX50SP2_APPLICATIONMESSAGEREQUEST_H +#define FIX50SP2_APPLICATIONMESSAGEREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class ApplicationMessageRequest : public Message + { + public: + ApplicationMessageRequest() : Message(MsgType()) {} + ApplicationMessageRequest(const FIX::Message& m) : Message(m) {} + ApplicationMessageRequest(const Message& m) : Message(m) {} + ApplicationMessageRequest(const ApplicationMessageRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BW"); } + + ApplicationMessageRequest( + const FIX::ApplReqID& aApplReqID, + const FIX::ApplReqType& aApplReqType ) + : Message(MsgType()) + { + set(aApplReqID); + set(aApplReqType); + } + + FIELD_SET(*this, FIX::ApplReqID); + FIELD_SET(*this, FIX::ApplReqType); + FIELD_SET(*this, FIX::NoApplIDs); + class NoApplIDs: public FIX::Group + { + public: + NoApplIDs() : FIX::Group(1351,1355,FIX::message_order(1355,1182,1183,539,1433,0)) {} + FIELD_SET(*this, FIX::RefApplID); + FIELD_SET(*this, FIX::ApplBegSeqNum); + FIELD_SET(*this, FIX::ApplEndSeqNum); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::RefApplReqID); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/ApplicationMessageRequestAck.h b/linux/include/quickfix/fix50sp2/ApplicationMessageRequestAck.h new file mode 100644 index 000000000..65af077cf --- /dev/null +++ b/linux/include/quickfix/fix50sp2/ApplicationMessageRequestAck.h @@ -0,0 +1,83 @@ +#ifndef FIX50SP2_APPLICATIONMESSAGEREQUESTACK_H +#define FIX50SP2_APPLICATIONMESSAGEREQUESTACK_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class ApplicationMessageRequestAck : public Message + { + public: + ApplicationMessageRequestAck() : Message(MsgType()) {} + ApplicationMessageRequestAck(const FIX::Message& m) : Message(m) {} + ApplicationMessageRequestAck(const Message& m) : Message(m) {} + ApplicationMessageRequestAck(const ApplicationMessageRequestAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BX"); } + + ApplicationMessageRequestAck( + const FIX::ApplResponseID& aApplResponseID ) + : Message(MsgType()) + { + set(aApplResponseID); + } + + FIELD_SET(*this, FIX::ApplResponseID); + FIELD_SET(*this, FIX::ApplReqID); + FIELD_SET(*this, FIX::ApplReqType); + FIELD_SET(*this, FIX::ApplResponseType); + FIELD_SET(*this, FIX::ApplTotalMessageCount); + FIELD_SET(*this, FIX::NoApplIDs); + class NoApplIDs: public FIX::Group + { + public: + NoApplIDs() : FIX::Group(1351,1355,FIX::message_order(1355,1182,1183,1357,1354,539,1433,0)) {} + FIELD_SET(*this, FIX::RefApplID); + FIELD_SET(*this, FIX::ApplBegSeqNum); + FIELD_SET(*this, FIX::ApplEndSeqNum); + FIELD_SET(*this, FIX::RefApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResponseError); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::RefApplReqID); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/AssignmentReport.h b/linux/include/quickfix/fix50sp2/AssignmentReport.h new file mode 100644 index 000000000..f78324d84 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/AssignmentReport.h @@ -0,0 +1,326 @@ +#ifndef FIX50SP2_ASSIGNMENTREPORT_H +#define FIX50SP2_ASSIGNMENTREPORT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class AssignmentReport : public Message + { + public: + AssignmentReport() : Message(MsgType()) {} + AssignmentReport(const FIX::Message& m) : Message(m) {} + AssignmentReport(const Message& m) : Message(m) {} + AssignmentReport(const AssignmentReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AW"); } + + AssignmentReport( + const FIX::AsgnRptID& aAsgnRptID, + const FIX::ClearingBusinessDate& aClearingBusinessDate ) + : Message(MsgType()) + { + set(aAsgnRptID); + set(aClearingBusinessDate); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::AsgnRptID); + FIELD_SET(*this, FIX::TotNumAssignmentReports); + FIELD_SET(*this, FIX::LastRptRequested); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoPositions); + class NoPositions: public FIX::Group + { + public: + NoPositions() : FIX::Group(702,703,FIX::message_order(703,704,705,706,976,539,0)) {} + FIELD_SET(*this, FIX::PosType); + FIELD_SET(*this, FIX::LongQty); + FIELD_SET(*this, FIX::ShortQty); + FIELD_SET(*this, FIX::PosQtyStatus); + FIELD_SET(*this, FIX::QuantityDate); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::ThresholdAmount); + FIELD_SET(*this, FIX::SettlPrice); + FIELD_SET(*this, FIX::SettlPriceType); + FIELD_SET(*this, FIX::UnderlyingSettlPrice); + FIELD_SET(*this, FIX::PriorSettlPrice); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::AssignmentMethod); + FIELD_SET(*this, FIX::AssignmentUnit); + FIELD_SET(*this, FIX::OpenInterest); + FIELD_SET(*this, FIX::ExerciseMethod); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::PosReqID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/BidRequest.h b/linux/include/quickfix/fix50sp2/BidRequest.h new file mode 100644 index 000000000..749f51639 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/BidRequest.h @@ -0,0 +1,98 @@ +#ifndef FIX50SP2_BIDREQUEST_H +#define FIX50SP2_BIDREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class BidRequest : public Message + { + public: + BidRequest() : Message(MsgType()) {} + BidRequest(const FIX::Message& m) : Message(m) {} + BidRequest(const Message& m) : Message(m) {} + BidRequest(const BidRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("k"); } + + BidRequest( + const FIX::ClientBidID& aClientBidID, + const FIX::BidRequestTransType& aBidRequestTransType, + const FIX::TotNoRelatedSym& aTotNoRelatedSym, + const FIX::BidType& aBidType, + const FIX::BidTradeType& aBidTradeType, + const FIX::BasisPxType& aBasisPxType ) + : Message(MsgType()) + { + set(aClientBidID); + set(aBidRequestTransType); + set(aTotNoRelatedSym); + set(aBidType); + set(aBidTradeType); + set(aBasisPxType); + } + + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::BidRequestTransType); + FIELD_SET(*this, FIX::ListName); + FIELD_SET(*this, FIX::TotNoRelatedSym); + FIELD_SET(*this, FIX::BidType); + FIELD_SET(*this, FIX::NumTickets); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SideValue1); + FIELD_SET(*this, FIX::SideValue2); + FIELD_SET(*this, FIX::NoBidDescriptors); + class NoBidDescriptors: public FIX::Group + { + public: + NoBidDescriptors() : FIX::Group(398,399,FIX::message_order(399,400,401,404,441,402,403,405,406,407,408,0)) {} + FIELD_SET(*this, FIX::BidDescriptorType); + FIELD_SET(*this, FIX::BidDescriptor); + FIELD_SET(*this, FIX::SideValueInd); + FIELD_SET(*this, FIX::LiquidityValue); + FIELD_SET(*this, FIX::LiquidityNumSecurities); + FIELD_SET(*this, FIX::LiquidityPctLow); + FIELD_SET(*this, FIX::LiquidityPctHigh); + FIELD_SET(*this, FIX::EFPTrackingError); + FIELD_SET(*this, FIX::FairValue); + FIELD_SET(*this, FIX::OutsideIndexPct); + FIELD_SET(*this, FIX::ValueOfFutures); + }; + FIELD_SET(*this, FIX::NoBidComponents); + class NoBidComponents: public FIX::Group + { + public: + NoBidComponents() : FIX::Group(420,66,FIX::message_order(66,54,336,625,430,63,64,1,660,0)) {} + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NetGrossInd); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + }; + FIELD_SET(*this, FIX::LiquidityIndType); + FIELD_SET(*this, FIX::WtAverageLiquidity); + FIELD_SET(*this, FIX::ExchangeForPhysical); + FIELD_SET(*this, FIX::OutMainCntryUIndex); + FIELD_SET(*this, FIX::CrossPercent); + FIELD_SET(*this, FIX::ProgRptReqs); + FIELD_SET(*this, FIX::ProgPeriodInterval); + FIELD_SET(*this, FIX::IncTaxInd); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::NumBidders); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::BidTradeType); + FIELD_SET(*this, FIX::BasisPxType); + FIELD_SET(*this, FIX::StrikeTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/BidResponse.h b/linux/include/quickfix/fix50sp2/BidResponse.h new file mode 100644 index 000000000..635474a08 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/BidResponse.h @@ -0,0 +1,48 @@ +#ifndef FIX50SP2_BIDRESPONSE_H +#define FIX50SP2_BIDRESPONSE_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class BidResponse : public Message + { + public: + BidResponse() : Message(MsgType()) {} + BidResponse(const FIX::Message& m) : Message(m) {} + BidResponse(const Message& m) : Message(m) {} + BidResponse(const BidResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("l"); } + + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::NoBidComponents); + class NoBidComponents: public FIX::Group + { + public: + NoBidComponents() : FIX::Group(420,12,FIX::message_order(12,13,479,497,66,421,54,44,423,406,430,63,64,336,625,58,354,355,0)) {} + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Country); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::FairValue); + FIELD_SET(*this, FIX::NetGrossInd); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/BusinessMessageReject.h b/linux/include/quickfix/fix50sp2/BusinessMessageReject.h new file mode 100644 index 000000000..169ce3deb --- /dev/null +++ b/linux/include/quickfix/fix50sp2/BusinessMessageReject.h @@ -0,0 +1,41 @@ +#ifndef FIX50SP2_BUSINESSMESSAGEREJECT_H +#define FIX50SP2_BUSINESSMESSAGEREJECT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class BusinessMessageReject : public Message + { + public: + BusinessMessageReject() : Message(MsgType()) {} + BusinessMessageReject(const FIX::Message& m) : Message(m) {} + BusinessMessageReject(const Message& m) : Message(m) {} + BusinessMessageReject(const BusinessMessageReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("j"); } + + BusinessMessageReject( + const FIX::RefMsgType& aRefMsgType, + const FIX::BusinessRejectReason& aBusinessRejectReason ) + : Message(MsgType()) + { + set(aRefMsgType); + set(aBusinessRejectReason); + } + + FIELD_SET(*this, FIX::RefSeqNum); + FIELD_SET(*this, FIX::RefMsgType); + FIELD_SET(*this, FIX::RefApplVerID); + FIELD_SET(*this, FIX::RefApplExtID); + FIELD_SET(*this, FIX::RefCstmApplVerID); + FIELD_SET(*this, FIX::BusinessRejectRefID); + FIELD_SET(*this, FIX::BusinessRejectReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/CollateralAssignment.h b/linux/include/quickfix/fix50sp2/CollateralAssignment.h new file mode 100644 index 000000000..5c229b81b --- /dev/null +++ b/linux/include/quickfix/fix50sp2/CollateralAssignment.h @@ -0,0 +1,368 @@ +#ifndef FIX50SP2_COLLATERALASSIGNMENT_H +#define FIX50SP2_COLLATERALASSIGNMENT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class CollateralAssignment : public Message + { + public: + CollateralAssignment() : Message(MsgType()) {} + CollateralAssignment(const FIX::Message& m) : Message(m) {} + CollateralAssignment(const Message& m) : Message(m) {} + CollateralAssignment(const CollateralAssignment& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AY"); } + + CollateralAssignment( + const FIX::CollAsgnID& aCollAsgnID, + const FIX::CollAsgnReason& aCollAsgnReason, + const FIX::CollAsgnTransType& aCollAsgnTransType, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aCollAsgnID); + set(aCollAsgnReason); + set(aCollAsgnTransType); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::CollAsgnID); + FIELD_SET(*this, FIX::CollReqID); + FIELD_SET(*this, FIX::CollAsgnReason); + FIELD_SET(*this, FIX::CollAsgnTransType); + FIELD_SET(*this, FIX::CollAsgnRefID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,944,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + FIELD_SET(*this, FIX::CollAction); + }; + FIELD_SET(*this, FIX::MarginExcess); + FIELD_SET(*this, FIX::TotalNetValue); + FIELD_SET(*this, FIX::CashOutstanding); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/CollateralInquiry.h b/linux/include/quickfix/fix50sp2/CollateralInquiry.h new file mode 100644 index 000000000..ef58dd3c8 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/CollateralInquiry.h @@ -0,0 +1,355 @@ +#ifndef FIX50SP2_COLLATERALINQUIRY_H +#define FIX50SP2_COLLATERALINQUIRY_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class CollateralInquiry : public Message + { + public: + CollateralInquiry() : Message(MsgType()) {} + CollateralInquiry(const FIX::Message& m) : Message(m) {} + CollateralInquiry(const Message& m) : Message(m) {} + CollateralInquiry(const CollateralInquiry& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BB"); } + + CollateralInquiry( + const FIX::CollInquiryID& aCollInquiryID ) + : Message(MsgType()) + { + set(aCollInquiryID); + } + + FIELD_SET(*this, FIX::CollInquiryID); + FIELD_SET(*this, FIX::NoCollInquiryQualifier); + class NoCollInquiryQualifier: public FIX::Group + { + public: + NoCollInquiryQualifier() : FIX::Group(938,896,FIX::message_order(896,0)) {} + FIELD_SET(*this, FIX::CollInquiryQualifier); + }; + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::MarginExcess); + FIELD_SET(*this, FIX::TotalNetValue); + FIELD_SET(*this, FIX::CashOutstanding); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/CollateralInquiryAck.h b/linux/include/quickfix/fix50sp2/CollateralInquiryAck.h new file mode 100644 index 000000000..7792ee5f6 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/CollateralInquiryAck.h @@ -0,0 +1,317 @@ +#ifndef FIX50SP2_COLLATERALINQUIRYACK_H +#define FIX50SP2_COLLATERALINQUIRYACK_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class CollateralInquiryAck : public Message + { + public: + CollateralInquiryAck() : Message(MsgType()) {} + CollateralInquiryAck(const FIX::Message& m) : Message(m) {} + CollateralInquiryAck(const Message& m) : Message(m) {} + CollateralInquiryAck(const CollateralInquiryAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BG"); } + + CollateralInquiryAck( + const FIX::CollInquiryID& aCollInquiryID, + const FIX::CollInquiryStatus& aCollInquiryStatus ) + : Message(MsgType()) + { + set(aCollInquiryID); + set(aCollInquiryStatus); + } + + FIELD_SET(*this, FIX::CollInquiryID); + FIELD_SET(*this, FIX::CollInquiryStatus); + FIELD_SET(*this, FIX::CollInquiryResult); + FIELD_SET(*this, FIX::NoCollInquiryQualifier); + class NoCollInquiryQualifier: public FIX::Group + { + public: + NoCollInquiryQualifier() : FIX::Group(938,896,FIX::message_order(896,0)) {} + FIELD_SET(*this, FIX::CollInquiryQualifier); + }; + FIELD_SET(*this, FIX::TotNumReports); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/CollateralReport.h b/linux/include/quickfix/fix50sp2/CollateralReport.h new file mode 100644 index 000000000..41cedfa4b --- /dev/null +++ b/linux/include/quickfix/fix50sp2/CollateralReport.h @@ -0,0 +1,364 @@ +#ifndef FIX50SP2_COLLATERALREPORT_H +#define FIX50SP2_COLLATERALREPORT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class CollateralReport : public Message + { + public: + CollateralReport() : Message(MsgType()) {} + CollateralReport(const FIX::Message& m) : Message(m) {} + CollateralReport(const Message& m) : Message(m) {} + CollateralReport(const CollateralReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BA"); } + + CollateralReport( + const FIX::CollRptID& aCollRptID, + const FIX::CollStatus& aCollStatus ) + : Message(MsgType()) + { + set(aCollRptID); + set(aCollStatus); + } + + FIELD_SET(*this, FIX::CollRptID); + FIELD_SET(*this, FIX::CollInquiryID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::CollApplType); + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::CollStatus); + FIELD_SET(*this, FIX::TotNumReports); + FIELD_SET(*this, FIX::LastRptRequested); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::MarginExcess); + FIELD_SET(*this, FIX::TotalNetValue); + FIELD_SET(*this, FIX::CashOutstanding); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/CollateralRequest.h b/linux/include/quickfix/fix50sp2/CollateralRequest.h new file mode 100644 index 000000000..4cf4b9599 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/CollateralRequest.h @@ -0,0 +1,359 @@ +#ifndef FIX50SP2_COLLATERALREQUEST_H +#define FIX50SP2_COLLATERALREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class CollateralRequest : public Message + { + public: + CollateralRequest() : Message(MsgType()) {} + CollateralRequest(const FIX::Message& m) : Message(m) {} + CollateralRequest(const Message& m) : Message(m) {} + CollateralRequest(const CollateralRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AX"); } + + CollateralRequest( + const FIX::CollReqID& aCollReqID, + const FIX::CollAsgnReason& aCollAsgnReason, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aCollReqID); + set(aCollAsgnReason); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::CollReqID); + FIELD_SET(*this, FIX::CollAsgnReason); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,944,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + FIELD_SET(*this, FIX::CollAction); + }; + FIELD_SET(*this, FIX::MarginExcess); + FIELD_SET(*this, FIX::TotalNetValue); + FIELD_SET(*this, FIX::CashOutstanding); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/CollateralResponse.h b/linux/include/quickfix/fix50sp2/CollateralResponse.h new file mode 100644 index 000000000..9e5ca862c --- /dev/null +++ b/linux/include/quickfix/fix50sp2/CollateralResponse.h @@ -0,0 +1,361 @@ +#ifndef FIX50SP2_COLLATERALRESPONSE_H +#define FIX50SP2_COLLATERALRESPONSE_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class CollateralResponse : public Message + { + public: + CollateralResponse() : Message(MsgType()) {} + CollateralResponse(const FIX::Message& m) : Message(m) {} + CollateralResponse(const Message& m) : Message(m) {} + CollateralResponse(const CollateralResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AZ"); } + + CollateralResponse( + const FIX::CollRespID& aCollRespID, + const FIX::CollAsgnRespType& aCollAsgnRespType, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aCollRespID); + set(aCollAsgnRespType); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::CollRespID); + FIELD_SET(*this, FIX::CollAsgnID); + FIELD_SET(*this, FIX::CollReqID); + FIELD_SET(*this, FIX::CollAsgnReason); + FIELD_SET(*this, FIX::CollAsgnTransType); + FIELD_SET(*this, FIX::CollAsgnRespType); + FIELD_SET(*this, FIX::CollAsgnRejectReason); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::CollApplType); + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::NoExecs); + class NoExecs: public FIX::Group + { + public: + NoExecs() : FIX::Group(124,17,FIX::message_order(17,0)) {} + FIELD_SET(*this, FIX::ExecID); + }; + FIELD_SET(*this, FIX::NoTrades); + class NoTrades: public FIX::Group + { + public: + NoTrades() : FIX::Group(897,571,FIX::message_order(571,818,0)) {} + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Quantity); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,944,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + FIELD_SET(*this, FIX::CollAction); + }; + FIELD_SET(*this, FIX::MarginExcess); + FIELD_SET(*this, FIX::TotalNetValue); + FIELD_SET(*this, FIX::CashOutstanding); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/Confirmation.h b/linux/include/quickfix/fix50sp2/Confirmation.h new file mode 100644 index 000000000..2a7caf360 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/Confirmation.h @@ -0,0 +1,435 @@ +#ifndef FIX50SP2_CONFIRMATION_H +#define FIX50SP2_CONFIRMATION_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class Confirmation : public Message + { + public: + Confirmation() : Message(MsgType()) {} + Confirmation(const FIX::Message& m) : Message(m) {} + Confirmation(const Message& m) : Message(m) {} + Confirmation(const Confirmation& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AK"); } + + Confirmation( + const FIX::ConfirmID& aConfirmID, + const FIX::ConfirmTransType& aConfirmTransType, + const FIX::ConfirmType& aConfirmType, + const FIX::ConfirmStatus& aConfirmStatus, + const FIX::TransactTime& aTransactTime, + const FIX::TradeDate& aTradeDate, + const FIX::AllocQty& aAllocQty, + const FIX::Side& aSide, + const FIX::AllocAccount& aAllocAccount, + const FIX::AvgPx& aAvgPx, + const FIX::GrossTradeAmt& aGrossTradeAmt, + const FIX::NetMoney& aNetMoney ) + : Message(MsgType()) + { + set(aConfirmID); + set(aConfirmTransType); + set(aConfirmType); + set(aConfirmStatus); + set(aTransactTime); + set(aTradeDate); + set(aAllocQty); + set(aSide); + set(aAllocAccount); + set(aAvgPx); + set(aGrossTradeAmt); + set(aNetMoney); + } + + FIELD_SET(*this, FIX::ConfirmID); + FIELD_SET(*this, FIX::ConfirmRefID); + FIELD_SET(*this, FIX::ConfirmReqID); + FIELD_SET(*this, FIX::ConfirmTransType); + FIELD_SET(*this, FIX::ConfirmType); + FIELD_SET(*this, FIX::CopyMsgIndicator); + FIELD_SET(*this, FIX::LegalConfirm); + FIELD_SET(*this, FIX::ConfirmStatus); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,526,66,756,38,799,800,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrderAvgPx); + FIELD_SET(*this, FIX::OrderBookingQty); + }; + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::AllocQty); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::NoCapacities); + class NoCapacities: public FIX::Group + { + public: + NoCapacities() : FIX::Group(862,528,FIX::message_order(528,529,863,0)) {} + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::OrderCapacityQty); + }; + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocAccountType); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::AvgPxPrecision); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::AvgParPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::ReportedPx); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::ExDate); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::MaturityNetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::SharedCommission); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/ConfirmationAck.h b/linux/include/quickfix/fix50sp2/ConfirmationAck.h new file mode 100644 index 000000000..46cecf868 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/ConfirmationAck.h @@ -0,0 +1,44 @@ +#ifndef FIX50SP2_CONFIRMATIONACK_H +#define FIX50SP2_CONFIRMATIONACK_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class ConfirmationAck : public Message + { + public: + ConfirmationAck() : Message(MsgType()) {} + ConfirmationAck(const FIX::Message& m) : Message(m) {} + ConfirmationAck(const Message& m) : Message(m) {} + ConfirmationAck(const ConfirmationAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AU"); } + + ConfirmationAck( + const FIX::ConfirmID& aConfirmID, + const FIX::TradeDate& aTradeDate, + const FIX::TransactTime& aTransactTime, + const FIX::AffirmStatus& aAffirmStatus ) + : Message(MsgType()) + { + set(aConfirmID); + set(aTradeDate); + set(aTransactTime); + set(aAffirmStatus); + } + + FIELD_SET(*this, FIX::ConfirmID); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::AffirmStatus); + FIELD_SET(*this, FIX::ConfirmRejReason); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/ConfirmationRequest.h b/linux/include/quickfix/fix50sp2/ConfirmationRequest.h new file mode 100644 index 000000000..d1a48fa26 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/ConfirmationRequest.h @@ -0,0 +1,76 @@ +#ifndef FIX50SP2_CONFIRMATIONREQUEST_H +#define FIX50SP2_CONFIRMATIONREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class ConfirmationRequest : public Message + { + public: + ConfirmationRequest() : Message(MsgType()) {} + ConfirmationRequest(const FIX::Message& m) : Message(m) {} + ConfirmationRequest(const Message& m) : Message(m) {} + ConfirmationRequest(const ConfirmationRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BH"); } + + ConfirmationRequest( + const FIX::ConfirmReqID& aConfirmReqID, + const FIX::ConfirmType& aConfirmType, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aConfirmReqID); + set(aConfirmType); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::ConfirmReqID); + FIELD_SET(*this, FIX::ConfirmType); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,526,66,756,38,799,800,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::OrderAvgPx); + FIELD_SET(*this, FIX::OrderBookingQty); + }; + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::SecondaryAllocID); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocAccountType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/ContraryIntentionReport.h b/linux/include/quickfix/fix50sp2/ContraryIntentionReport.h new file mode 100644 index 000000000..d09a611f8 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/ContraryIntentionReport.h @@ -0,0 +1,224 @@ +#ifndef FIX50SP2_CONTRARYINTENTIONREPORT_H +#define FIX50SP2_CONTRARYINTENTIONREPORT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class ContraryIntentionReport : public Message + { + public: + ContraryIntentionReport() : Message(MsgType()) {} + ContraryIntentionReport(const FIX::Message& m) : Message(m) {} + ContraryIntentionReport(const Message& m) : Message(m) {} + ContraryIntentionReport(const ContraryIntentionReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BO"); } + + ContraryIntentionReport( + const FIX::ContIntRptID& aContIntRptID, + const FIX::ClearingBusinessDate& aClearingBusinessDate ) + : Message(MsgType()) + { + set(aContIntRptID); + set(aClearingBusinessDate); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::ContIntRptID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::LateIndicator); + FIELD_SET(*this, FIX::InputSource); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoExpiration); + class NoExpiration: public FIX::Group + { + public: + NoExpiration() : FIX::Group(981,982,FIX::message_order(982,983,0)) {} + FIELD_SET(*this, FIX::ExpirationQtyType); + FIELD_SET(*this, FIX::ExpQty); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/CrossOrderCancelReplaceRequest.h b/linux/include/quickfix/fix50sp2/CrossOrderCancelReplaceRequest.h new file mode 100644 index 000000000..d5b7850c1 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/CrossOrderCancelReplaceRequest.h @@ -0,0 +1,485 @@ +#ifndef FIX50SP2_CROSSORDERCANCELREPLACEREQUEST_H +#define FIX50SP2_CROSSORDERCANCELREPLACEREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class CrossOrderCancelReplaceRequest : public Message + { + public: + CrossOrderCancelReplaceRequest() : Message(MsgType()) {} + CrossOrderCancelReplaceRequest(const FIX::Message& m) : Message(m) {} + CrossOrderCancelReplaceRequest(const Message& m) : Message(m) {} + CrossOrderCancelReplaceRequest(const CrossOrderCancelReplaceRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("t"); } + + CrossOrderCancelReplaceRequest( + const FIX::CrossID& aCrossID, + const FIX::OrigCrossID& aOrigCrossID, + const FIX::CrossType& aCrossType, + const FIX::CrossPrioritization& aCrossPrioritization, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aCrossID); + set(aOrigCrossID); + set(aCrossType); + set(aCrossPrioritization); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::CrossID); + FIELD_SET(*this, FIX::OrigCrossID); + FIELD_SET(*this, FIX::HostCrossID); + FIELD_SET(*this, FIX::CrossType); + FIELD_SET(*this, FIX::CrossPrioritization); + FIELD_SET(*this, FIX::NoRootPartyIDs); + class NoRootPartyIDs: public FIX::Group + { + public: + NoRootPartyIDs() : FIX::Group(1116,1117,FIX::message_order(1117,1118,1119,1120,0)) {} + FIELD_SET(*this, FIX::RootPartyID); + FIELD_SET(*this, FIX::RootPartyIDSource); + FIELD_SET(*this, FIX::RootPartyRole); + FIELD_SET(*this, FIX::NoRootPartySubIDs); + class NoRootPartySubIDs: public FIX::Group + { + public: + NoRootPartySubIDs() : FIX::Group(1120,1121,FIX::message_order(1121,1122,0)) {} + FIELD_SET(*this, FIX::RootPartySubID); + FIELD_SET(*this, FIX::RootPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoSides); + class NoSides: public FIX::Group + { + public: + NoSides() : FIX::Group(552,54,FIX::message_order(54,41,11,526,583,453,229,75,1,660,581,589,590,591,70,78,854,38,152,516,468,469,12,13,479,497,528,529,1091,582,121,120,775,58,354,355,77,203,544,635,377,659,962,0)) {} + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::SideComplianceID); + FIELD_SET(*this, FIX::SideTimeInForce); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TransBkdTime); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/CrossOrderCancelRequest.h b/linux/include/quickfix/fix50sp2/CrossOrderCancelRequest.h new file mode 100644 index 000000000..f86c5c6f9 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/CrossOrderCancelRequest.h @@ -0,0 +1,315 @@ +#ifndef FIX50SP2_CROSSORDERCANCELREQUEST_H +#define FIX50SP2_CROSSORDERCANCELREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class CrossOrderCancelRequest : public Message + { + public: + CrossOrderCancelRequest() : Message(MsgType()) {} + CrossOrderCancelRequest(const FIX::Message& m) : Message(m) {} + CrossOrderCancelRequest(const Message& m) : Message(m) {} + CrossOrderCancelRequest(const CrossOrderCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("u"); } + + CrossOrderCancelRequest( + const FIX::CrossID& aCrossID, + const FIX::OrigCrossID& aOrigCrossID, + const FIX::CrossType& aCrossType, + const FIX::CrossPrioritization& aCrossPrioritization, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aCrossID); + set(aOrigCrossID); + set(aCrossType); + set(aCrossPrioritization); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::CrossID); + FIELD_SET(*this, FIX::OrigCrossID); + FIELD_SET(*this, FIX::HostCrossID); + FIELD_SET(*this, FIX::CrossType); + FIELD_SET(*this, FIX::CrossPrioritization); + FIELD_SET(*this, FIX::NoRootPartyIDs); + class NoRootPartyIDs: public FIX::Group + { + public: + NoRootPartyIDs() : FIX::Group(1116,1117,FIX::message_order(1117,1118,1119,1120,0)) {} + FIELD_SET(*this, FIX::RootPartyID); + FIELD_SET(*this, FIX::RootPartyIDSource); + FIELD_SET(*this, FIX::RootPartyRole); + FIELD_SET(*this, FIX::NoRootPartySubIDs); + class NoRootPartySubIDs: public FIX::Group + { + public: + NoRootPartySubIDs() : FIX::Group(1120,1121,FIX::message_order(1121,1122,0)) {} + FIELD_SET(*this, FIX::RootPartySubID); + FIELD_SET(*this, FIX::RootPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoSides); + class NoSides: public FIX::Group + { + public: + NoSides() : FIX::Group(552,54,FIX::message_order(54,41,11,526,583,586,453,229,75,38,152,516,468,469,376,58,354,355,0)) {} + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::TransactTime); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/DerivativeSecurityList.h b/linux/include/quickfix/fix50sp2/DerivativeSecurityList.h new file mode 100644 index 000000000..7bdd28cc7 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/DerivativeSecurityList.h @@ -0,0 +1,260 @@ +#ifndef FIX50SP2_DERIVATIVESECURITYLIST_H +#define FIX50SP2_DERIVATIVESECURITYLIST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class DerivativeSecurityList : public Message + { + public: + DerivativeSecurityList() : Message(MsgType()) {} + DerivativeSecurityList(const FIX::Message& m) : Message(m) {} + DerivativeSecurityList(const Message& m) : Message(m) {} + DerivativeSecurityList(const DerivativeSecurityList& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AA"); } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityRequestResult); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + FIELD_SET(*this, FIX::TotNoRelatedSym); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,1435,1439,1449,1450,1451,1452,1457,1458,1478,1479,1480,1481,1482,1305,1221,1230,1240,15,292,668,869,555,58,354,355,1504,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::SecondaryPriceLimitType); + FIELD_SET(*this, FIX::SecondaryLowLimitPrice); + FIELD_SET(*this, FIX::SecondaryHighLimitPrice); + FIELD_SET(*this, FIX::SecondaryTradingReferencePrice); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::RelSymTransactTime); + }; + FIELD_SET(*this, FIX::SecurityReportID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::TransactTime); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/DerivativeSecurityListRequest.h b/linux/include/quickfix/fix50sp2/DerivativeSecurityListRequest.h new file mode 100644 index 000000000..cb6b9cd68 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/DerivativeSecurityListRequest.h @@ -0,0 +1,168 @@ +#ifndef FIX50SP2_DERIVATIVESECURITYLISTREQUEST_H +#define FIX50SP2_DERIVATIVESECURITYLISTREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class DerivativeSecurityListRequest : public Message + { + public: + DerivativeSecurityListRequest() : Message(MsgType()) {} + DerivativeSecurityListRequest(const FIX::Message& m) : Message(m) {} + DerivativeSecurityListRequest(const Message& m) : Message(m) {} + DerivativeSecurityListRequest(const DerivativeSecurityListRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("z"); } + + DerivativeSecurityListRequest( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityListRequestType& aSecurityListRequestType ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityListRequestType); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityListRequestType); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + FIELD_SET(*this, FIX::DerivativeSymbol); + FIELD_SET(*this, FIX::DerivativeSymbolSfx); + FIELD_SET(*this, FIX::DerivativeSecurityID); + FIELD_SET(*this, FIX::DerivativeSecurityIDSource); + FIELD_SET(*this, FIX::DerivativeProduct); + FIELD_SET(*this, FIX::DerivativeProductComplex); + FIELD_SET(*this, FIX::DerivFlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::DerivativeSecurityGroup); + FIELD_SET(*this, FIX::DerivativeCFICode); + FIELD_SET(*this, FIX::DerivativeSecurityType); + FIELD_SET(*this, FIX::DerivativeSecuritySubType); + FIELD_SET(*this, FIX::DerivativeMaturityMonthYear); + FIELD_SET(*this, FIX::DerivativeMaturityDate); + FIELD_SET(*this, FIX::DerivativeMaturityTime); + FIELD_SET(*this, FIX::DerivativeSettleOnOpenFlag); + FIELD_SET(*this, FIX::DerivativeInstrmtAssignmentMethod); + FIELD_SET(*this, FIX::DerivativeSecurityStatus); + FIELD_SET(*this, FIX::DerivativeIssueDate); + FIELD_SET(*this, FIX::DerivativeInstrRegistry); + FIELD_SET(*this, FIX::DerivativeCountryOfIssue); + FIELD_SET(*this, FIX::DerivativeStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::DerivativeLocaleOfIssue); + FIELD_SET(*this, FIX::DerivativeStrikePrice); + FIELD_SET(*this, FIX::DerivativeStrikeCurrency); + FIELD_SET(*this, FIX::DerivativeStrikeMultiplier); + FIELD_SET(*this, FIX::DerivativeStrikeValue); + FIELD_SET(*this, FIX::DerivativeOptAttribute); + FIELD_SET(*this, FIX::DerivativeContractMultiplier); + FIELD_SET(*this, FIX::DerivativeMinPriceIncrement); + FIELD_SET(*this, FIX::DerivativeMinPriceIncrementAmount); + FIELD_SET(*this, FIX::DerivativeUnitOfMeasure); + FIELD_SET(*this, FIX::DerivativeUnitOfMeasureQty); + FIELD_SET(*this, FIX::DerivativePriceUnitOfMeasure); + FIELD_SET(*this, FIX::DerivativePriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::DerivativeSettlMethod); + FIELD_SET(*this, FIX::DerivativePriceQuoteMethod); + FIELD_SET(*this, FIX::DerivativeValuationMethod); + FIELD_SET(*this, FIX::DerivativeListMethod); + FIELD_SET(*this, FIX::DerivativeCapPrice); + FIELD_SET(*this, FIX::DerivativeFloorPrice); + FIELD_SET(*this, FIX::DerivativePutOrCall); + FIELD_SET(*this, FIX::DerivativeExerciseStyle); + FIELD_SET(*this, FIX::DerivativeOptPayAmount); + FIELD_SET(*this, FIX::DerivativeTimeUnit); + FIELD_SET(*this, FIX::DerivativeSecurityExchange); + FIELD_SET(*this, FIX::DerivativePositionLimit); + FIELD_SET(*this, FIX::DerivativeNTPositionLimit); + FIELD_SET(*this, FIX::DerivativeIssuer); + FIELD_SET(*this, FIX::DerivativeEncodedIssuerLen); + FIELD_SET(*this, FIX::DerivativeEncodedIssuer); + FIELD_SET(*this, FIX::DerivativeSecurityDesc); + FIELD_SET(*this, FIX::DerivativeEncodedSecurityDescLen); + FIELD_SET(*this, FIX::DerivativeEncodedSecurityDesc); + FIELD_SET(*this, FIX::DerivativeContractSettlMonth); + FIELD_SET(*this, FIX::DerivativeContractMultiplierUnit); + FIELD_SET(*this, FIX::DerivativeFlowScheduleType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/DerivativeSecurityListUpdateReport.h b/linux/include/quickfix/fix50sp2/DerivativeSecurityListUpdateReport.h new file mode 100644 index 000000000..64b19632e --- /dev/null +++ b/linux/include/quickfix/fix50sp2/DerivativeSecurityListUpdateReport.h @@ -0,0 +1,260 @@ +#ifndef FIX50SP2_DERIVATIVESECURITYLISTUPDATEREPORT_H +#define FIX50SP2_DERIVATIVESECURITYLISTUPDATEREPORT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class DerivativeSecurityListUpdateReport : public Message + { + public: + DerivativeSecurityListUpdateReport() : Message(MsgType()) {} + DerivativeSecurityListUpdateReport(const FIX::Message& m) : Message(m) {} + DerivativeSecurityListUpdateReport(const Message& m) : Message(m) {} + DerivativeSecurityListUpdateReport(const DerivativeSecurityListUpdateReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BR"); } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityRequestResult); + FIELD_SET(*this, FIX::SecurityUpdateAction); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + FIELD_SET(*this, FIX::TotNoRelatedSym); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,1324,FIX::message_order(1324,292,55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,1435,1439,1449,1450,1451,1452,1457,1458,1478,1479,1480,1481,1482,668,869,1305,1221,1230,1240,15,555,58,354,355,1504,0)) {} + FIELD_SET(*this, FIX::ListUpdateAction); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::SecondaryPriceLimitType); + FIELD_SET(*this, FIX::SecondaryLowLimitPrice); + FIELD_SET(*this, FIX::SecondaryHighLimitPrice); + FIELD_SET(*this, FIX::SecondaryTradingReferencePrice); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::RelSymTransactTime); + }; + FIELD_SET(*this, FIX::TransactTime); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/DontKnowTrade.h b/linux/include/quickfix/fix50sp2/DontKnowTrade.h new file mode 100644 index 000000000..e28870ed5 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/DontKnowTrade.h @@ -0,0 +1,264 @@ +#ifndef FIX50SP2_DONTKNOWTRADE_H +#define FIX50SP2_DONTKNOWTRADE_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class DontKnowTrade : public Message + { + public: + DontKnowTrade() : Message(MsgType()) {} + DontKnowTrade(const FIX::Message& m) : Message(m) {} + DontKnowTrade(const Message& m) : Message(m) {} + DontKnowTrade(const DontKnowTrade& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("Q"); } + + DontKnowTrade( + const FIX::OrderID& aOrderID, + const FIX::ExecID& aExecID, + const FIX::DKReason& aDKReason, + const FIX::Side& aSide ) + : Message(MsgType()) + { + set(aOrderID); + set(aExecID); + set(aDKReason); + set(aSide); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::DKReason); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/Email.h b/linux/include/quickfix/fix50sp2/Email.h new file mode 100644 index 000000000..12f214b04 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/Email.h @@ -0,0 +1,280 @@ +#ifndef FIX50SP2_EMAIL_H +#define FIX50SP2_EMAIL_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class Email : public Message + { + public: + Email() : Message(MsgType()) {} + Email(const FIX::Message& m) : Message(m) {} + Email(const Message& m) : Message(m) {} + Email(const Email& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("C"); } + + Email( + const FIX::EmailThreadID& aEmailThreadID, + const FIX::EmailType& aEmailType, + const FIX::Subject& aSubject ) + : Message(MsgType()) + { + set(aEmailThreadID); + set(aEmailType); + set(aSubject); + } + + FIELD_SET(*this, FIX::EmailThreadID); + FIELD_SET(*this, FIX::EmailType); + FIELD_SET(*this, FIX::OrigTime); + FIELD_SET(*this, FIX::Subject); + FIELD_SET(*this, FIX::EncodedSubjectLen); + FIELD_SET(*this, FIX::EncodedSubject); + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,1435,1439,1449,1450,1451,1452,1457,1458,1478,1479,1480,1481,1482,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::NoLinesOfText); + class NoLinesOfText: public FIX::Group + { + public: + NoLinesOfText() : FIX::Group(33,58,FIX::message_order(58,354,355,0)) {} + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/ExecutionAcknowledgement.h b/linux/include/quickfix/fix50sp2/ExecutionAcknowledgement.h new file mode 100644 index 000000000..e1476f23c --- /dev/null +++ b/linux/include/quickfix/fix50sp2/ExecutionAcknowledgement.h @@ -0,0 +1,270 @@ +#ifndef FIX50SP2_EXECUTIONACKNOWLEDGEMENT_H +#define FIX50SP2_EXECUTIONACKNOWLEDGEMENT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class ExecutionAcknowledgement : public Message + { + public: + ExecutionAcknowledgement() : Message(MsgType()) {} + ExecutionAcknowledgement(const FIX::Message& m) : Message(m) {} + ExecutionAcknowledgement(const Message& m) : Message(m) {} + ExecutionAcknowledgement(const ExecutionAcknowledgement& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BN"); } + + ExecutionAcknowledgement( + const FIX::OrderID& aOrderID, + const FIX::ExecAckStatus& aExecAckStatus, + const FIX::ExecID& aExecID, + const FIX::Side& aSide ) + : Message(MsgType()) + { + set(aOrderID); + set(aExecAckStatus); + set(aExecID); + set(aSide); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ExecAckStatus); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::DKReason); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::CumQty); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/ExecutionReport.h b/linux/include/quickfix/fix50sp2/ExecutionReport.h new file mode 100644 index 000000000..9d46b3f7b --- /dev/null +++ b/linux/include/quickfix/fix50sp2/ExecutionReport.h @@ -0,0 +1,693 @@ +#ifndef FIX50SP2_EXECUTIONREPORT_H +#define FIX50SP2_EXECUTIONREPORT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class ExecutionReport : public Message + { + public: + ExecutionReport() : Message(MsgType()) {} + ExecutionReport(const FIX::Message& m) : Message(m) {} + ExecutionReport(const Message& m) : Message(m) {} + ExecutionReport(const ExecutionReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("8"); } + + ExecutionReport( + const FIX::OrderID& aOrderID, + const FIX::ExecID& aExecID, + const FIX::ExecType& aExecType, + const FIX::OrdStatus& aOrdStatus, + const FIX::Side& aSide, + const FIX::LeavesQty& aLeavesQty, + const FIX::CumQty& aCumQty ) + : Message(MsgType()) + { + set(aOrderID); + set(aExecID); + set(aExecType); + set(aOrdStatus); + set(aSide); + set(aLeavesQty); + set(aCumQty); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::QuoteRespID); + FIELD_SET(*this, FIX::OrdStatusReqID); + FIELD_SET(*this, FIX::MassStatusReqID); + FIELD_SET(*this, FIX::HostCrossID); + FIELD_SET(*this, FIX::TotNumReports); + FIELD_SET(*this, FIX::LastRptRequested); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::NoContraBrokers); + class NoContraBrokers: public FIX::Group + { + public: + NoContraBrokers() : FIX::Group(382,375,FIX::message_order(375,337,437,438,655,0)) {} + FIELD_SET(*this, FIX::ContraBroker); + FIELD_SET(*this, FIX::ContraTrader); + FIELD_SET(*this, FIX::ContraTradeQty); + FIELD_SET(*this, FIX::ContraTradeTime); + FIELD_SET(*this, FIX::ContraLegRefID); + }; + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::CrossID); + FIELD_SET(*this, FIX::OrigCrossID); + FIELD_SET(*this, FIX::CrossType); + FIELD_SET(*this, FIX::TrdMatchID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::ExecRefID); + FIELD_SET(*this, FIX::ExecType); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::WorkingIndicator); + FIELD_SET(*this, FIX::OrdRejReason); + FIELD_SET(*this, FIX::ExecRestatementReason); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::OrderCategory); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::LotType); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::PeggedPrice); + FIELD_SET(*this, FIX::PeggedRefPrice); + FIELD_SET(*this, FIX::DiscretionPrice); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::TargetStrategyPerformance); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::AggressorIndicator); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::CalculatedCcyLastQty); + FIELD_SET(*this, FIX::LastSwapPoints); + FIELD_SET(*this, FIX::UnderlyingLastQty); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::UnderlyingLastPx); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::LastSpotRate); + FIELD_SET(*this, FIX::LastForwardPoints); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TimeBracket); + FIELD_SET(*this, FIX::LastCapacity); + FIELD_SET(*this, FIX::LeavesQty); + FIELD_SET(*this, FIX::CumQty); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::DayOrderQty); + FIELD_SET(*this, FIX::DayCumQty); + FIELD_SET(*this, FIX::DayAvgPx); + FIELD_SET(*this, FIX::TotNoFills); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoFills); + class NoFills: public FIX::Group + { + public: + NoFills() : FIX::Group(1362,1363,FIX::message_order(1363,1364,1365,1414,1443,0)) {} + FIELD_SET(*this, FIX::FillExecID); + FIELD_SET(*this, FIX::FillPx); + FIELD_SET(*this, FIX::FillQty); + FIELD_SET(*this, FIX::NoNested4PartyIDs); + class NoNested4PartyIDs: public FIX::Group + { + public: + NoNested4PartyIDs() : FIX::Group(1414,1415,FIX::message_order(1415,1416,1417,1413,0)) {} + FIELD_SET(*this, FIX::Nested4PartyID); + FIELD_SET(*this, FIX::Nested4PartyIDSource); + FIELD_SET(*this, FIX::Nested4PartyRole); + FIELD_SET(*this, FIX::NoNested4PartySubIDs); + class NoNested4PartySubIDs: public FIX::Group + { + public: + NoNested4PartySubIDs() : FIX::Group(1413,1412,FIX::message_order(1412,1411,0)) {} + FIELD_SET(*this, FIX::Nested4PartySubID); + FIELD_SET(*this, FIX::Nested4PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::FillLiquidityInd); + }; + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::ReportToExch); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::ExDate); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::TradedFlatSwitch); + FIELD_SET(*this, FIX::BasisFeatureDate); + FIELD_SET(*this, FIX::BasisFeaturePrice); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::LastForwardPoints2); + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::TransBkdTime); + FIELD_SET(*this, FIX::ExecValuationPoint); + FIELD_SET(*this, FIX::ExecPriceType); + FIELD_SET(*this, FIX::ExecPriceAdjustment); + FIELD_SET(*this, FIX::PriorityIndicator); + FIELD_SET(*this, FIX::PriceImprovement); + FIELD_SET(*this, FIX::LastLiquidityInd); + FIELD_SET(*this, FIX::NoContAmts); + class NoContAmts: public FIX::Group + { + public: + NoContAmts() : FIX::Group(518,519,FIX::message_order(519,520,521,0)) {} + FIELD_SET(*this, FIX::ContAmtType); + FIELD_SET(*this, FIX::ContAmtValue); + FIELD_SET(*this, FIX::ContAmtCurr); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,687,685,690,683,1366,670,564,565,948,654,587,588,637,675,1073,1074,1075,1379,1381,1383,1384,1418,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegOrderQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::LegAllocID); + FIELD_SET(*this, FIX::NoLegAllocs); + class NoLegAllocs: public FIX::Group + { + public: + NoLegAllocs() : FIX::Group(670,671,FIX::message_order(671,672,756,673,674,1367,0)) {} + FIELD_SET(*this, FIX::LegAllocAccount); + FIELD_SET(*this, FIX::LegIndividualAllocID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegAllocQty); + FIELD_SET(*this, FIX::LegAllocAcctIDSource); + FIELD_SET(*this, FIX::LegAllocSettlCurrency); + }; + FIELD_SET(*this, FIX::LegPositionEffect); + FIELD_SET(*this, FIX::LegCoveredOrUncovered); + FIELD_SET(*this, FIX::NoNested3PartyIDs); + class NoNested3PartyIDs: public FIX::Group + { + public: + NoNested3PartyIDs() : FIX::Group(948,949,FIX::message_order(949,950,951,952,0)) {} + FIELD_SET(*this, FIX::Nested3PartyID); + FIELD_SET(*this, FIX::Nested3PartyIDSource); + FIELD_SET(*this, FIX::Nested3PartyRole); + FIELD_SET(*this, FIX::NoNested3PartySubIDs); + class NoNested3PartySubIDs: public FIX::Group + { + public: + NoNested3PartySubIDs() : FIX::Group(952,953,FIX::message_order(953,954,0)) {} + FIELD_SET(*this, FIX::Nested3PartySubID); + FIELD_SET(*this, FIX::Nested3PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::LegLastPx); + FIELD_SET(*this, FIX::LegSettlCurrency); + FIELD_SET(*this, FIX::LegLastForwardPoints); + FIELD_SET(*this, FIX::LegCalculatedCcyLastQty); + FIELD_SET(*this, FIX::LegGrossTradeAmt); + FIELD_SET(*this, FIX::LegVolatility); + FIELD_SET(*this, FIX::LegDividendYield); + FIELD_SET(*this, FIX::LegCurrencyRatio); + FIELD_SET(*this, FIX::LegExecInst); + FIELD_SET(*this, FIX::LegLastQty); + }; + FIELD_SET(*this, FIX::CopyMsgIndicator); + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::DividendYield); + FIELD_SET(*this, FIX::ManualOrderIndicator); + FIELD_SET(*this, FIX::CustDirectedOrder); + FIELD_SET(*this, FIX::ReceivedDeptID); + FIELD_SET(*this, FIX::CustOrderHandlingInst); + FIELD_SET(*this, FIX::OrderHandlingInstSource); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::Volatility); + FIELD_SET(*this, FIX::TimeToExpiration); + FIELD_SET(*this, FIX::RiskFreeRate); + FIELD_SET(*this, FIX::PriceDelta); + FIELD_SET(*this, FIX::NoRateSources); + class NoRateSources: public FIX::Group + { + public: + NoRateSources() : FIX::Group(1445,1446,FIX::message_order(1446,1447,1448,0)) {} + FIELD_SET(*this, FIX::RateSource); + FIELD_SET(*this, FIX::RateSourceType); + FIELD_SET(*this, FIX::ReferencePage); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/IOI.h b/linux/include/quickfix/fix50sp2/IOI.h new file mode 100644 index 000000000..4b0a98db5 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/IOI.h @@ -0,0 +1,347 @@ +#ifndef FIX50SP2_IOI_H +#define FIX50SP2_IOI_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class IOI : public Message + { + public: + IOI() : Message(MsgType()) {} + IOI(const FIX::Message& m) : Message(m) {} + IOI(const Message& m) : Message(m) {} + IOI(const IOI& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("6"); } + + IOI( + const FIX::IOIID& aIOIID, + const FIX::IOITransType& aIOITransType, + const FIX::Side& aSide, + const FIX::IOIQty& aIOIQty ) + : Message(MsgType()) + { + set(aIOIID); + set(aIOITransType); + set(aSide); + set(aIOIQty); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::IOITransType); + FIELD_SET(*this, FIX::IOIRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::IOIQty); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,682,683,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + FIELD_SET(*this, FIX::LegIOIQty); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + }; + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::IOIQltyInd); + FIELD_SET(*this, FIX::IOINaturalFlag); + FIELD_SET(*this, FIX::NoIOIQualifiers); + class NoIOIQualifiers: public FIX::Group + { + public: + NoIOIQualifiers() : FIX::Group(199,104,FIX::message_order(104,0)) {} + FIELD_SET(*this, FIX::IOIQualifier); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::URLLink); + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/ListCancelRequest.h b/linux/include/quickfix/fix50sp2/ListCancelRequest.h new file mode 100644 index 000000000..4ff247681 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/ListCancelRequest.h @@ -0,0 +1,55 @@ +#ifndef FIX50SP2_LISTCANCELREQUEST_H +#define FIX50SP2_LISTCANCELREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class ListCancelRequest : public Message + { + public: + ListCancelRequest() : Message(MsgType()) {} + ListCancelRequest(const FIX::Message& m) : Message(m) {} + ListCancelRequest(const Message& m) : Message(m) {} + ListCancelRequest(const ListCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("K"); } + + ListCancelRequest( + const FIX::ListID& aListID, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aListID); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/ListExecute.h b/linux/include/quickfix/fix50sp2/ListExecute.h new file mode 100644 index 000000000..d7b362c5a --- /dev/null +++ b/linux/include/quickfix/fix50sp2/ListExecute.h @@ -0,0 +1,38 @@ +#ifndef FIX50SP2_LISTEXECUTE_H +#define FIX50SP2_LISTEXECUTE_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class ListExecute : public Message + { + public: + ListExecute() : Message(MsgType()) {} + ListExecute(const FIX::Message& m) : Message(m) {} + ListExecute(const Message& m) : Message(m) {} + ListExecute(const ListExecute& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("L"); } + + ListExecute( + const FIX::ListID& aListID, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aListID); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/ListStatus.h b/linux/include/quickfix/fix50sp2/ListStatus.h new file mode 100644 index 000000000..24b520a4f --- /dev/null +++ b/linux/include/quickfix/fix50sp2/ListStatus.h @@ -0,0 +1,71 @@ +#ifndef FIX50SP2_LISTSTATUS_H +#define FIX50SP2_LISTSTATUS_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class ListStatus : public Message + { + public: + ListStatus() : Message(MsgType()) {} + ListStatus(const FIX::Message& m) : Message(m) {} + ListStatus(const Message& m) : Message(m) {} + ListStatus(const ListStatus& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("N"); } + + ListStatus( + const FIX::ListID& aListID, + const FIX::ListStatusType& aListStatusType, + const FIX::NoRpts& aNoRpts, + const FIX::ListOrderStatus& aListOrderStatus, + const FIX::RptSeq& aRptSeq, + const FIX::TotNoOrders& aTotNoOrders ) + : Message(MsgType()) + { + set(aListID); + set(aListStatusType); + set(aNoRpts); + set(aListOrderStatus); + set(aRptSeq); + set(aTotNoOrders); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::ListStatusType); + FIELD_SET(*this, FIX::NoRpts); + FIELD_SET(*this, FIX::ListOrderStatus); + FIELD_SET(*this, FIX::ContingencyType); + FIELD_SET(*this, FIX::ListRejectReason); + FIELD_SET(*this, FIX::RptSeq); + FIELD_SET(*this, FIX::ListStatusText); + FIELD_SET(*this, FIX::EncodedListStatusTextLen); + FIELD_SET(*this, FIX::EncodedListStatusText); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TotNoOrders); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,526,14,39,636,151,84,6,103,58,354,355,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::CumQty); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::WorkingIndicator); + FIELD_SET(*this, FIX::LeavesQty); + FIELD_SET(*this, FIX::CxlQty); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::OrdRejReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/ListStatusRequest.h b/linux/include/quickfix/fix50sp2/ListStatusRequest.h new file mode 100644 index 000000000..fa7e2fa46 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/ListStatusRequest.h @@ -0,0 +1,33 @@ +#ifndef FIX50SP2_LISTSTATUSREQUEST_H +#define FIX50SP2_LISTSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class ListStatusRequest : public Message + { + public: + ListStatusRequest() : Message(MsgType()) {} + ListStatusRequest(const FIX::Message& m) : Message(m) {} + ListStatusRequest(const Message& m) : Message(m) {} + ListStatusRequest(const ListStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("M"); } + + ListStatusRequest( + const FIX::ListID& aListID ) + : Message(MsgType()) + { + set(aListID); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/ListStrikePrice.h b/linux/include/quickfix/fix50sp2/ListStrikePrice.h new file mode 100644 index 000000000..9c9668949 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/ListStrikePrice.h @@ -0,0 +1,205 @@ +#ifndef FIX50SP2_LISTSTRIKEPRICE_H +#define FIX50SP2_LISTSTRIKEPRICE_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class ListStrikePrice : public Message + { + public: + ListStrikePrice() : Message(MsgType()) {} + ListStrikePrice(const FIX::Message& m) : Message(m) {} + ListStrikePrice(const Message& m) : Message(m) {} + ListStrikePrice(const ListStrikePrice& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("m"); } + + ListStrikePrice( + const FIX::ListID& aListID, + const FIX::TotNoStrikes& aTotNoStrikes ) + : Message(MsgType()) + { + set(aListID); + set(aTotNoStrikes); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::TotNoStrikes); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoStrikes); + class NoStrikes: public FIX::Group + { + public: + NoStrikes() : FIX::Group(428,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,1435,1439,1449,1450,1451,1452,1457,1458,1478,1479,1480,1481,1482,711,140,11,526,54,44,15,58,354,355,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/MarketDataIncrementalRefresh.h b/linux/include/quickfix/fix50sp2/MarketDataIncrementalRefresh.h new file mode 100644 index 000000000..bec54db88 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/MarketDataIncrementalRefresh.h @@ -0,0 +1,385 @@ +#ifndef FIX50SP2_MARKETDATAINCREMENTALREFRESH_H +#define FIX50SP2_MARKETDATAINCREMENTALREFRESH_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class MarketDataIncrementalRefresh : public Message + { + public: + MarketDataIncrementalRefresh() : Message(MsgType()) {} + MarketDataIncrementalRefresh(const FIX::Message& m) : Message(m) {} + MarketDataIncrementalRefresh(const Message& m) : Message(m) {} + MarketDataIncrementalRefresh(const MarketDataIncrementalRefresh& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("X"); } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::MDBookType); + FIELD_SET(*this, FIX::MDFeedType); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::NoMDEntries); + class NoMDEntries: public FIX::Group + { + public: + NoMDEntries() : FIX::Group(268,279,FIX::message_order(279,285,1173,264,269,278,280,55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,1435,1439,1449,1450,1451,1452,1457,1458,1478,1479,1480,1481,1482,711,555,291,292,270,423,235,236,701,696,697,698,218,220,221,222,662,663,699,761,40,15,271,1177,1093,272,273,274,275,336,625,326,327,276,277,828,574,282,283,284,286,59,432,126,110,18,287,37,198,299,1003,288,289,346,290,546,811,451,58,354,355,1023,528,1024,332,333,1020,63,64,483,60,1070,83,1048,1026,1027,1175,453,120,1445,1025,31,1500,0)) {} + FIELD_SET(*this, FIX::MDUpdateAction); + FIELD_SET(*this, FIX::DeleteReason); + FIELD_SET(*this, FIX::MDSubBookType); + FIELD_SET(*this, FIX::MarketDepth); + FIELD_SET(*this, FIX::MDEntryType); + FIELD_SET(*this, FIX::MDEntryID); + FIELD_SET(*this, FIX::MDEntryRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::MDEntryPx); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::MDEntrySize); + FIELD_SET(*this, FIX::NoOfSecSizes); + class NoOfSecSizes: public FIX::Group + { + public: + NoOfSecSizes() : FIX::Group(1177,1178,FIX::message_order(1178,1179,0)) {} + FIELD_SET(*this, FIX::MDSecSizeType); + FIELD_SET(*this, FIX::MDSecSize); + }; + FIELD_SET(*this, FIX::LotType); + FIELD_SET(*this, FIX::MDEntryDate); + FIELD_SET(*this, FIX::MDEntryTime); + FIELD_SET(*this, FIX::TickDirection); + FIELD_SET(*this, FIX::MDMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SecurityTradingStatus); + FIELD_SET(*this, FIX::HaltReasonInt); + FIELD_SET(*this, FIX::QuoteCondition); + FIELD_SET(*this, FIX::TradeCondition); + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::MDEntryOriginator); + FIELD_SET(*this, FIX::LocationID); + FIELD_SET(*this, FIX::DeskID); + FIELD_SET(*this, FIX::OpenCloseSettlFlag); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::SellerDays); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::TradeID); + FIELD_SET(*this, FIX::MDEntryBuyer); + FIELD_SET(*this, FIX::MDEntrySeller); + FIELD_SET(*this, FIX::NumberOfOrders); + FIELD_SET(*this, FIX::MDEntryPositionNo); + FIELD_SET(*this, FIX::Scope); + FIELD_SET(*this, FIX::PriceDelta); + FIELD_SET(*this, FIX::NetChgPrevDay); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::MDPriceLevel); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::MDOriginType); + FIELD_SET(*this, FIX::HighPx); + FIELD_SET(*this, FIX::LowPx); + FIELD_SET(*this, FIX::TradeVolume); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::TransBkdTime); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::MDQuoteType); + FIELD_SET(*this, FIX::RptSeq); + FIELD_SET(*this, FIX::DealingCapacity); + FIELD_SET(*this, FIX::MDEntrySpotRate); + FIELD_SET(*this, FIX::MDEntryForwardPoints); + FIELD_SET(*this, FIX::NoStatsIndicators); + class NoStatsIndicators: public FIX::Group + { + public: + NoStatsIndicators() : FIX::Group(1175,1176,FIX::message_order(1176,0)) {} + FIELD_SET(*this, FIX::StatsType); + }; + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::NoRateSources); + class NoRateSources: public FIX::Group + { + public: + NoRateSources() : FIX::Group(1445,1446,FIX::message_order(1446,1447,1448,0)) {} + FIELD_SET(*this, FIX::RateSource); + FIELD_SET(*this, FIX::RateSourceType); + FIELD_SET(*this, FIX::ReferencePage); + }; + FIELD_SET(*this, FIX::FirstPx); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::MDStreamID); + }; + FIELD_SET(*this, FIX::ApplQueueDepth); + FIELD_SET(*this, FIX::ApplQueueResolution); + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/MarketDataRequest.h b/linux/include/quickfix/fix50sp2/MarketDataRequest.h new file mode 100644 index 000000000..2f8d67098 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/MarketDataRequest.h @@ -0,0 +1,302 @@ +#ifndef FIX50SP2_MARKETDATAREQUEST_H +#define FIX50SP2_MARKETDATAREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class MarketDataRequest : public Message + { + public: + MarketDataRequest() : Message(MsgType()) {} + MarketDataRequest(const FIX::Message& m) : Message(m) {} + MarketDataRequest(const Message& m) : Message(m) {} + MarketDataRequest(const MarketDataRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("V"); } + + MarketDataRequest( + const FIX::MDReqID& aMDReqID, + const FIX::SubscriptionRequestType& aSubscriptionRequestType, + const FIX::MarketDepth& aMarketDepth ) + : Message(MsgType()) + { + set(aMDReqID); + set(aSubscriptionRequestType); + set(aMarketDepth); + } + + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::MarketDepth); + FIELD_SET(*this, FIX::MDUpdateType); + FIELD_SET(*this, FIX::AggregatedBook); + FIELD_SET(*this, FIX::OpenCloseSettlFlag); + FIELD_SET(*this, FIX::Scope); + FIELD_SET(*this, FIX::MDImplicitDelete); + FIELD_SET(*this, FIX::NoMDEntryTypes); + class NoMDEntryTypes: public FIX::Group + { + public: + NoMDEntryTypes() : FIX::Group(267,269,FIX::message_order(269,0)) {} + FIELD_SET(*this, FIX::MDEntryType); + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,1435,1439,1449,1450,1451,1452,1457,1458,1478,1479,1480,1481,1482,711,555,15,537,63,64,271,1500,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::MDEntrySize); + FIELD_SET(*this, FIX::MDStreamID); + }; + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ApplQueueAction); + FIELD_SET(*this, FIX::ApplQueueMax); + FIELD_SET(*this, FIX::MDQuoteType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/MarketDataRequestReject.h b/linux/include/quickfix/fix50sp2/MarketDataRequestReject.h new file mode 100644 index 000000000..9c1c4ab57 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/MarketDataRequestReject.h @@ -0,0 +1,58 @@ +#ifndef FIX50SP2_MARKETDATAREQUESTREJECT_H +#define FIX50SP2_MARKETDATAREQUESTREJECT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class MarketDataRequestReject : public Message + { + public: + MarketDataRequestReject() : Message(MsgType()) {} + MarketDataRequestReject(const FIX::Message& m) : Message(m) {} + MarketDataRequestReject(const Message& m) : Message(m) {} + MarketDataRequestReject(const MarketDataRequestReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("Y"); } + + MarketDataRequestReject( + const FIX::MDReqID& aMDReqID ) + : Message(MsgType()) + { + set(aMDReqID); + } + + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::MDReqRejReason); + FIELD_SET(*this, FIX::NoAltMDSource); + class NoAltMDSource: public FIX::Group + { + public: + NoAltMDSource() : FIX::Group(816,817,FIX::message_order(817,0)) {} + FIELD_SET(*this, FIX::AltMDSourceID); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/MarketDataSnapshotFullRefresh.h b/linux/include/quickfix/fix50sp2/MarketDataSnapshotFullRefresh.h new file mode 100644 index 000000000..c741ff08b --- /dev/null +++ b/linux/include/quickfix/fix50sp2/MarketDataSnapshotFullRefresh.h @@ -0,0 +1,375 @@ +#ifndef FIX50SP2_MARKETDATASNAPSHOTFULLREFRESH_H +#define FIX50SP2_MARKETDATASNAPSHOTFULLREFRESH_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class MarketDataSnapshotFullRefresh : public Message + { + public: + MarketDataSnapshotFullRefresh() : Message(MsgType()) {} + MarketDataSnapshotFullRefresh(const FIX::Message& m) : Message(m) {} + MarketDataSnapshotFullRefresh(const Message& m) : Message(m) {} + MarketDataSnapshotFullRefresh(const MarketDataSnapshotFullRefresh& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("W"); } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::TotNumReports); + FIELD_SET(*this, FIX::MDReportID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::MDBookType); + FIELD_SET(*this, FIX::MDSubBookType); + FIELD_SET(*this, FIX::MarketDepth); + FIELD_SET(*this, FIX::MDFeedType); + FIELD_SET(*this, FIX::RefreshIndicator); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::MDReqID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::NetChgPrevDay); + FIELD_SET(*this, FIX::NoMDEntries); + class NoMDEntries: public FIX::Group + { + public: + NoMDEntries() : FIX::Group(268,269,FIX::message_order(269,278,270,423,235,236,701,696,697,698,218,220,221,222,662,663,699,761,40,15,271,1177,1093,272,273,274,275,336,625,326,327,276,277,282,283,284,286,59,432,126,110,18,287,37,198,299,288,289,346,290,546,811,58,354,355,1023,528,1024,332,333,1020,63,64,1070,83,1048,1026,1027,453,120,1445,828,1025,31,0)) {} + FIELD_SET(*this, FIX::MDEntryType); + FIELD_SET(*this, FIX::MDEntryID); + FIELD_SET(*this, FIX::MDEntryPx); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::MDEntrySize); + FIELD_SET(*this, FIX::NoOfSecSizes); + class NoOfSecSizes: public FIX::Group + { + public: + NoOfSecSizes() : FIX::Group(1177,1178,FIX::message_order(1178,1179,0)) {} + FIELD_SET(*this, FIX::MDSecSizeType); + FIELD_SET(*this, FIX::MDSecSize); + }; + FIELD_SET(*this, FIX::LotType); + FIELD_SET(*this, FIX::MDEntryDate); + FIELD_SET(*this, FIX::MDEntryTime); + FIELD_SET(*this, FIX::TickDirection); + FIELD_SET(*this, FIX::MDMkt); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SecurityTradingStatus); + FIELD_SET(*this, FIX::HaltReasonInt); + FIELD_SET(*this, FIX::QuoteCondition); + FIELD_SET(*this, FIX::TradeCondition); + FIELD_SET(*this, FIX::MDEntryOriginator); + FIELD_SET(*this, FIX::LocationID); + FIELD_SET(*this, FIX::DeskID); + FIELD_SET(*this, FIX::OpenCloseSettlFlag); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::SellerDays); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::MDEntryBuyer); + FIELD_SET(*this, FIX::MDEntrySeller); + FIELD_SET(*this, FIX::NumberOfOrders); + FIELD_SET(*this, FIX::MDEntryPositionNo); + FIELD_SET(*this, FIX::Scope); + FIELD_SET(*this, FIX::PriceDelta); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::MDPriceLevel); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::MDOriginType); + FIELD_SET(*this, FIX::HighPx); + FIELD_SET(*this, FIX::LowPx); + FIELD_SET(*this, FIX::TradeVolume); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::MDQuoteType); + FIELD_SET(*this, FIX::RptSeq); + FIELD_SET(*this, FIX::DealingCapacity); + FIELD_SET(*this, FIX::MDEntrySpotRate); + FIELD_SET(*this, FIX::MDEntryForwardPoints); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::NoRateSources); + class NoRateSources: public FIX::Group + { + public: + NoRateSources() : FIX::Group(1445,1446,FIX::message_order(1446,1447,1448,0)) {} + FIELD_SET(*this, FIX::RateSource); + FIELD_SET(*this, FIX::RateSourceType); + FIELD_SET(*this, FIX::ReferencePage); + }; + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::FirstPx); + FIELD_SET(*this, FIX::LastPx); + }; + FIELD_SET(*this, FIX::ApplQueueDepth); + FIELD_SET(*this, FIX::ApplQueueResolution); + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + FIELD_SET(*this, FIX::MDStreamID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/MarketDefinition.h b/linux/include/quickfix/fix50sp2/MarketDefinition.h new file mode 100644 index 000000000..609316101 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/MarketDefinition.h @@ -0,0 +1,79 @@ +#ifndef FIX50SP2_MARKETDEFINITION_H +#define FIX50SP2_MARKETDEFINITION_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class MarketDefinition : public Message + { + public: + MarketDefinition() : Message(MsgType()) {} + MarketDefinition(const FIX::Message& m) : Message(m) {} + MarketDefinition(const Message& m) : Message(m) {} + MarketDefinition(const MarketDefinition& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BU"); } + + MarketDefinition( + const FIX::MarketReportID& aMarketReportID, + const FIX::MarketID& aMarketID ) + : Message(MsgType()) + { + set(aMarketReportID); + set(aMarketID); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::MarketReportID); + FIELD_SET(*this, FIX::MarketReqID); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::MarketSegmentDesc); + FIELD_SET(*this, FIX::EncodedMktSegmDescLen); + FIELD_SET(*this, FIX::EncodedMktSegmDesc); + FIELD_SET(*this, FIX::ParentMktSegmID); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ExpirationCycle); + FIELD_SET(*this, FIX::MinTradeVol); + FIELD_SET(*this, FIX::MaxTradeVol); + FIELD_SET(*this, FIX::MaxPriceVariation); + FIELD_SET(*this, FIX::ImpliedMarketIndicator); + FIELD_SET(*this, FIX::TradingCurrency); + FIELD_SET(*this, FIX::RoundLot); + FIELD_SET(*this, FIX::MultilegModel); + FIELD_SET(*this, FIX::MultilegPriceMethod); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::NoOrdTypeRules); + class NoOrdTypeRules: public FIX::Group + { + public: + NoOrdTypeRules() : FIX::Group(1237,40,FIX::message_order(40,0)) {} + FIELD_SET(*this, FIX::OrdType); + }; + FIELD_SET(*this, FIX::NoTimeInForceRules); + class NoTimeInForceRules: public FIX::Group + { + public: + NoTimeInForceRules() : FIX::Group(1239,59,FIX::message_order(59,0)) {} + FIELD_SET(*this, FIX::TimeInForce); + }; + FIELD_SET(*this, FIX::NoExecInstRules); + class NoExecInstRules: public FIX::Group + { + public: + NoExecInstRules() : FIX::Group(1232,1308,FIX::message_order(1308,0)) {} + FIELD_SET(*this, FIX::ExecInstValue); + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/MarketDefinitionRequest.h b/linux/include/quickfix/fix50sp2/MarketDefinitionRequest.h new file mode 100644 index 000000000..d5fb4a10d --- /dev/null +++ b/linux/include/quickfix/fix50sp2/MarketDefinitionRequest.h @@ -0,0 +1,36 @@ +#ifndef FIX50SP2_MARKETDEFINITIONREQUEST_H +#define FIX50SP2_MARKETDEFINITIONREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class MarketDefinitionRequest : public Message + { + public: + MarketDefinitionRequest() : Message(MsgType()) {} + MarketDefinitionRequest(const FIX::Message& m) : Message(m) {} + MarketDefinitionRequest(const Message& m) : Message(m) {} + MarketDefinitionRequest(const MarketDefinitionRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BT"); } + + MarketDefinitionRequest( + const FIX::MarketReqID& aMarketReqID, + const FIX::SubscriptionRequestType& aSubscriptionRequestType ) + : Message(MsgType()) + { + set(aMarketReqID); + set(aSubscriptionRequestType); + } + + FIELD_SET(*this, FIX::MarketReqID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::ParentMktSegmID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/MarketDefinitionUpdateReport.h b/linux/include/quickfix/fix50sp2/MarketDefinitionUpdateReport.h new file mode 100644 index 000000000..56dc1b823 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/MarketDefinitionUpdateReport.h @@ -0,0 +1,80 @@ +#ifndef FIX50SP2_MARKETDEFINITIONUPDATEREPORT_H +#define FIX50SP2_MARKETDEFINITIONUPDATEREPORT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class MarketDefinitionUpdateReport : public Message + { + public: + MarketDefinitionUpdateReport() : Message(MsgType()) {} + MarketDefinitionUpdateReport(const FIX::Message& m) : Message(m) {} + MarketDefinitionUpdateReport(const Message& m) : Message(m) {} + MarketDefinitionUpdateReport(const MarketDefinitionUpdateReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BV"); } + + MarketDefinitionUpdateReport( + const FIX::MarketReportID& aMarketReportID, + const FIX::MarketID& aMarketID ) + : Message(MsgType()) + { + set(aMarketReportID); + set(aMarketID); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::MarketReportID); + FIELD_SET(*this, FIX::MarketReqID); + FIELD_SET(*this, FIX::MarketUpdateAction); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::MarketSegmentDesc); + FIELD_SET(*this, FIX::EncodedMktSegmDescLen); + FIELD_SET(*this, FIX::EncodedMktSegmDesc); + FIELD_SET(*this, FIX::ParentMktSegmID); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ExpirationCycle); + FIELD_SET(*this, FIX::MinTradeVol); + FIELD_SET(*this, FIX::MaxTradeVol); + FIELD_SET(*this, FIX::MaxPriceVariation); + FIELD_SET(*this, FIX::ImpliedMarketIndicator); + FIELD_SET(*this, FIX::TradingCurrency); + FIELD_SET(*this, FIX::RoundLot); + FIELD_SET(*this, FIX::MultilegModel); + FIELD_SET(*this, FIX::MultilegPriceMethod); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::NoOrdTypeRules); + class NoOrdTypeRules: public FIX::Group + { + public: + NoOrdTypeRules() : FIX::Group(1237,40,FIX::message_order(40,0)) {} + FIELD_SET(*this, FIX::OrdType); + }; + FIELD_SET(*this, FIX::NoTimeInForceRules); + class NoTimeInForceRules: public FIX::Group + { + public: + NoTimeInForceRules() : FIX::Group(1239,59,FIX::message_order(59,0)) {} + FIELD_SET(*this, FIX::TimeInForce); + }; + FIELD_SET(*this, FIX::NoExecInstRules); + class NoExecInstRules: public FIX::Group + { + public: + NoExecInstRules() : FIX::Group(1232,1308,FIX::message_order(1308,0)) {} + FIELD_SET(*this, FIX::ExecInstValue); + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/MassQuote.h b/linux/include/quickfix/fix50sp2/MassQuote.h new file mode 100644 index 000000000..cf7d37814 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/MassQuote.h @@ -0,0 +1,306 @@ +#ifndef FIX50SP2_MASSQUOTE_H +#define FIX50SP2_MASSQUOTE_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class MassQuote : public Message + { + public: + MassQuote() : Message(MsgType()) {} + MassQuote(const FIX::Message& m) : Message(m) {} + MassQuote(const Message& m) : Message(m) {} + MassQuote(const MassQuote& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("i"); } + + MassQuote( + const FIX::QuoteID& aQuoteID ) + : Message(MsgType()) + { + set(aQuoteID); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DefBidSize); + FIELD_SET(*this, FIX::DefOfferSize); + FIELD_SET(*this, FIX::NoQuoteSets); + class NoQuoteSets: public FIX::Group + { + public: + NoQuoteSets() : FIX::Group(296,302,FIX::message_order(302,311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,367,304,893,295,0)) {} + FIELD_SET(*this, FIX::QuoteSetID); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + FIELD_SET(*this, FIX::QuoteSetValidUntilTime); + FIELD_SET(*this, FIX::TotNoQuoteEntries); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoQuoteEntries); + class NoQuoteEntries: public FIX::Group + { + public: + NoQuoteEntries() : FIX::Group(295,299,FIX::message_order(299,55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,1435,1439,1449,1450,1451,1452,1457,1458,1478,1479,1480,1481,1482,555,132,133,134,135,62,188,190,189,191,631,632,633,634,60,336,625,64,40,193,192,642,643,15,775,528,529,0)) {} + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/MassQuoteAcknowledgement.h b/linux/include/quickfix/fix50sp2/MassQuoteAcknowledgement.h new file mode 100644 index 000000000..b6c8aa70f --- /dev/null +++ b/linux/include/quickfix/fix50sp2/MassQuoteAcknowledgement.h @@ -0,0 +1,324 @@ +#ifndef FIX50SP2_MASSQUOTEACKNOWLEDGEMENT_H +#define FIX50SP2_MASSQUOTEACKNOWLEDGEMENT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class MassQuoteAcknowledgement : public Message + { + public: + MassQuoteAcknowledgement() : Message(MsgType()) {} + MassQuoteAcknowledgement(const FIX::Message& m) : Message(m) {} + MassQuoteAcknowledgement(const Message& m) : Message(m) {} + MassQuoteAcknowledgement(const MassQuoteAcknowledgement& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("b"); } + + MassQuoteAcknowledgement( + const FIX::QuoteStatus& aQuoteStatus ) + : Message(MsgType()) + { + set(aQuoteStatus); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteStatus); + FIELD_SET(*this, FIX::QuoteRejectReason); + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::QuoteCancelType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoQuoteSets); + class NoQuoteSets: public FIX::Group + { + public: + NoQuoteSets() : FIX::Group(296,302,FIX::message_order(302,311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,304,1168,1169,1170,893,295,367,0)) {} + FIELD_SET(*this, FIX::QuoteSetID); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + FIELD_SET(*this, FIX::TotNoQuoteEntries); + FIELD_SET(*this, FIX::TotNoCxldQuotes); + FIELD_SET(*this, FIX::TotNoAccQuotes); + FIELD_SET(*this, FIX::TotNoRejQuotes); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoQuoteEntries); + class NoQuoteEntries: public FIX::Group + { + public: + NoQuoteEntries() : FIX::Group(295,299,FIX::message_order(299,55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,1435,1439,1449,1450,1451,1452,1457,1458,1478,1479,1480,1481,1482,555,132,133,134,135,62,188,190,189,191,631,632,633,634,60,336,625,64,40,193,192,642,643,15,1167,368,775,528,529,0)) {} + FIELD_SET(*this, FIX::QuoteEntryID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::QuoteEntryStatus); + FIELD_SET(*this, FIX::QuoteEntryRejectReason); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + }; + FIELD_SET(*this, FIX::QuoteSetValidUntilTime); + }; + FIELD_SET(*this, FIX::NoTargetPartyIDs); + class NoTargetPartyIDs: public FIX::Group + { + public: + NoTargetPartyIDs() : FIX::Group(1461,1462,FIX::message_order(1462,1463,1464,0)) {} + FIELD_SET(*this, FIX::TargetPartyID); + FIELD_SET(*this, FIX::TargetPartyIDSource); + FIELD_SET(*this, FIX::TargetPartyRole); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/Message.h b/linux/include/quickfix/fix50sp2/Message.h new file mode 100644 index 000000000..b5f9e7af6 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/Message.h @@ -0,0 +1,37 @@ +#ifndef FIX50SP2_MESSAGES_H +#define FIX50SP2_MESSAGES_H + +#include "../Message.h" +#include "../Group.h" + +namespace FIX50SP2 +{ + class Header : public FIX::Header + { + public: + }; + + class Trailer : public FIX::Trailer + { + public: + }; + + class Message : public FIX::Message + { + public: + Message( const FIX::MsgType& msgtype ) + : FIX::Message( + FIX::BeginString("FIXT.1.1"), msgtype ) + { getHeader().setField( FIX::ApplVerID("9") ); } + + Message(const FIX::Message& m) : FIX::Message(m) {} + Message(const Message& m) : FIX::Message(m) {} + Header& getHeader() { return (Header&)m_header; } + const Header& getHeader() const { return (Header&)m_header; } + Trailer& getTrailer() { return (Trailer&)m_trailer; } + const Trailer& getTrailer() const { return (Trailer&)m_trailer; } + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/MessageCracker.h b/linux/include/quickfix/fix50sp2/MessageCracker.h new file mode 100644 index 000000000..81cf4464a --- /dev/null +++ b/linux/include/quickfix/fix50sp2/MessageCracker.h @@ -0,0 +1,1144 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIX50SP2_MESSAGECRACKER_H +#define FIX50SP2_MESSAGECRACKER_H + + +#include "../SessionID.h" +#include "../Exceptions.h" + +#include "../fix50sp2/Message.h" + +namespace FIX50SP2 +{ + class IOI; + class Advertisement; + class ExecutionReport; + class OrderCancelReject; + class News; + class Email; + class NewOrderSingle; + class NewOrderList; + class OrderCancelRequest; + class OrderCancelReplaceRequest; + class OrderStatusRequest; + class AllocationInstruction; + class ListCancelRequest; + class ListExecute; + class ListStatusRequest; + class ListStatus; + class AllocationInstructionAck; + class DontKnowTrade; + class QuoteRequest; + class Quote; + class SettlementInstructions; + class MarketDataRequest; + class MarketDataSnapshotFullRefresh; + class MarketDataIncrementalRefresh; + class MarketDataRequestReject; + class QuoteCancel; + class QuoteStatusRequest; + class MassQuoteAcknowledgement; + class SecurityDefinitionRequest; + class SecurityDefinition; + class SecurityStatusRequest; + class SecurityStatus; + class TradingSessionStatusRequest; + class TradingSessionStatus; + class MassQuote; + class BusinessMessageReject; + class BidRequest; + class BidResponse; + class ListStrikePrice; + class RegistrationInstructions; + class RegistrationInstructionsResponse; + class OrderMassCancelRequest; + class OrderMassCancelReport; + class NewOrderCross; + class CrossOrderCancelReplaceRequest; + class CrossOrderCancelRequest; + class SecurityTypeRequest; + class SecurityTypes; + class SecurityListRequest; + class SecurityList; + class DerivativeSecurityListRequest; + class DerivativeSecurityList; + class NewOrderMultileg; + class MultilegOrderCancelReplace; + class TradeCaptureReportRequest; + class TradeCaptureReport; + class OrderMassStatusRequest; + class QuoteRequestReject; + class RFQRequest; + class QuoteStatusReport; + class QuoteResponse; + class Confirmation; + class PositionMaintenanceRequest; + class PositionMaintenanceReport; + class RequestForPositions; + class RequestForPositionsAck; + class PositionReport; + class TradeCaptureReportRequestAck; + class TradeCaptureReportAck; + class AllocationReport; + class AllocationReportAck; + class ConfirmationAck; + class SettlementInstructionRequest; + class AssignmentReport; + class CollateralRequest; + class CollateralAssignment; + class CollateralResponse; + class CollateralReport; + class CollateralInquiry; + class NetworkCounterpartySystemStatusRequest; + class NetworkCounterpartySystemStatusResponse; + class UserRequest; + class UserResponse; + class CollateralInquiryAck; + class ConfirmationRequest; + class ContraryIntentionReport; + class SecurityDefinitionUpdateReport; + class SecurityListUpdateReport; + class AdjustedPositionReport; + class AllocationInstructionAlert; + class ExecutionAcknowledgement; + class TradingSessionList; + class TradingSessionListRequest; + class SettlementObligationReport; + class DerivativeSecurityListUpdateReport; + class TradingSessionListUpdateReport; + class MarketDefinitionRequest; + class MarketDefinition; + class MarketDefinitionUpdateReport; + class ApplicationMessageRequest; + class ApplicationMessageRequestAck; + class ApplicationMessageReport; + class OrderMassActionReport; + class OrderMassActionRequest; + class UserNotification; + class StreamAssignmentRequest; + class StreamAssignmentReport; + class StreamAssignmentReportACK; + + class MessageCracker + { + public: + virtual ~MessageCracker() {} + virtual void onMessage( const Message&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( Message&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const IOI&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Advertisement&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ExecutionReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelReject&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const News&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Email&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderSingle&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderList&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderCancelReplaceRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AllocationInstruction&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListExecute&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListStatus&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AllocationInstructionAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const DontKnowTrade&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Quote&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SettlementInstructions&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataSnapshotFullRefresh&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataIncrementalRefresh&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDataRequestReject&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteCancel&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MassQuoteAcknowledgement&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityDefinitionRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityDefinition&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityStatus&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradingSessionStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradingSessionStatus&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MassQuote&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const BusinessMessageReject&, const FIX::SessionID& ) + {} + virtual void onMessage( const BidRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const BidResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ListStrikePrice&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const RegistrationInstructions&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const RegistrationInstructionsResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderMassCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderMassCancelReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderCross&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CrossOrderCancelReplaceRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CrossOrderCancelRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityTypeRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityTypes&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityListRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityList&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const DerivativeSecurityListRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const DerivativeSecurityList&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NewOrderMultileg&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MultilegOrderCancelReplace&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradeCaptureReportRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradeCaptureReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderMassStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteRequestReject&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const RFQRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteStatusReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const QuoteResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Confirmation&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const PositionMaintenanceRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const PositionMaintenanceReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const RequestForPositions&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const RequestForPositionsAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const PositionReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradeCaptureReportRequestAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradeCaptureReportAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AllocationReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AllocationReportAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ConfirmationAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SettlementInstructionRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AssignmentReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralAssignment&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralInquiry&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NetworkCounterpartySystemStatusRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const NetworkCounterpartySystemStatusResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const UserRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const UserResponse&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const CollateralInquiryAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ConfirmationRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ContraryIntentionReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityDefinitionUpdateReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SecurityListUpdateReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AdjustedPositionReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const AllocationInstructionAlert&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ExecutionAcknowledgement&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradingSessionList&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradingSessionListRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const SettlementObligationReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const DerivativeSecurityListUpdateReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const TradingSessionListUpdateReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDefinitionRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDefinition&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const MarketDefinitionUpdateReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ApplicationMessageRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ApplicationMessageRequestAck&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const ApplicationMessageReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderMassActionReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const OrderMassActionRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const UserNotification&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const StreamAssignmentRequest&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const StreamAssignmentReport&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const StreamAssignmentReportACK&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( IOI&, const FIX::SessionID& ) {} + virtual void onMessage( Advertisement&, const FIX::SessionID& ) {} + virtual void onMessage( ExecutionReport&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelReject&, const FIX::SessionID& ) {} + virtual void onMessage( News&, const FIX::SessionID& ) {} + virtual void onMessage( Email&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderSingle&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderList&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( OrderCancelReplaceRequest&, const FIX::SessionID& ) {} + virtual void onMessage( OrderStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( AllocationInstruction&, const FIX::SessionID& ) {} + virtual void onMessage( ListCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ListExecute&, const FIX::SessionID& ) {} + virtual void onMessage( ListStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ListStatus&, const FIX::SessionID& ) {} + virtual void onMessage( AllocationInstructionAck&, const FIX::SessionID& ) {} + virtual void onMessage( DontKnowTrade&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteRequest&, const FIX::SessionID& ) {} + virtual void onMessage( Quote&, const FIX::SessionID& ) {} + virtual void onMessage( SettlementInstructions&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataRequest&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataSnapshotFullRefresh&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataIncrementalRefresh&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDataRequestReject&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteCancel&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( MassQuoteAcknowledgement&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityDefinitionRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityDefinition&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityStatus&, const FIX::SessionID& ) {} + virtual void onMessage( TradingSessionStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( TradingSessionStatus&, const FIX::SessionID& ) {} + virtual void onMessage( MassQuote&, const FIX::SessionID& ) {} + virtual void onMessage( BusinessMessageReject&, const FIX::SessionID& ) {} + virtual void onMessage( BidRequest&, const FIX::SessionID& ) {} + virtual void onMessage( BidResponse&, const FIX::SessionID& ) {} + virtual void onMessage( ListStrikePrice&, const FIX::SessionID& ) {} + virtual void onMessage( RegistrationInstructions&, const FIX::SessionID& ) {} + virtual void onMessage( RegistrationInstructionsResponse&, const FIX::SessionID& ) {} + virtual void onMessage( OrderMassCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( OrderMassCancelReport&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderCross&, const FIX::SessionID& ) {} + virtual void onMessage( CrossOrderCancelReplaceRequest&, const FIX::SessionID& ) {} + virtual void onMessage( CrossOrderCancelRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityTypeRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityTypes&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityListRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityList&, const FIX::SessionID& ) {} + virtual void onMessage( DerivativeSecurityListRequest&, const FIX::SessionID& ) {} + virtual void onMessage( DerivativeSecurityList&, const FIX::SessionID& ) {} + virtual void onMessage( NewOrderMultileg&, const FIX::SessionID& ) {} + virtual void onMessage( MultilegOrderCancelReplace&, const FIX::SessionID& ) {} + virtual void onMessage( TradeCaptureReportRequest&, const FIX::SessionID& ) {} + virtual void onMessage( TradeCaptureReport&, const FIX::SessionID& ) {} + virtual void onMessage( OrderMassStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteRequestReject&, const FIX::SessionID& ) {} + virtual void onMessage( RFQRequest&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteStatusReport&, const FIX::SessionID& ) {} + virtual void onMessage( QuoteResponse&, const FIX::SessionID& ) {} + virtual void onMessage( Confirmation&, const FIX::SessionID& ) {} + virtual void onMessage( PositionMaintenanceRequest&, const FIX::SessionID& ) {} + virtual void onMessage( PositionMaintenanceReport&, const FIX::SessionID& ) {} + virtual void onMessage( RequestForPositions&, const FIX::SessionID& ) {} + virtual void onMessage( RequestForPositionsAck&, const FIX::SessionID& ) {} + virtual void onMessage( PositionReport&, const FIX::SessionID& ) {} + virtual void onMessage( TradeCaptureReportRequestAck&, const FIX::SessionID& ) {} + virtual void onMessage( TradeCaptureReportAck&, const FIX::SessionID& ) {} + virtual void onMessage( AllocationReport&, const FIX::SessionID& ) {} + virtual void onMessage( AllocationReportAck&, const FIX::SessionID& ) {} + virtual void onMessage( ConfirmationAck&, const FIX::SessionID& ) {} + virtual void onMessage( SettlementInstructionRequest&, const FIX::SessionID& ) {} + virtual void onMessage( AssignmentReport&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralRequest&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralAssignment&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralResponse&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralReport&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralInquiry&, const FIX::SessionID& ) {} + virtual void onMessage( NetworkCounterpartySystemStatusRequest&, const FIX::SessionID& ) {} + virtual void onMessage( NetworkCounterpartySystemStatusResponse&, const FIX::SessionID& ) {} + virtual void onMessage( UserRequest&, const FIX::SessionID& ) {} + virtual void onMessage( UserResponse&, const FIX::SessionID& ) {} + virtual void onMessage( CollateralInquiryAck&, const FIX::SessionID& ) {} + virtual void onMessage( ConfirmationRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ContraryIntentionReport&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityDefinitionUpdateReport&, const FIX::SessionID& ) {} + virtual void onMessage( SecurityListUpdateReport&, const FIX::SessionID& ) {} + virtual void onMessage( AdjustedPositionReport&, const FIX::SessionID& ) {} + virtual void onMessage( AllocationInstructionAlert&, const FIX::SessionID& ) {} + virtual void onMessage( ExecutionAcknowledgement&, const FIX::SessionID& ) {} + virtual void onMessage( TradingSessionList&, const FIX::SessionID& ) {} + virtual void onMessage( TradingSessionListRequest&, const FIX::SessionID& ) {} + virtual void onMessage( SettlementObligationReport&, const FIX::SessionID& ) {} + virtual void onMessage( DerivativeSecurityListUpdateReport&, const FIX::SessionID& ) {} + virtual void onMessage( TradingSessionListUpdateReport&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDefinitionRequest&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDefinition&, const FIX::SessionID& ) {} + virtual void onMessage( MarketDefinitionUpdateReport&, const FIX::SessionID& ) {} + virtual void onMessage( ApplicationMessageRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ApplicationMessageRequestAck&, const FIX::SessionID& ) {} + virtual void onMessage( ApplicationMessageReport&, const FIX::SessionID& ) {} + virtual void onMessage( OrderMassActionReport&, const FIX::SessionID& ) {} + virtual void onMessage( OrderMassActionRequest&, const FIX::SessionID& ) {} + virtual void onMessage( UserNotification&, const FIX::SessionID& ) {} + virtual void onMessage( StreamAssignmentRequest&, const FIX::SessionID& ) {} + virtual void onMessage( StreamAssignmentReport&, const FIX::SessionID& ) {} + virtual void onMessage( StreamAssignmentReportACK&, const FIX::SessionID& ) {} + +public: + void crack( const Message& message, + const FIX::SessionID& sessionID ) + { + const std::string& msgTypeValue + = message.getHeader().getField( FIX::FIELD::MsgType ); + + if( msgTypeValue == "6" ) + onMessage( (const IOI&)message, sessionID ); + else + if( msgTypeValue == "7" ) + onMessage( (const Advertisement&)message, sessionID ); + else + if( msgTypeValue == "8" ) + onMessage( (const ExecutionReport&)message, sessionID ); + else + if( msgTypeValue == "9" ) + onMessage( (const OrderCancelReject&)message, sessionID ); + else + if( msgTypeValue == "B" ) + onMessage( (const News&)message, sessionID ); + else + if( msgTypeValue == "C" ) + onMessage( (const Email&)message, sessionID ); + else + if( msgTypeValue == "D" ) + onMessage( (const NewOrderSingle&)message, sessionID ); + else + if( msgTypeValue == "E" ) + onMessage( (const NewOrderList&)message, sessionID ); + else + if( msgTypeValue == "F" ) + onMessage( (const OrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "G" ) + onMessage( (const OrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "H" ) + onMessage( (const OrderStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "J" ) + onMessage( (const AllocationInstruction&)message, sessionID ); + else + if( msgTypeValue == "K" ) + onMessage( (const ListCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "L" ) + onMessage( (const ListExecute&)message, sessionID ); + else + if( msgTypeValue == "M" ) + onMessage( (const ListStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "N" ) + onMessage( (const ListStatus&)message, sessionID ); + else + if( msgTypeValue == "P" ) + onMessage( (const AllocationInstructionAck&)message, sessionID ); + else + if( msgTypeValue == "Q" ) + onMessage( (const DontKnowTrade&)message, sessionID ); + else + if( msgTypeValue == "R" ) + onMessage( (const QuoteRequest&)message, sessionID ); + else + if( msgTypeValue == "S" ) + onMessage( (const Quote&)message, sessionID ); + else + if( msgTypeValue == "T" ) + onMessage( (const SettlementInstructions&)message, sessionID ); + else + if( msgTypeValue == "V" ) + onMessage( (const MarketDataRequest&)message, sessionID ); + else + if( msgTypeValue == "W" ) + onMessage( (const MarketDataSnapshotFullRefresh&)message, sessionID ); + else + if( msgTypeValue == "X" ) + onMessage( (const MarketDataIncrementalRefresh&)message, sessionID ); + else + if( msgTypeValue == "Y" ) + onMessage( (const MarketDataRequestReject&)message, sessionID ); + else + if( msgTypeValue == "Z" ) + onMessage( (const QuoteCancel&)message, sessionID ); + else + if( msgTypeValue == "a" ) + onMessage( (const QuoteStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "b" ) + onMessage( (const MassQuoteAcknowledgement&)message, sessionID ); + else + if( msgTypeValue == "c" ) + onMessage( (const SecurityDefinitionRequest&)message, sessionID ); + else + if( msgTypeValue == "d" ) + onMessage( (const SecurityDefinition&)message, sessionID ); + else + if( msgTypeValue == "e" ) + onMessage( (const SecurityStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "f" ) + onMessage( (const SecurityStatus&)message, sessionID ); + else + if( msgTypeValue == "g" ) + onMessage( (const TradingSessionStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "h" ) + onMessage( (const TradingSessionStatus&)message, sessionID ); + else + if( msgTypeValue == "i" ) + onMessage( (const MassQuote&)message, sessionID ); + else + if( msgTypeValue == "j" ) + onMessage( (const BusinessMessageReject&)message, sessionID ); + else + if( msgTypeValue == "k" ) + onMessage( (const BidRequest&)message, sessionID ); + else + if( msgTypeValue == "l" ) + onMessage( (const BidResponse&)message, sessionID ); + else + if( msgTypeValue == "m" ) + onMessage( (const ListStrikePrice&)message, sessionID ); + else + if( msgTypeValue == "o" ) + onMessage( (const RegistrationInstructions&)message, sessionID ); + else + if( msgTypeValue == "p" ) + onMessage( (const RegistrationInstructionsResponse&)message, sessionID ); + else + if( msgTypeValue == "q" ) + onMessage( (const OrderMassCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "r" ) + onMessage( (const OrderMassCancelReport&)message, sessionID ); + else + if( msgTypeValue == "s" ) + onMessage( (const NewOrderCross&)message, sessionID ); + else + if( msgTypeValue == "t" ) + onMessage( (const CrossOrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "u" ) + onMessage( (const CrossOrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "v" ) + onMessage( (const SecurityTypeRequest&)message, sessionID ); + else + if( msgTypeValue == "w" ) + onMessage( (const SecurityTypes&)message, sessionID ); + else + if( msgTypeValue == "x" ) + onMessage( (const SecurityListRequest&)message, sessionID ); + else + if( msgTypeValue == "y" ) + onMessage( (const SecurityList&)message, sessionID ); + else + if( msgTypeValue == "z" ) + onMessage( (const DerivativeSecurityListRequest&)message, sessionID ); + else + if( msgTypeValue == "AA" ) + onMessage( (const DerivativeSecurityList&)message, sessionID ); + else + if( msgTypeValue == "AB" ) + onMessage( (const NewOrderMultileg&)message, sessionID ); + else + if( msgTypeValue == "AC" ) + onMessage( (const MultilegOrderCancelReplace&)message, sessionID ); + else + if( msgTypeValue == "AD" ) + onMessage( (const TradeCaptureReportRequest&)message, sessionID ); + else + if( msgTypeValue == "AE" ) + onMessage( (const TradeCaptureReport&)message, sessionID ); + else + if( msgTypeValue == "AF" ) + onMessage( (const OrderMassStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "AG" ) + onMessage( (const QuoteRequestReject&)message, sessionID ); + else + if( msgTypeValue == "AH" ) + onMessage( (const RFQRequest&)message, sessionID ); + else + if( msgTypeValue == "AI" ) + onMessage( (const QuoteStatusReport&)message, sessionID ); + else + if( msgTypeValue == "AJ" ) + onMessage( (const QuoteResponse&)message, sessionID ); + else + if( msgTypeValue == "AK" ) + onMessage( (const Confirmation&)message, sessionID ); + else + if( msgTypeValue == "AL" ) + onMessage( (const PositionMaintenanceRequest&)message, sessionID ); + else + if( msgTypeValue == "AM" ) + onMessage( (const PositionMaintenanceReport&)message, sessionID ); + else + if( msgTypeValue == "AN" ) + onMessage( (const RequestForPositions&)message, sessionID ); + else + if( msgTypeValue == "AO" ) + onMessage( (const RequestForPositionsAck&)message, sessionID ); + else + if( msgTypeValue == "AP" ) + onMessage( (const PositionReport&)message, sessionID ); + else + if( msgTypeValue == "AQ" ) + onMessage( (const TradeCaptureReportRequestAck&)message, sessionID ); + else + if( msgTypeValue == "AR" ) + onMessage( (const TradeCaptureReportAck&)message, sessionID ); + else + if( msgTypeValue == "AS" ) + onMessage( (const AllocationReport&)message, sessionID ); + else + if( msgTypeValue == "AT" ) + onMessage( (const AllocationReportAck&)message, sessionID ); + else + if( msgTypeValue == "AU" ) + onMessage( (const ConfirmationAck&)message, sessionID ); + else + if( msgTypeValue == "AV" ) + onMessage( (const SettlementInstructionRequest&)message, sessionID ); + else + if( msgTypeValue == "AW" ) + onMessage( (const AssignmentReport&)message, sessionID ); + else + if( msgTypeValue == "AX" ) + onMessage( (const CollateralRequest&)message, sessionID ); + else + if( msgTypeValue == "AY" ) + onMessage( (const CollateralAssignment&)message, sessionID ); + else + if( msgTypeValue == "AZ" ) + onMessage( (const CollateralResponse&)message, sessionID ); + else + if( msgTypeValue == "BA" ) + onMessage( (const CollateralReport&)message, sessionID ); + else + if( msgTypeValue == "BB" ) + onMessage( (const CollateralInquiry&)message, sessionID ); + else + if( msgTypeValue == "BC" ) + onMessage( (const NetworkCounterpartySystemStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "BD" ) + onMessage( (const NetworkCounterpartySystemStatusResponse&)message, sessionID ); + else + if( msgTypeValue == "BE" ) + onMessage( (const UserRequest&)message, sessionID ); + else + if( msgTypeValue == "BF" ) + onMessage( (const UserResponse&)message, sessionID ); + else + if( msgTypeValue == "BG" ) + onMessage( (const CollateralInquiryAck&)message, sessionID ); + else + if( msgTypeValue == "BH" ) + onMessage( (const ConfirmationRequest&)message, sessionID ); + else + if( msgTypeValue == "BO" ) + onMessage( (const ContraryIntentionReport&)message, sessionID ); + else + if( msgTypeValue == "BP" ) + onMessage( (const SecurityDefinitionUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BK" ) + onMessage( (const SecurityListUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BL" ) + onMessage( (const AdjustedPositionReport&)message, sessionID ); + else + if( msgTypeValue == "BM" ) + onMessage( (const AllocationInstructionAlert&)message, sessionID ); + else + if( msgTypeValue == "BN" ) + onMessage( (const ExecutionAcknowledgement&)message, sessionID ); + else + if( msgTypeValue == "BJ" ) + onMessage( (const TradingSessionList&)message, sessionID ); + else + if( msgTypeValue == "BI" ) + onMessage( (const TradingSessionListRequest&)message, sessionID ); + else + if( msgTypeValue == "BQ" ) + onMessage( (const SettlementObligationReport&)message, sessionID ); + else + if( msgTypeValue == "BR" ) + onMessage( (const DerivativeSecurityListUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BS" ) + onMessage( (const TradingSessionListUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BT" ) + onMessage( (const MarketDefinitionRequest&)message, sessionID ); + else + if( msgTypeValue == "BU" ) + onMessage( (const MarketDefinition&)message, sessionID ); + else + if( msgTypeValue == "BV" ) + onMessage( (const MarketDefinitionUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BW" ) + onMessage( (const ApplicationMessageRequest&)message, sessionID ); + else + if( msgTypeValue == "BX" ) + onMessage( (const ApplicationMessageRequestAck&)message, sessionID ); + else + if( msgTypeValue == "BY" ) + onMessage( (const ApplicationMessageReport&)message, sessionID ); + else + if( msgTypeValue == "BZ" ) + onMessage( (const OrderMassActionReport&)message, sessionID ); + else + if( msgTypeValue == "CA" ) + onMessage( (const OrderMassActionRequest&)message, sessionID ); + else + if( msgTypeValue == "CB" ) + onMessage( (const UserNotification&)message, sessionID ); + else + if( msgTypeValue == "CC" ) + onMessage( (const StreamAssignmentRequest&)message, sessionID ); + else + if( msgTypeValue == "CD" ) + onMessage( (const StreamAssignmentReport&)message, sessionID ); + else + if( msgTypeValue == "CE" ) + onMessage( (const StreamAssignmentReportACK&)message, sessionID ); + else onMessage( message, sessionID ); + } + +void crack( Message& message, + const FIX::SessionID& sessionID ) + { + FIX::MsgType msgType; + message.getHeader().getField(msgType); + std::string msgTypeValue = msgType.getValue(); + + if( msgTypeValue == "6" ) + onMessage( (IOI&)message, sessionID ); + else + if( msgTypeValue == "7" ) + onMessage( (Advertisement&)message, sessionID ); + else + if( msgTypeValue == "8" ) + onMessage( (ExecutionReport&)message, sessionID ); + else + if( msgTypeValue == "9" ) + onMessage( (OrderCancelReject&)message, sessionID ); + else + if( msgTypeValue == "B" ) + onMessage( (News&)message, sessionID ); + else + if( msgTypeValue == "C" ) + onMessage( (Email&)message, sessionID ); + else + if( msgTypeValue == "D" ) + onMessage( (NewOrderSingle&)message, sessionID ); + else + if( msgTypeValue == "E" ) + onMessage( (NewOrderList&)message, sessionID ); + else + if( msgTypeValue == "F" ) + onMessage( (OrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "G" ) + onMessage( (OrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "H" ) + onMessage( (OrderStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "J" ) + onMessage( (AllocationInstruction&)message, sessionID ); + else + if( msgTypeValue == "K" ) + onMessage( (ListCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "L" ) + onMessage( (ListExecute&)message, sessionID ); + else + if( msgTypeValue == "M" ) + onMessage( (ListStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "N" ) + onMessage( (ListStatus&)message, sessionID ); + else + if( msgTypeValue == "P" ) + onMessage( (AllocationInstructionAck&)message, sessionID ); + else + if( msgTypeValue == "Q" ) + onMessage( (DontKnowTrade&)message, sessionID ); + else + if( msgTypeValue == "R" ) + onMessage( (QuoteRequest&)message, sessionID ); + else + if( msgTypeValue == "S" ) + onMessage( (Quote&)message, sessionID ); + else + if( msgTypeValue == "T" ) + onMessage( (SettlementInstructions&)message, sessionID ); + else + if( msgTypeValue == "V" ) + onMessage( (MarketDataRequest&)message, sessionID ); + else + if( msgTypeValue == "W" ) + onMessage( (MarketDataSnapshotFullRefresh&)message, sessionID ); + else + if( msgTypeValue == "X" ) + onMessage( (MarketDataIncrementalRefresh&)message, sessionID ); + else + if( msgTypeValue == "Y" ) + onMessage( (MarketDataRequestReject&)message, sessionID ); + else + if( msgTypeValue == "Z" ) + onMessage( (QuoteCancel&)message, sessionID ); + else + if( msgTypeValue == "a" ) + onMessage( (QuoteStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "b" ) + onMessage( (MassQuoteAcknowledgement&)message, sessionID ); + else + if( msgTypeValue == "c" ) + onMessage( (SecurityDefinitionRequest&)message, sessionID ); + else + if( msgTypeValue == "d" ) + onMessage( (SecurityDefinition&)message, sessionID ); + else + if( msgTypeValue == "e" ) + onMessage( (SecurityStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "f" ) + onMessage( (SecurityStatus&)message, sessionID ); + else + if( msgTypeValue == "g" ) + onMessage( (TradingSessionStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "h" ) + onMessage( (TradingSessionStatus&)message, sessionID ); + else + if( msgTypeValue == "i" ) + onMessage( (MassQuote&)message, sessionID ); + else + if( msgTypeValue == "j" ) + onMessage( (BusinessMessageReject&)message, sessionID ); + else + if( msgTypeValue == "k" ) + onMessage( (BidRequest&)message, sessionID ); + else + if( msgTypeValue == "l" ) + onMessage( (BidResponse&)message, sessionID ); + else + if( msgTypeValue == "m" ) + onMessage( (ListStrikePrice&)message, sessionID ); + else + if( msgTypeValue == "o" ) + onMessage( (RegistrationInstructions&)message, sessionID ); + else + if( msgTypeValue == "p" ) + onMessage( (RegistrationInstructionsResponse&)message, sessionID ); + else + if( msgTypeValue == "q" ) + onMessage( (OrderMassCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "r" ) + onMessage( (OrderMassCancelReport&)message, sessionID ); + else + if( msgTypeValue == "s" ) + onMessage( (NewOrderCross&)message, sessionID ); + else + if( msgTypeValue == "t" ) + onMessage( (CrossOrderCancelReplaceRequest&)message, sessionID ); + else + if( msgTypeValue == "u" ) + onMessage( (CrossOrderCancelRequest&)message, sessionID ); + else + if( msgTypeValue == "v" ) + onMessage( (SecurityTypeRequest&)message, sessionID ); + else + if( msgTypeValue == "w" ) + onMessage( (SecurityTypes&)message, sessionID ); + else + if( msgTypeValue == "x" ) + onMessage( (SecurityListRequest&)message, sessionID ); + else + if( msgTypeValue == "y" ) + onMessage( (SecurityList&)message, sessionID ); + else + if( msgTypeValue == "z" ) + onMessage( (DerivativeSecurityListRequest&)message, sessionID ); + else + if( msgTypeValue == "AA" ) + onMessage( (DerivativeSecurityList&)message, sessionID ); + else + if( msgTypeValue == "AB" ) + onMessage( (NewOrderMultileg&)message, sessionID ); + else + if( msgTypeValue == "AC" ) + onMessage( (MultilegOrderCancelReplace&)message, sessionID ); + else + if( msgTypeValue == "AD" ) + onMessage( (TradeCaptureReportRequest&)message, sessionID ); + else + if( msgTypeValue == "AE" ) + onMessage( (TradeCaptureReport&)message, sessionID ); + else + if( msgTypeValue == "AF" ) + onMessage( (OrderMassStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "AG" ) + onMessage( (QuoteRequestReject&)message, sessionID ); + else + if( msgTypeValue == "AH" ) + onMessage( (RFQRequest&)message, sessionID ); + else + if( msgTypeValue == "AI" ) + onMessage( (QuoteStatusReport&)message, sessionID ); + else + if( msgTypeValue == "AJ" ) + onMessage( (QuoteResponse&)message, sessionID ); + else + if( msgTypeValue == "AK" ) + onMessage( (Confirmation&)message, sessionID ); + else + if( msgTypeValue == "AL" ) + onMessage( (PositionMaintenanceRequest&)message, sessionID ); + else + if( msgTypeValue == "AM" ) + onMessage( (PositionMaintenanceReport&)message, sessionID ); + else + if( msgTypeValue == "AN" ) + onMessage( (RequestForPositions&)message, sessionID ); + else + if( msgTypeValue == "AO" ) + onMessage( (RequestForPositionsAck&)message, sessionID ); + else + if( msgTypeValue == "AP" ) + onMessage( (PositionReport&)message, sessionID ); + else + if( msgTypeValue == "AQ" ) + onMessage( (TradeCaptureReportRequestAck&)message, sessionID ); + else + if( msgTypeValue == "AR" ) + onMessage( (TradeCaptureReportAck&)message, sessionID ); + else + if( msgTypeValue == "AS" ) + onMessage( (AllocationReport&)message, sessionID ); + else + if( msgTypeValue == "AT" ) + onMessage( (AllocationReportAck&)message, sessionID ); + else + if( msgTypeValue == "AU" ) + onMessage( (ConfirmationAck&)message, sessionID ); + else + if( msgTypeValue == "AV" ) + onMessage( (SettlementInstructionRequest&)message, sessionID ); + else + if( msgTypeValue == "AW" ) + onMessage( (AssignmentReport&)message, sessionID ); + else + if( msgTypeValue == "AX" ) + onMessage( (CollateralRequest&)message, sessionID ); + else + if( msgTypeValue == "AY" ) + onMessage( (CollateralAssignment&)message, sessionID ); + else + if( msgTypeValue == "AZ" ) + onMessage( (CollateralResponse&)message, sessionID ); + else + if( msgTypeValue == "BA" ) + onMessage( (CollateralReport&)message, sessionID ); + else + if( msgTypeValue == "BB" ) + onMessage( (CollateralInquiry&)message, sessionID ); + else + if( msgTypeValue == "BC" ) + onMessage( (NetworkCounterpartySystemStatusRequest&)message, sessionID ); + else + if( msgTypeValue == "BD" ) + onMessage( (NetworkCounterpartySystemStatusResponse&)message, sessionID ); + else + if( msgTypeValue == "BE" ) + onMessage( (UserRequest&)message, sessionID ); + else + if( msgTypeValue == "BF" ) + onMessage( (UserResponse&)message, sessionID ); + else + if( msgTypeValue == "BG" ) + onMessage( (CollateralInquiryAck&)message, sessionID ); + else + if( msgTypeValue == "BH" ) + onMessage( (ConfirmationRequest&)message, sessionID ); + else + if( msgTypeValue == "BO" ) + onMessage( (ContraryIntentionReport&)message, sessionID ); + else + if( msgTypeValue == "BP" ) + onMessage( (SecurityDefinitionUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BK" ) + onMessage( (SecurityListUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BL" ) + onMessage( (AdjustedPositionReport&)message, sessionID ); + else + if( msgTypeValue == "BM" ) + onMessage( (AllocationInstructionAlert&)message, sessionID ); + else + if( msgTypeValue == "BN" ) + onMessage( (ExecutionAcknowledgement&)message, sessionID ); + else + if( msgTypeValue == "BJ" ) + onMessage( (TradingSessionList&)message, sessionID ); + else + if( msgTypeValue == "BI" ) + onMessage( (TradingSessionListRequest&)message, sessionID ); + else + if( msgTypeValue == "BQ" ) + onMessage( (SettlementObligationReport&)message, sessionID ); + else + if( msgTypeValue == "BR" ) + onMessage( (DerivativeSecurityListUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BS" ) + onMessage( (TradingSessionListUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BT" ) + onMessage( (MarketDefinitionRequest&)message, sessionID ); + else + if( msgTypeValue == "BU" ) + onMessage( (MarketDefinition&)message, sessionID ); + else + if( msgTypeValue == "BV" ) + onMessage( (MarketDefinitionUpdateReport&)message, sessionID ); + else + if( msgTypeValue == "BW" ) + onMessage( (ApplicationMessageRequest&)message, sessionID ); + else + if( msgTypeValue == "BX" ) + onMessage( (ApplicationMessageRequestAck&)message, sessionID ); + else + if( msgTypeValue == "BY" ) + onMessage( (ApplicationMessageReport&)message, sessionID ); + else + if( msgTypeValue == "BZ" ) + onMessage( (OrderMassActionReport&)message, sessionID ); + else + if( msgTypeValue == "CA" ) + onMessage( (OrderMassActionRequest&)message, sessionID ); + else + if( msgTypeValue == "CB" ) + onMessage( (UserNotification&)message, sessionID ); + else + if( msgTypeValue == "CC" ) + onMessage( (StreamAssignmentRequest&)message, sessionID ); + else + if( msgTypeValue == "CD" ) + onMessage( (StreamAssignmentReport&)message, sessionID ); + else + if( msgTypeValue == "CE" ) + onMessage( (StreamAssignmentReportACK&)message, sessionID ); + else onMessage( message, sessionID ); + } + + }; +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/MultilegOrderCancelReplace.h b/linux/include/quickfix/fix50sp2/MultilegOrderCancelReplace.h new file mode 100644 index 000000000..050404b29 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/MultilegOrderCancelReplace.h @@ -0,0 +1,499 @@ +#ifndef FIX50SP2_MULTILEGORDERCANCELREPLACE_H +#define FIX50SP2_MULTILEGORDERCANCELREPLACE_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class MultilegOrderCancelReplace : public Message + { + public: + MultilegOrderCancelReplace() : Message(MsgType()) {} + MultilegOrderCancelReplace(const FIX::Message& m) : Message(m) {} + MultilegOrderCancelReplace(const Message& m) : Message(m) {} + MultilegOrderCancelReplace(const MultilegOrderCancelReplace& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AC"); } + + MultilegOrderCancelReplace( + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aSide); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,948,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNested3PartyIDs); + class NoNested3PartyIDs: public FIX::Group + { + public: + NoNested3PartyIDs() : FIX::Group(948,949,FIX::message_order(949,950,951,952,0)) {} + FIELD_SET(*this, FIX::Nested3PartyID); + FIELD_SET(*this, FIX::Nested3PartyIDSource); + FIELD_SET(*this, FIX::Nested3PartyRole); + FIELD_SET(*this, FIX::NoNested3PartySubIDs); + class NoNested3PartySubIDs: public FIX::Group + { + public: + NoNested3PartySubIDs() : FIX::Group(952,953,FIX::message_order(953,954,0)) {} + FIELD_SET(*this, FIX::Nested3PartySubID); + FIELD_SET(*this, FIX::Nested3PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::SwapPoints); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,687,690,683,1366,670,564,565,539,654,587,588,675,685,1379,1381,1383,1384,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::LegAllocID); + FIELD_SET(*this, FIX::NoLegAllocs); + class NoLegAllocs: public FIX::Group + { + public: + NoLegAllocs() : FIX::Group(670,671,FIX::message_order(671,672,756,673,674,1367,0)) {} + FIELD_SET(*this, FIX::LegAllocAccount); + FIELD_SET(*this, FIX::LegIndividualAllocID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegAllocQty); + FIELD_SET(*this, FIX::LegAllocAcctIDSource); + FIELD_SET(*this, FIX::LegAllocSettlCurrency); + }; + FIELD_SET(*this, FIX::LegPositionEffect); + FIELD_SET(*this, FIX::LegCoveredOrUncovered); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::LegSettlCurrency); + FIELD_SET(*this, FIX::LegOrderQty); + FIELD_SET(*this, FIX::LegVolatility); + FIELD_SET(*this, FIX::LegDividendYield); + FIELD_SET(*this, FIX::LegCurrencyRatio); + FIELD_SET(*this, FIX::LegExecInst); + }; + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::MultilegModel); + FIELD_SET(*this, FIX::MultilegPriceMethod); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::RiskFreeRate); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::MultiLegRptTypeReq); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/NetworkCounterpartySystemStatusRequest.h b/linux/include/quickfix/fix50sp2/NetworkCounterpartySystemStatusRequest.h new file mode 100644 index 000000000..ec00fb4c2 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/NetworkCounterpartySystemStatusRequest.h @@ -0,0 +1,43 @@ +#ifndef FIX50SP2_NETWORKCOUNTERPARTYSYSTEMSTATUSREQUEST_H +#define FIX50SP2_NETWORKCOUNTERPARTYSYSTEMSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class NetworkCounterpartySystemStatusRequest : public Message + { + public: + NetworkCounterpartySystemStatusRequest() : Message(MsgType()) {} + NetworkCounterpartySystemStatusRequest(const FIX::Message& m) : Message(m) {} + NetworkCounterpartySystemStatusRequest(const Message& m) : Message(m) {} + NetworkCounterpartySystemStatusRequest(const NetworkCounterpartySystemStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BC"); } + + NetworkCounterpartySystemStatusRequest( + const FIX::NetworkRequestType& aNetworkRequestType, + const FIX::NetworkRequestID& aNetworkRequestID ) + : Message(MsgType()) + { + set(aNetworkRequestType); + set(aNetworkRequestID); + } + + FIELD_SET(*this, FIX::NetworkRequestType); + FIELD_SET(*this, FIX::NetworkRequestID); + FIELD_SET(*this, FIX::NoCompIDs); + class NoCompIDs: public FIX::Group + { + public: + NoCompIDs() : FIX::Group(936,930,FIX::message_order(930,931,283,284,0)) {} + FIELD_SET(*this, FIX::RefCompID); + FIELD_SET(*this, FIX::RefSubID); + FIELD_SET(*this, FIX::LocationID); + FIELD_SET(*this, FIX::DeskID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/NetworkCounterpartySystemStatusResponse.h b/linux/include/quickfix/fix50sp2/NetworkCounterpartySystemStatusResponse.h new file mode 100644 index 000000000..586049097 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/NetworkCounterpartySystemStatusResponse.h @@ -0,0 +1,47 @@ +#ifndef FIX50SP2_NETWORKCOUNTERPARTYSYSTEMSTATUSRESPONSE_H +#define FIX50SP2_NETWORKCOUNTERPARTYSYSTEMSTATUSRESPONSE_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class NetworkCounterpartySystemStatusResponse : public Message + { + public: + NetworkCounterpartySystemStatusResponse() : Message(MsgType()) {} + NetworkCounterpartySystemStatusResponse(const FIX::Message& m) : Message(m) {} + NetworkCounterpartySystemStatusResponse(const Message& m) : Message(m) {} + NetworkCounterpartySystemStatusResponse(const NetworkCounterpartySystemStatusResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BD"); } + + NetworkCounterpartySystemStatusResponse( + const FIX::NetworkStatusResponseType& aNetworkStatusResponseType, + const FIX::NetworkResponseID& aNetworkResponseID ) + : Message(MsgType()) + { + set(aNetworkStatusResponseType); + set(aNetworkResponseID); + } + + FIELD_SET(*this, FIX::NetworkStatusResponseType); + FIELD_SET(*this, FIX::NetworkRequestID); + FIELD_SET(*this, FIX::NetworkResponseID); + FIELD_SET(*this, FIX::LastNetworkResponseID); + FIELD_SET(*this, FIX::NoCompIDs); + class NoCompIDs: public FIX::Group + { + public: + NoCompIDs() : FIX::Group(936,930,FIX::message_order(930,931,283,284,928,929,0)) {} + FIELD_SET(*this, FIX::RefCompID); + FIELD_SET(*this, FIX::RefSubID); + FIELD_SET(*this, FIX::LocationID); + FIELD_SET(*this, FIX::DeskID); + FIELD_SET(*this, FIX::StatusValue); + FIELD_SET(*this, FIX::StatusText); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/NewOrderCross.h b/linux/include/quickfix/fix50sp2/NewOrderCross.h new file mode 100644 index 000000000..7b24ce807 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/NewOrderCross.h @@ -0,0 +1,480 @@ +#ifndef FIX50SP2_NEWORDERCROSS_H +#define FIX50SP2_NEWORDERCROSS_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class NewOrderCross : public Message + { + public: + NewOrderCross() : Message(MsgType()) {} + NewOrderCross(const FIX::Message& m) : Message(m) {} + NewOrderCross(const Message& m) : Message(m) {} + NewOrderCross(const NewOrderCross& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("s"); } + + NewOrderCross( + const FIX::CrossID& aCrossID, + const FIX::CrossType& aCrossType, + const FIX::CrossPrioritization& aCrossPrioritization, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aCrossID); + set(aCrossType); + set(aCrossPrioritization); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::CrossID); + FIELD_SET(*this, FIX::CrossType); + FIELD_SET(*this, FIX::CrossPrioritization); + FIELD_SET(*this, FIX::NoRootPartyIDs); + class NoRootPartyIDs: public FIX::Group + { + public: + NoRootPartyIDs() : FIX::Group(1116,1117,FIX::message_order(1117,1118,1119,1120,0)) {} + FIELD_SET(*this, FIX::RootPartyID); + FIELD_SET(*this, FIX::RootPartyIDSource); + FIELD_SET(*this, FIX::RootPartyRole); + FIELD_SET(*this, FIX::NoRootPartySubIDs); + class NoRootPartySubIDs: public FIX::Group + { + public: + NoRootPartySubIDs() : FIX::Group(1120,1121,FIX::message_order(1121,1122,0)) {} + FIELD_SET(*this, FIX::RootPartySubID); + FIELD_SET(*this, FIX::RootPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoSides); + class NoSides: public FIX::Group + { + public: + NoSides() : FIX::Group(552,54,FIX::message_order(54,41,11,526,583,453,229,75,1,660,581,589,590,591,70,78,854,38,152,516,468,469,12,13,479,497,528,529,1091,582,121,120,775,58,354,355,77,203,544,635,377,659,962,0)) {} + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::SideComplianceID); + FIELD_SET(*this, FIX::SideTimeInForce); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TransBkdTime); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/NewOrderList.h b/linux/include/quickfix/fix50sp2/NewOrderList.h new file mode 100644 index 000000000..08033aa5c --- /dev/null +++ b/linux/include/quickfix/fix50sp2/NewOrderList.h @@ -0,0 +1,435 @@ +#ifndef FIX50SP2_NEWORDERLIST_H +#define FIX50SP2_NEWORDERLIST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class NewOrderList : public Message + { + public: + NewOrderList() : Message(MsgType()) {} + NewOrderList(const FIX::Message& m) : Message(m) {} + NewOrderList(const Message& m) : Message(m) {} + NewOrderList(const NewOrderList& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("E"); } + + NewOrderList( + const FIX::ListID& aListID, + const FIX::BidType& aBidType, + const FIX::TotNoOrders& aTotNoOrders ) + : Message(MsgType()) + { + set(aListID); + set(aBidType); + set(aTotNoOrders); + } + + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::BidID); + FIELD_SET(*this, FIX::ClientBidID); + FIELD_SET(*this, FIX::ProgRptReqs); + FIELD_SET(*this, FIX::BidType); + FIELD_SET(*this, FIX::ProgPeriodInterval); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::ListExecInstType); + FIELD_SET(*this, FIX::ListExecInst); + FIELD_SET(*this, FIX::ContingencyType); + FIELD_SET(*this, FIX::EncodedListExecInstLen); + FIELD_SET(*this, FIX::EncodedListExecInst); + FIELD_SET(*this, FIX::AllowableOneSidednessPct); + FIELD_SET(*this, FIX::AllowableOneSidednessValue); + FIELD_SET(*this, FIX::AllowableOneSidednessCurr); + FIELD_SET(*this, FIX::TotNoOrders); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoRootPartyIDs); + class NoRootPartyIDs: public FIX::Group + { + public: + NoRootPartyIDs() : FIX::Group(1116,1117,FIX::message_order(1117,1118,1119,1120,0)) {} + FIELD_SET(*this, FIX::RootPartyID); + FIELD_SET(*this, FIX::RootPartyIDSource); + FIELD_SET(*this, FIX::RootPartyRole); + FIELD_SET(*this, FIX::NoRootPartySubIDs); + class NoRootPartySubIDs: public FIX::Group + { + public: + NoRootPartySubIDs() : FIX::Group(1120,1121,FIX::message_order(1121,1122,0)) {} + FIELD_SET(*this, FIX::RootPartySubID); + FIELD_SET(*this, FIX::RootPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoOrders); + class NoOrders: public FIX::Group + { + public: + NoOrders() : FIX::Group(73,11,FIX::message_order(11,526,67,583,160,453,229,75,1,660,581,589,590,70,591,78,63,64,544,635,21,18,110,1089,1090,1138,1082,1083,1084,1085,1086,1087,1088,111,100,1133,386,81,55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,1435,1439,1449,1450,1451,1452,1457,1458,1478,1479,1480,1481,1482,711,140,54,401,114,60,232,854,38,152,516,468,469,40,423,44,1092,99,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,218,220,221,222,662,663,699,761,235,236,701,696,697,698,15,376,377,23,117,1080,1081,59,168,432,126,427,12,13,479,497,528,529,1091,582,121,120,775,58,354,355,193,192,640,77,203,210,211,1094,835,836,837,838,840,1096,1097,1098,1099,388,389,841,842,843,844,846,847,957,848,849,494,0)) {} + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListSeqNo); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::SettlInstMode); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::SideValueInd); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::RefOrderID); + FIELD_SET(*this, FIX::RefOrderIDSource); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::Designation); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/NewOrderMultileg.h b/linux/include/quickfix/fix50sp2/NewOrderMultileg.h new file mode 100644 index 000000000..25d870e78 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/NewOrderMultileg.h @@ -0,0 +1,500 @@ +#ifndef FIX50SP2_NEWORDERMULTILEG_H +#define FIX50SP2_NEWORDERMULTILEG_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class NewOrderMultileg : public Message + { + public: + NewOrderMultileg() : Message(MsgType()) {} + NewOrderMultileg(const FIX::Message& m) : Message(m) {} + NewOrderMultileg(const Message& m) : Message(m) {} + NewOrderMultileg(const NewOrderMultileg& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AB"); } + + NewOrderMultileg( + const FIX::ClOrdID& aClOrdID, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aClOrdID); + set(aSide); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,948,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNested3PartyIDs); + class NoNested3PartyIDs: public FIX::Group + { + public: + NoNested3PartyIDs() : FIX::Group(948,949,FIX::message_order(949,950,951,952,0)) {} + FIELD_SET(*this, FIX::Nested3PartyID); + FIELD_SET(*this, FIX::Nested3PartyIDSource); + FIELD_SET(*this, FIX::Nested3PartyRole); + FIELD_SET(*this, FIX::NoNested3PartySubIDs); + class NoNested3PartySubIDs: public FIX::Group + { + public: + NoNested3PartySubIDs() : FIX::Group(952,953,FIX::message_order(953,954,0)) {} + FIELD_SET(*this, FIX::Nested3PartySubID); + FIELD_SET(*this, FIX::Nested3PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::SwapPoints); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,687,690,683,1366,670,564,565,539,654,587,588,675,685,1379,1381,1383,1384,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::LegAllocID); + FIELD_SET(*this, FIX::NoLegAllocs); + class NoLegAllocs: public FIX::Group + { + public: + NoLegAllocs() : FIX::Group(670,671,FIX::message_order(671,672,756,673,674,1367,0)) {} + FIELD_SET(*this, FIX::LegAllocAccount); + FIELD_SET(*this, FIX::LegIndividualAllocID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegAllocQty); + FIELD_SET(*this, FIX::LegAllocAcctIDSource); + FIELD_SET(*this, FIX::LegAllocSettlCurrency); + }; + FIELD_SET(*this, FIX::LegPositionEffect); + FIELD_SET(*this, FIX::LegCoveredOrUncovered); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::LegSettlCurrency); + FIELD_SET(*this, FIX::LegOrderQty); + FIELD_SET(*this, FIX::LegVolatility); + FIELD_SET(*this, FIX::LegDividendYield); + FIELD_SET(*this, FIX::LegCurrencyRatio); + FIELD_SET(*this, FIX::LegExecInst); + }; + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::MultilegModel); + FIELD_SET(*this, FIX::MultilegPriceMethod); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::RefOrderID); + FIELD_SET(*this, FIX::RefOrderIDSource); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::RiskFreeRate); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::MultiLegRptTypeReq); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/NewOrderSingle.h b/linux/include/quickfix/fix50sp2/NewOrderSingle.h new file mode 100644 index 000000000..2ed0660ff --- /dev/null +++ b/linux/include/quickfix/fix50sp2/NewOrderSingle.h @@ -0,0 +1,421 @@ +#ifndef FIX50SP2_NEWORDERSINGLE_H +#define FIX50SP2_NEWORDERSINGLE_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class NewOrderSingle : public Message + { + public: + NewOrderSingle() : Message(MsgType()) {} + NewOrderSingle(const FIX::Message& m) : Message(m) {} + NewOrderSingle(const Message& m) : Message(m) {} + NewOrderSingle(const NewOrderSingle& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("D"); } + + NewOrderSingle( + const FIX::ClOrdID& aClOrdID, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aClOrdID); + set(aSide); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::ManualOrderIndicator); + FIELD_SET(*this, FIX::CustDirectedOrder); + FIELD_SET(*this, FIX::ReceivedDeptID); + FIELD_SET(*this, FIX::CustOrderHandlingInst); + FIELD_SET(*this, FIX::OrderHandlingInstSource); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::RefOrderID); + FIELD_SET(*this, FIX::RefOrderIDSource); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/News.h b/linux/include/quickfix/fix50sp2/News.h new file mode 100644 index 000000000..40870be1b --- /dev/null +++ b/linux/include/quickfix/fix50sp2/News.h @@ -0,0 +1,291 @@ +#ifndef FIX50SP2_NEWS_H +#define FIX50SP2_NEWS_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class News : public Message + { + public: + News() : Message(MsgType()) {} + News(const FIX::Message& m) : Message(m) {} + News(const Message& m) : Message(m) {} + News(const News& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("B"); } + + News( + const FIX::Headline& aHeadline ) + : Message(MsgType()) + { + set(aHeadline); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::OrigTime); + FIELD_SET(*this, FIX::Urgency); + FIELD_SET(*this, FIX::Headline); + FIELD_SET(*this, FIX::EncodedHeadlineLen); + FIELD_SET(*this, FIX::EncodedHeadline); + FIELD_SET(*this, FIX::NoRoutingIDs); + class NoRoutingIDs: public FIX::Group + { + public: + NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {} + FIELD_SET(*this, FIX::RoutingType); + FIELD_SET(*this, FIX::RoutingID); + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,1435,1439,1449,1450,1451,1452,1457,1458,1478,1479,1480,1481,1482,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoLinesOfText); + class NoLinesOfText: public FIX::Group + { + public: + NoLinesOfText() : FIX::Group(33,58,FIX::message_order(58,354,355,0)) {} + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + FIELD_SET(*this, FIX::URLLink); + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + FIELD_SET(*this, FIX::NewsID); + FIELD_SET(*this, FIX::NoNewsRefIDs); + class NoNewsRefIDs: public FIX::Group + { + public: + NoNewsRefIDs() : FIX::Group(1475,1476,FIX::message_order(1476,1477,0)) {} + FIELD_SET(*this, FIX::NewsRefID); + FIELD_SET(*this, FIX::NewsRefType); + }; + FIELD_SET(*this, FIX::NewsCategory); + FIELD_SET(*this, FIX::LanguageCode); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/OrderCancelReject.h b/linux/include/quickfix/fix50sp2/OrderCancelReject.h new file mode 100644 index 000000000..10b277edd --- /dev/null +++ b/linux/include/quickfix/fix50sp2/OrderCancelReject.h @@ -0,0 +1,56 @@ +#ifndef FIX50SP2_ORDERCANCELREJECT_H +#define FIX50SP2_ORDERCANCELREJECT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class OrderCancelReject : public Message + { + public: + OrderCancelReject() : Message(MsgType()) {} + OrderCancelReject(const FIX::Message& m) : Message(m) {} + OrderCancelReject(const Message& m) : Message(m) {} + OrderCancelReject(const OrderCancelReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("9"); } + + OrderCancelReject( + const FIX::OrderID& aOrderID, + const FIX::ClOrdID& aClOrdID, + const FIX::OrdStatus& aOrdStatus, + const FIX::CxlRejResponseTo& aCxlRejResponseTo ) + : Message(MsgType()) + { + set(aOrderID); + set(aClOrdID); + set(aOrdStatus); + set(aCxlRejResponseTo); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::WorkingIndicator); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::CxlRejResponseTo); + FIELD_SET(*this, FIX::CxlRejReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/OrderCancelReplaceRequest.h b/linux/include/quickfix/fix50sp2/OrderCancelReplaceRequest.h new file mode 100644 index 000000000..05221719a --- /dev/null +++ b/linux/include/quickfix/fix50sp2/OrderCancelReplaceRequest.h @@ -0,0 +1,411 @@ +#ifndef FIX50SP2_ORDERCANCELREPLACEREQUEST_H +#define FIX50SP2_ORDERCANCELREPLACEREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class OrderCancelReplaceRequest : public Message + { + public: + OrderCancelReplaceRequest() : Message(MsgType()) {} + OrderCancelReplaceRequest(const FIX::Message& m) : Message(m) {} + OrderCancelReplaceRequest(const Message& m) : Message(m) {} + OrderCancelReplaceRequest(const OrderCancelReplaceRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("G"); } + + OrderCancelReplaceRequest( + const FIX::ClOrdID& aClOrdID, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime, + const FIX::OrdType& aOrdType ) + : Message(MsgType()) + { + set(aClOrdID); + set(aSide); + set(aTransactTime); + set(aOrdType); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::DayBookingInst); + FIELD_SET(*this, FIX::BookingUnit); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::CashMargin); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::HandlInst); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::MatchIncrement); + FIELD_SET(*this, FIX::MaxPriceLevels); + FIELD_SET(*this, FIX::DisplayQty); + FIELD_SET(*this, FIX::SecondaryDisplayQty); + FIELD_SET(*this, FIX::DisplayWhen); + FIELD_SET(*this, FIX::DisplayMethod); + FIELD_SET(*this, FIX::DisplayLowQty); + FIELD_SET(*this, FIX::DisplayHighQty); + FIELD_SET(*this, FIX::DisplayMinIncr); + FIELD_SET(*this, FIX::RefreshQty); + FIELD_SET(*this, FIX::MaxFloor); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceProtectionScope); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::TriggerType); + FIELD_SET(*this, FIX::TriggerAction); + FIELD_SET(*this, FIX::TriggerPrice); + FIELD_SET(*this, FIX::TriggerSymbol); + FIELD_SET(*this, FIX::TriggerSecurityID); + FIELD_SET(*this, FIX::TriggerSecurityIDSource); + FIELD_SET(*this, FIX::TriggerSecurityDesc); + FIELD_SET(*this, FIX::TriggerPriceType); + FIELD_SET(*this, FIX::TriggerPriceTypeScope); + FIELD_SET(*this, FIX::TriggerPriceDirection); + FIELD_SET(*this, FIX::TriggerNewPrice); + FIELD_SET(*this, FIX::TriggerOrderType); + FIELD_SET(*this, FIX::TriggerNewQty); + FIELD_SET(*this, FIX::TriggerTradingSessionID); + FIELD_SET(*this, FIX::TriggerTradingSessionSubID); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::PegOffsetValue); + FIELD_SET(*this, FIX::PegPriceType); + FIELD_SET(*this, FIX::PegMoveType); + FIELD_SET(*this, FIX::PegOffsetType); + FIELD_SET(*this, FIX::PegLimitType); + FIELD_SET(*this, FIX::PegRoundDirection); + FIELD_SET(*this, FIX::PegScope); + FIELD_SET(*this, FIX::PegSecurityIDSource); + FIELD_SET(*this, FIX::PegSecurityID); + FIELD_SET(*this, FIX::PegSymbol); + FIELD_SET(*this, FIX::PegSecurityDesc); + FIELD_SET(*this, FIX::DiscretionInst); + FIELD_SET(*this, FIX::DiscretionOffsetValue); + FIELD_SET(*this, FIX::DiscretionMoveType); + FIELD_SET(*this, FIX::DiscretionOffsetType); + FIELD_SET(*this, FIX::DiscretionLimitType); + FIELD_SET(*this, FIX::DiscretionRoundDirection); + FIELD_SET(*this, FIX::DiscretionScope); + FIELD_SET(*this, FIX::TargetStrategy); + FIELD_SET(*this, FIX::NoStrategyParameters); + class NoStrategyParameters: public FIX::Group + { + public: + NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {} + FIELD_SET(*this, FIX::StrategyParameterName); + FIELD_SET(*this, FIX::StrategyParameterType); + FIELD_SET(*this, FIX::StrategyParameterValue); + }; + FIELD_SET(*this, FIX::TargetStrategyParameters); + FIELD_SET(*this, FIX::ParticipationRate); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireDate); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::GTBookingInst); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ForexReq); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::CoveredOrUncovered); + FIELD_SET(*this, FIX::MaxShow); + FIELD_SET(*this, FIX::LocateReqd); + FIELD_SET(*this, FIX::CancellationRights); + FIELD_SET(*this, FIX::MoneyLaunderingStatus); + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::Designation); + FIELD_SET(*this, FIX::ManualOrderIndicator); + FIELD_SET(*this, FIX::CustDirectedOrder); + FIELD_SET(*this, FIX::ReceivedDeptID); + FIELD_SET(*this, FIX::CustOrderHandlingInst); + FIELD_SET(*this, FIX::OrderHandlingInstSource); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/OrderCancelRequest.h b/linux/include/quickfix/fix50sp2/OrderCancelRequest.h new file mode 100644 index 000000000..0169c053a --- /dev/null +++ b/linux/include/quickfix/fix50sp2/OrderCancelRequest.h @@ -0,0 +1,236 @@ +#ifndef FIX50SP2_ORDERCANCELREQUEST_H +#define FIX50SP2_ORDERCANCELREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class OrderCancelRequest : public Message + { + public: + OrderCancelRequest() : Message(MsgType()) {} + OrderCancelRequest(const FIX::Message& m) : Message(m) {} + OrderCancelRequest(const Message& m) : Message(m) {} + OrderCancelRequest(const OrderCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("F"); } + + OrderCancelRequest( + const FIX::ClOrdID& aClOrdID, + const FIX::Side& aSide, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aClOrdID); + set(aSide); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/OrderMassActionReport.h b/linux/include/quickfix/fix50sp2/OrderMassActionReport.h new file mode 100644 index 000000000..49cfe75fb --- /dev/null +++ b/linux/include/quickfix/fix50sp2/OrderMassActionReport.h @@ -0,0 +1,245 @@ +#ifndef FIX50SP2_ORDERMASSACTIONREPORT_H +#define FIX50SP2_ORDERMASSACTIONREPORT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class OrderMassActionReport : public Message + { + public: + OrderMassActionReport() : Message(MsgType()) {} + OrderMassActionReport(const FIX::Message& m) : Message(m) {} + OrderMassActionReport(const Message& m) : Message(m) {} + OrderMassActionReport(const OrderMassActionReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BZ"); } + + OrderMassActionReport( + const FIX::MassActionReportID& aMassActionReportID, + const FIX::MassActionType& aMassActionType, + const FIX::MassActionScope& aMassActionScope, + const FIX::MassActionResponse& aMassActionResponse ) + : Message(MsgType()) + { + set(aMassActionReportID); + set(aMassActionType); + set(aMassActionScope); + set(aMassActionResponse); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::MassActionReportID); + FIELD_SET(*this, FIX::MassActionType); + FIELD_SET(*this, FIX::MassActionScope); + FIELD_SET(*this, FIX::MassActionResponse); + FIELD_SET(*this, FIX::MassActionRejectReason); + FIELD_SET(*this, FIX::TotalAffectedOrders); + FIELD_SET(*this, FIX::NoAffectedOrders); + class NoAffectedOrders: public FIX::Group + { + public: + NoAffectedOrders() : FIX::Group(534,41,FIX::message_order(41,535,536,0)) {} + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::AffectedOrderID); + FIELD_SET(*this, FIX::AffectedSecondaryOrderID); + }; + FIELD_SET(*this, FIX::NoNotAffectedOrders); + class NoNotAffectedOrders: public FIX::Group + { + public: + NoNotAffectedOrders() : FIX::Group(1370,1372,FIX::message_order(1372,1371,0)) {} + FIELD_SET(*this, FIX::NotAffOrigClOrdID); + FIELD_SET(*this, FIX::NotAffectedOrderID); + }; + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoTargetPartyIDs); + class NoTargetPartyIDs: public FIX::Group + { + public: + NoTargetPartyIDs() : FIX::Group(1461,1462,FIX::message_order(1462,1463,1464,0)) {} + FIELD_SET(*this, FIX::TargetPartyID); + FIELD_SET(*this, FIX::TargetPartyIDSource); + FIELD_SET(*this, FIX::TargetPartyRole); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/OrderMassActionRequest.h b/linux/include/quickfix/fix50sp2/OrderMassActionRequest.h new file mode 100644 index 000000000..d1a38c283 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/OrderMassActionRequest.h @@ -0,0 +1,224 @@ +#ifndef FIX50SP2_ORDERMASSACTIONREQUEST_H +#define FIX50SP2_ORDERMASSACTIONREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class OrderMassActionRequest : public Message + { + public: + OrderMassActionRequest() : Message(MsgType()) {} + OrderMassActionRequest(const FIX::Message& m) : Message(m) {} + OrderMassActionRequest(const Message& m) : Message(m) {} + OrderMassActionRequest(const OrderMassActionRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("CA"); } + + OrderMassActionRequest( + const FIX::ClOrdID& aClOrdID, + const FIX::MassActionType& aMassActionType, + const FIX::MassActionScope& aMassActionScope, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aClOrdID); + set(aMassActionType); + set(aMassActionScope); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::MassActionType); + FIELD_SET(*this, FIX::MassActionScope); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoTargetPartyIDs); + class NoTargetPartyIDs: public FIX::Group + { + public: + NoTargetPartyIDs() : FIX::Group(1461,1462,FIX::message_order(1462,1463,1464,0)) {} + FIELD_SET(*this, FIX::TargetPartyID); + FIELD_SET(*this, FIX::TargetPartyIDSource); + FIELD_SET(*this, FIX::TargetPartyRole); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/OrderMassCancelReport.h b/linux/include/quickfix/fix50sp2/OrderMassCancelReport.h new file mode 100644 index 000000000..7318b11b7 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/OrderMassCancelReport.h @@ -0,0 +1,246 @@ +#ifndef FIX50SP2_ORDERMASSCANCELREPORT_H +#define FIX50SP2_ORDERMASSCANCELREPORT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class OrderMassCancelReport : public Message + { + public: + OrderMassCancelReport() : Message(MsgType()) {} + OrderMassCancelReport(const FIX::Message& m) : Message(m) {} + OrderMassCancelReport(const Message& m) : Message(m) {} + OrderMassCancelReport(const OrderMassCancelReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("r"); } + + OrderMassCancelReport( + const FIX::OrderID& aOrderID, + const FIX::MassActionReportID& aMassActionReportID, + const FIX::MassCancelRequestType& aMassCancelRequestType, + const FIX::MassCancelResponse& aMassCancelResponse ) + : Message(MsgType()) + { + set(aOrderID); + set(aMassActionReportID); + set(aMassCancelRequestType); + set(aMassCancelResponse); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::MassActionReportID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::MassCancelRequestType); + FIELD_SET(*this, FIX::MassCancelResponse); + FIELD_SET(*this, FIX::MassCancelRejectReason); + FIELD_SET(*this, FIX::TotalAffectedOrders); + FIELD_SET(*this, FIX::NoAffectedOrders); + class NoAffectedOrders: public FIX::Group + { + public: + NoAffectedOrders() : FIX::Group(534,41,FIX::message_order(41,535,536,0)) {} + FIELD_SET(*this, FIX::OrigClOrdID); + FIELD_SET(*this, FIX::AffectedOrderID); + FIELD_SET(*this, FIX::AffectedSecondaryOrderID); + }; + FIELD_SET(*this, FIX::NoNotAffectedOrders); + class NoNotAffectedOrders: public FIX::Group + { + public: + NoNotAffectedOrders() : FIX::Group(1370,1372,FIX::message_order(1372,1371,0)) {} + FIELD_SET(*this, FIX::NotAffOrigClOrdID); + FIELD_SET(*this, FIX::NotAffectedOrderID); + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoTargetPartyIDs); + class NoTargetPartyIDs: public FIX::Group + { + public: + NoTargetPartyIDs() : FIX::Group(1461,1462,FIX::message_order(1462,1463,1464,0)) {} + FIELD_SET(*this, FIX::TargetPartyID); + FIELD_SET(*this, FIX::TargetPartyIDSource); + FIELD_SET(*this, FIX::TargetPartyRole); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/OrderMassCancelRequest.h b/linux/include/quickfix/fix50sp2/OrderMassCancelRequest.h new file mode 100644 index 000000000..024c66e19 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/OrderMassCancelRequest.h @@ -0,0 +1,221 @@ +#ifndef FIX50SP2_ORDERMASSCANCELREQUEST_H +#define FIX50SP2_ORDERMASSCANCELREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class OrderMassCancelRequest : public Message + { + public: + OrderMassCancelRequest() : Message(MsgType()) {} + OrderMassCancelRequest(const FIX::Message& m) : Message(m) {} + OrderMassCancelRequest(const Message& m) : Message(m) {} + OrderMassCancelRequest(const OrderMassCancelRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("q"); } + + OrderMassCancelRequest( + const FIX::ClOrdID& aClOrdID, + const FIX::MassCancelRequestType& aMassCancelRequestType, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aClOrdID); + set(aMassCancelRequestType); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::MassCancelRequestType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoTargetPartyIDs); + class NoTargetPartyIDs: public FIX::Group + { + public: + NoTargetPartyIDs() : FIX::Group(1461,1462,FIX::message_order(1462,1463,1464,0)) {} + FIELD_SET(*this, FIX::TargetPartyID); + FIELD_SET(*this, FIX::TargetPartyIDSource); + FIELD_SET(*this, FIX::TargetPartyRole); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/OrderMassStatusRequest.h b/linux/include/quickfix/fix50sp2/OrderMassStatusRequest.h new file mode 100644 index 000000000..bc4d6bbe7 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/OrderMassStatusRequest.h @@ -0,0 +1,214 @@ +#ifndef FIX50SP2_ORDERMASSSTATUSREQUEST_H +#define FIX50SP2_ORDERMASSSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class OrderMassStatusRequest : public Message + { + public: + OrderMassStatusRequest() : Message(MsgType()) {} + OrderMassStatusRequest(const FIX::Message& m) : Message(m) {} + OrderMassStatusRequest(const Message& m) : Message(m) {} + OrderMassStatusRequest(const OrderMassStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AF"); } + + OrderMassStatusRequest( + const FIX::MassStatusReqID& aMassStatusReqID, + const FIX::MassStatusReqType& aMassStatusReqType ) + : Message(MsgType()) + { + set(aMassStatusReqID); + set(aMassStatusReqType); + } + + FIELD_SET(*this, FIX::MassStatusReqID); + FIELD_SET(*this, FIX::MassStatusReqType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::NoTargetPartyIDs); + class NoTargetPartyIDs: public FIX::Group + { + public: + NoTargetPartyIDs() : FIX::Group(1461,1462,FIX::message_order(1462,1463,1464,0)) {} + FIELD_SET(*this, FIX::TargetPartyID); + FIELD_SET(*this, FIX::TargetPartyIDSource); + FIELD_SET(*this, FIX::TargetPartyRole); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/OrderStatusRequest.h b/linux/include/quickfix/fix50sp2/OrderStatusRequest.h new file mode 100644 index 000000000..388c1fac0 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/OrderStatusRequest.h @@ -0,0 +1,219 @@ +#ifndef FIX50SP2_ORDERSTATUSREQUEST_H +#define FIX50SP2_ORDERSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class OrderStatusRequest : public Message + { + public: + OrderStatusRequest() : Message(MsgType()) {} + OrderStatusRequest(const FIX::Message& m) : Message(m) {} + OrderStatusRequest(const Message& m) : Message(m) {} + OrderStatusRequest(const OrderStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("H"); } + + OrderStatusRequest( + const FIX::Side& aSide ) + : Message(MsgType()) + { + set(aSide); + } + + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ClOrdLinkID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OrdStatusReqID); + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::Side); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/PositionMaintenanceReport.h b/linux/include/quickfix/fix50sp2/PositionMaintenanceReport.h new file mode 100644 index 000000000..ed4b206b1 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/PositionMaintenanceReport.h @@ -0,0 +1,337 @@ +#ifndef FIX50SP2_POSITIONMAINTENANCEREPORT_H +#define FIX50SP2_POSITIONMAINTENANCEREPORT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class PositionMaintenanceReport : public Message + { + public: + PositionMaintenanceReport() : Message(MsgType()) {} + PositionMaintenanceReport(const FIX::Message& m) : Message(m) {} + PositionMaintenanceReport(const Message& m) : Message(m) {} + PositionMaintenanceReport(const PositionMaintenanceReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AM"); } + + PositionMaintenanceReport( + const FIX::PosMaintRptID& aPosMaintRptID, + const FIX::PosTransType& aPosTransType, + const FIX::PosMaintAction& aPosMaintAction, + const FIX::PosMaintStatus& aPosMaintStatus, + const FIX::ClearingBusinessDate& aClearingBusinessDate ) + : Message(MsgType()) + { + set(aPosMaintRptID); + set(aPosTransType); + set(aPosMaintAction); + set(aPosMaintStatus); + set(aClearingBusinessDate); + } + + FIELD_SET(*this, FIX::PosMaintRptID); + FIELD_SET(*this, FIX::PosTransType); + FIELD_SET(*this, FIX::PosReqID); + FIELD_SET(*this, FIX::PosMaintAction); + FIELD_SET(*this, FIX::OrigPosReqRefID); + FIELD_SET(*this, FIX::PosMaintStatus); + FIELD_SET(*this, FIX::PosMaintResult); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::PosMaintRptRefID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::ContraryInstructionIndicator); + FIELD_SET(*this, FIX::PriorSpreadIndicator); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoPositions); + class NoPositions: public FIX::Group + { + public: + NoPositions() : FIX::Group(702,703,FIX::message_order(703,704,705,706,976,539,0)) {} + FIELD_SET(*this, FIX::PosType); + FIELD_SET(*this, FIX::LongQty); + FIELD_SET(*this, FIX::ShortQty); + FIELD_SET(*this, FIX::PosQtyStatus); + FIELD_SET(*this, FIX::QuantityDate); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::AdjustmentType); + FIELD_SET(*this, FIX::ThresholdAmount); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/PositionMaintenanceRequest.h b/linux/include/quickfix/fix50sp2/PositionMaintenanceRequest.h new file mode 100644 index 000000000..0ddb63c82 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/PositionMaintenanceRequest.h @@ -0,0 +1,330 @@ +#ifndef FIX50SP2_POSITIONMAINTENANCEREQUEST_H +#define FIX50SP2_POSITIONMAINTENANCEREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class PositionMaintenanceRequest : public Message + { + public: + PositionMaintenanceRequest() : Message(MsgType()) {} + PositionMaintenanceRequest(const FIX::Message& m) : Message(m) {} + PositionMaintenanceRequest(const Message& m) : Message(m) {} + PositionMaintenanceRequest(const PositionMaintenanceRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AL"); } + + PositionMaintenanceRequest( + const FIX::PosTransType& aPosTransType, + const FIX::PosMaintAction& aPosMaintAction, + const FIX::ClearingBusinessDate& aClearingBusinessDate ) + : Message(MsgType()) + { + set(aPosTransType); + set(aPosMaintAction); + set(aClearingBusinessDate); + } + + FIELD_SET(*this, FIX::PosReqID); + FIELD_SET(*this, FIX::PosTransType); + FIELD_SET(*this, FIX::PosMaintAction); + FIELD_SET(*this, FIX::OrigPosReqRefID); + FIELD_SET(*this, FIX::PosMaintRptRefID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoPositions); + class NoPositions: public FIX::Group + { + public: + NoPositions() : FIX::Group(702,703,FIX::message_order(703,704,705,706,976,539,0)) {} + FIELD_SET(*this, FIX::PosType); + FIELD_SET(*this, FIX::LongQty); + FIELD_SET(*this, FIX::ShortQty); + FIELD_SET(*this, FIX::PosQtyStatus); + FIELD_SET(*this, FIX::QuantityDate); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::AdjustmentType); + FIELD_SET(*this, FIX::ContraryInstructionIndicator); + FIELD_SET(*this, FIX::PriorSpreadIndicator); + FIELD_SET(*this, FIX::ThresholdAmount); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::SettlCurrency); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/PositionReport.h b/linux/include/quickfix/fix50sp2/PositionReport.h new file mode 100644 index 000000000..c39c3318f --- /dev/null +++ b/linux/include/quickfix/fix50sp2/PositionReport.h @@ -0,0 +1,344 @@ +#ifndef FIX50SP2_POSITIONREPORT_H +#define FIX50SP2_POSITIONREPORT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class PositionReport : public Message + { + public: + PositionReport() : Message(MsgType()) {} + PositionReport(const FIX::Message& m) : Message(m) {} + PositionReport(const Message& m) : Message(m) {} + PositionReport(const PositionReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AP"); } + + PositionReport( + const FIX::PosMaintRptID& aPosMaintRptID, + const FIX::ClearingBusinessDate& aClearingBusinessDate ) + : Message(MsgType()) + { + set(aPosMaintRptID); + set(aClearingBusinessDate); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::PosMaintRptID); + FIELD_SET(*this, FIX::PosReqID); + FIELD_SET(*this, FIX::PosReqType); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TotalNumPosReports); + FIELD_SET(*this, FIX::PosReqResult); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::MessageEventSource); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SettlPrice); + FIELD_SET(*this, FIX::SettlPriceType); + FIELD_SET(*this, FIX::PriorSettlPrice); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,732,733,1037,984,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + FIELD_SET(*this, FIX::UnderlyingSettlPrice); + FIELD_SET(*this, FIX::UnderlyingSettlPriceType); + FIELD_SET(*this, FIX::UnderlyingDeliveryAmount); + FIELD_SET(*this, FIX::NoUnderlyingAmounts); + class NoUnderlyingAmounts: public FIX::Group + { + public: + NoUnderlyingAmounts() : FIX::Group(984,985,FIX::message_order(985,986,987,988,0)) {} + FIELD_SET(*this, FIX::UnderlyingPayAmount); + FIELD_SET(*this, FIX::UnderlyingCollectAmount); + FIELD_SET(*this, FIX::UnderlyingSettlementDate); + FIELD_SET(*this, FIX::UnderlyingSettlementStatus); + }; + }; + FIELD_SET(*this, FIX::NoPositions); + class NoPositions: public FIX::Group + { + public: + NoPositions() : FIX::Group(702,703,FIX::message_order(703,704,705,706,976,539,0)) {} + FIELD_SET(*this, FIX::PosType); + FIELD_SET(*this, FIX::LongQty); + FIELD_SET(*this, FIX::ShortQty); + FIELD_SET(*this, FIX::PosQtyStatus); + FIELD_SET(*this, FIX::QuantityDate); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::RegistStatus); + FIELD_SET(*this, FIX::DeliveryDate); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::ModelType); + FIELD_SET(*this, FIX::PriceDelta); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/Quote.h b/linux/include/quickfix/fix50sp2/Quote.h new file mode 100644 index 000000000..e12d4edfc --- /dev/null +++ b/linux/include/quickfix/fix50sp2/Quote.h @@ -0,0 +1,411 @@ +#ifndef FIX50SP2_QUOTE_H +#define FIX50SP2_QUOTE_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class Quote : public Message + { + public: + Quote() : Message(MsgType()) {} + Quote(const FIX::Message& m) : Message(m) {} + Quote(const Message& m) : Message(m) {} + Quote(const Quote& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("S"); } + + Quote( + const FIX::QuoteID& aQuoteID ) + : Message(MsgType()) + { + set(aQuoteID); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteMsgID); + FIELD_SET(*this, FIX::QuoteRespID); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::PrivateQuote); + FIELD_SET(*this, FIX::NoQuoteQualifiers); + class NoQuoteQualifiers: public FIX::Group + { + public: + NoQuoteQualifiers() : FIX::Group(735,695,FIX::message_order(695,0)) {} + FIELD_SET(*this, FIX::QuoteQualifier); + }; + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,687,685,690,587,588,683,539,686,681,684,676,677,678,679,680,654,1067,1068,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegOrderQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegPriceType); + FIELD_SET(*this, FIX::LegBidPx); + FIELD_SET(*this, FIX::LegOfferPx); + FIELD_SET(*this, FIX::LegBenchmarkCurveCurrency); + FIELD_SET(*this, FIX::LegBenchmarkCurveName); + FIELD_SET(*this, FIX::LegBenchmarkCurvePoint); + FIELD_SET(*this, FIX::LegBenchmarkPrice); + FIELD_SET(*this, FIX::LegBenchmarkPriceType); + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegBidForwardPoints); + FIELD_SET(*this, FIX::LegOfferForwardPoints); + }; + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::MktBidPx); + FIELD_SET(*this, FIX::MktOfferPx); + FIELD_SET(*this, FIX::MinBidSize); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::MinOfferSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::BidSwapPoints); + FIELD_SET(*this, FIX::OfferSwapPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::SettlCurrBidFxRate); + FIELD_SET(*this, FIX::SettlCurrOfferFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::NoRateSources); + class NoRateSources: public FIX::Group + { + public: + NoRateSources() : FIX::Group(1445,1446,FIX::message_order(1446,1447,1448,0)) {} + FIELD_SET(*this, FIX::RateSource); + FIELD_SET(*this, FIX::RateSourceType); + FIELD_SET(*this, FIX::ReferencePage); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/QuoteCancel.h b/linux/include/quickfix/fix50sp2/QuoteCancel.h new file mode 100644 index 000000000..cd1f6c4a6 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/QuoteCancel.h @@ -0,0 +1,295 @@ +#ifndef FIX50SP2_QUOTECANCEL_H +#define FIX50SP2_QUOTECANCEL_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class QuoteCancel : public Message + { + public: + QuoteCancel() : Message(MsgType()) {} + QuoteCancel(const FIX::Message& m) : Message(m) {} + QuoteCancel(const Message& m) : Message(m) {} + QuoteCancel(const QuoteCancel& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("Z"); } + + QuoteCancel( + const FIX::QuoteCancelType& aQuoteCancelType ) + : Message(MsgType()) + { + set(aQuoteCancelType); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteMsgID); + FIELD_SET(*this, FIX::QuoteCancelType); + FIELD_SET(*this, FIX::QuoteResponseLevel); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NoQuoteEntries); + class NoQuoteEntries: public FIX::Group + { + public: + NoQuoteEntries() : FIX::Group(295,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,1435,1439,1449,1450,1451,1452,1457,1458,1478,1479,1480,1481,1482,913,914,915,918,788,916,917,919,898,711,555,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + }; + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::NoTargetPartyIDs); + class NoTargetPartyIDs: public FIX::Group + { + public: + NoTargetPartyIDs() : FIX::Group(1461,1462,FIX::message_order(1462,1463,1464,0)) {} + FIELD_SET(*this, FIX::TargetPartyID); + FIELD_SET(*this, FIX::TargetPartyIDSource); + FIELD_SET(*this, FIX::TargetPartyRole); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/QuoteRequest.h b/linux/include/quickfix/fix50sp2/QuoteRequest.h new file mode 100644 index 000000000..888900909 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/QuoteRequest.h @@ -0,0 +1,409 @@ +#ifndef FIX50SP2_QUOTEREQUEST_H +#define FIX50SP2_QUOTEREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class QuoteRequest : public Message + { + public: + QuoteRequest() : Message(MsgType()) {} + QuoteRequest(const FIX::Message& m) : Message(m) {} + QuoteRequest(const Message& m) : Message(m) {} + QuoteRequest(const QuoteRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("R"); } + + QuoteRequest( + const FIX::QuoteReqID& aQuoteReqID ) + : Message(MsgType()) + { + set(aQuoteReqID); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::RFQReqID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::PrivateQuote); + FIELD_SET(*this, FIX::RespondentType); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::NoRootPartyIDs); + class NoRootPartyIDs: public FIX::Group + { + public: + NoRootPartyIDs() : FIX::Group(1116,1117,FIX::message_order(1117,1118,1119,1120,0)) {} + FIELD_SET(*this, FIX::RootPartyID); + FIELD_SET(*this, FIX::RootPartyIDSource); + FIELD_SET(*this, FIX::RootPartyRole); + FIELD_SET(*this, FIX::NoRootPartySubIDs); + class NoRootPartySubIDs: public FIX::Group + { + public: + NoRootPartySubIDs() : FIX::Group(1120,1121,FIX::message_order(1121,1122,0)) {} + FIELD_SET(*this, FIX::RootPartySubID); + FIELD_SET(*this, FIX::RootPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,1435,1439,1449,1450,1451,1452,1457,1458,1478,1479,1480,1481,1482,913,914,915,918,788,916,917,919,898,711,140,303,537,336,625,229,54,854,38,152,516,468,469,110,63,64,193,192,15,232,1,660,581,555,735,692,40,62,126,60,218,220,221,222,662,663,699,761,423,44,640,235,236,701,696,697,698,453,120,1445,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::QuoteRequestType); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,687,685,690,587,588,683,539,676,677,678,679,680,654,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegOrderQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegBenchmarkCurveCurrency); + FIELD_SET(*this, FIX::LegBenchmarkCurveName); + FIELD_SET(*this, FIX::LegBenchmarkCurvePoint); + FIELD_SET(*this, FIX::LegBenchmarkPrice); + FIELD_SET(*this, FIX::LegBenchmarkPriceType); + FIELD_SET(*this, FIX::LegRefID); + }; + FIELD_SET(*this, FIX::NoQuoteQualifiers); + class NoQuoteQualifiers: public FIX::Group + { + public: + NoQuoteQualifiers() : FIX::Group(735,695,FIX::message_order(695,0)) {} + FIELD_SET(*this, FIX::QuoteQualifier); + }; + FIELD_SET(*this, FIX::QuotePriceType); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::NoRateSources); + class NoRateSources: public FIX::Group + { + public: + NoRateSources() : FIX::Group(1445,1446,FIX::message_order(1446,1447,1448,0)) {} + FIELD_SET(*this, FIX::RateSource); + FIELD_SET(*this, FIX::RateSourceType); + FIELD_SET(*this, FIX::ReferencePage); + }; + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::OrderRestrictions); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/QuoteRequestReject.h b/linux/include/quickfix/fix50sp2/QuoteRequestReject.h new file mode 100644 index 000000000..c050d90a4 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/QuoteRequestReject.h @@ -0,0 +1,396 @@ +#ifndef FIX50SP2_QUOTEREQUESTREJECT_H +#define FIX50SP2_QUOTEREQUESTREJECT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class QuoteRequestReject : public Message + { + public: + QuoteRequestReject() : Message(MsgType()) {} + QuoteRequestReject(const FIX::Message& m) : Message(m) {} + QuoteRequestReject(const Message& m) : Message(m) {} + QuoteRequestReject(const QuoteRequestReject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AG"); } + + QuoteRequestReject( + const FIX::QuoteReqID& aQuoteReqID, + const FIX::QuoteRequestRejectReason& aQuoteRequestRejectReason ) + : Message(MsgType()) + { + set(aQuoteReqID); + set(aQuoteRequestRejectReason); + } + + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::RFQReqID); + FIELD_SET(*this, FIX::QuoteRequestRejectReason); + FIELD_SET(*this, FIX::PrivateQuote); + FIELD_SET(*this, FIX::RespondentType); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::NoRootPartyIDs); + class NoRootPartyIDs: public FIX::Group + { + public: + NoRootPartyIDs() : FIX::Group(1116,1117,FIX::message_order(1117,1118,1119,1120,0)) {} + FIELD_SET(*this, FIX::RootPartyID); + FIELD_SET(*this, FIX::RootPartyIDSource); + FIELD_SET(*this, FIX::RootPartyRole); + FIELD_SET(*this, FIX::NoRootPartySubIDs); + class NoRootPartySubIDs: public FIX::Group + { + public: + NoRootPartySubIDs() : FIX::Group(1120,1121,FIX::message_order(1121,1122,0)) {} + FIELD_SET(*this, FIX::RootPartySubID); + FIELD_SET(*this, FIX::RootPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,1435,1439,1449,1450,1451,1452,1457,1458,1478,1479,1480,1481,1482,913,914,915,918,788,916,917,919,898,711,140,303,537,336,625,229,54,854,38,152,516,468,469,63,64,193,192,15,232,1,660,581,555,735,692,40,126,60,218,220,221,222,662,663,699,761,423,44,640,235,236,701,696,697,698,453,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::QuoteRequestType); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TradeOriginationDate); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,687,685,690,587,588,683,539,676,677,678,679,680,654,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegOrderQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegBenchmarkCurveCurrency); + FIELD_SET(*this, FIX::LegBenchmarkCurveName); + FIELD_SET(*this, FIX::LegBenchmarkCurvePoint); + FIELD_SET(*this, FIX::LegBenchmarkPrice); + FIELD_SET(*this, FIX::LegBenchmarkPriceType); + FIELD_SET(*this, FIX::LegRefID); + }; + FIELD_SET(*this, FIX::NoQuoteQualifiers); + class NoQuoteQualifiers: public FIX::Group + { + public: + NoQuoteQualifiers() : FIX::Group(735,695,FIX::message_order(695,0)) {} + FIELD_SET(*this, FIX::QuoteQualifier); + }; + FIELD_SET(*this, FIX::QuotePriceType); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::Price2); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/QuoteResponse.h b/linux/include/quickfix/fix50sp2/QuoteResponse.h new file mode 100644 index 000000000..542f6c294 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/QuoteResponse.h @@ -0,0 +1,402 @@ +#ifndef FIX50SP2_QUOTERESPONSE_H +#define FIX50SP2_QUOTERESPONSE_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class QuoteResponse : public Message + { + public: + QuoteResponse() : Message(MsgType()) {} + QuoteResponse(const FIX::Message& m) : Message(m) {} + QuoteResponse(const Message& m) : Message(m) {} + QuoteResponse(const QuoteResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AJ"); } + + QuoteResponse( + const FIX::QuoteRespID& aQuoteRespID, + const FIX::QuoteRespType& aQuoteRespType ) + : Message(MsgType()) + { + set(aQuoteRespID); + set(aQuoteRespType); + } + + FIELD_SET(*this, FIX::QuoteRespID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteMsgID); + FIELD_SET(*this, FIX::QuoteRespType); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::IOIID); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::PreTradeAnonymity); + FIELD_SET(*this, FIX::NoQuoteQualifiers); + class NoQuoteQualifiers: public FIX::Group + { + public: + NoQuoteQualifiers() : FIX::Group(735,695,FIX::message_order(695,0)) {} + FIELD_SET(*this, FIX::QuoteQualifier); + }; + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,687,685,690,587,588,683,539,686,681,684,676,677,678,679,680,654,1067,1068,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegOrderQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegPriceType); + FIELD_SET(*this, FIX::LegBidPx); + FIELD_SET(*this, FIX::LegOfferPx); + FIELD_SET(*this, FIX::LegBenchmarkCurveCurrency); + FIELD_SET(*this, FIX::LegBenchmarkCurveName); + FIELD_SET(*this, FIX::LegBenchmarkCurvePoint); + FIELD_SET(*this, FIX::LegBenchmarkPrice); + FIELD_SET(*this, FIX::LegBenchmarkPriceType); + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegBidForwardPoints); + FIELD_SET(*this, FIX::LegOfferForwardPoints); + }; + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::MktBidPx); + FIELD_SET(*this, FIX::MktOfferPx); + FIELD_SET(*this, FIX::MinBidSize); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::MinOfferSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::SettlCurrBidFxRate); + FIELD_SET(*this, FIX::SettlCurrOfferFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/QuoteStatusReport.h b/linux/include/quickfix/fix50sp2/QuoteStatusReport.h new file mode 100644 index 000000000..5c59e396e --- /dev/null +++ b/linux/include/quickfix/fix50sp2/QuoteStatusReport.h @@ -0,0 +1,394 @@ +#ifndef FIX50SP2_QUOTESTATUSREPORT_H +#define FIX50SP2_QUOTESTATUSREPORT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class QuoteStatusReport : public Message + { + public: + QuoteStatusReport() : Message(MsgType()) {} + QuoteStatusReport(const FIX::Message& m) : Message(m) {} + QuoteStatusReport(const Message& m) : Message(m) {} + QuoteStatusReport(const QuoteStatusReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AI"); } + + FIELD_SET(*this, FIX::QuoteStatusReqID); + FIELD_SET(*this, FIX::QuoteReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::QuoteMsgID); + FIELD_SET(*this, FIX::QuoteRespID); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::QuoteCancelType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::OrderQty); + FIELD_SET(*this, FIX::CashOrderQty); + FIELD_SET(*this, FIX::OrderPercent); + FIELD_SET(*this, FIX::RoundingDirection); + FIELD_SET(*this, FIX::RoundingModulus); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::SettlDate2); + FIELD_SET(*this, FIX::OrderQty2); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,687,685,690,587,588,683,539,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegOrderQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::NoQuoteQualifiers); + class NoQuoteQualifiers: public FIX::Group + { + public: + NoQuoteQualifiers() : FIX::Group(735,695,FIX::message_order(695,0)) {} + FIELD_SET(*this, FIX::QuoteQualifier); + }; + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::BidPx); + FIELD_SET(*this, FIX::OfferPx); + FIELD_SET(*this, FIX::MktBidPx); + FIELD_SET(*this, FIX::MktOfferPx); + FIELD_SET(*this, FIX::MinBidSize); + FIELD_SET(*this, FIX::BidSize); + FIELD_SET(*this, FIX::MinOfferSize); + FIELD_SET(*this, FIX::OfferSize); + FIELD_SET(*this, FIX::MinQty); + FIELD_SET(*this, FIX::ValidUntilTime); + FIELD_SET(*this, FIX::BidSpotRate); + FIELD_SET(*this, FIX::OfferSpotRate); + FIELD_SET(*this, FIX::BidForwardPoints); + FIELD_SET(*this, FIX::OfferForwardPoints); + FIELD_SET(*this, FIX::MidPx); + FIELD_SET(*this, FIX::BidYield); + FIELD_SET(*this, FIX::MidYield); + FIELD_SET(*this, FIX::OfferYield); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::BidForwardPoints2); + FIELD_SET(*this, FIX::OfferForwardPoints2); + FIELD_SET(*this, FIX::SettlCurrBidFxRate); + FIELD_SET(*this, FIX::SettlCurrOfferFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::ExDestination); + FIELD_SET(*this, FIX::ExDestinationIDSource); + FIELD_SET(*this, FIX::QuoteStatus); + FIELD_SET(*this, FIX::QuoteRejectReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::NoTargetPartyIDs); + class NoTargetPartyIDs: public FIX::Group + { + public: + NoTargetPartyIDs() : FIX::Group(1461,1462,FIX::message_order(1462,1463,1464,0)) {} + FIELD_SET(*this, FIX::TargetPartyID); + FIELD_SET(*this, FIX::TargetPartyIDSource); + FIELD_SET(*this, FIX::TargetPartyRole); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/QuoteStatusRequest.h b/linux/include/quickfix/fix50sp2/QuoteStatusRequest.h new file mode 100644 index 000000000..ce5f9484d --- /dev/null +++ b/linux/include/quickfix/fix50sp2/QuoteStatusRequest.h @@ -0,0 +1,279 @@ +#ifndef FIX50SP2_QUOTESTATUSREQUEST_H +#define FIX50SP2_QUOTESTATUSREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class QuoteStatusRequest : public Message + { + public: + QuoteStatusRequest() : Message(MsgType()) {} + QuoteStatusRequest(const FIX::Message& m) : Message(m) {} + QuoteStatusRequest(const Message& m) : Message(m) {} + QuoteStatusRequest(const QuoteStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("a"); } + + FIELD_SET(*this, FIX::QuoteStatusReqID); + FIELD_SET(*this, FIX::QuoteID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::NoTargetPartyIDs); + class NoTargetPartyIDs: public FIX::Group + { + public: + NoTargetPartyIDs() : FIX::Group(1461,1462,FIX::message_order(1462,1463,1464,0)) {} + FIELD_SET(*this, FIX::TargetPartyID); + FIELD_SET(*this, FIX::TargetPartyIDSource); + FIELD_SET(*this, FIX::TargetPartyRole); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/RFQRequest.h b/linux/include/quickfix/fix50sp2/RFQRequest.h new file mode 100644 index 000000000..01a34a375 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/RFQRequest.h @@ -0,0 +1,274 @@ +#ifndef FIX50SP2_RFQREQUEST_H +#define FIX50SP2_RFQREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class RFQRequest : public Message + { + public: + RFQRequest() : Message(MsgType()) {} + RFQRequest(const FIX::Message& m) : Message(m) {} + RFQRequest(const Message& m) : Message(m) {} + RFQRequest(const RFQRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AH"); } + + RFQRequest( + const FIX::RFQReqID& aRFQReqID ) + : Message(MsgType()) + { + set(aRFQReqID); + } + + FIELD_SET(*this, FIX::RFQReqID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,1435,1439,1449,1450,1451,1452,1457,1458,1478,1479,1480,1481,1482,711,555,140,303,537,336,625,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::PrevClosePx); + FIELD_SET(*this, FIX::QuoteRequestType); + FIELD_SET(*this, FIX::QuoteType); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::PrivateQuote); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/RegistrationInstructions.h b/linux/include/quickfix/fix50sp2/RegistrationInstructions.h new file mode 100644 index 000000000..beee7dc07 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/RegistrationInstructions.h @@ -0,0 +1,103 @@ +#ifndef FIX50SP2_REGISTRATIONINSTRUCTIONS_H +#define FIX50SP2_REGISTRATIONINSTRUCTIONS_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class RegistrationInstructions : public Message + { + public: + RegistrationInstructions() : Message(MsgType()) {} + RegistrationInstructions(const FIX::Message& m) : Message(m) {} + RegistrationInstructions(const Message& m) : Message(m) {} + RegistrationInstructions(const RegistrationInstructions& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("o"); } + + RegistrationInstructions( + const FIX::RegistID& aRegistID, + const FIX::RegistTransType& aRegistTransType, + const FIX::RegistRefID& aRegistRefID ) + : Message(MsgType()) + { + set(aRegistID); + set(aRegistTransType); + set(aRegistRefID); + } + + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::RegistTransType); + FIELD_SET(*this, FIX::RegistRefID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::RegistAcctType); + FIELD_SET(*this, FIX::TaxAdvantageType); + FIELD_SET(*this, FIX::OwnershipType); + FIELD_SET(*this, FIX::NoRegistDtls); + class NoRegistDtls: public FIX::Group + { + public: + NoRegistDtls() : FIX::Group(473,509,FIX::message_order(509,511,474,482,539,522,486,475,0)) {} + FIELD_SET(*this, FIX::RegistDtls); + FIELD_SET(*this, FIX::RegistEmail); + FIELD_SET(*this, FIX::MailingDtls); + FIELD_SET(*this, FIX::MailingInst); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::OwnerType); + FIELD_SET(*this, FIX::DateOfBirth); + FIELD_SET(*this, FIX::InvestorCountryOfResidence); + }; + FIELD_SET(*this, FIX::NoDistribInsts); + class NoDistribInsts: public FIX::Group + { + public: + NoDistribInsts() : FIX::Group(510,477,FIX::message_order(477,512,478,498,499,500,501,502,0)) {} + FIELD_SET(*this, FIX::DistribPaymentMethod); + FIELD_SET(*this, FIX::DistribPercentage); + FIELD_SET(*this, FIX::CashDistribCurr); + FIELD_SET(*this, FIX::CashDistribAgentName); + FIELD_SET(*this, FIX::CashDistribAgentCode); + FIELD_SET(*this, FIX::CashDistribAgentAcctNumber); + FIELD_SET(*this, FIX::CashDistribPayRef); + FIELD_SET(*this, FIX::CashDistribAgentAcctName); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/RegistrationInstructionsResponse.h b/linux/include/quickfix/fix50sp2/RegistrationInstructionsResponse.h new file mode 100644 index 000000000..ceccaad97 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/RegistrationInstructionsResponse.h @@ -0,0 +1,61 @@ +#ifndef FIX50SP2_REGISTRATIONINSTRUCTIONSRESPONSE_H +#define FIX50SP2_REGISTRATIONINSTRUCTIONSRESPONSE_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class RegistrationInstructionsResponse : public Message + { + public: + RegistrationInstructionsResponse() : Message(MsgType()) {} + RegistrationInstructionsResponse(const FIX::Message& m) : Message(m) {} + RegistrationInstructionsResponse(const Message& m) : Message(m) {} + RegistrationInstructionsResponse(const RegistrationInstructionsResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("p"); } + + RegistrationInstructionsResponse( + const FIX::RegistID& aRegistID, + const FIX::RegistTransType& aRegistTransType, + const FIX::RegistRefID& aRegistRefID, + const FIX::RegistStatus& aRegistStatus ) + : Message(MsgType()) + { + set(aRegistID); + set(aRegistTransType); + set(aRegistRefID); + set(aRegistStatus); + } + + FIELD_SET(*this, FIX::RegistID); + FIELD_SET(*this, FIX::RegistTransType); + FIELD_SET(*this, FIX::RegistRefID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::RegistStatus); + FIELD_SET(*this, FIX::RegistRejReasonCode); + FIELD_SET(*this, FIX::RegistRejReasonText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/RequestForPositions.h b/linux/include/quickfix/fix50sp2/RequestForPositions.h new file mode 100644 index 000000000..636975739 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/RequestForPositions.h @@ -0,0 +1,292 @@ +#ifndef FIX50SP2_REQUESTFORPOSITIONS_H +#define FIX50SP2_REQUESTFORPOSITIONS_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class RequestForPositions : public Message + { + public: + RequestForPositions() : Message(MsgType()) {} + RequestForPositions(const FIX::Message& m) : Message(m) {} + RequestForPositions(const Message& m) : Message(m) {} + RequestForPositions(const RequestForPositions& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AN"); } + + RequestForPositions( + const FIX::PosReqID& aPosReqID, + const FIX::PosReqType& aPosReqType, + const FIX::ClearingBusinessDate& aClearingBusinessDate, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aPosReqID); + set(aPosReqType); + set(aClearingBusinessDate); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::PosReqID); + FIELD_SET(*this, FIX::PosReqType); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/RequestForPositionsAck.h b/linux/include/quickfix/fix50sp2/RequestForPositionsAck.h new file mode 100644 index 000000000..75a399b28 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/RequestForPositionsAck.h @@ -0,0 +1,286 @@ +#ifndef FIX50SP2_REQUESTFORPOSITIONSACK_H +#define FIX50SP2_REQUESTFORPOSITIONSACK_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class RequestForPositionsAck : public Message + { + public: + RequestForPositionsAck() : Message(MsgType()) {} + RequestForPositionsAck(const FIX::Message& m) : Message(m) {} + RequestForPositionsAck(const Message& m) : Message(m) {} + RequestForPositionsAck(const RequestForPositionsAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AO"); } + + RequestForPositionsAck( + const FIX::PosMaintRptID& aPosMaintRptID, + const FIX::PosReqResult& aPosReqResult, + const FIX::PosReqStatus& aPosReqStatus ) + : Message(MsgType()) + { + set(aPosMaintRptID); + set(aPosReqResult); + set(aPosReqStatus); + } + + FIELD_SET(*this, FIX::PosMaintRptID); + FIELD_SET(*this, FIX::PosReqID); + FIELD_SET(*this, FIX::TotalNumPosReports); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::PosReqResult); + FIELD_SET(*this, FIX::PosReqStatus); + FIELD_SET(*this, FIX::PosReqType); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/SecurityDefinition.h b/linux/include/quickfix/fix50sp2/SecurityDefinition.h new file mode 100644 index 000000000..a37b1c084 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/SecurityDefinition.h @@ -0,0 +1,306 @@ +#ifndef FIX50SP2_SECURITYDEFINITION_H +#define FIX50SP2_SECURITYDEFINITION_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class SecurityDefinition : public Message + { + public: + SecurityDefinition() : Message(MsgType()) {} + SecurityDefinition(const FIX::Message& m) : Message(m) {} + SecurityDefinition(const Message& m) : Message(m) {} + SecurityDefinition(const SecurityDefinition& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("d"); } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::SecurityReportID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityResponseType); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoMarketSegments); + class NoMarketSegments: public FIX::Group + { + public: + NoMarketSegments() : FIX::Group(1310,1301,FIX::message_order(1301,1300,1201,0)) {} + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::NoStrikeRules); + class NoStrikeRules: public FIX::Group + { + public: + NoStrikeRules() : FIX::Group(1201,1223,FIX::message_order(1223,1202,1203,1204,1304,1236,0)) {} + FIELD_SET(*this, FIX::StrikeRuleID); + FIELD_SET(*this, FIX::StartStrikePxRange); + FIELD_SET(*this, FIX::EndStrikePxRange); + FIELD_SET(*this, FIX::StrikeIncrement); + FIELD_SET(*this, FIX::StrikeExerciseStyle); + FIELD_SET(*this, FIX::NoMaturityRules); + class NoMaturityRules: public FIX::Group + { + public: + NoMaturityRules() : FIX::Group(1236,1222,FIX::message_order(1222,1303,1302,1241,1226,1229,0)) {} + FIELD_SET(*this, FIX::MaturityRuleID); + FIELD_SET(*this, FIX::MaturityMonthYearFormat); + FIELD_SET(*this, FIX::MaturityMonthYearIncrementUnits); + FIELD_SET(*this, FIX::StartMaturityMonthYear); + FIELD_SET(*this, FIX::EndMaturityMonthYear); + FIELD_SET(*this, FIX::MaturityMonthYearIncrement); + }; + }; + }; + FIELD_SET(*this, FIX::TransactTime); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/SecurityDefinitionRequest.h b/linux/include/quickfix/fix50sp2/SecurityDefinitionRequest.h new file mode 100644 index 000000000..dc9fe2438 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/SecurityDefinitionRequest.h @@ -0,0 +1,281 @@ +#ifndef FIX50SP2_SECURITYDEFINITIONREQUEST_H +#define FIX50SP2_SECURITYDEFINITIONREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class SecurityDefinitionRequest : public Message + { + public: + SecurityDefinitionRequest() : Message(MsgType()) {} + SecurityDefinitionRequest(const FIX::Message& m) : Message(m) {} + SecurityDefinitionRequest(const Message& m) : Message(m) {} + SecurityDefinitionRequest(const SecurityDefinitionRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("c"); } + + SecurityDefinitionRequest( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityRequestType& aSecurityRequestType ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityRequestType); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityRequestType); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::ExpirationCycle); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/SecurityDefinitionUpdateReport.h b/linux/include/quickfix/fix50sp2/SecurityDefinitionUpdateReport.h new file mode 100644 index 000000000..7b81b912e --- /dev/null +++ b/linux/include/quickfix/fix50sp2/SecurityDefinitionUpdateReport.h @@ -0,0 +1,307 @@ +#ifndef FIX50SP2_SECURITYDEFINITIONUPDATEREPORT_H +#define FIX50SP2_SECURITYDEFINITIONUPDATEREPORT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class SecurityDefinitionUpdateReport : public Message + { + public: + SecurityDefinitionUpdateReport() : Message(MsgType()) {} + SecurityDefinitionUpdateReport(const FIX::Message& m) : Message(m) {} + SecurityDefinitionUpdateReport(const Message& m) : Message(m) {} + SecurityDefinitionUpdateReport(const SecurityDefinitionUpdateReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BP"); } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::SecurityReportID); + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityResponseType); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SecurityUpdateAction); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoMarketSegments); + class NoMarketSegments: public FIX::Group + { + public: + NoMarketSegments() : FIX::Group(1310,1301,FIX::message_order(1301,1300,1201,0)) {} + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::NoStrikeRules); + class NoStrikeRules: public FIX::Group + { + public: + NoStrikeRules() : FIX::Group(1201,1223,FIX::message_order(1223,1202,1203,1204,1304,1236,0)) {} + FIELD_SET(*this, FIX::StrikeRuleID); + FIELD_SET(*this, FIX::StartStrikePxRange); + FIELD_SET(*this, FIX::EndStrikePxRange); + FIELD_SET(*this, FIX::StrikeIncrement); + FIELD_SET(*this, FIX::StrikeExerciseStyle); + FIELD_SET(*this, FIX::NoMaturityRules); + class NoMaturityRules: public FIX::Group + { + public: + NoMaturityRules() : FIX::Group(1236,1222,FIX::message_order(1222,1303,1302,1241,1226,1229,0)) {} + FIELD_SET(*this, FIX::MaturityRuleID); + FIELD_SET(*this, FIX::MaturityMonthYearFormat); + FIELD_SET(*this, FIX::MaturityMonthYearIncrementUnits); + FIELD_SET(*this, FIX::StartMaturityMonthYear); + FIELD_SET(*this, FIX::EndMaturityMonthYear); + FIELD_SET(*this, FIX::MaturityMonthYearIncrement); + }; + }; + }; + FIELD_SET(*this, FIX::TransactTime); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/SecurityList.h b/linux/include/quickfix/fix50sp2/SecurityList.h new file mode 100644 index 000000000..4c305ec93 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/SecurityList.h @@ -0,0 +1,339 @@ +#ifndef FIX50SP2_SECURITYLIST_H +#define FIX50SP2_SECURITYLIST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class SecurityList : public Message + { + public: + SecurityList() : Message(MsgType()) {} + SecurityList(const FIX::Message& m) : Message(m) {} + SecurityList(const Message& m) : Message(m) {} + SecurityList(const SecurityList& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("y"); } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::SecurityReportID); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityRequestResult); + FIELD_SET(*this, FIX::TotNoRelatedSym); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,1435,1439,1449,1450,1451,1452,1457,1458,1478,1479,1480,1481,1482,668,869,913,914,915,918,788,916,917,919,898,1201,711,15,232,555,218,220,221,222,662,663,699,761,235,236,701,696,697,698,58,354,355,1504,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoStrikeRules); + class NoStrikeRules: public FIX::Group + { + public: + NoStrikeRules() : FIX::Group(1201,1223,FIX::message_order(1223,1202,1203,1204,1304,1236,0)) {} + FIELD_SET(*this, FIX::StrikeRuleID); + FIELD_SET(*this, FIX::StartStrikePxRange); + FIELD_SET(*this, FIX::EndStrikePxRange); + FIELD_SET(*this, FIX::StrikeIncrement); + FIELD_SET(*this, FIX::StrikeExerciseStyle); + FIELD_SET(*this, FIX::NoMaturityRules); + class NoMaturityRules: public FIX::Group + { + public: + NoMaturityRules() : FIX::Group(1236,1222,FIX::message_order(1222,1303,1302,1241,1226,1229,0)) {} + FIELD_SET(*this, FIX::MaturityRuleID); + FIELD_SET(*this, FIX::MaturityMonthYearFormat); + FIELD_SET(*this, FIX::MaturityMonthYearIncrementUnits); + FIELD_SET(*this, FIX::StartMaturityMonthYear); + FIELD_SET(*this, FIX::EndMaturityMonthYear); + FIELD_SET(*this, FIX::MaturityMonthYearIncrement); + }; + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,690,587,683,676,677,678,679,680,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::LegBenchmarkCurveCurrency); + FIELD_SET(*this, FIX::LegBenchmarkCurveName); + FIELD_SET(*this, FIX::LegBenchmarkCurvePoint); + FIELD_SET(*this, FIX::LegBenchmarkPrice); + FIELD_SET(*this, FIX::LegBenchmarkPriceType); + }; + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::RelSymTransactTime); + }; + FIELD_SET(*this, FIX::SecurityListID); + FIELD_SET(*this, FIX::SecurityListRefID); + FIELD_SET(*this, FIX::SecurityListDesc); + FIELD_SET(*this, FIX::EncodedSecurityListDescLen); + FIELD_SET(*this, FIX::EncodedSecurityListDesc); + FIELD_SET(*this, FIX::SecurityListType); + FIELD_SET(*this, FIX::SecurityListTypeSource); + FIELD_SET(*this, FIX::TransactTime); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/SecurityListRequest.h b/linux/include/quickfix/fix50sp2/SecurityListRequest.h new file mode 100644 index 000000000..459d9eaf6 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/SecurityListRequest.h @@ -0,0 +1,270 @@ +#ifndef FIX50SP2_SECURITYLISTREQUEST_H +#define FIX50SP2_SECURITYLISTREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class SecurityListRequest : public Message + { + public: + SecurityListRequest() : Message(MsgType()) {} + SecurityListRequest(const FIX::Message& m) : Message(m) {} + SecurityListRequest(const Message& m) : Message(m) {} + SecurityListRequest(const SecurityListRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("x"); } + + SecurityListRequest( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityListRequestType& aSecurityListRequestType ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityListRequestType); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityListRequestType); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::SecurityListID); + FIELD_SET(*this, FIX::SecurityListType); + FIELD_SET(*this, FIX::SecurityListTypeSource); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/SecurityListUpdateReport.h b/linux/include/quickfix/fix50sp2/SecurityListUpdateReport.h new file mode 100644 index 000000000..af11f9a38 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/SecurityListUpdateReport.h @@ -0,0 +1,342 @@ +#ifndef FIX50SP2_SECURITYLISTUPDATEREPORT_H +#define FIX50SP2_SECURITYLISTUPDATEREPORT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class SecurityListUpdateReport : public Message + { + public: + SecurityListUpdateReport() : Message(MsgType()) {} + SecurityListUpdateReport(const FIX::Message& m) : Message(m) {} + SecurityListUpdateReport(const Message& m) : Message(m) {} + SecurityListUpdateReport(const SecurityListUpdateReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BK"); } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::SecurityReportID); + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityRequestResult); + FIELD_SET(*this, FIX::TotNoRelatedSym); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SecurityUpdateAction); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,1324,FIX::message_order(1324,55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,1435,1439,1449,1450,1451,1452,1457,1458,1478,1479,1480,1481,1482,668,869,913,914,915,918,788,916,917,919,898,1201,711,15,232,555,218,220,221,222,662,663,699,761,235,236,701,696,697,698,58,354,355,1504,0)) {} + FIELD_SET(*this, FIX::ListUpdateAction); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoStrikeRules); + class NoStrikeRules: public FIX::Group + { + public: + NoStrikeRules() : FIX::Group(1201,1223,FIX::message_order(1223,1202,1203,1204,1304,1236,0)) {} + FIELD_SET(*this, FIX::StrikeRuleID); + FIELD_SET(*this, FIX::StartStrikePxRange); + FIELD_SET(*this, FIX::EndStrikePxRange); + FIELD_SET(*this, FIX::StrikeIncrement); + FIELD_SET(*this, FIX::StrikeExerciseStyle); + FIELD_SET(*this, FIX::NoMaturityRules); + class NoMaturityRules: public FIX::Group + { + public: + NoMaturityRules() : FIX::Group(1236,1222,FIX::message_order(1222,1303,1302,1241,1226,1229,0)) {} + FIELD_SET(*this, FIX::MaturityRuleID); + FIELD_SET(*this, FIX::MaturityMonthYearFormat); + FIELD_SET(*this, FIX::MaturityMonthYearIncrementUnits); + FIELD_SET(*this, FIX::StartMaturityMonthYear); + FIELD_SET(*this, FIX::EndMaturityMonthYear); + FIELD_SET(*this, FIX::MaturityMonthYearIncrement); + }; + }; + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,690,587,683,676,677,678,679,680,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::LegBenchmarkCurveCurrency); + FIELD_SET(*this, FIX::LegBenchmarkCurveName); + FIELD_SET(*this, FIX::LegBenchmarkCurvePoint); + FIELD_SET(*this, FIX::LegBenchmarkPrice); + FIELD_SET(*this, FIX::LegBenchmarkPriceType); + }; + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::RelSymTransactTime); + }; + FIELD_SET(*this, FIX::SecurityListID); + FIELD_SET(*this, FIX::SecurityListRefID); + FIELD_SET(*this, FIX::SecurityListDesc); + FIELD_SET(*this, FIX::EncodedSecurityListDescLen); + FIELD_SET(*this, FIX::EncodedSecurityListDesc); + FIELD_SET(*this, FIX::SecurityListType); + FIELD_SET(*this, FIX::SecurityListTypeSource); + FIELD_SET(*this, FIX::TransactTime); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/SecurityStatus.h b/linux/include/quickfix/fix50sp2/SecurityStatus.h new file mode 100644 index 000000000..222f06a8d --- /dev/null +++ b/linux/include/quickfix/fix50sp2/SecurityStatus.h @@ -0,0 +1,269 @@ +#ifndef FIX50SP2_SECURITYSTATUS_H +#define FIX50SP2_SECURITYSTATUS_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class SecurityStatus : public Message + { + public: + SecurityStatus() : Message(MsgType()) {} + SecurityStatus(const FIX::Message& m) : Message(m) {} + SecurityStatus(const Message& m) : Message(m) {} + SecurityStatus(const SecurityStatus& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("f"); } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::SecurityStatusReqID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::SecurityTradingStatus); + FIELD_SET(*this, FIX::SecurityTradingEvent); + FIELD_SET(*this, FIX::FinancialStatus); + FIELD_SET(*this, FIX::CorporateAction); + FIELD_SET(*this, FIX::HaltReasonInt); + FIELD_SET(*this, FIX::InViewOfCommon); + FIELD_SET(*this, FIX::DueToRelated); + FIELD_SET(*this, FIX::MDBookType); + FIELD_SET(*this, FIX::MarketDepth); + FIELD_SET(*this, FIX::BuyVolume); + FIELD_SET(*this, FIX::SellVolume); + FIELD_SET(*this, FIX::HighPx); + FIELD_SET(*this, FIX::LowPx); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::Adjustment); + FIELD_SET(*this, FIX::FirstPx); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/SecurityStatusRequest.h b/linux/include/quickfix/fix50sp2/SecurityStatusRequest.h new file mode 100644 index 000000000..72942ff74 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/SecurityStatusRequest.h @@ -0,0 +1,254 @@ +#ifndef FIX50SP2_SECURITYSTATUSREQUEST_H +#define FIX50SP2_SECURITYSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class SecurityStatusRequest : public Message + { + public: + SecurityStatusRequest() : Message(MsgType()) {} + SecurityStatusRequest(const FIX::Message& m) : Message(m) {} + SecurityStatusRequest(const Message& m) : Message(m) {} + SecurityStatusRequest(const SecurityStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("e"); } + + SecurityStatusRequest( + const FIX::SecurityStatusReqID& aSecurityStatusReqID, + const FIX::SubscriptionRequestType& aSubscriptionRequestType ) + : Message(MsgType()) + { + set(aSecurityStatusReqID); + set(aSubscriptionRequestType); + } + + FIELD_SET(*this, FIX::SecurityStatusReqID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/SecurityTypeRequest.h b/linux/include/quickfix/fix50sp2/SecurityTypeRequest.h new file mode 100644 index 000000000..18bea3bde --- /dev/null +++ b/linux/include/quickfix/fix50sp2/SecurityTypeRequest.h @@ -0,0 +1,40 @@ +#ifndef FIX50SP2_SECURITYTYPEREQUEST_H +#define FIX50SP2_SECURITYTYPEREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class SecurityTypeRequest : public Message + { + public: + SecurityTypeRequest() : Message(MsgType()) {} + SecurityTypeRequest(const FIX::Message& m) : Message(m) {} + SecurityTypeRequest(const Message& m) : Message(m) {} + SecurityTypeRequest(const SecurityTypeRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("v"); } + + SecurityTypeRequest( + const FIX::SecurityReqID& aSecurityReqID ) + : Message(MsgType()) + { + set(aSecurityReqID); + } + + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/SecurityTypes.h b/linux/include/quickfix/fix50sp2/SecurityTypes.h new file mode 100644 index 000000000..4b9077bc2 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/SecurityTypes.h @@ -0,0 +1,61 @@ +#ifndef FIX50SP2_SECURITYTYPES_H +#define FIX50SP2_SECURITYTYPES_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class SecurityTypes : public Message + { + public: + SecurityTypes() : Message(MsgType()) {} + SecurityTypes(const FIX::Message& m) : Message(m) {} + SecurityTypes(const Message& m) : Message(m) {} + SecurityTypes(const SecurityTypes& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("w"); } + + SecurityTypes( + const FIX::SecurityReqID& aSecurityReqID, + const FIX::SecurityResponseID& aSecurityResponseID, + const FIX::SecurityResponseType& aSecurityResponseType ) + : Message(MsgType()) + { + set(aSecurityReqID); + set(aSecurityResponseID); + set(aSecurityResponseType); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::SecurityReqID); + FIELD_SET(*this, FIX::SecurityResponseID); + FIELD_SET(*this, FIX::SecurityResponseType); + FIELD_SET(*this, FIX::TotNoSecurityTypes); + FIELD_SET(*this, FIX::LastFragment); + FIELD_SET(*this, FIX::NoSecurityTypes); + class NoSecurityTypes: public FIX::Group + { + public: + NoSecurityTypes() : FIX::Group(558,167,FIX::message_order(167,762,460,461,60,0)) {} + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::TransactTime); + }; + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/SettlementInstructionRequest.h b/linux/include/quickfix/fix50sp2/SettlementInstructionRequest.h new file mode 100644 index 000000000..f80f6fcd6 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/SettlementInstructionRequest.h @@ -0,0 +1,63 @@ +#ifndef FIX50SP2_SETTLEMENTINSTRUCTIONREQUEST_H +#define FIX50SP2_SETTLEMENTINSTRUCTIONREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class SettlementInstructionRequest : public Message + { + public: + SettlementInstructionRequest() : Message(MsgType()) {} + SettlementInstructionRequest(const FIX::Message& m) : Message(m) {} + SettlementInstructionRequest(const Message& m) : Message(m) {} + SettlementInstructionRequest(const SettlementInstructionRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AV"); } + + SettlementInstructionRequest( + const FIX::SettlInstReqID& aSettlInstReqID, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aSettlInstReqID); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::SettlInstReqID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::LastUpdateTime); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/SettlementInstructions.h b/linux/include/quickfix/fix50sp2/SettlementInstructions.h new file mode 100644 index 000000000..e69a15c94 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/SettlementInstructions.h @@ -0,0 +1,89 @@ +#ifndef FIX50SP2_SETTLEMENTINSTRUCTIONS_H +#define FIX50SP2_SETTLEMENTINSTRUCTIONS_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class SettlementInstructions : public Message + { + public: + SettlementInstructions() : Message(MsgType()) {} + SettlementInstructions(const FIX::Message& m) : Message(m) {} + SettlementInstructions(const Message& m) : Message(m) {} + SettlementInstructions(const SettlementInstructions& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("T"); } + + SettlementInstructions( + const FIX::SettlInstMsgID& aSettlInstMsgID, + const FIX::SettlInstMode& aSettlInstMode, + const FIX::TransactTime& aTransactTime ) + : Message(MsgType()) + { + set(aSettlInstMsgID); + set(aSettlInstMode); + set(aTransactTime); + } + + FIELD_SET(*this, FIX::SettlInstMsgID); + FIELD_SET(*this, FIX::SettlInstReqID); + FIELD_SET(*this, FIX::SettlInstMode); + FIELD_SET(*this, FIX::SettlInstReqRejCode); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoSettlInst); + class NoSettlInst: public FIX::Group + { + public: + NoSettlInst() : FIX::Group(778,162,FIX::message_order(162,163,214,453,54,460,167,461,120,168,126,779,172,169,170,171,492,476,488,489,503,490,491,504,505,0)) {} + FIELD_SET(*this, FIX::SettlInstID); + FIELD_SET(*this, FIX::SettlInstTransType); + FIELD_SET(*this, FIX::SettlInstRefID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::LastUpdateTime); + FIELD_SET(*this, FIX::SettlDeliveryType); + FIELD_SET(*this, FIX::StandInstDbType); + FIELD_SET(*this, FIX::StandInstDbName); + FIELD_SET(*this, FIX::StandInstDbID); + FIELD_SET(*this, FIX::PaymentMethod); + FIELD_SET(*this, FIX::PaymentRef); + FIELD_SET(*this, FIX::CardHolderName); + FIELD_SET(*this, FIX::CardNumber); + FIELD_SET(*this, FIX::CardStartDate); + FIELD_SET(*this, FIX::CardExpDate); + FIELD_SET(*this, FIX::CardIssNum); + FIELD_SET(*this, FIX::PaymentDate); + FIELD_SET(*this, FIX::PaymentRemitterID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/SettlementObligationReport.h b/linux/include/quickfix/fix50sp2/SettlementObligationReport.h new file mode 100644 index 000000000..cf3747db9 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/SettlementObligationReport.h @@ -0,0 +1,184 @@ +#ifndef FIX50SP2_SETTLEMENTOBLIGATIONREPORT_H +#define FIX50SP2_SETTLEMENTOBLIGATIONREPORT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class SettlementObligationReport : public Message + { + public: + SettlementObligationReport() : Message(MsgType()) {} + SettlementObligationReport(const FIX::Message& m) : Message(m) {} + SettlementObligationReport(const Message& m) : Message(m) {} + SettlementObligationReport(const SettlementObligationReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BQ"); } + + SettlementObligationReport( + const FIX::SettlObligMsgID& aSettlObligMsgID, + const FIX::SettlObligMode& aSettlObligMode ) + : Message(MsgType()) + { + set(aSettlObligMsgID); + set(aSettlObligMode); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::SettlementCycleNo); + FIELD_SET(*this, FIX::SettlObligMsgID); + FIELD_SET(*this, FIX::SettlObligMode); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoSettlOblig); + class NoSettlOblig: public FIX::Group + { + public: + NoSettlOblig() : FIX::Group(1165,430,FIX::message_order(430,1161,1162,1163,1157,119,15,120,155,64,55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,1435,1439,1449,1450,1451,1452,1457,1458,1478,1479,1480,1481,1482,453,168,126,779,1158,0)) {} + FIELD_SET(*this, FIX::NetGrossInd); + FIELD_SET(*this, FIX::SettlObligID); + FIELD_SET(*this, FIX::SettlObligTransType); + FIELD_SET(*this, FIX::SettlObligRefID); + FIELD_SET(*this, FIX::CcyAmt); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::EffectiveTime); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::LastUpdateTime); + FIELD_SET(*this, FIX::NoSettlDetails); + class NoSettlDetails: public FIX::Group + { + public: + NoSettlDetails() : FIX::Group(1158,1164,FIX::message_order(1164,781,0)) {} + FIELD_SET(*this, FIX::SettlObligSource); + FIELD_SET(*this, FIX::NoSettlPartyIDs); + class NoSettlPartyIDs: public FIX::Group + { + public: + NoSettlPartyIDs() : FIX::Group(781,782,FIX::message_order(782,783,784,801,0)) {} + FIELD_SET(*this, FIX::SettlPartyID); + FIELD_SET(*this, FIX::SettlPartyIDSource); + FIELD_SET(*this, FIX::SettlPartyRole); + FIELD_SET(*this, FIX::NoSettlPartySubIDs); + class NoSettlPartySubIDs: public FIX::Group + { + public: + NoSettlPartySubIDs() : FIX::Group(801,785,FIX::message_order(785,786,0)) {} + FIELD_SET(*this, FIX::SettlPartySubID); + FIELD_SET(*this, FIX::SettlPartySubIDType); + }; + }; + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/StreamAssignmentReport.h b/linux/include/quickfix/fix50sp2/StreamAssignmentReport.h new file mode 100644 index 000000000..1900cc9b3 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/StreamAssignmentReport.h @@ -0,0 +1,149 @@ +#ifndef FIX50SP2_STREAMASSIGNMENTREPORT_H +#define FIX50SP2_STREAMASSIGNMENTREPORT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class StreamAssignmentReport : public Message + { + public: + StreamAssignmentReport() : Message(MsgType()) {} + StreamAssignmentReport(const FIX::Message& m) : Message(m) {} + StreamAssignmentReport(const Message& m) : Message(m) {} + StreamAssignmentReport(const StreamAssignmentReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("CD"); } + + StreamAssignmentReport( + const FIX::StreamAsgnRptID& aStreamAsgnRptID ) + : Message(MsgType()) + { + set(aStreamAsgnRptID); + } + + FIELD_SET(*this, FIX::StreamAsgnRptID); + FIELD_SET(*this, FIX::StreamAsgnReqType); + FIELD_SET(*this, FIX::StreamAsgnReqID); + FIELD_SET(*this, FIX::NoAsgnReqs); + class NoAsgnReqs: public FIX::Group + { + public: + NoAsgnReqs() : FIX::Group(1499,453,FIX::message_order(453,146,0)) {} + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,1435,1439,1449,1450,1451,1452,1457,1458,1478,1479,1480,1481,1482,63,1617,1500,1502,58,354,355,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::StreamAsgnType); + FIELD_SET(*this, FIX::MDStreamID); + FIELD_SET(*this, FIX::StreamAsgnRejReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/StreamAssignmentReportACK.h b/linux/include/quickfix/fix50sp2/StreamAssignmentReportACK.h new file mode 100644 index 000000000..c4cf2eb94 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/StreamAssignmentReportACK.h @@ -0,0 +1,37 @@ +#ifndef FIX50SP2_STREAMASSIGNMENTREPORTACK_H +#define FIX50SP2_STREAMASSIGNMENTREPORTACK_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class StreamAssignmentReportACK : public Message + { + public: + StreamAssignmentReportACK() : Message(MsgType()) {} + StreamAssignmentReportACK(const FIX::Message& m) : Message(m) {} + StreamAssignmentReportACK(const Message& m) : Message(m) {} + StreamAssignmentReportACK(const StreamAssignmentReportACK& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("CE"); } + + StreamAssignmentReportACK( + const FIX::StreamAsgnAckType& aStreamAsgnAckType, + const FIX::StreamAsgnRptID& aStreamAsgnRptID ) + : Message(MsgType()) + { + set(aStreamAsgnAckType); + set(aStreamAsgnRptID); + } + + FIELD_SET(*this, FIX::StreamAsgnAckType); + FIELD_SET(*this, FIX::StreamAsgnRptID); + FIELD_SET(*this, FIX::StreamAsgnRejReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/StreamAssignmentRequest.h b/linux/include/quickfix/fix50sp2/StreamAssignmentRequest.h new file mode 100644 index 000000000..05c9f0cb0 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/StreamAssignmentRequest.h @@ -0,0 +1,146 @@ +#ifndef FIX50SP2_STREAMASSIGNMENTREQUEST_H +#define FIX50SP2_STREAMASSIGNMENTREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class StreamAssignmentRequest : public Message + { + public: + StreamAssignmentRequest() : Message(MsgType()) {} + StreamAssignmentRequest(const FIX::Message& m) : Message(m) {} + StreamAssignmentRequest(const Message& m) : Message(m) {} + StreamAssignmentRequest(const StreamAssignmentRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("CC"); } + + StreamAssignmentRequest( + const FIX::StreamAsgnReqID& aStreamAsgnReqID, + const FIX::StreamAsgnReqType& aStreamAsgnReqType ) + : Message(MsgType()) + { + set(aStreamAsgnReqID); + set(aStreamAsgnReqType); + } + + FIELD_SET(*this, FIX::StreamAsgnReqID); + FIELD_SET(*this, FIX::StreamAsgnReqType); + FIELD_SET(*this, FIX::NoAsgnReqs); + class NoAsgnReqs: public FIX::Group + { + public: + NoAsgnReqs() : FIX::Group(1499,453,FIX::message_order(453,146,0)) {} + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::NoRelatedSym); + class NoRelatedSym: public FIX::Group + { + public: + NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,1227,1151,461,167,762,200,541,1079,966,1049,965,224,225,239,226,227,228,255,543,470,471,472,240,202,947,967,968,206,231,969,1146,996,1147,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,201,1244,1242,997,223,207,970,971,106,348,349,107,350,351,691,667,875,876,873,874,1435,1439,1449,1450,1451,1452,1457,1458,1478,1479,1480,1481,1482,63,271,1500,0)) {} + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::MDEntrySize); + FIELD_SET(*this, FIX::MDStreamID); + }; + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/TradeCaptureReport.h b/linux/include/quickfix/fix50sp2/TradeCaptureReport.h new file mode 100644 index 000000000..994993802 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/TradeCaptureReport.h @@ -0,0 +1,669 @@ +#ifndef FIX50SP2_TRADECAPTUREREPORT_H +#define FIX50SP2_TRADECAPTUREREPORT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class TradeCaptureReport : public Message + { + public: + TradeCaptureReport() : Message(MsgType()) {} + TradeCaptureReport(const FIX::Message& m) : Message(m) {} + TradeCaptureReport(const Message& m) : Message(m) {} + TradeCaptureReport(const TradeCaptureReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AE"); } + + TradeCaptureReport( + const FIX::LastQty& aLastQty, + const FIX::LastPx& aLastPx ) + : Message(MsgType()) + { + set(aLastQty); + set(aLastPx); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::TradeID); + FIELD_SET(*this, FIX::SecondaryTradeID); + FIELD_SET(*this, FIX::FirmTradeID); + FIELD_SET(*this, FIX::SecondaryFirmTradeID); + FIELD_SET(*this, FIX::TradeReportTransType); + FIELD_SET(*this, FIX::TradeReportType); + FIELD_SET(*this, FIX::TrdRptStatus); + FIELD_SET(*this, FIX::TradeRequestID); + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::TrdSubType); + FIELD_SET(*this, FIX::SecondaryTrdType); + FIELD_SET(*this, FIX::TradeHandlingInstr); + FIELD_SET(*this, FIX::OrigTradeHandlingInstr); + FIELD_SET(*this, FIX::OrigTradeDate); + FIELD_SET(*this, FIX::OrigTradeID); + FIELD_SET(*this, FIX::OrigSecondaryTradeID); + FIELD_SET(*this, FIX::TransferReason); + FIELD_SET(*this, FIX::ExecType); + FIELD_SET(*this, FIX::TotNumTradeReports); + FIELD_SET(*this, FIX::LastRptRequested); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TradeReportRefID); + FIELD_SET(*this, FIX::SecondaryTradeReportRefID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + FIELD_SET(*this, FIX::TradeLinkID); + FIELD_SET(*this, FIX::TrdMatchID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::ExecRestatementReason); + FIELD_SET(*this, FIX::PreviouslyReported); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::NoRootPartyIDs); + class NoRootPartyIDs: public FIX::Group + { + public: + NoRootPartyIDs() : FIX::Group(1116,1117,FIX::message_order(1117,1118,1119,1120,0)) {} + FIELD_SET(*this, FIX::RootPartyID); + FIELD_SET(*this, FIX::RootPartyIDSource); + FIELD_SET(*this, FIX::RootPartyRole); + FIELD_SET(*this, FIX::NoRootPartySubIDs); + class NoRootPartySubIDs: public FIX::Group + { + public: + NoRootPartySubIDs() : FIX::Group(1120,1121,FIX::message_order(1121,1122,0)) {} + FIELD_SET(*this, FIX::RootPartySubID); + FIELD_SET(*this, FIX::RootPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AsOfIndicator); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::YieldType); + FIELD_SET(*this, FIX::Yield); + FIELD_SET(*this, FIX::YieldCalcDate); + FIELD_SET(*this, FIX::YieldRedemptionDate); + FIELD_SET(*this, FIX::YieldRedemptionPrice); + FIELD_SET(*this, FIX::YieldRedemptionPriceType); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::UnderlyingTradingSessionID); + FIELD_SET(*this, FIX::UnderlyingTradingSessionSubID); + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::CalculatedCcyLastQty); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::LastSpotRate); + FIELD_SET(*this, FIX::LastForwardPoints); + FIELD_SET(*this, FIX::LastSwapPoints); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::Spread); + FIELD_SET(*this, FIX::BenchmarkCurveCurrency); + FIELD_SET(*this, FIX::BenchmarkCurveName); + FIELD_SET(*this, FIX::BenchmarkCurvePoint); + FIELD_SET(*this, FIX::BenchmarkPrice); + FIELD_SET(*this, FIX::BenchmarkPriceType); + FIELD_SET(*this, FIX::BenchmarkSecurityID); + FIELD_SET(*this, FIX::BenchmarkSecurityIDSource); + FIELD_SET(*this, FIX::AvgPxIndicator); + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::TradeLegRefID); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,687,690,990,1152,683,564,565,539,654,587,588,637,675,1073,1074,1075,1379,1381,1383,1384,1418,1342,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegReportID); + FIELD_SET(*this, FIX::LegNumber); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::LegPositionEffect); + FIELD_SET(*this, FIX::LegCoveredOrUncovered); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::LegLastPx); + FIELD_SET(*this, FIX::LegSettlCurrency); + FIELD_SET(*this, FIX::LegLastForwardPoints); + FIELD_SET(*this, FIX::LegCalculatedCcyLastQty); + FIELD_SET(*this, FIX::LegGrossTradeAmt); + FIELD_SET(*this, FIX::LegVolatility); + FIELD_SET(*this, FIX::LegDividendYield); + FIELD_SET(*this, FIX::LegCurrencyRatio); + FIELD_SET(*this, FIX::LegExecInst); + FIELD_SET(*this, FIX::LegLastQty); + FIELD_SET(*this, FIX::NoOfLegUnderlyings); + class NoOfLegUnderlyings: public FIX::Group + { + public: + NoOfLegUnderlyings() : FIX::Group(1342,1330,FIX::message_order(1330,1331,1332,1333,1344,1337,1338,1339,1345,1405,1340,1391,1343,1341,1392,0)) {} + FIELD_SET(*this, FIX::UnderlyingLegSymbol); + FIELD_SET(*this, FIX::UnderlyingLegSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingLegSecurityID); + FIELD_SET(*this, FIX::UnderlyingLegSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingLegCFICode); + FIELD_SET(*this, FIX::UnderlyingLegSecurityType); + FIELD_SET(*this, FIX::UnderlyingLegSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingLegMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingLegMaturityDate); + FIELD_SET(*this, FIX::UnderlyingLegMaturityTime); + FIELD_SET(*this, FIX::UnderlyingLegStrikePrice); + FIELD_SET(*this, FIX::UnderlyingLegOptAttribute); + FIELD_SET(*this, FIX::UnderlyingLegPutOrCall); + FIELD_SET(*this, FIX::UnderlyingLegSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingLegSecurityDesc); + }; + }; + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::UnderlyingSettlementDate); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::NoSides); + class NoSides: public FIX::Group + { + public: + NoSides() : FIX::Group(552,54,FIX::message_order(54,1009,1005,1006,1007,83,1008,430,1154,1155,453,1,660,581,81,575,576,578,579,376,377,582,336,625,943,12,13,479,497,157,230,158,159,738,920,921,922,238,237,118,119,155,156,77,58,354,355,752,518,232,136,825,826,591,70,78,1016,1158,1072,1057,1139,1115,37,198,11,526,66,1080,1081,1431,40,44,99,18,39,151,14,59,126,528,529,1432,821,1093,483,586,775,1427,1428,1429,1444,0)) {} + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::SideLastQty); + FIELD_SET(*this, FIX::SideTradeReportID); + FIELD_SET(*this, FIX::SideFillStationCd); + FIELD_SET(*this, FIX::SideReasonCd); + FIELD_SET(*this, FIX::RptSeq); + FIELD_SET(*this, FIX::SideTrdSubTyp); + FIELD_SET(*this, FIX::NetGrossInd); + FIELD_SET(*this, FIX::SideCurrency); + FIELD_SET(*this, FIX::SideSettlCurrency); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::OddLot); + FIELD_SET(*this, FIX::NoClearingInstructions); + class NoClearingInstructions: public FIX::Group + { + public: + NoClearingInstructions() : FIX::Group(576,577,FIX::message_order(577,0)) {} + FIELD_SET(*this, FIX::ClearingInstruction); + }; + FIELD_SET(*this, FIX::TradeInputSource); + FIELD_SET(*this, FIX::TradeInputDevice); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TimeBracket); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::ExDate); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::SideMultiLegReportingType); + FIELD_SET(*this, FIX::NoContAmts); + class NoContAmts: public FIX::Group + { + public: + NoContAmts() : FIX::Group(518,519,FIX::message_order(519,520,521,0)) {} + FIELD_SET(*this, FIX::ContAmtType); + FIELD_SET(*this, FIX::ContAmtValue); + FIELD_SET(*this, FIX::ContAmtCurr); + }; + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::ExchangeRule); + FIELD_SET(*this, FIX::TradeAllocIndicator); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,756,80,993,1002,989,1136,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + FIELD_SET(*this, FIX::AllocCustomerCapacity); + FIELD_SET(*this, FIX::AllocMethod); + FIELD_SET(*this, FIX::SecondaryIndividualAllocID); + FIELD_SET(*this, FIX::AllocClearingFeeIndicator); + }; + FIELD_SET(*this, FIX::NoSideTrdRegTS); + class NoSideTrdRegTS: public FIX::Group + { + public: + NoSideTrdRegTS() : FIX::Group(1016,1012,FIX::message_order(1012,1013,1014,0)) {} + FIELD_SET(*this, FIX::SideTrdRegTimestamp); + FIELD_SET(*this, FIX::SideTrdRegTimestampType); + FIELD_SET(*this, FIX::SideTrdRegTimestampSrc); + }; + FIELD_SET(*this, FIX::NoSettlDetails); + class NoSettlDetails: public FIX::Group + { + public: + NoSettlDetails() : FIX::Group(1158,1164,FIX::message_order(1164,781,0)) {} + FIELD_SET(*this, FIX::SettlObligSource); + FIELD_SET(*this, FIX::NoSettlPartyIDs); + class NoSettlPartyIDs: public FIX::Group + { + public: + NoSettlPartyIDs() : FIX::Group(781,782,FIX::message_order(782,783,784,801,0)) {} + FIELD_SET(*this, FIX::SettlPartyID); + FIELD_SET(*this, FIX::SettlPartyIDSource); + FIELD_SET(*this, FIX::SettlPartyRole); + FIELD_SET(*this, FIX::NoSettlPartySubIDs); + class NoSettlPartySubIDs: public FIX::Group + { + public: + NoSettlPartySubIDs() : FIX::Group(801,785,FIX::message_order(785,786,0)) {} + FIELD_SET(*this, FIX::SettlPartySubID); + FIELD_SET(*this, FIX::SettlPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::SideGrossTradeAmt); + FIELD_SET(*this, FIX::AggressorIndicator); + FIELD_SET(*this, FIX::ExchangeSpecialInstructions); + FIELD_SET(*this, FIX::OrderCategory); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::RefOrderID); + FIELD_SET(*this, FIX::RefOrderIDSource); + FIELD_SET(*this, FIX::RefOrdIDReason); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::LeavesQty); + FIELD_SET(*this, FIX::CumQty); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::OrigCustOrderCapacity); + FIELD_SET(*this, FIX::OrderInputDevice); + FIELD_SET(*this, FIX::LotType); + FIELD_SET(*this, FIX::TransBkdTime); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::BookingType); + FIELD_SET(*this, FIX::SideExecID); + FIELD_SET(*this, FIX::OrderDelay); + FIELD_SET(*this, FIX::OrderDelayUnit); + FIELD_SET(*this, FIX::SideLiquidityInd); + }; + FIELD_SET(*this, FIX::Volatility); + FIELD_SET(*this, FIX::DividendYield); + FIELD_SET(*this, FIX::RiskFreeRate); + FIELD_SET(*this, FIX::CurrencyRatio); + FIELD_SET(*this, FIX::CopyMsgIndicator); + FIELD_SET(*this, FIX::NoTrdRepIndicators); + class NoTrdRepIndicators: public FIX::Group + { + public: + NoTrdRepIndicators() : FIX::Group(1387,1388,FIX::message_order(1388,1389,0)) {} + FIELD_SET(*this, FIX::TrdRepPartyRole); + FIELD_SET(*this, FIX::TrdRepIndicator); + }; + FIELD_SET(*this, FIX::PublishTrdIndicator); + FIELD_SET(*this, FIX::TradePublishIndicator); + FIELD_SET(*this, FIX::ShortSaleReason); + FIELD_SET(*this, FIX::TierCode); + FIELD_SET(*this, FIX::MessageEventSource); + FIELD_SET(*this, FIX::LastUpdateTime); + FIELD_SET(*this, FIX::RndPx); + FIELD_SET(*this, FIX::TZTransactTime); + FIELD_SET(*this, FIX::ReportedPxDiff); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::RejectText); + FIELD_SET(*this, FIX::FeeMultiplier); + FIELD_SET(*this, FIX::VenueType); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::MarketID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/TradeCaptureReportAck.h b/linux/include/quickfix/fix50sp2/TradeCaptureReportAck.h new file mode 100644 index 000000000..bb44f078e --- /dev/null +++ b/linux/include/quickfix/fix50sp2/TradeCaptureReportAck.h @@ -0,0 +1,624 @@ +#ifndef FIX50SP2_TRADECAPTUREREPORTACK_H +#define FIX50SP2_TRADECAPTUREREPORTACK_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class TradeCaptureReportAck : public Message + { + public: + TradeCaptureReportAck() : Message(MsgType()) {} + TradeCaptureReportAck(const FIX::Message& m) : Message(m) {} + TradeCaptureReportAck(const Message& m) : Message(m) {} + TradeCaptureReportAck(const TradeCaptureReportAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AR"); } + + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::TradeID); + FIELD_SET(*this, FIX::SecondaryTradeID); + FIELD_SET(*this, FIX::FirmTradeID); + FIELD_SET(*this, FIX::SecondaryFirmTradeID); + FIELD_SET(*this, FIX::TradeReportTransType); + FIELD_SET(*this, FIX::TradeReportType); + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::TrdSubType); + FIELD_SET(*this, FIX::SecondaryTrdType); + FIELD_SET(*this, FIX::TradeHandlingInstr); + FIELD_SET(*this, FIX::OrigTradeHandlingInstr); + FIELD_SET(*this, FIX::OrigTradeDate); + FIELD_SET(*this, FIX::OrigTradeID); + FIELD_SET(*this, FIX::OrigSecondaryTradeID); + FIELD_SET(*this, FIX::TransferReason); + FIELD_SET(*this, FIX::NoRootPartyIDs); + class NoRootPartyIDs: public FIX::Group + { + public: + NoRootPartyIDs() : FIX::Group(1116,1117,FIX::message_order(1117,1118,1119,1120,0)) {} + FIELD_SET(*this, FIX::RootPartyID); + FIELD_SET(*this, FIX::RootPartyIDSource); + FIELD_SET(*this, FIX::RootPartyRole); + FIELD_SET(*this, FIX::NoRootPartySubIDs); + class NoRootPartySubIDs: public FIX::Group + { + public: + NoRootPartySubIDs() : FIX::Group(1120,1121,FIX::message_order(1121,1122,0)) {} + FIELD_SET(*this, FIX::RootPartySubID); + FIELD_SET(*this, FIX::RootPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::ExecType); + FIELD_SET(*this, FIX::TradeReportRefID); + FIELD_SET(*this, FIX::SecondaryTradeReportRefID); + FIELD_SET(*this, FIX::TrdRptStatus); + FIELD_SET(*this, FIX::TradeReportRejectReason); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TradeLinkID); + FIELD_SET(*this, FIX::TrdMatchID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::SecondaryExecID); + FIELD_SET(*this, FIX::ExecRestatementReason); + FIELD_SET(*this, FIX::PreviouslyReported); + FIELD_SET(*this, FIX::PriceType); + FIELD_SET(*this, FIX::UnderlyingTradingSessionID); + FIELD_SET(*this, FIX::UnderlyingTradingSessionSubID); + FIELD_SET(*this, FIX::SettlSessID); + FIELD_SET(*this, FIX::SettlSessSubID); + FIELD_SET(*this, FIX::QtyType); + FIELD_SET(*this, FIX::LastQty); + FIELD_SET(*this, FIX::LastPx); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::LastParPx); + FIELD_SET(*this, FIX::CalculatedCcyLastQty); + FIELD_SET(*this, FIX::LastSwapPoints); + FIELD_SET(*this, FIX::Currency); + FIELD_SET(*this, FIX::SettlCurrency); + FIELD_SET(*this, FIX::LastSpotRate); + FIELD_SET(*this, FIX::LastForwardPoints); + FIELD_SET(*this, FIX::LastMkt); + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::AvgPx); + FIELD_SET(*this, FIX::AvgPxIndicator); + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::TradeLegRefID); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::SettlType); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::MatchType); + FIELD_SET(*this, FIX::CopyMsgIndicator); + FIELD_SET(*this, FIX::NoTrdRepIndicators); + class NoTrdRepIndicators: public FIX::Group + { + public: + NoTrdRepIndicators() : FIX::Group(1387,1388,FIX::message_order(1388,1389,0)) {} + FIELD_SET(*this, FIX::TrdRepPartyRole); + FIELD_SET(*this, FIX::TrdRepIndicator); + }; + FIELD_SET(*this, FIX::PublishTrdIndicator); + FIELD_SET(*this, FIX::TradePublishIndicator); + FIELD_SET(*this, FIX::ShortSaleReason); + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,687,690,990,1152,683,564,565,539,654,587,588,637,675,1073,1074,1075,1379,1381,1383,1384,1418,1342,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + FIELD_SET(*this, FIX::LegQty); + FIELD_SET(*this, FIX::LegSwapType); + FIELD_SET(*this, FIX::LegReportID); + FIELD_SET(*this, FIX::LegNumber); + FIELD_SET(*this, FIX::NoLegStipulations); + class NoLegStipulations: public FIX::Group + { + public: + NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {} + FIELD_SET(*this, FIX::LegStipulationType); + FIELD_SET(*this, FIX::LegStipulationValue); + }; + FIELD_SET(*this, FIX::LegPositionEffect); + FIELD_SET(*this, FIX::LegCoveredOrUncovered); + FIELD_SET(*this, FIX::NoNestedPartyIDs); + class NoNestedPartyIDs: public FIX::Group + { + public: + NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {} + FIELD_SET(*this, FIX::NestedPartyID); + FIELD_SET(*this, FIX::NestedPartyIDSource); + FIELD_SET(*this, FIX::NestedPartyRole); + FIELD_SET(*this, FIX::NoNestedPartySubIDs); + class NoNestedPartySubIDs: public FIX::Group + { + public: + NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {} + FIELD_SET(*this, FIX::NestedPartySubID); + FIELD_SET(*this, FIX::NestedPartySubIDType); + }; + }; + FIELD_SET(*this, FIX::LegRefID); + FIELD_SET(*this, FIX::LegSettlType); + FIELD_SET(*this, FIX::LegSettlDate); + FIELD_SET(*this, FIX::LegLastPx); + FIELD_SET(*this, FIX::LegSettlCurrency); + FIELD_SET(*this, FIX::LegLastForwardPoints); + FIELD_SET(*this, FIX::LegCalculatedCcyLastQty); + FIELD_SET(*this, FIX::LegGrossTradeAmt); + FIELD_SET(*this, FIX::LegVolatility); + FIELD_SET(*this, FIX::LegDividendYield); + FIELD_SET(*this, FIX::LegCurrencyRatio); + FIELD_SET(*this, FIX::LegExecInst); + FIELD_SET(*this, FIX::LegLastQty); + FIELD_SET(*this, FIX::NoOfLegUnderlyings); + class NoOfLegUnderlyings: public FIX::Group + { + public: + NoOfLegUnderlyings() : FIX::Group(1342,1330,FIX::message_order(1330,1331,1332,1333,1344,1337,1338,1339,1345,1405,1340,1391,1343,1341,1392,0)) {} + FIELD_SET(*this, FIX::UnderlyingLegSymbol); + FIELD_SET(*this, FIX::UnderlyingLegSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingLegSecurityID); + FIELD_SET(*this, FIX::UnderlyingLegSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingLegCFICode); + FIELD_SET(*this, FIX::UnderlyingLegSecurityType); + FIELD_SET(*this, FIX::UnderlyingLegSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingLegMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingLegMaturityDate); + FIELD_SET(*this, FIX::UnderlyingLegMaturityTime); + FIELD_SET(*this, FIX::UnderlyingLegStrikePrice); + FIELD_SET(*this, FIX::UnderlyingLegOptAttribute); + FIELD_SET(*this, FIX::UnderlyingLegPutOrCall); + FIELD_SET(*this, FIX::UnderlyingLegSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingLegSecurityDesc); + }; + }; + FIELD_SET(*this, FIX::NoTrdRegTimestamps); + class NoTrdRegTimestamps: public FIX::Group + { + public: + NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {} + FIELD_SET(*this, FIX::TrdRegTimestamp); + FIELD_SET(*this, FIX::TrdRegTimestampType); + FIELD_SET(*this, FIX::TrdRegTimestampOrigin); + FIELD_SET(*this, FIX::DeskType); + FIELD_SET(*this, FIX::DeskTypeSource); + FIELD_SET(*this, FIX::DeskOrderHandlingInst); + }; + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::AsOfIndicator); + FIELD_SET(*this, FIX::ClearingFeeIndicator); + FIELD_SET(*this, FIX::NoPosAmt); + class NoPosAmt: public FIX::Group + { + public: + NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {} + FIELD_SET(*this, FIX::PosAmtType); + FIELD_SET(*this, FIX::PosAmt); + FIELD_SET(*this, FIX::PositionCurrency); + }; + FIELD_SET(*this, FIX::TierCode); + FIELD_SET(*this, FIX::MessageEventSource); + FIELD_SET(*this, FIX::LastUpdateTime); + FIELD_SET(*this, FIX::RndPx); + FIELD_SET(*this, FIX::NoSides); + class NoSides: public FIX::Group + { + public: + NoSides() : FIX::Group(552,54,FIX::message_order(54,453,1,660,581,81,575,576,578,579,376,377,582,336,625,943,430,1154,1155,12,13,479,497,157,230,158,159,738,920,921,922,238,237,118,119,155,156,77,752,518,232,136,825,1158,826,591,70,78,1072,1057,1009,1005,1006,1007,83,1008,1016,1427,1428,1429,1115,37,198,11,526,66,1080,1081,1431,40,44,99,18,39,151,14,59,126,528,529,1432,821,1093,483,586,775,0)) {} + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Account); + FIELD_SET(*this, FIX::AcctIDSource); + FIELD_SET(*this, FIX::AccountType); + FIELD_SET(*this, FIX::ProcessCode); + FIELD_SET(*this, FIX::OddLot); + FIELD_SET(*this, FIX::NoClearingInstructions); + class NoClearingInstructions: public FIX::Group + { + public: + NoClearingInstructions() : FIX::Group(576,577,FIX::message_order(577,0)) {} + FIELD_SET(*this, FIX::ClearingInstruction); + }; + FIELD_SET(*this, FIX::TradeInputSource); + FIELD_SET(*this, FIX::TradeInputDevice); + FIELD_SET(*this, FIX::ComplianceID); + FIELD_SET(*this, FIX::SolicitedFlag); + FIELD_SET(*this, FIX::CustOrderCapacity); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TimeBracket); + FIELD_SET(*this, FIX::NetGrossInd); + FIELD_SET(*this, FIX::SideCurrency); + FIELD_SET(*this, FIX::SideSettlCurrency); + FIELD_SET(*this, FIX::Commission); + FIELD_SET(*this, FIX::CommType); + FIELD_SET(*this, FIX::CommCurrency); + FIELD_SET(*this, FIX::FundRenewWaiv); + FIELD_SET(*this, FIX::NumDaysInterest); + FIELD_SET(*this, FIX::ExDate); + FIELD_SET(*this, FIX::AccruedInterestRate); + FIELD_SET(*this, FIX::AccruedInterestAmt); + FIELD_SET(*this, FIX::InterestAtMaturity); + FIELD_SET(*this, FIX::EndAccruedInterestAmt); + FIELD_SET(*this, FIX::StartCash); + FIELD_SET(*this, FIX::EndCash); + FIELD_SET(*this, FIX::Concession); + FIELD_SET(*this, FIX::TotalTakedown); + FIELD_SET(*this, FIX::NetMoney); + FIELD_SET(*this, FIX::SettlCurrAmt); + FIELD_SET(*this, FIX::SettlCurrFxRate); + FIELD_SET(*this, FIX::SettlCurrFxRateCalc); + FIELD_SET(*this, FIX::PositionEffect); + FIELD_SET(*this, FIX::SideMultiLegReportingType); + FIELD_SET(*this, FIX::NoContAmts); + class NoContAmts: public FIX::Group + { + public: + NoContAmts() : FIX::Group(518,519,FIX::message_order(519,520,521,0)) {} + FIELD_SET(*this, FIX::ContAmtType); + FIELD_SET(*this, FIX::ContAmtValue); + FIELD_SET(*this, FIX::ContAmtCurr); + }; + FIELD_SET(*this, FIX::NoStipulations); + class NoStipulations: public FIX::Group + { + public: + NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {} + FIELD_SET(*this, FIX::StipulationType); + FIELD_SET(*this, FIX::StipulationValue); + }; + FIELD_SET(*this, FIX::NoMiscFees); + class NoMiscFees: public FIX::Group + { + public: + NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {} + FIELD_SET(*this, FIX::MiscFeeAmt); + FIELD_SET(*this, FIX::MiscFeeCurr); + FIELD_SET(*this, FIX::MiscFeeType); + FIELD_SET(*this, FIX::MiscFeeBasis); + }; + FIELD_SET(*this, FIX::ExchangeRule); + FIELD_SET(*this, FIX::NoSettlDetails); + class NoSettlDetails: public FIX::Group + { + public: + NoSettlDetails() : FIX::Group(1158,1164,FIX::message_order(1164,781,0)) {} + FIELD_SET(*this, FIX::SettlObligSource); + FIELD_SET(*this, FIX::NoSettlPartyIDs); + class NoSettlPartyIDs: public FIX::Group + { + public: + NoSettlPartyIDs() : FIX::Group(781,782,FIX::message_order(782,783,784,801,0)) {} + FIELD_SET(*this, FIX::SettlPartyID); + FIELD_SET(*this, FIX::SettlPartyIDSource); + FIELD_SET(*this, FIX::SettlPartyRole); + FIELD_SET(*this, FIX::NoSettlPartySubIDs); + class NoSettlPartySubIDs: public FIX::Group + { + public: + NoSettlPartySubIDs() : FIX::Group(801,785,FIX::message_order(785,786,0)) {} + FIELD_SET(*this, FIX::SettlPartySubID); + FIELD_SET(*this, FIX::SettlPartySubIDType); + }; + }; + }; + FIELD_SET(*this, FIX::TradeAllocIndicator); + FIELD_SET(*this, FIX::PreallocMethod); + FIELD_SET(*this, FIX::AllocID); + FIELD_SET(*this, FIX::NoAllocs); + class NoAllocs: public FIX::Group + { + public: + NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,756,80,993,1002,989,1136,0)) {} + FIELD_SET(*this, FIX::AllocAccount); + FIELD_SET(*this, FIX::AllocAcctIDSource); + FIELD_SET(*this, FIX::AllocSettlCurrency); + FIELD_SET(*this, FIX::IndividualAllocID); + FIELD_SET(*this, FIX::NoNested2PartyIDs); + class NoNested2PartyIDs: public FIX::Group + { + public: + NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {} + FIELD_SET(*this, FIX::Nested2PartyID); + FIELD_SET(*this, FIX::Nested2PartyIDSource); + FIELD_SET(*this, FIX::Nested2PartyRole); + FIELD_SET(*this, FIX::NoNested2PartySubIDs); + class NoNested2PartySubIDs: public FIX::Group + { + public: + NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {} + FIELD_SET(*this, FIX::Nested2PartySubID); + FIELD_SET(*this, FIX::Nested2PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::AllocQty); + FIELD_SET(*this, FIX::AllocCustomerCapacity); + FIELD_SET(*this, FIX::AllocMethod); + FIELD_SET(*this, FIX::SecondaryIndividualAllocID); + FIELD_SET(*this, FIX::AllocClearingFeeIndicator); + }; + FIELD_SET(*this, FIX::SideGrossTradeAmt); + FIELD_SET(*this, FIX::AggressorIndicator); + FIELD_SET(*this, FIX::SideLastQty); + FIELD_SET(*this, FIX::SideTradeReportID); + FIELD_SET(*this, FIX::SideFillStationCd); + FIELD_SET(*this, FIX::SideReasonCd); + FIELD_SET(*this, FIX::RptSeq); + FIELD_SET(*this, FIX::SideTrdSubTyp); + FIELD_SET(*this, FIX::NoSideTrdRegTS); + class NoSideTrdRegTS: public FIX::Group + { + public: + NoSideTrdRegTS() : FIX::Group(1016,1012,FIX::message_order(1012,1013,1014,0)) {} + FIELD_SET(*this, FIX::SideTrdRegTimestamp); + FIELD_SET(*this, FIX::SideTrdRegTimestampType); + FIELD_SET(*this, FIX::SideTrdRegTimestampSrc); + }; + FIELD_SET(*this, FIX::SideExecID); + FIELD_SET(*this, FIX::OrderDelay); + FIELD_SET(*this, FIX::OrderDelayUnit); + FIELD_SET(*this, FIX::OrderCategory); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::SecondaryOrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::SecondaryClOrdID); + FIELD_SET(*this, FIX::ListID); + FIELD_SET(*this, FIX::RefOrderID); + FIELD_SET(*this, FIX::RefOrderIDSource); + FIELD_SET(*this, FIX::RefOrdIDReason); + FIELD_SET(*this, FIX::OrdType); + FIELD_SET(*this, FIX::Price); + FIELD_SET(*this, FIX::StopPx); + FIELD_SET(*this, FIX::ExecInst); + FIELD_SET(*this, FIX::OrdStatus); + FIELD_SET(*this, FIX::LeavesQty); + FIELD_SET(*this, FIX::CumQty); + FIELD_SET(*this, FIX::TimeInForce); + FIELD_SET(*this, FIX::ExpireTime); + FIELD_SET(*this, FIX::OrderCapacity); + FIELD_SET(*this, FIX::OrderRestrictions); + FIELD_SET(*this, FIX::OrigCustOrderCapacity); + FIELD_SET(*this, FIX::OrderInputDevice); + FIELD_SET(*this, FIX::LotType); + FIELD_SET(*this, FIX::TransBkdTime); + FIELD_SET(*this, FIX::OrigOrdModTime); + FIELD_SET(*this, FIX::BookingType); + }; + FIELD_SET(*this, FIX::RptSys); + FIELD_SET(*this, FIX::GrossTradeAmt); + FIELD_SET(*this, FIX::SettlDate); + FIELD_SET(*this, FIX::FeeMultiplier); + FIELD_SET(*this, FIX::VenueType); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::MarketID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/TradeCaptureReportRequest.h b/linux/include/quickfix/fix50sp2/TradeCaptureReportRequest.h new file mode 100644 index 000000000..d0e382e24 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/TradeCaptureReportRequest.h @@ -0,0 +1,317 @@ +#ifndef FIX50SP2_TRADECAPTUREREPORTREQUEST_H +#define FIX50SP2_TRADECAPTUREREPORTREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class TradeCaptureReportRequest : public Message + { + public: + TradeCaptureReportRequest() : Message(MsgType()) {} + TradeCaptureReportRequest(const FIX::Message& m) : Message(m) {} + TradeCaptureReportRequest(const Message& m) : Message(m) {} + TradeCaptureReportRequest(const TradeCaptureReportRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AD"); } + + TradeCaptureReportRequest( + const FIX::TradeRequestID& aTradeRequestID, + const FIX::TradeRequestType& aTradeRequestType ) + : Message(MsgType()) + { + set(aTradeRequestID); + set(aTradeRequestType); + } + + FIELD_SET(*this, FIX::TradeRequestID); + FIELD_SET(*this, FIX::TradeID); + FIELD_SET(*this, FIX::SecondaryTradeID); + FIELD_SET(*this, FIX::FirmTradeID); + FIELD_SET(*this, FIX::SecondaryFirmTradeID); + FIELD_SET(*this, FIX::TradeRequestType); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TradeReportID); + FIELD_SET(*this, FIX::SecondaryTradeReportID); + FIELD_SET(*this, FIX::ExecID); + FIELD_SET(*this, FIX::ExecType); + FIELD_SET(*this, FIX::OrderID); + FIELD_SET(*this, FIX::ClOrdID); + FIELD_SET(*this, FIX::MatchStatus); + FIELD_SET(*this, FIX::TrdType); + FIELD_SET(*this, FIX::TrdSubType); + FIELD_SET(*this, FIX::TradeHandlingInstr); + FIELD_SET(*this, FIX::TransferReason); + FIELD_SET(*this, FIX::SecondaryTrdType); + FIELD_SET(*this, FIX::TradeLinkID); + FIELD_SET(*this, FIX::TrdMatchID); + FIELD_SET(*this, FIX::NoPartyIDs); + class NoPartyIDs: public FIX::Group + { + public: + NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {} + FIELD_SET(*this, FIX::PartyID); + FIELD_SET(*this, FIX::PartyIDSource); + FIELD_SET(*this, FIX::PartyRole); + FIELD_SET(*this, FIX::NoPartySubIDs); + class NoPartySubIDs: public FIX::Group + { + public: + NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {} + FIELD_SET(*this, FIX::PartySubID); + FIELD_SET(*this, FIX::PartySubIDType); + }; + }; + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::DeliveryForm); + FIELD_SET(*this, FIX::PctAtRisk); + FIELD_SET(*this, FIX::AgreementDesc); + FIELD_SET(*this, FIX::AgreementID); + FIELD_SET(*this, FIX::AgreementDate); + FIELD_SET(*this, FIX::AgreementCurrency); + FIELD_SET(*this, FIX::TerminationType); + FIELD_SET(*this, FIX::StartDate); + FIELD_SET(*this, FIX::EndDate); + FIELD_SET(*this, FIX::DeliveryType); + FIELD_SET(*this, FIX::MarginRatio); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::NoDates); + class NoDates: public FIX::Group + { + public: + NoDates() : FIX::Group(580,75,FIX::message_order(75,779,60,0)) {} + FIELD_SET(*this, FIX::TradeDate); + FIELD_SET(*this, FIX::LastUpdateTime); + FIELD_SET(*this, FIX::TransactTime); + }; + FIELD_SET(*this, FIX::ClearingBusinessDate); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TimeBracket); + FIELD_SET(*this, FIX::Side); + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::TradeInputSource); + FIELD_SET(*this, FIX::TradeInputDevice); + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::MessageEventSource); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/TradeCaptureReportRequestAck.h b/linux/include/quickfix/fix50sp2/TradeCaptureReportRequestAck.h new file mode 100644 index 000000000..dd51dae84 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/TradeCaptureReportRequestAck.h @@ -0,0 +1,266 @@ +#ifndef FIX50SP2_TRADECAPTUREREPORTREQUESTACK_H +#define FIX50SP2_TRADECAPTUREREPORTREQUESTACK_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class TradeCaptureReportRequestAck : public Message + { + public: + TradeCaptureReportRequestAck() : Message(MsgType()) {} + TradeCaptureReportRequestAck(const FIX::Message& m) : Message(m) {} + TradeCaptureReportRequestAck(const Message& m) : Message(m) {} + TradeCaptureReportRequestAck(const TradeCaptureReportRequestAck& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("AQ"); } + + TradeCaptureReportRequestAck( + const FIX::TradeRequestID& aTradeRequestID, + const FIX::TradeRequestType& aTradeRequestType, + const FIX::TradeRequestResult& aTradeRequestResult, + const FIX::TradeRequestStatus& aTradeRequestStatus ) + : Message(MsgType()) + { + set(aTradeRequestID); + set(aTradeRequestType); + set(aTradeRequestResult); + set(aTradeRequestStatus); + } + + FIELD_SET(*this, FIX::TradeRequestID); + FIELD_SET(*this, FIX::TradeID); + FIELD_SET(*this, FIX::SecondaryTradeID); + FIELD_SET(*this, FIX::FirmTradeID); + FIELD_SET(*this, FIX::SecondaryFirmTradeID); + FIELD_SET(*this, FIX::TradeRequestType); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::TotNumTradeReports); + FIELD_SET(*this, FIX::TradeRequestResult); + FIELD_SET(*this, FIX::TradeRequestStatus); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + FIELD_SET(*this, FIX::NoUnderlyings); + class NoUnderlyings: public FIX::Group + { + public: + NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {} + FIELD_SET(*this, FIX::UnderlyingSymbol); + FIELD_SET(*this, FIX::UnderlyingSymbolSfx); + FIELD_SET(*this, FIX::UnderlyingSecurityID); + FIELD_SET(*this, FIX::UnderlyingSecurityIDSource); + FIELD_SET(*this, FIX::UnderlyingProduct); + FIELD_SET(*this, FIX::UnderlyingCFICode); + FIELD_SET(*this, FIX::UnderlyingSecurityType); + FIELD_SET(*this, FIX::UnderlyingSecuritySubType); + FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear); + FIELD_SET(*this, FIX::UnderlyingMaturityDate); + FIELD_SET(*this, FIX::UnderlyingMaturityTime); + FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate); + FIELD_SET(*this, FIX::UnderlyingIssueDate); + FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType); + FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm); + FIELD_SET(*this, FIX::UnderlyingRepurchaseRate); + FIELD_SET(*this, FIX::UnderlyingFactor); + FIELD_SET(*this, FIX::UnderlyingCreditRating); + FIELD_SET(*this, FIX::UnderlyingInstrRegistry); + FIELD_SET(*this, FIX::UnderlyingCountryOfIssue); + FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue); + FIELD_SET(*this, FIX::UnderlyingRedemptionDate); + FIELD_SET(*this, FIX::UnderlyingStrikePrice); + FIELD_SET(*this, FIX::UnderlyingStrikeCurrency); + FIELD_SET(*this, FIX::UnderlyingOptAttribute); + FIELD_SET(*this, FIX::UnderlyingContractMultiplier); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure); + FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::UnderlyingTimeUnit); + FIELD_SET(*this, FIX::UnderlyingExerciseStyle); + FIELD_SET(*this, FIX::UnderlyingCouponRate); + FIELD_SET(*this, FIX::UnderlyingSecurityExchange); + FIELD_SET(*this, FIX::UnderlyingIssuer); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen); + FIELD_SET(*this, FIX::EncodedUnderlyingIssuer); + FIELD_SET(*this, FIX::UnderlyingSecurityDesc); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen); + FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc); + FIELD_SET(*this, FIX::UnderlyingCPProgram); + FIELD_SET(*this, FIX::UnderlyingCPRegType); + FIELD_SET(*this, FIX::UnderlyingAllocationPercent); + FIELD_SET(*this, FIX::UnderlyingCurrency); + FIELD_SET(*this, FIX::UnderlyingQty); + FIELD_SET(*this, FIX::UnderlyingSettlementType); + FIELD_SET(*this, FIX::UnderlyingCashAmount); + FIELD_SET(*this, FIX::UnderlyingCashType); + FIELD_SET(*this, FIX::UnderlyingPx); + FIELD_SET(*this, FIX::UnderlyingDirtyPrice); + FIELD_SET(*this, FIX::UnderlyingEndPrice); + FIELD_SET(*this, FIX::UnderlyingStartValue); + FIELD_SET(*this, FIX::UnderlyingCurrentValue); + FIELD_SET(*this, FIX::UnderlyingEndValue); + FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity); + FIELD_SET(*this, FIX::UnderlyingFXRate); + FIELD_SET(*this, FIX::UnderlyingFXRateCalc); + FIELD_SET(*this, FIX::UnderlyingCapValue); + FIELD_SET(*this, FIX::UnderlyingSettlMethod); + FIELD_SET(*this, FIX::UnderlyingPutOrCall); + FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit); + FIELD_SET(*this, FIX::UnderlyingFlowScheduleType); + FIELD_SET(*this, FIX::UnderlyingRestructuringType); + FIELD_SET(*this, FIX::UnderlyingSeniority); + FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::UnderlyingAttachmentPoint); + FIELD_SET(*this, FIX::UnderlyingDetachmentPoint); + }; + FIELD_SET(*this, FIX::NoLegs); + class NoLegs: public FIX::Group + { + public: + NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,0)) {} + FIELD_SET(*this, FIX::LegSymbol); + FIELD_SET(*this, FIX::LegSymbolSfx); + FIELD_SET(*this, FIX::LegSecurityID); + FIELD_SET(*this, FIX::LegSecurityIDSource); + FIELD_SET(*this, FIX::LegProduct); + FIELD_SET(*this, FIX::LegCFICode); + FIELD_SET(*this, FIX::LegSecurityType); + FIELD_SET(*this, FIX::LegSecuritySubType); + FIELD_SET(*this, FIX::LegMaturityMonthYear); + FIELD_SET(*this, FIX::LegMaturityDate); + FIELD_SET(*this, FIX::LegMaturityTime); + FIELD_SET(*this, FIX::LegCouponPaymentDate); + FIELD_SET(*this, FIX::LegIssueDate); + FIELD_SET(*this, FIX::LegRepoCollateralSecurityType); + FIELD_SET(*this, FIX::LegRepurchaseTerm); + FIELD_SET(*this, FIX::LegRepurchaseRate); + FIELD_SET(*this, FIX::LegFactor); + FIELD_SET(*this, FIX::LegCreditRating); + FIELD_SET(*this, FIX::LegInstrRegistry); + FIELD_SET(*this, FIX::LegCountryOfIssue); + FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LegLocaleOfIssue); + FIELD_SET(*this, FIX::LegRedemptionDate); + FIELD_SET(*this, FIX::LegStrikePrice); + FIELD_SET(*this, FIX::LegStrikeCurrency); + FIELD_SET(*this, FIX::LegOptAttribute); + FIELD_SET(*this, FIX::LegContractMultiplier); + FIELD_SET(*this, FIX::LegUnitOfMeasure); + FIELD_SET(*this, FIX::LegUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasure); + FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::LegTimeUnit); + FIELD_SET(*this, FIX::LegExerciseStyle); + FIELD_SET(*this, FIX::LegCouponRate); + FIELD_SET(*this, FIX::LegSecurityExchange); + FIELD_SET(*this, FIX::LegIssuer); + FIELD_SET(*this, FIX::EncodedLegIssuerLen); + FIELD_SET(*this, FIX::EncodedLegIssuer); + FIELD_SET(*this, FIX::LegSecurityDesc); + FIELD_SET(*this, FIX::EncodedLegSecurityDescLen); + FIELD_SET(*this, FIX::EncodedLegSecurityDesc); + FIELD_SET(*this, FIX::LegRatioQty); + FIELD_SET(*this, FIX::LegSide); + FIELD_SET(*this, FIX::LegCurrency); + FIELD_SET(*this, FIX::LegPool); + FIELD_SET(*this, FIX::LegDatedDate); + FIELD_SET(*this, FIX::LegContractSettlMonth); + FIELD_SET(*this, FIX::LegInterestAccrualDate); + FIELD_SET(*this, FIX::LegPutOrCall); + FIELD_SET(*this, FIX::LegOptionRatio); + FIELD_SET(*this, FIX::LegContractMultiplierUnit); + FIELD_SET(*this, FIX::LegFlowScheduleType); + }; + FIELD_SET(*this, FIX::MultiLegReportingType); + FIELD_SET(*this, FIX::ResponseTransportType); + FIELD_SET(*this, FIX::ResponseDestination); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::MessageEventSource); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/TradingSessionList.h b/linux/include/quickfix/fix50sp2/TradingSessionList.h new file mode 100644 index 000000000..89838a8e6 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/TradingSessionList.h @@ -0,0 +1,55 @@ +#ifndef FIX50SP2_TRADINGSESSIONLIST_H +#define FIX50SP2_TRADINGSESSIONLIST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class TradingSessionList : public Message + { + public: + TradingSessionList() : Message(MsgType()) {} + TradingSessionList(const FIX::Message& m) : Message(m) {} + TradingSessionList(const Message& m) : Message(m) {} + TradingSessionList(const TradingSessionList& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BJ"); } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::TradSesReqID); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,207,1301,1300,1326,338,339,325,340,567,341,342,343,344,345,387,58,354,355,60,1327,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::TradingSessionDesc); + FIELD_SET(*this, FIX::TradSesMethod); + FIELD_SET(*this, FIX::TradSesMode); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::TradSesStatus); + FIELD_SET(*this, FIX::TradSesStatusRejReason); + FIELD_SET(*this, FIX::TradSesStartTime); + FIELD_SET(*this, FIX::TradSesOpenTime); + FIELD_SET(*this, FIX::TradSesPreCloseTime); + FIELD_SET(*this, FIX::TradSesCloseTime); + FIELD_SET(*this, FIX::TradSesEndTime); + FIELD_SET(*this, FIX::TotalVolumeTraded); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TradSesUpdateAction); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/TradingSessionListRequest.h b/linux/include/quickfix/fix50sp2/TradingSessionListRequest.h new file mode 100644 index 000000000..e35335aa8 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/TradingSessionListRequest.h @@ -0,0 +1,40 @@ +#ifndef FIX50SP2_TRADINGSESSIONLISTREQUEST_H +#define FIX50SP2_TRADINGSESSIONLISTREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class TradingSessionListRequest : public Message + { + public: + TradingSessionListRequest() : Message(MsgType()) {} + TradingSessionListRequest(const FIX::Message& m) : Message(m) {} + TradingSessionListRequest(const Message& m) : Message(m) {} + TradingSessionListRequest(const TradingSessionListRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BI"); } + + TradingSessionListRequest( + const FIX::TradSesReqID& aTradSesReqID, + const FIX::SubscriptionRequestType& aSubscriptionRequestType ) + : Message(MsgType()) + { + set(aTradSesReqID); + set(aSubscriptionRequestType); + } + + FIELD_SET(*this, FIX::TradSesReqID); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::TradSesMethod); + FIELD_SET(*this, FIX::TradSesMode); + FIELD_SET(*this, FIX::SubscriptionRequestType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/TradingSessionListUpdateReport.h b/linux/include/quickfix/fix50sp2/TradingSessionListUpdateReport.h new file mode 100644 index 000000000..5aeb3b219 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/TradingSessionListUpdateReport.h @@ -0,0 +1,55 @@ +#ifndef FIX50SP2_TRADINGSESSIONLISTUPDATEREPORT_H +#define FIX50SP2_TRADINGSESSIONLISTUPDATEREPORT_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class TradingSessionListUpdateReport : public Message + { + public: + TradingSessionListUpdateReport() : Message(MsgType()) {} + TradingSessionListUpdateReport(const FIX::Message& m) : Message(m) {} + TradingSessionListUpdateReport(const Message& m) : Message(m) {} + TradingSessionListUpdateReport(const TradingSessionListUpdateReport& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BS"); } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::TradSesReqID); + FIELD_SET(*this, FIX::NoTradingSessions); + class NoTradingSessions: public FIX::Group + { + public: + NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,207,1301,1300,1326,338,339,325,340,567,341,342,343,344,345,387,58,354,355,60,1327,0)) {} + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::TradingSessionDesc); + FIELD_SET(*this, FIX::TradSesMethod); + FIELD_SET(*this, FIX::TradSesMode); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::TradSesStatus); + FIELD_SET(*this, FIX::TradSesStatusRejReason); + FIELD_SET(*this, FIX::TradSesStartTime); + FIELD_SET(*this, FIX::TradSesOpenTime); + FIELD_SET(*this, FIX::TradSesPreCloseTime); + FIELD_SET(*this, FIX::TradSesCloseTime); + FIELD_SET(*this, FIX::TradSesEndTime); + FIELD_SET(*this, FIX::TotalVolumeTraded); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::TransactTime); + FIELD_SET(*this, FIX::TradSesUpdateAction); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/TradingSessionStatus.h b/linux/include/quickfix/fix50sp2/TradingSessionStatus.h new file mode 100644 index 000000000..7c159d3cc --- /dev/null +++ b/linux/include/quickfix/fix50sp2/TradingSessionStatus.h @@ -0,0 +1,136 @@ +#ifndef FIX50SP2_TRADINGSESSIONSTATUS_H +#define FIX50SP2_TRADINGSESSIONSTATUS_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class TradingSessionStatus : public Message + { + public: + TradingSessionStatus() : Message(MsgType()) {} + TradingSessionStatus(const FIX::Message& m) : Message(m) {} + TradingSessionStatus(const Message& m) : Message(m) {} + TradingSessionStatus(const TradingSessionStatus& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("h"); } + + TradingSessionStatus( + const FIX::TradingSessionID& aTradingSessionID, + const FIX::TradSesStatus& aTradSesStatus ) + : Message(MsgType()) + { + set(aTradingSessionID); + set(aTradSesStatus); + } + + FIELD_SET(*this, FIX::ApplID); + FIELD_SET(*this, FIX::ApplSeqNum); + FIELD_SET(*this, FIX::ApplLastSeqNum); + FIELD_SET(*this, FIX::ApplResendFlag); + FIELD_SET(*this, FIX::TradSesReqID); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TradSesMethod); + FIELD_SET(*this, FIX::TradSesMode); + FIELD_SET(*this, FIX::UnsolicitedIndicator); + FIELD_SET(*this, FIX::TradSesStatus); + FIELD_SET(*this, FIX::TradSesEvent); + FIELD_SET(*this, FIX::TradSesStatusRejReason); + FIELD_SET(*this, FIX::TradSesStartTime); + FIELD_SET(*this, FIX::TradSesOpenTime); + FIELD_SET(*this, FIX::TradSesPreCloseTime); + FIELD_SET(*this, FIX::TradSesCloseTime); + FIELD_SET(*this, FIX::TradSesEndTime); + FIELD_SET(*this, FIX::TotalVolumeTraded); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + FIELD_SET(*this, FIX::Symbol); + FIELD_SET(*this, FIX::SymbolSfx); + FIELD_SET(*this, FIX::SecurityID); + FIELD_SET(*this, FIX::SecurityIDSource); + FIELD_SET(*this, FIX::Product); + FIELD_SET(*this, FIX::ProductComplex); + FIELD_SET(*this, FIX::SecurityGroup); + FIELD_SET(*this, FIX::CFICode); + FIELD_SET(*this, FIX::SecurityType); + FIELD_SET(*this, FIX::SecuritySubType); + FIELD_SET(*this, FIX::MaturityMonthYear); + FIELD_SET(*this, FIX::MaturityDate); + FIELD_SET(*this, FIX::MaturityTime); + FIELD_SET(*this, FIX::SettleOnOpenFlag); + FIELD_SET(*this, FIX::InstrmtAssignmentMethod); + FIELD_SET(*this, FIX::SecurityStatus); + FIELD_SET(*this, FIX::CouponPaymentDate); + FIELD_SET(*this, FIX::IssueDate); + FIELD_SET(*this, FIX::RepoCollateralSecurityType); + FIELD_SET(*this, FIX::RepurchaseTerm); + FIELD_SET(*this, FIX::RepurchaseRate); + FIELD_SET(*this, FIX::Factor); + FIELD_SET(*this, FIX::CreditRating); + FIELD_SET(*this, FIX::InstrRegistry); + FIELD_SET(*this, FIX::CountryOfIssue); + FIELD_SET(*this, FIX::StateOrProvinceOfIssue); + FIELD_SET(*this, FIX::LocaleOfIssue); + FIELD_SET(*this, FIX::RedemptionDate); + FIELD_SET(*this, FIX::StrikePrice); + FIELD_SET(*this, FIX::StrikeCurrency); + FIELD_SET(*this, FIX::StrikeMultiplier); + FIELD_SET(*this, FIX::StrikeValue); + FIELD_SET(*this, FIX::OptAttribute); + FIELD_SET(*this, FIX::ContractMultiplier); + FIELD_SET(*this, FIX::MinPriceIncrement); + FIELD_SET(*this, FIX::MinPriceIncrementAmount); + FIELD_SET(*this, FIX::UnitOfMeasure); + FIELD_SET(*this, FIX::UnitOfMeasureQty); + FIELD_SET(*this, FIX::PriceUnitOfMeasure); + FIELD_SET(*this, FIX::PriceUnitOfMeasureQty); + FIELD_SET(*this, FIX::SettlMethod); + FIELD_SET(*this, FIX::ExerciseStyle); + FIELD_SET(*this, FIX::OptPayoutAmount); + FIELD_SET(*this, FIX::PriceQuoteMethod); + FIELD_SET(*this, FIX::ValuationMethod); + FIELD_SET(*this, FIX::ListMethod); + FIELD_SET(*this, FIX::CapPrice); + FIELD_SET(*this, FIX::FloorPrice); + FIELD_SET(*this, FIX::PutOrCall); + FIELD_SET(*this, FIX::FlexibleIndicator); + FIELD_SET(*this, FIX::FlexProductEligibilityIndicator); + FIELD_SET(*this, FIX::TimeUnit); + FIELD_SET(*this, FIX::CouponRate); + FIELD_SET(*this, FIX::SecurityExchange); + FIELD_SET(*this, FIX::PositionLimit); + FIELD_SET(*this, FIX::NTPositionLimit); + FIELD_SET(*this, FIX::Issuer); + FIELD_SET(*this, FIX::EncodedIssuerLen); + FIELD_SET(*this, FIX::EncodedIssuer); + FIELD_SET(*this, FIX::SecurityDesc); + FIELD_SET(*this, FIX::EncodedSecurityDescLen); + FIELD_SET(*this, FIX::EncodedSecurityDesc); + FIELD_SET(*this, FIX::Pool); + FIELD_SET(*this, FIX::ContractSettlMonth); + FIELD_SET(*this, FIX::CPProgram); + FIELD_SET(*this, FIX::CPRegType); + FIELD_SET(*this, FIX::DatedDate); + FIELD_SET(*this, FIX::InterestAccrualDate); + FIELD_SET(*this, FIX::ContractMultiplierUnit); + FIELD_SET(*this, FIX::FlowScheduleType); + FIELD_SET(*this, FIX::RestructuringType); + FIELD_SET(*this, FIX::Seniority); + FIELD_SET(*this, FIX::NotionalPercentageOutstanding); + FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding); + FIELD_SET(*this, FIX::AttachmentPoint); + FIELD_SET(*this, FIX::DetachmentPoint); + FIELD_SET(*this, FIX::StrikePriceDeterminationMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryMethod); + FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision); + FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod); + FIELD_SET(*this, FIX::OptPayoutType); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/TradingSessionStatusRequest.h b/linux/include/quickfix/fix50sp2/TradingSessionStatusRequest.h new file mode 100644 index 000000000..9246c589b --- /dev/null +++ b/linux/include/quickfix/fix50sp2/TradingSessionStatusRequest.h @@ -0,0 +1,40 @@ +#ifndef FIX50SP2_TRADINGSESSIONSTATUSREQUEST_H +#define FIX50SP2_TRADINGSESSIONSTATUSREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class TradingSessionStatusRequest : public Message + { + public: + TradingSessionStatusRequest() : Message(MsgType()) {} + TradingSessionStatusRequest(const FIX::Message& m) : Message(m) {} + TradingSessionStatusRequest(const Message& m) : Message(m) {} + TradingSessionStatusRequest(const TradingSessionStatusRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("g"); } + + TradingSessionStatusRequest( + const FIX::TradSesReqID& aTradSesReqID, + const FIX::SubscriptionRequestType& aSubscriptionRequestType ) + : Message(MsgType()) + { + set(aTradSesReqID); + set(aSubscriptionRequestType); + } + + FIELD_SET(*this, FIX::TradSesReqID); + FIELD_SET(*this, FIX::MarketID); + FIELD_SET(*this, FIX::MarketSegmentID); + FIELD_SET(*this, FIX::TradingSessionID); + FIELD_SET(*this, FIX::TradingSessionSubID); + FIELD_SET(*this, FIX::TradSesMethod); + FIELD_SET(*this, FIX::TradSesMode); + FIELD_SET(*this, FIX::SubscriptionRequestType); + FIELD_SET(*this, FIX::SecurityExchange); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/UserNotification.h b/linux/include/quickfix/fix50sp2/UserNotification.h new file mode 100644 index 000000000..526ead504 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/UserNotification.h @@ -0,0 +1,34 @@ +#ifndef FIX50SP2_USERNOTIFICATION_H +#define FIX50SP2_USERNOTIFICATION_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class UserNotification : public Message + { + public: + UserNotification() : Message(MsgType()) {} + UserNotification(const FIX::Message& m) : Message(m) {} + UserNotification(const Message& m) : Message(m) {} + UserNotification(const UserNotification& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("CB"); } + + UserNotification( + const FIX::UserStatus& aUserStatus ) + : Message(MsgType()) + { + set(aUserStatus); + } + + FIELD_SET(*this, FIX::Username); + FIELD_SET(*this, FIX::UserStatus); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/UserRequest.h b/linux/include/quickfix/fix50sp2/UserRequest.h new file mode 100644 index 000000000..278f4b647 --- /dev/null +++ b/linux/include/quickfix/fix50sp2/UserRequest.h @@ -0,0 +1,45 @@ +#ifndef FIX50SP2_USERREQUEST_H +#define FIX50SP2_USERREQUEST_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class UserRequest : public Message + { + public: + UserRequest() : Message(MsgType()) {} + UserRequest(const FIX::Message& m) : Message(m) {} + UserRequest(const Message& m) : Message(m) {} + UserRequest(const UserRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BE"); } + + UserRequest( + const FIX::UserRequestID& aUserRequestID, + const FIX::UserRequestType& aUserRequestType, + const FIX::Username& aUsername ) + : Message(MsgType()) + { + set(aUserRequestID); + set(aUserRequestType); + set(aUsername); + } + + FIELD_SET(*this, FIX::UserRequestID); + FIELD_SET(*this, FIX::UserRequestType); + FIELD_SET(*this, FIX::Username); + FIELD_SET(*this, FIX::Password); + FIELD_SET(*this, FIX::NewPassword); + FIELD_SET(*this, FIX::EncryptedPasswordMethod); + FIELD_SET(*this, FIX::EncryptedPasswordLen); + FIELD_SET(*this, FIX::EncryptedPassword); + FIELD_SET(*this, FIX::EncryptedNewPasswordLen); + FIELD_SET(*this, FIX::EncryptedNewPassword); + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + }; + +} + +#endif diff --git a/linux/include/quickfix/fix50sp2/UserResponse.h b/linux/include/quickfix/fix50sp2/UserResponse.h new file mode 100644 index 000000000..7ac6dbe1d --- /dev/null +++ b/linux/include/quickfix/fix50sp2/UserResponse.h @@ -0,0 +1,35 @@ +#ifndef FIX50SP2_USERRESPONSE_H +#define FIX50SP2_USERRESPONSE_H + +#include "Message.h" + +namespace FIX50SP2 +{ + + class UserResponse : public Message + { + public: + UserResponse() : Message(MsgType()) {} + UserResponse(const FIX::Message& m) : Message(m) {} + UserResponse(const Message& m) : Message(m) {} + UserResponse(const UserResponse& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("BF"); } + + UserResponse( + const FIX::UserRequestID& aUserRequestID, + const FIX::Username& aUsername ) + : Message(MsgType()) + { + set(aUserRequestID); + set(aUsername); + } + + FIELD_SET(*this, FIX::UserRequestID); + FIELD_SET(*this, FIX::Username); + FIELD_SET(*this, FIX::UserStatus); + FIELD_SET(*this, FIX::UserStatusText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fixt11/Heartbeat.h b/linux/include/quickfix/fixt11/Heartbeat.h new file mode 100644 index 000000000..2706d6a15 --- /dev/null +++ b/linux/include/quickfix/fixt11/Heartbeat.h @@ -0,0 +1,23 @@ +#ifndef FIXT11_HEARTBEAT_H +#define FIXT11_HEARTBEAT_H + +#include "Message.h" + +namespace FIXT11 +{ + + class Heartbeat : public Message + { + public: + Heartbeat() : Message(MsgType()) {} + Heartbeat(const FIX::Message& m) : Message(m) {} + Heartbeat(const Message& m) : Message(m) {} + Heartbeat(const Heartbeat& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("0"); } + + FIELD_SET(*this, FIX::TestReqID); + }; + +} + +#endif diff --git a/linux/include/quickfix/fixt11/Logon.h b/linux/include/quickfix/fixt11/Logon.h new file mode 100644 index 000000000..23c32f0ce --- /dev/null +++ b/linux/include/quickfix/fixt11/Logon.h @@ -0,0 +1,54 @@ +#ifndef FIXT11_LOGON_H +#define FIXT11_LOGON_H + +#include "Message.h" + +namespace FIXT11 +{ + + class Logon : public Message + { + public: + Logon() : Message(MsgType()) {} + Logon(const FIX::Message& m) : Message(m) {} + Logon(const Message& m) : Message(m) {} + Logon(const Logon& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("A"); } + + Logon( + const FIX::EncryptMethod& aEncryptMethod, + const FIX::HeartBtInt& aHeartBtInt, + const FIX::DefaultApplVerID& aDefaultApplVerID ) + : Message(MsgType()) + { + set(aEncryptMethod); + set(aHeartBtInt); + set(aDefaultApplVerID); + } + + FIELD_SET(*this, FIX::EncryptMethod); + FIELD_SET(*this, FIX::HeartBtInt); + FIELD_SET(*this, FIX::RawDataLength); + FIELD_SET(*this, FIX::RawData); + FIELD_SET(*this, FIX::ResetSeqNumFlag); + FIELD_SET(*this, FIX::NextExpectedMsgSeqNum); + FIELD_SET(*this, FIX::MaxMessageSize); + FIELD_SET(*this, FIX::TestMessageIndicator); + FIELD_SET(*this, FIX::Username); + FIELD_SET(*this, FIX::Password); + FIELD_SET(*this, FIX::DefaultApplVerID); + FIELD_SET(*this, FIX::NoMsgTypes); + class NoMsgTypes: public FIX::Group + { + public: + NoMsgTypes() : FIX::Group(384,372,FIX::message_order(372,385,1130,1131,0)) {} + FIELD_SET(*this, FIX::RefMsgType); + FIELD_SET(*this, FIX::MsgDirection); + FIELD_SET(*this, FIX::RefApplVerID); + FIELD_SET(*this, FIX::RefCstmApplVerID); + }; + }; + +} + +#endif diff --git a/linux/include/quickfix/fixt11/Logout.h b/linux/include/quickfix/fixt11/Logout.h new file mode 100644 index 000000000..6e00477f7 --- /dev/null +++ b/linux/include/quickfix/fixt11/Logout.h @@ -0,0 +1,25 @@ +#ifndef FIXT11_LOGOUT_H +#define FIXT11_LOGOUT_H + +#include "Message.h" + +namespace FIXT11 +{ + + class Logout : public Message + { + public: + Logout() : Message(MsgType()) {} + Logout(const FIX::Message& m) : Message(m) {} + Logout(const Message& m) : Message(m) {} + Logout(const Logout& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("5"); } + + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fixt11/Message.h b/linux/include/quickfix/fixt11/Message.h new file mode 100644 index 000000000..1b40f2caa --- /dev/null +++ b/linux/include/quickfix/fixt11/Message.h @@ -0,0 +1,68 @@ +#ifndef FIXT11_MESSAGES_H +#define FIXT11_MESSAGES_H + +#include "../Message.h" +#include "../Group.h" + +namespace FIXT11 +{ + class Header : public FIX::Header + { + public: + FIELD_SET(*this, FIX::BeginString); + FIELD_SET(*this, FIX::BodyLength); + FIELD_SET(*this, FIX::MsgType); + FIELD_SET(*this, FIX::SenderCompID); + FIELD_SET(*this, FIX::TargetCompID); + FIELD_SET(*this, FIX::OnBehalfOfCompID); + FIELD_SET(*this, FIX::DeliverToCompID); + FIELD_SET(*this, FIX::SecureDataLen); + FIELD_SET(*this, FIX::SecureData); + FIELD_SET(*this, FIX::MsgSeqNum); + FIELD_SET(*this, FIX::SenderSubID); + FIELD_SET(*this, FIX::SenderLocationID); + FIELD_SET(*this, FIX::TargetSubID); + FIELD_SET(*this, FIX::TargetLocationID); + FIELD_SET(*this, FIX::OnBehalfOfSubID); + FIELD_SET(*this, FIX::OnBehalfOfLocationID); + FIELD_SET(*this, FIX::DeliverToSubID); + FIELD_SET(*this, FIX::DeliverToLocationID); + FIELD_SET(*this, FIX::PossDupFlag); + FIELD_SET(*this, FIX::PossResend); + FIELD_SET(*this, FIX::SendingTime); + FIELD_SET(*this, FIX::OrigSendingTime); + FIELD_SET(*this, FIX::XmlDataLen); + FIELD_SET(*this, FIX::XmlData); + FIELD_SET(*this, FIX::MessageEncoding); + FIELD_SET(*this, FIX::LastMsgSeqNumProcessed); + FIELD_SET(*this, FIX::ApplVerID); + FIELD_SET(*this, FIX::CstmApplVerID); + }; + + class Trailer : public FIX::Trailer + { + public: + FIELD_SET(*this, FIX::SignatureLength); + FIELD_SET(*this, FIX::Signature); + FIELD_SET(*this, FIX::CheckSum); + }; + + class Message : public FIX::Message + { + public: + Message( const FIX::MsgType& msgtype ) + : FIX::Message( + FIX::BeginString("FIXT.1.1"), msgtype ) + {} + + Message(const FIX::Message& m) : FIX::Message(m) {} + Message(const Message& m) : FIX::Message(m) {} + Header& getHeader() { return (Header&)m_header; } + const Header& getHeader() const { return (Header&)m_header; } + Trailer& getTrailer() { return (Trailer&)m_trailer; } + const Trailer& getTrailer() const { return (Trailer&)m_trailer; } + }; + +} + +#endif diff --git a/linux/include/quickfix/fixt11/MessageCracker.h b/linux/include/quickfix/fixt11/MessageCracker.h new file mode 100644 index 000000000..c1db29695 --- /dev/null +++ b/linux/include/quickfix/fixt11/MessageCracker.h @@ -0,0 +1,134 @@ +/* -*- C++ -*- */ + +/**************************************************************************** +** Copyright (c) 2001-2014 +** +** This file is part of the QuickFIX FIX Engine +** +** This file may be distributed under the terms of the quickfixengine.org +** license as defined by quickfixengine.org and appearing in the file +** LICENSE included in the packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.quickfixengine.org/LICENSE for licensing information. +** +** Contact ask@quickfixengine.org if any conditions of this licensing are +** not clear to you. +** +****************************************************************************/ + +#ifndef FIXT11_MESSAGECRACKER_H +#define FIXT11_MESSAGECRACKER_H + + +#include "../SessionID.h" +#include "../Exceptions.h" + +#include "../fixt11/Message.h" + +namespace FIXT11 +{ + class Heartbeat; + class TestRequest; + class ResendRequest; + class Reject; + class SequenceReset; + class Logout; + class Logon; + + class MessageCracker + { + public: + virtual ~MessageCracker() {} + virtual void onMessage( const Message&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( Message&, const FIX::SessionID& ) + { throw FIX::UnsupportedMessageType(); } + virtual void onMessage( const Heartbeat&, const FIX::SessionID& ) + {} + virtual void onMessage( const TestRequest&, const FIX::SessionID& ) + {} + virtual void onMessage( const ResendRequest&, const FIX::SessionID& ) + {} + virtual void onMessage( const Reject&, const FIX::SessionID& ) + {} + virtual void onMessage( const SequenceReset&, const FIX::SessionID& ) + {} + virtual void onMessage( const Logout&, const FIX::SessionID& ) + {} + virtual void onMessage( const Logon&, const FIX::SessionID& ) + {} + virtual void onMessage( Heartbeat&, const FIX::SessionID& ) {} + virtual void onMessage( TestRequest&, const FIX::SessionID& ) {} + virtual void onMessage( ResendRequest&, const FIX::SessionID& ) {} + virtual void onMessage( Reject&, const FIX::SessionID& ) {} + virtual void onMessage( SequenceReset&, const FIX::SessionID& ) {} + virtual void onMessage( Logout&, const FIX::SessionID& ) {} + virtual void onMessage( Logon&, const FIX::SessionID& ) {} + +public: + void crack( const Message& message, + const FIX::SessionID& sessionID ) + { + const std::string& msgTypeValue + = message.getHeader().getField( FIX::FIELD::MsgType ); + + if( msgTypeValue == "0" ) + onMessage( (const Heartbeat&)message, sessionID ); + else + if( msgTypeValue == "1" ) + onMessage( (const TestRequest&)message, sessionID ); + else + if( msgTypeValue == "2" ) + onMessage( (const ResendRequest&)message, sessionID ); + else + if( msgTypeValue == "3" ) + onMessage( (const Reject&)message, sessionID ); + else + if( msgTypeValue == "4" ) + onMessage( (const SequenceReset&)message, sessionID ); + else + if( msgTypeValue == "5" ) + onMessage( (const Logout&)message, sessionID ); + else + if( msgTypeValue == "A" ) + onMessage( (const Logon&)message, sessionID ); + else onMessage( message, sessionID ); + } + +void crack( Message& message, + const FIX::SessionID& sessionID ) + { + FIX::MsgType msgType; + message.getHeader().getField(msgType); + std::string msgTypeValue = msgType.getValue(); + + if( msgTypeValue == "0" ) + onMessage( (Heartbeat&)message, sessionID ); + else + if( msgTypeValue == "1" ) + onMessage( (TestRequest&)message, sessionID ); + else + if( msgTypeValue == "2" ) + onMessage( (ResendRequest&)message, sessionID ); + else + if( msgTypeValue == "3" ) + onMessage( (Reject&)message, sessionID ); + else + if( msgTypeValue == "4" ) + onMessage( (SequenceReset&)message, sessionID ); + else + if( msgTypeValue == "5" ) + onMessage( (Logout&)message, sessionID ); + else + if( msgTypeValue == "A" ) + onMessage( (Logon&)message, sessionID ); + else onMessage( message, sessionID ); + } + + }; +} + +#endif diff --git a/linux/include/quickfix/fixt11/Reject.h b/linux/include/quickfix/fixt11/Reject.h new file mode 100644 index 000000000..3992c202d --- /dev/null +++ b/linux/include/quickfix/fixt11/Reject.h @@ -0,0 +1,36 @@ +#ifndef FIXT11_REJECT_H +#define FIXT11_REJECT_H + +#include "Message.h" + +namespace FIXT11 +{ + + class Reject : public Message + { + public: + Reject() : Message(MsgType()) {} + Reject(const FIX::Message& m) : Message(m) {} + Reject(const Message& m) : Message(m) {} + Reject(const Reject& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("3"); } + + Reject( + const FIX::RefSeqNum& aRefSeqNum ) + : Message(MsgType()) + { + set(aRefSeqNum); + } + + FIELD_SET(*this, FIX::RefSeqNum); + FIELD_SET(*this, FIX::RefTagID); + FIELD_SET(*this, FIX::RefMsgType); + FIELD_SET(*this, FIX::SessionRejectReason); + FIELD_SET(*this, FIX::Text); + FIELD_SET(*this, FIX::EncodedTextLen); + FIELD_SET(*this, FIX::EncodedText); + }; + +} + +#endif diff --git a/linux/include/quickfix/fixt11/ResendRequest.h b/linux/include/quickfix/fixt11/ResendRequest.h new file mode 100644 index 000000000..a957c3a3c --- /dev/null +++ b/linux/include/quickfix/fixt11/ResendRequest.h @@ -0,0 +1,33 @@ +#ifndef FIXT11_RESENDREQUEST_H +#define FIXT11_RESENDREQUEST_H + +#include "Message.h" + +namespace FIXT11 +{ + + class ResendRequest : public Message + { + public: + ResendRequest() : Message(MsgType()) {} + ResendRequest(const FIX::Message& m) : Message(m) {} + ResendRequest(const Message& m) : Message(m) {} + ResendRequest(const ResendRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("2"); } + + ResendRequest( + const FIX::BeginSeqNo& aBeginSeqNo, + const FIX::EndSeqNo& aEndSeqNo ) + : Message(MsgType()) + { + set(aBeginSeqNo); + set(aEndSeqNo); + } + + FIELD_SET(*this, FIX::BeginSeqNo); + FIELD_SET(*this, FIX::EndSeqNo); + }; + +} + +#endif diff --git a/linux/include/quickfix/fixt11/SequenceReset.h b/linux/include/quickfix/fixt11/SequenceReset.h new file mode 100644 index 000000000..248866963 --- /dev/null +++ b/linux/include/quickfix/fixt11/SequenceReset.h @@ -0,0 +1,31 @@ +#ifndef FIXT11_SEQUENCERESET_H +#define FIXT11_SEQUENCERESET_H + +#include "Message.h" + +namespace FIXT11 +{ + + class SequenceReset : public Message + { + public: + SequenceReset() : Message(MsgType()) {} + SequenceReset(const FIX::Message& m) : Message(m) {} + SequenceReset(const Message& m) : Message(m) {} + SequenceReset(const SequenceReset& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("4"); } + + SequenceReset( + const FIX::NewSeqNo& aNewSeqNo ) + : Message(MsgType()) + { + set(aNewSeqNo); + } + + FIELD_SET(*this, FIX::GapFillFlag); + FIELD_SET(*this, FIX::NewSeqNo); + }; + +} + +#endif diff --git a/linux/include/quickfix/fixt11/TestRequest.h b/linux/include/quickfix/fixt11/TestRequest.h new file mode 100644 index 000000000..60fc86dbc --- /dev/null +++ b/linux/include/quickfix/fixt11/TestRequest.h @@ -0,0 +1,30 @@ +#ifndef FIXT11_TESTREQUEST_H +#define FIXT11_TESTREQUEST_H + +#include "Message.h" + +namespace FIXT11 +{ + + class TestRequest : public Message + { + public: + TestRequest() : Message(MsgType()) {} + TestRequest(const FIX::Message& m) : Message(m) {} + TestRequest(const Message& m) : Message(m) {} + TestRequest(const TestRequest& m) : Message(m) {} + static FIX::MsgType MsgType() { return FIX::MsgType("1"); } + + TestRequest( + const FIX::TestReqID& aTestReqID ) + : Message(MsgType()) + { + set(aTestReqID); + } + + FIELD_SET(*this, FIX::TestReqID); + }; + +} + +#endif diff --git a/linux/include/quickfix/index.h b/linux/include/quickfix/index.h new file mode 100644 index 000000000..62c6c4fca --- /dev/null +++ b/linux/include/quickfix/index.h @@ -0,0 +1,37 @@ +/*! \mainpage QuickFIX Documentation +* Installation +* +* Getting Started +* +* Working With Messages +* +* Testing +* +* +*The Financial Information Exchange (FIX) Protocol is a message standard developed +*to facilitate the electronic exchange of information related to securities transactions. +*It is intended for use between trading partners wishing to automate communications. +* +*QuickFIX is a free and open source implementation of the FIX protocol. +* +* \author Oren Miller oren@quickfixengine.org +*/ diff --git a/linux/include/quickfix/stdafx.h b/linux/include/quickfix/stdafx.h new file mode 100644 index 000000000..fc8ff745d --- /dev/null +++ b/linux/include/quickfix/stdafx.h @@ -0,0 +1,34 @@ +// stdafx.h : include file for standard system include files, +// or project specific include files that are used frequently, but +// are changed infrequently +// + +#if !defined(AFX_STDAFX_H__B05A63F4_9900_4362_9E2A_2C8E360B3B70__INCLUDED_) +#define AFX_STDAFX_H__B05A63F4_9900_4362_9E2A_2C8E360B3B70__INCLUDED_ + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + +#define WIN32_LEAN_AND_MEAN + +#include +#include "../config_windows.h" + +#if defined(_STLP_MSVC) + #define HAVE_STLPORT 1 +#endif + +#if _MSC_VER >= 1300 + #define TERMINATE_IN_STD 1 +#endif + +#define _WIN32_DCOM + +#import raw_interfaces_only named_guids +using namespace MSXML2; + +//{{AFX_INSERT_LOCATION}} +// Microsoft Visual C++ will insert additional declarations immediately before the previous line. + +#endif // !defined(AFX_STDAFX_H__B05A63F4_9900_4362_9E2A_2C8E360B3B70__INCLUDED_) diff --git a/linux/include/quickfix/strptime.h b/linux/include/quickfix/strptime.h new file mode 100644 index 000000000..92252ae32 --- /dev/null +++ b/linux/include/quickfix/strptime.h @@ -0,0 +1,7 @@ +#ifdef _MSC_VER + +extern "C" + char * + strptime( const char *buf, const char *fmt, struct tm *tm ); + +#endif diff --git a/linux/lib/Debug/libquickfix.a b/linux/lib/Debug/libquickfix.a new file mode 100644 index 000000000..93ff0fdad Binary files /dev/null and b/linux/lib/Debug/libquickfix.a differ diff --git a/linux/lib/Release/libquickfix.a b/linux/lib/Release/libquickfix.a new file mode 100644 index 000000000..93ff0fdad Binary files /dev/null and b/linux/lib/Release/libquickfix.a differ diff --git a/src/quickfix/build_quickfix.sh b/src/quickfix/build_quickfix.sh new file mode 100755 index 000000000..f1b1f10d4 --- /dev/null +++ b/src/quickfix/build_quickfix.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +quickfix="quickfix-v.1.14.4" +root=`realpath ../..` +work=$root/work +src=$root/src +target=$root/linux + +if [ -d "$work" ]; then rm -Rf $work; fi +mkdir $work + +rm -f $target/lib/Debug/quickfix.* +rm -f $target/lib/Release/quickfix.* +rm -rf $target/include/quickfix + +unzip -q $src/quickfix/$quickfix -d $work + +cd $work/$quickfix + +/bin/bash ./bootstrap +/bin/bash ./configure --enable-shared=no --enable-static=yes + +make -j $(nproc) + +cp -R include/quickfix $target/include +cp lib/libquickfix.a $target/lib/Debug/ +cp lib/libquickfix.a $target/lib/Release/ + +rm -Rf $work diff --git a/src/quickfix/quickfix-v.1.14.4.zip b/src/quickfix/quickfix-v.1.14.4.zip new file mode 100644 index 000000000..a42fef062 Binary files /dev/null and b/src/quickfix/quickfix-v.1.14.4.zip differ diff --git a/test b/test deleted file mode 100644 index e69de29bb..000000000