---
title: "Trading Technologies"
description: "Our Trading Technologies integration lets you deploy live trading algorithms on our co-located servers that trade the capital you have in your Trading Technologies account."
canonical: https://www.quantconnect.com/docs/v2/cloud-platform/live-trading/brokerages/trading-technologies
markdown: https://www.quantconnect.com/docs/v2/cloud-platform/live-trading/brokerages/trading-technologies.md
language: python
source: https://github.com/QuantConnect/Documentation/tree/master/01%20Cloud%20Platform/10%20Live%20Trading/02%20Brokerages/20%20Trading%20Technologies
modified: 2026-11-01
index: https://www.quantconnect.com/llms.txt
---

# Trading Technologies

[Documentation](https://www.quantconnect.com/docs/v2.md) > [Cloud Platform](https://www.quantconnect.com/docs/v2/cloud-platform.md) > [Live Trading](https://www.quantconnect.com/docs/v2/cloud-platform/live-trading.md) > [Brokerages](https://www.quantconnect.com/docs/v2/cloud-platform/live-trading/brokerages.md) > Trading Technologies

> Code examples are shown in Python. Append `?lang=csharp` to this URL for the C# version of this page.

## Introduction

QuantConnect enables you to run your algorithms in live mode with real-time market data.

Trading Technologies (TT) was founded by Gary Kemp in 1994 with the goal to create professional trading software, infrastructure, and data solutions for a wide variety of users. TT provides access to trading Futures, Options, and Crypto. TT also provides a charting platform, infrastructure services, and risk management tools. TT is not actually a brokerage. The firm is a brokerage router with access to more than 30 execution destinations.

To view the implementation of the TT integration, see the [Lean.Brokerages.TradingTechnologies repository](https://github.com/QuantConnect/Lean.Brokerages.TradingTechnologies).

## Account Types

The `TradingTechnologiesBrokerageModel` does not have specific modeling for fees and slippage because TT is an order router and can execute on many exchanges and brokerages. To set the brokerage model and account type in an algorithm, see the [TT brokerage model documentation](https://www.quantconnect.com/docs/v2/writing-algorithms/reality-modeling/brokerages/supported-models/trading-technologies.md). In live trading, TT reports the total fees of your orders after each order fill. Pass a different `BrokerageName` to `set_brokerage_model` to backtest your algorithm with fee and slippage modeling. The brokerage model you set should support the asset classes and orders in your algorithm.

### Create an Account

Follow the [account creation wizard](https://id.tradingtechnologies.com/register) on the TT website to create a TT account.

### Paper Trading

Trading Technologies provides a separate [https://library.tradingtechnologies.com/trade/ttp-uat-trading-environment.html](https://library.tradingtechnologies.com/trade/ttp-uat-trading-environment.html)User Acceptance Testing (UAT) Certification environment at [uat.trade.tt](https://uat.trade.tt). The TT UAT environment connects to actual exchange certification environments for both market data and order routing.

To create a UAT account, follow the [UAT account creation wizard](https://id-uat.tradingtechnologies.com/register) on the TT website.

### Create Deployment Credentials

After you create your TT account, see [Create TT Users](https://www.quantconnect.com/docs/v2/cloud-platform/live-trading/brokerages/trading-technologies.md#14-Create-TT-Users) to create your live deployment credentials.

## Asset Classes

Our TT integration supports trading [Futures](https://www.quantconnect.com/docs/v2/writing-algorithms/securities/asset-classes/futures.md).

## Data Providers

We recommend the [QuantConnect data provider](https://www.quantconnect.com/docs/v2/cloud-platform/datasets/quantconnect.md), which is free and supplies [Futures](https://www.quantconnect.com/docs/v2/cloud-platform/datasets/quantconnect/futures.md) data during live trading. If you'd rather trade on Trading Technologies prices, you might need to purchase a [market data subscription from Trading Technologies](https://www.quantconnect.com/docs/v2/cloud-platform/datasets/trading-technologies.md). For more information about live data providers, see [Datasets](https://www.quantconnect.com/docs/v2/cloud-platform/datasets.md).

## Orders

We model the TT API by supporting several order types, the `TimeInForce` order property, and order updates. When you deploy live algorithms, you can [place manual orders](https://www.quantconnect.com/docs/v2/cloud-platform/live-trading/algorithm-control.md#03-Place-Manual-Trades) through the IDE.

### Order Types

The following table describes the available order types for each asset class that our TT integration supports:

| Order Type | Futures |
| --- | --- |
| [Market](https://www.quantconnect.com/docs/v2/writing-algorithms/trading-and-orders/order-types/market-orders.md) | ![green check](https://cdn.quantconnect.com/i/tu/check.png) |
| [Limit](https://www.quantconnect.com/docs/v2/writing-algorithms/trading-and-orders/order-types/limit-orders.md) | ![green check](https://cdn.quantconnect.com/i/tu/check.png) |
| [Stop market](https://www.quantconnect.com/docs/v2/writing-algorithms/trading-and-orders/order-types/stop-market-orders.md) | ![green check](https://cdn.quantconnect.com/i/tu/check.png) |
| [Stop limit](https://www.quantconnect.com/docs/v2/writing-algorithms/trading-and-orders/order-types/stop-limit-orders.md) | ![green check](https://cdn.quantconnect.com/i/tu/check.png) |

TT enforces the following order rules:

- If you are buying (selling) with a `stop_market_order` or a `stop_limit_order`, the stop price of the order must be greater (less) than the current security price.
- If you are buying (selling) with a `stop_limit_order`, the limit price of the order must be greater (less) than the stop price.

### Time In Force

We model the TT API by supporting the `DAY` and `GOOD_TIL_CANCELED` [TimeInForce](https://www.quantconnect.com/docs/v2/writing-algorithms/trading-and-orders/order-properties.md#03-Time-In-Force) order properties.

### Updates

We model the TT API by supporting [order updates](https://www.quantconnect.com/docs/v2/writing-algorithms/trading-and-orders/order-management/order-tickets.md#04-Update-Orders).

## Fees

Trades through TT don't incur fees. To view how we model their fees, see [Fees](https://www.quantconnect.com/docs/v2/writing-algorithms/reality-modeling/brokerages/supported-models/trading-technologies.md#06-Fees).

## Margin

We model [buying power](https://www.quantconnect.com/docs/v2/writing-algorithms/reality-modeling/brokerages/supported-models/trading-technologies.md#07-Buying-Power) and [margin calls](https://www.quantconnect.com/docs/v2/writing-algorithms/reality-modeling/margin-calls.md) to ensure your algorithm stays within the margin requirements.

## Slippage

Orders through TT do not experience slippage in backtests and [QuantConnect Paper Trading](https://www.quantconnect.com/docs/v2/cloud-platform/live-trading/brokerages/quantconnect-paper-trading.md). In live trading, your orders may experience slippage.

To view how we model TT slippage, see [Slippage](https://www.quantconnect.com/docs/v2/writing-algorithms/reality-modeling/brokerages/supported-models/trading-technologies.md#05-Slippage).

## Fills

QuantConnect fills market orders immediately and completely in backtests and [QuantConnect Paper Trading](https://www.quantconnect.com/docs/v2/cloud-platform/live-trading/brokerages/quantconnect-paper-trading.md). In live trading, if the quantity of your market orders exceeds the quantity available at the top of the order book, your orders are filled according to what is available in the order book.

To view how we model TT order fills, see [Fills](https://www.quantconnect.com/docs/v2/writing-algorithms/reality-modeling/brokerages/supported-models/trading-technologies.md#04-Fills).

## Security and Stability

Note the following security and stability aspects of our TT integration.

### Account Credentials

When you deploy live algorithms with TT, we don't save your credentials.

### API Outages

We call the TT API to place live trades. Sometimes the API may be down. Check the [TT status page](https://status.trade.tt/#/) to see if the API is currently working.

## Deposits and Withdrawals

You can deposit and withdraw cash from your brokerage account while you run an algorithm that's connected to the account. We sync the algorithm's cash holdings with the cash holdings in your brokerage account every day at 7:45 AM Eastern Time (ET).

## Demo Algorithm

The following algorithm demonstrates the functionality of the TT brokerage:

```python
# Demonstrate Trading Technologies brokerage functionality with an EMA crossover strategy on ES Futures.
class TradingTechnologiesDemoAlgorithm(QCAlgorithm):
    def initialize(self) -> None:
        self.set_start_date(2024, 9, 1)
        self.set_end_date(2024, 12, 31)
        self.set_cash(100000)
        self.set_brokerage_model(BrokerageName.TRADING_TECHNOLOGIES, AccountType.MARGIN)
        future = self.add_future(Futures.Indices.SP_500_E_MINI, Resolution.DAILY)
        future.set_filter(0, 90)
        self._symbol = None
        self._fast = None
        self._slow = None

    def on_data(self, slice: Slice) -> None:
        if self.portfolio.invested:
            return
        for chain in slice.future_chains:
            contracts = sorted(chain.value, key=lambda c: c.expiry)
            if not contracts:
                continue
            contract = contracts[0]
            if self._fast is None:
                self._symbol = contract.symbol
                self._fast = self.ema(self._symbol, 10, Resolution.DAILY)
                self._slow = self.ema(self._symbol, 50, Resolution.DAILY)
                return
            if not self._slow.is_ready:
                return
            if self._fast.current.value > self._slow.current.value:
                self.market_order(self._symbol, 1)
```

## Create TT Users

Follow these steps to create your TT user name, account name, remote comp id, session password, app key, and app secret:

[Video](https://player.vimeo.com/video/1006924337?badge=0&autopause=0&player_id=0&app_id=58479)

### Part 1: Sign in

On the TT website, sign in to your [TT account](https://uat.tradingtechnologies.com/signin) or your [TT UAT account](https://id-uat.tradingtechnologies.com/signin). If you don't have an account, see [Account Types](https://www.quantconnect.com/docs/v2/cloud-platform/live-trading/brokerages/trading-technologies.md#02-Account-Types) to create one.

### Part 2: Add a New User

1. In the top navigation bar, click **Setup**.
2. On the Setup page, click **+New User**.
3. In the **New User** window, click the radio button that corresponds to user's employment status in your company and then click **Continue**.
4. On the New User page, fill in the form with information about the new user.
   The name that you put in the **Username** field is the username you will need when deploying live algorithms with LEAN.
   In the **Status** section, click the **Trade Mode** field and then click **TT Pro** from the drop-down menu.
   In the **Advanced Settings** section, select the **Can create TT Rest API Key** and **Can create TT.NET SDK Client Side key** check boxes.
5. Click **Create**.
6. On the Setup page, click the new user in the table and then click **Send Invitation**.

### Part 3: Create an App Key for the New User

1. On the Setup page, click the new user in the table and then click the **App Keys** tab.
2. In the **App Keys** section, click **New**.
3. In the **Create New Application Key** window, enter an application key name (for example, **qb_alex_app_key**), select **TT REST API** for application key type and then click **Create**.
4. Click **Copy Secret to Clipboard** and save it somewhere safe, like a text editor.
   The text you copy contains the App Key and App Secret separated by a colon. For example, a79b17df-b249-45a1-9d12-d5bbd2964626:424cc666-42aa-4125-a48e-13f630afd5a1.
5. Click **OK**.

### Part 4: Create an Account for the New User

1. On the Setup page, in the left navigation bar, click **Accounts**.
2. On the Accounts page, click **+New Account**.
3. On the New User page, fill in the form with the following information:
- Set the account name to something representative (for example, QC).
- If there is a parent account, select it in the **Parent** field.
- In the **Parent** field, select **Routing (internal sub-account)**.
- Click **Create**.
- On the Account page, click the new account in the table and then click the **Users** tab.
- In the Users section, click **+Add**.
- In the Select Users window, click the new user and then click **Select**.
- Click **Save Changes**.

### Part 5: Create a FIX Session for the New User

1. On the Setup page, in the left navigation bar, click **FIX Sessions**.
2. On the FIX Sessions page, click **+New FIX Session**.
3. On the New FIX Sessions page, fill in the form with the following information:
- Set the **FIX Session Name** to something representative (for example, QC).
- In the **FIX Type** field, select **FIX Order Routing**.
- Set the **Remote Comp ID** to something representative (for example, qc_alex_id).
  This Id is the remote comp id you will use when deploying live algorithms with LEAN.
  The session password you set in this form is the password you will use when deploying live algorithms with LEAN.
- Select the **Send unsolicited order and fill message** check box.
- In the **Status** section, deselect the **Inactive** check box.
- Click **Create**.
- On the FIX Sessions page, click the new FIX session in the table and then click the **Users** tab.
- In the Users section, click **+Add**.
- In the Select Users window, click the new user and then click **Select**.
- Click **Save Changes**.

### Part 6: Verify the User Credentials

1. On the Setup page, in the left navigation bar, click **Users**.
2. On the Users page, click the new user in the table and then review the information under the **FIX Sessions** and **App Keys** tabs.

## Deploy Live Algorithms

You must have an available [live trading node](https://www.quantconnect.com/docs/v2/cloud-platform/organizations/resources.md#04-Live-Trading-Nodes) for each live trading algorithm you deploy.

Follow these steps to deploy a live algorithm:

1. [Open the project](https://www.quantconnect.com/docs/v2/cloud-platform/projects/getting-started.md#02-View-All-Projects) you want to deploy.
2. Click the ![Lightning icon](https://cdn.quantconnect.com/i/tu/deploy-live-icon.png) **Deploy Live** icon.
3. On the Deploy Live page, click the **Brokerage** field and then click **Trading Technologies** from the drop-down menu.
4. Enter your TT user name, account name, remote comp id, session password, app key, and app secret.
   To get your credentials, see [Create TT Users](https://www.quantconnect.com/docs/v2/cloud-platform/live-trading/brokerages/trading-technologies.md#14-Create-TT-Users).
   Our TT integration routes orders via the TT FIX 4.4 Connection. [Contact your TT representative](https://www.tradingtechnologies.com/contact/) to set the exchange where you would like your orders sent. Your account details are not saved on QuantConnect.
   Our integration fetches your positions using the REST endpoint, so the app key and app secret are your REST App credentials.
5. Click the **Environment** field and then click one of the environments from the drop-down menu.
   The following table shows the supported environments:
   | Environment | Description |
   | --- | --- |
   | Live | Trade in the production environment |
   | UAT | Trade in the [User Acceptance Testing](https://library.tradingtechnologies.com/trade/ttp-uat-trading-environment.html) environment |
6. In the **Region** section, click the [region](https://www.quantconnect.com/docs/v2/cloud-platform/live-trading/getting-started.md#07-Redundancy) where you want to run the algorithm.
7. Click the **Node** field and then click the live trading node that you want to use from the drop-down menu.
8. (Optional) In the **Data Provider** section, click **Show** and change the data provider or add additional providers.
9. If your brokerage account has existing cash holdings, follow these steps ([see video](https://vimeo.com/703024505)):
   1. In the **Algorithm Cash State** section, click **Show**.
   2. Click **Add Currency**.
   3. Enter the currency ticker (for example, USD or CAD) and a quantity.
10. (Optional) [Set up notifications](https://www.quantconnect.com/docs/v2/cloud-platform/live-trading/notifications.md).
11. Configure the **Automatically restart algorithm** setting.
   By enabling [automatic restarts](https://www.quantconnect.com/docs/v2/cloud-platform/live-trading/deployment.md#07-Automatic-Restarts), the algorithm will use best efforts to restart the algorithm if it fails due to a runtime error. This can help improve the algorithm's resilience to temporary outages such as a brokerage API disconnection.
12. Click **Deploy**.

The deployment process can take up to 5 minutes. When the algorithm deploys, the [live results page](https://www.quantconnect.com/docs/v2/cloud-platform/live-trading/results.md) displays. If you know your brokerage positions before you deployed, you can verify they have been loaded properly by checking your equity value in the runtime statistics, your cashbook holdings, and your position holdings.

Restarts, including automatic restarts and redeployments, don't save the state of your algorithm. To learn what a restart recovers and how to persist the rest, see [State Persistence](https://www.quantconnect.com/docs/v2/cloud-platform/live-trading/deployment.md#10-State-Persistence).

## Deployment Details

When you deploy a live algorithm with Trading Technologies, the brokerage shares some details of the deployment, like the account it trades. Use them to tell concurrent deployments apart or to check that the algorithm connected to the account you expect. The details never include credentials.

The following table describes the deployment details that Trading Technologies shares:

| Key | Description |
| --- | --- |
| `tt-user-name` | The TT user name that LEAN uses to log in. |
| `tt-account-name` | The TT account that receives the orders. |
| `tt-rest-environment` | The TT REST environment that LEAN uses to fetch positions and instrument details. |
| `tt-order-routing-sender-comp-id` | The sender comp ID of the FIX order routing session. |

The `deployment_details` property of your algorithm is a read-only dictionary of the details. LEAN populates it before it calls the `initialize` method, so you can read it anywhere in your algorithm.

```python
deployment_details = [f'{kvp.key}:{kvp.value}' for kvp in self.deployment_details]
self.log(f'deployment_details: {deployment_details}')
```

The [/live/read](https://www.quantconnect.com/docs/v2/cloud-platform/api-reference/live-management/read-live-algorithm/live-algorithm-statistics.md) API endpoint also returns the details in its `deploymentDetails` field, so you can read them outside of the algorithm.
