def news_msg(): pairs = ( (fix.FixTag.MsgType, fix.FixMsgType.NEWS, True), (fix.FixTag.Headline, 'BREAKING NEWS', False), (fix.FixTag.LinesOfText, 1, False), (fix.FixTag.Text, 'Government admits turning frogs gay.', False), ) return FixMessage.from_pairs(pairs)
def news_msg() -> FixMessage: pairs = ( (TAGS.MsgType, MTYPE.NEWS, True), (TAGS.Headline, 'BREAKING NEWS', False), (TAGS.LinesOfText, 1, False), (TAGS.Text, 'Government admits turning frogs gay.', False), ) return FixMessage.from_pairs(pairs)