Trade
Overview
TT Platform
Description
Task
Browser Access
Description
Task
Videos
TT Desktop
Description
Task
Videos
Reference
Workspace Windows
Description
Task
Videos
Widgets
Description
Task
Preferences
Description
Viewing Market Data
Time and Sales
Task
Reference
Description
Depth
Description
Task
Reference
Market Grid
Description
Task
Videos
Reference
Product Grid
Description
Task
Reference
Spread Matrix
Description
Task
Videos
Reference
Basic Order Entry
TT Order Types
Description
Task
Videos
Reference
Case Studies
TT Premium Order Types
Description
Task
Reference
Order Ticket
Description
Task
Use Cases
Reference
MD Trader®
Description
Task
Videos
Reference
Order Profiles
Description
Task
Reference
Routing Rules
Description
Task
Blocktrader
Description
Task
Videos
Reference
Trading Crypto on TT
Description
Task
Videos
Reference
Trading on B3
Order Management
Order Book
Description
Task
Reference
Floating Order Book
Description
Task
Reference
Fills
Description
Task
Reference
Positions
Description
Task
Reference
Orders and Fills
Description
Task
Reference
Audit Trail
Description
Task
Reference
Audit Query
Description
Task
Reference
Account List
Description
Task
Videos
Reference
Position Manager
Description
Task
Reference
Alert Manager and Alert Viewer
Description
Task
Videos
Reference
Account & User Restrictions
Description
Task
Reference
Balances
Description
Task
Reference
TT® OMS
Care Orders
Description
Task
Videos
Reference
Lock and Release
Description
Task
Bulking
Description
Task
Videos
Stitching and Splitting
Description
Task
Combining
Description
Task
Order Passing
Description
Task
Use Cases
Order Exceptions
Description
Task
Options
Options on TT
Description
Videos
Options Chain
Description
Task
Use Cases
Videos
Reference
Options Trade Monitor
Description
Task
Videos
Reference
Vol Curve Manager
Description
Task
Use Cases
Videos
Reference
Electronic Eye
Description
Task
Videos
Reference
RFQ Viewer
Description
Task
Videos
Reference
RFQ with Counterparties
Description
Task
Counterparty Manager
Description
Task
Strategy Creation
Description
Task
Use Cases
Reference
Options Risk
Description
Task
Videos
Reference
Options Risk Matrix
Description
Task
Videos
Reference
Watchlist
Description
Task
Videos
Reference
Expiration Manager
Description
Task
Volatility Calculator
Description
Task
TT Uncovered 2.0
Description
Task
TT Uncovered 3.0
Description
Task
QuikStrike
Description
Task
Spread Trading
Autospreader
Description
Task
Use Cases
Videos
Reference
Autospreader Rules
Description
Task
Videos
Reference
Hedge Manager
Description
Task
Videos
Reference
Trading in Yield
Description
Task
Use Cases
Reference
Aggregator
Description
Task
Videos
Reference
Algo Trading
Algo Dashboard
Description
Task
Videos
Reference
Template Manager
Description
Task
Order Management Algos (OMAs)
Autotrader
Description
Task
Reference
Videos
Excel integration with TT
Description
Task
Videos
Reference
Market-Making Algos
Analytics
Charts
Description
Technical Indicators
Task
Videos
Reference
Trader Analytics
Description
Task
Reference
ADL
ADL Overview
Introduction to ADL
Description
Task
Videos
Reference
ADL Basic Concepts
Description
Task
Reference
Building your first algo
Lessons
Advanced concepts
Description
Task
Case Studies
Jump blocks
Group blocks
Virtualized blocks
Library blocks
Trading Blocks
Discrete blocks
Arithmetic blocks
Basic blocks
Logic blocks
Miscellaneous blocks
Setup
Setup Overview
Getting Started
Description
Task
Videos
Reference
Supported Order Types and TIFs
Company Administration
Connections
Description
Task
Videos
Reference
Accounts
Description
Task
Videos
Use Cases
Reference
Users
Description
Task
Videos
Reference
Company
Description
Task
Reference
Order Tag Defaults
Description
Task
Account Administrators
Description
Task
TT Premium Services
Description
Task
TT Access
Description
Task
Advanced Features
Description
Risk Management
Risk Administration
Description
Task
Risk Limits
Description
Task
Videos
Reference
Pre-Trade Portfolio Risk
Description
Task
Reference
Order Cross Prevention
Description
Task
Videos
KRM Limits
Description
Task
TT® OMS
TT OMS Administration
Description
Task
Use Cases
Reference
Exchanges: Americas
B3
Description
Task
CBOE
Description
Task
Cboe FX
Description
Task
Reference
CFE
Description
Task
CME
Description
Task
Dealerweb
Description
Task
EBS Direct
Description
Task
EBS Market
Description
Task
Fenics
Description
Task
FMX
Description
Task
FMX_USTF
Description
Task
Goldman Sachs Commodity Blocks (GSCB)
Description
Task
Referece
ICE
Description
Task
MexDer
Description
Task
MIAX_FUT_CH
Description
Task
MIAX_FUT_NY
Description
Task
MX
Description
Task
Nodal
Description
Task
NFI
Task
Exchanges: EMEA
ATHEX
Description
Task
BIST
Description
Task
DGCX
Description
Task
EEX
Description
Task
EPEX SPOT
Description
Task
Reference
Eris
Description
Task
Eurex
Description
Task
Videos
Euronext
Description
Task
GFO-X
Description
Task
ICE_L
Description
Task
JSE
Description
Task
LME
Description
Task
LME NTP
Description
Task
LSE
Description
Task
MEFF
Description
Task
NDAQ_EU
Description
Task
NASDAQ_NED
Description
Task
Nord Pool
Description
Task
Reference
WSE
Description
Task
Exchanges: Asia/Pacific
ABX
Description
Task
ASX
Description
Task
FEX
Description
Task
HKEx
Description
Task
JPX
Description
Task
NSE
Description
Task
NZX
Description
Task
SGX
Description
Task
SGX GIFT
Description
Task
TAIFEX
Description
Task
TFEX
Description
Task
TFX
Description
Task
CoinFLEX
Task
Exchanges: Crypto
Coinbase
Description
Task
Kraken
Description
Task
FIX Support
FIX Ruleset
Description
Task
FIX Sessions
Description
Task
Secondary Accounts
Description
Task
Monitor
TT Mobile
TT Backtesting
APIs
TT REST API 2.0
Getting Started
API Reference
TT REST API 2.0 (UAT)
Getting Started
API Reference
TT .NET SDK
Getting started with TT .NET SDK
Creating the application framework
Working with instruments
Subscribing for market data
More about prices
An in-depth look at the Price class
Working with orders and fills
Handling trade subscriptions
Working with trade subscriptions
Working with Algos
Algo Server
TT Order Types
TT Premium Order Types
Advanced Concepts and Options
Appendix
TT CORE SDK
Getting Started with TT Core SDK
Creating Application Framework
Working With Instruments
Subscribing for Market Data
Working with Orders and Fills
Creating a TT Application Server
Appendix
TT Trade Surveillance
Overview
Using TT Trade Surveillance
Cluster View
Core Models
Market Abuse Models
Cross Product Models
Spoofing Models
Improperly Matched Trade Models
Market Rate Models
Trading Behaviors Models
Miscellaneous Models
Configurable Models
Reports
Wachlists
Reference
TT FIX Services
TT FIX General
Getting Started
FIX Message Structure
Session messages
TT FIX Order Routing
Overview
TT FIX message conversations
Supported application messages
TT FIX Market Data
Overview
TT FIX message conversations
Supported application messages
TT FIX Drop Copy Out
Overview
TT FIX Message Conversations
Supported application messages
Compliance Feed messages
TT FIX Drop Copy In
Overview
Supported application messages
TT FIX Gateway
Getting Started
FIX Message Structure
Components
Session messages
Price Gateway Messages
Order Gateway Messages
TT FIX Recovery
Overview
FIX Recovery Methods
Supported application messages
Compliance Feed Messages
MiFID II Support

