修复消息:创建聚会消息如何操作

时间:2018-07-25 14:06:58

标签: quickfix fix-protocol quickfixj

Quickfix:FIX消息

我是新手 我需要使用以下聚会信息创建FIX消息, 453是重复组

"21hrs 2mins"

FIX 4.4版

1 个答案:

答案 0 :(得分:2)

例如,对于一个新订单单:

NewOrderSingle.NoPartyIDs.NoPartySubIDs subID = new NewOrderSingle.NoPartyIDs.NoPartySubIDs();
subID.set(new PartySubID("Sub ID"));
subID.set(new PartySubIDType(PartySubIDType.EMAIL_ADDRESS));

NewOrderSingle.NoPartyIDs parties = new NewOrderSingle.NoPartyIDs();
parties.set(new PartyID("Party ID"));
parties.set(new PartyIDSource(PartyIDSource.MIC));
parties.set(new PartyRole(PartyRole.AGENT));
parties.addGroup(subID);

NewOrderSingle order = new NewOrderSingle();
order.addGroup(parties);