Does QuickFIX provide the possibility of getting ALL existing fields of an incoming FIX message in a single step? (I use version 1.14.3 for Python.)
According to QuickFIX documentation, it's possible to get a field value in a certain way:
price = quickfix.Price()
field = message.getField(price)
field.getValue()
Various message types contain different fields, so doing that for every field would be awkward. What is more, sometimes it's unknown whether some fields exist in a message. How do I get all fields of a message not knowing what fields it contains?
different kinds of FIX messages
What do you mean ? Different versions ? Or different FIX messages ? – AllmonVarious message types contain different fields, so doing that for every field would be awkward
Is that you being lazy ? Yes you need to write handlers for messages(not fields, you extract them to use them)) and there is no way out of it. Or am I understanding your query incorrectly ?? – AllmonmsgType = message.getField(quickfix.MsgType()).getValue() if msgType == 'Y': MDReqRejReason = message.getField(quickfix.MDReqRejReason()).getValue() ...getting other fields specific for this type of messages elif msgType == 'W': ...getting fields specific for this type of messages elif msgType == '8': ...getting fields specific for this type of messages etc.
– Ferrule