Authentication and request IDs

On this page

Authentication and request IDs

All requests using the TT REST API must include:

Additionally, most requests also require:

  • A Token in the header.
    • Authorization=Bearer <token>
  • A request ID passed as a query string
    • requestId=<app_name>-<company_name>--<new_guid>

Note: The TT REST API documentation provides the ability to create and send test requests. These test requests also need the above-mentioned parameters where required by the endpoint.

Application keys

Application Keys are created using the Setup application. An Application Key is associated with the login used to create it and the key will inherit the login’s permissions and access to data for the environment in which the key was created. Separate application keys are required for making requests from the UAT and Live environments.

Consult the documentation for more information on the environments used by the TT REST API as well as creating application keys.

Tokens

For all TT REST endpoints, users must obtain a token.

To request a token, you send your application key and application secret within a POST request to the ‘/token’ endpoint. Full documentation can be found at the bottom of this page.

When using the token in subsequent requests, Bearer is added to the front of the token you receive.

Note: Tokens are set to expire after a given period of time. This period of time is communicated in the response to your token request as the “seconds_until_expiry” value. Your application will need to generate a new token before its token expires.

Providing a Request ID

All endpoints require a query parameter named requestId. Its value must be of the form:

<app_name>-<company_name>–<new_guid>

where:

  • <app_name> is a user-generated string used to identify the specific application making the call.
  • <company_name> is a user-generated string used to identify the user’s company.
  • <new_guid> is the globally unique identifier for this request. Each separate request should have a distinct identifier so that it can be traced. GUIDs can be created using a GUID generator.

