Try TT Now

Support for Account Codes

Overview

For TFX, all submitted orders must contain an account code. The exchange rejects any order submitted without an account code. The TFX Gateway rejects any order submitted with an invalid account code.

Account Codes

TFX Gateways use the following default account code mapping:

Account Codes

Account Type

Account Code and Default Value

Common Usage

1st Agent

A1=A

Agent

Used for Brokers. A Broker can be considered an Agent of the exchange.

2nd Agent

A2=A

3rd Agent

A3=A

1st Principal

P1=P

Principle

Used for Proprietary Traders. A Proprietary trader can be considered the Principal account of a specific trader.

2nd Principal

P2=P

3rd Principal

P3=P

1st Giveup Agent

G1=A

Market Maker Client

Used for a Market Maker’s client account.

2nd Giveup Principle

G2=P

Configuring Account Codes

TFX Gateways allow users to configure unique account code mappings per order session using the [AccountCodeMapping_X] section of the hostinfo.cfg file. Also, current versions of TFX Gateways use different default mapping than previous versions.

Example [AccountCodeMapping_DefaultMapping] section

[AccountCodeMapping_DefaultMapping]

A1=A

A2=A

A3=A

P1=P

P2=P

P3=P

G1=A

G2=P

Each Order Session uses an AccountCodeMapping parameter to determine the account code mapping section to use. You must set the AccountCodeMapping parameter equal to the unique value in the [AccountCodeMapping_X] section.

For example:

  • AccountCodeMapping=DefaultMapping causes the Order Session to submit orders with the default values listed in the [AccountCodeMapping_DefaultMapping] section.
  • AccountCodeMapping=Tokyo causes the Order Session to submit orders with the custom values configured in a [AccountCodeMapping_Tokyo] section.