HKEx

HKEx

Adding an HKEx connection

There are two types of sessions that you can configure for connecting to HKEx for orders and fills:

  1. TTF — An HKEx exchange connection that processes both orders and fills on the same session. A TTF connection is required for trading on HKEx.
  2. TTO — A separate HKEx exchange connection for submitting order actions. Multiple TTO connections can be added. Fills for each TTO are received separately via the TTF connection.

When using a single TTF order connection, the TT platform routes all order and fill data through the exchange's TTF connection. In this scenario, only the TTF section of the Connections tab contains connection information.

When using two or more TTO order connections, the TT platform routes all orders through the exchange's TTO connection while the TTF connection processes fills and some order data, such as market state changes, stop triggers, etc. If you add additional TTO order connections, then the TT platform automatically load balances order routing between each TTO connection while the TTF connection continues to receive fills and order data.

To add an HKEx connection:

  1. Click Connections in the left navigation panel.
  2. Click +New Connection
  3. Configure the settings in the General Settings section:

    • Connection enabled: Check this setting to activate the connection. Uncheck to deactivate the connection.
    • Name: This is a required field for creating a connection.
    • Exchange: Select HKEx. Only one exchange is allowed per connection.
    • Use the default setting in the Type field.
  4. Configure the following HKEx exchange settings per connection:

    TTF settings:

    • User ID — Sets the exchange-provided User ID for orders and fills. Mapped to the user_s field in the exchange API.
    • Password — Sets the password for the TTF Order connection.
    • Primary IP — Sets the exchange-provided primary IP address for connecting the order session to the exchange.
    • Primary Port — Sets the exchange-provided primary port for connecting the order session to the exchange.
    • Secondary IP — (Optional) Sets the backup IP address for connecting the session if the primary IP address is not reachable.
    • Secondary Port — (Optional) Sets the backup port for connecting the session if the primary IP address is not reachable.

    To add an order session, click the + to add a TTO tab and configure the settings on that tab.

    TTO settings:

    • User ID — Sets the exchange-provided User ID for the order session.
    • Password — Sets the password for the TTO Order connection.
    • Primary IP — Sets the exchange-provided primary IP address for connecting the order session to the exchange.
    • Primary Port — Sets the exchange-provided primary port for connecting the order session to the exchange.
    • Secondary IP — (Optional) Sets the backup IP address for connecting the session if the primary IP address is not reachable.
    • Secondary Port — (Optional) Sets the backup port for connecting the session if the primary IP address is not reachable.

    Each TTO tab is numbered sequentially (e.g., TTO_1). To remove a TTO tab, click Delete Tab or click the X in the right-corner of the TTO tab section.

    Max Order Rate (orders/sec) — (Optional) Sets the maximum number of orders per second that a user can enter per connection. This limit cannot exceed the exchange-defined order rate maximum. This setting is in the Additional Settings section.

  5. Click Create.

    You can review the connection settings in the Settings tab.

  6. Click the Accounts tab to assign an existing account to the connection. Multiple accounts can be added to a single connection.

    Note: The connection will not become active until at least one account is assigned.

  7. Click Save Changes.