To avoid issues when submitting your request and requestId, you must adhere to the following format requirements:

  • Do not use special characters: TT strongly recommends you avoid using special characters ($ & + , / : ; = ? @ ” <> # % { } | \ ^ ~ [ ] `) when creating your requestId. These characters may cause failures when passed to some TT backend components.

  • Do not include spaces: Your requestId cannot include blank spaces.

  • Match the case sensitivity of the requestId parameter: The request will only work if the query parameter uses the appropriate ‘lower camelcase’ format: requestId. Alternate case structures (e.g., requestid, requestID, or requestiD) may result in a failed request.

Note Requests submitted without the requestId query parameter will be rejected.

Creating a Globally Unique Identifier

To create a unique identifier, you can use an online GUID Generator like guid.one or any other GUID generator available online.

These tools generate completely random values (e.g., 47a1e1c4-0c94-4fb3-94a9-d772382458a3) that meet the criteria for creating a value used for identification.

Note: You must includes all characters, including hyphens, when using this value to access TT REST API.

For additional information on GUID values, visit guid.one/guid.

Using Authentication and request IDs in test calls within documentation

The TT REST API documentation lets you make test calls for endpoints for all services. The Ledger, Monitor and Risk services require a token for addtional authentication. The documentation simplifies the process of authorizing your requests and for specifying a sample value for the new requestId parameter required for requests in these services.

Rather than requiring you to authorize each request individually, the documentation provides an Authorize button that lets you enter the necessary authorization once for all calls in the service. When you click the Authorize button, you can enter the API key and token in the dialog box, as shown.

  1. Enter your TT REST API Application Key from Setup.
  2. Enter “Bearer ” followed by the token (include a space, but do not include the quotes).

For any endpoint, you can click the Try it out button, populate the parameters, and execute the test request. While using the documentation to test your requests, a sample requestId parameter, in the proper format, is automatically populated so you need not generate a new GUID for each test request.

Note: The sample requestId is valid only for test calls made from the documentation. When making requests from your application, you must generate a new and unique GUID for every request.

Token Requests

To get a token, you send your application key and application secret within a POST request to generate a token. Expand the ‘/token’ documentation below to view the required parameters for generating a token.