FIX::tag

Description

This command can either retrieve tag value or update the mapping between senderCompID and a tag map data group. In latter case If a mapping is already defined in the profile attributes for sender-tag-map, it is overwritten by the iRule mapping.

Syntax

FIX::tag get <tag>
FIX::tag map set <SenderCompID> <data_group>
FIX::tag map delete

FIX::tag get <tag>

  • Retrieves the value of the given tag. If the tag doesn’t exist, an empty string is returned.
  • It is valid under FIX_MESSAGE event.

FIX::tag map set <SenderCompID> <data_group>

  • The set subcommand defines a tag mapping data group for a client identified by SenderCompID, tag 49. It returns 0 if successful, non zero otherwise.
  • It is valid in any event.

FIX::tag map delete

  • The delete subcommand deletes the mappings for all clients. It returns 0 if successful, non zero otherwise.
  • It is valid in any event.

Examples

when RULE_INIT {
  # with the follow command, tag 10001 is replaced to 20001 for the messages sent by client_1
  # before sending to pool member and reverse-replaced(20001 to 10001) to client_1
  FIX::tag map set client_1 data_group_1
  FIX::tag map set client_2 data_group_1
  FIX::tag map set client_3 data_group_2
}
### Supporting DataGroup ###
FIX_tag_map_1 {
{
10001 {“20001”}
10002 {“20002”}
10003 {“20003”}
}
}
FIX_tag_map_2 {
{
30001 {“20001”}
30002 {“20002”}
30003 {“20003”}
}
}