I am using the python version of quickfix. I only want to get the string type of the fix header, not the entire fix message. But I didn’t find the toString method in quickfix’s header。
import quickfix as fix
message = fix.Message("8=FIX.4.49=14835=D34=449=SENDER_COMP_ID52=20220101-01:01:01.00056=TARGET_COMP_ID11=OrderID12321=338=100040=244=123.4554=159=060=20220101-01:01:01.00010=125")
print(message.getHeader())
I tried using message.getHeader().__str__()
,but it return <quickfix.Header; proxy of <Swig Object of type 'FIX::Header *' at 0x7fbeb87097e0> >