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

Introduction to TT REST API

On this page

The TT REST API 2.0 gives you the tools you need to leverage the power of the TT platform within your own applications. You can access the same product information services, risk management and market connectivity used by the TT platform – all through an easy-to-use REST API.

The TT REST API provide a number of resources:

  • ttid: Authenticate and authorize applications to access the resources of the TT platform.
  • ttpds: Request information pertaining to exchanges, products and instruments.
  • ttledger: View transaction details and historical record.
  • ttmonitor: Add administrative fills and view credit limits, credit utilitzation, position, and Start-of-Day (SOD) records for a given account.
  • ttsetup: View and set company-level product margins, order tag defaults, exchange connections, and organizations.
  • ttuser: View and set risk limits, market data access, contracts, and product settings for given users or user groups.
  • ttaccount: View and set risk limits, trade permissions, and users for a given account.
  • ttgroup: Create and manage risk limits for risk groups, risk accounts, and user groups.

Note: When submitting requests, all API urls are case sensitive and should include the endpoint name in lowercase. For example, using https://ttrestapi.trade.tt/TTUser/ext_uat_cert/ results in a 403 server error.

You must use https://ttrestapi.trade.tt/ttuser/ext_uat_cert/ in order to properly reach the API.

To view a sample application which makes use of the TT REST API, visit TT’s public Github repository.

Note: The ttledger and ttmonitor services are not intended to be used as a real-time feed since there may be delays between the time at which order and fill events occur and the time when they are available via TT REST API. Applications requiring a real-time feed should use TT .NET SDK or TT FIX.

Environments: directing your requests

TT provides two environments for use with the TT REST API, a UAT environment which is used when developing and testing your application, and a production environment. Requests to the TT REST API target the environment and requested service use the following base URL:ttrestapi.trade.tt/<service>/<environment>.

  • The value for <service> is documented on each service’s page.
  • The testing environment can be reached by using the following <environment> value: ext_uat_cert
  • The production environment used when deploying your application can be reached by using the following <environment> value: ext_prod_live

Note: To ensure proper routing of all requests, users must use an HTTP library that supports 303 redirects.

Certificate/SSL Validation

Certificate pinning, sometimes known as SSL pinning, is a process that you can use in your application to validate a remote host by associating that host directly with its X.509 certificate or public key instead of with a certificate hierarchy. The application therefore uses pinning to bypass SSL/TLS certificate chain validation.

The typical SSL validation process checks signatures throughout the certificate chain from the root certificate authority (CA) certificate through the subordinate CA certificates, if any. It also checks the certificate for the remote host at the bottom of the hierarchy. Your application can instead pin to the certificate for the remote host to say that only that certificate and not the root certificate or any other in the chain is trusted.

You can add the remote host’s certificate or public key to your application during development. Alternatively, the application can add the certificate or key when it first connects to the host.

Warning

TT does not support certificate pinning for this service.

Response Payload Sizes

In cases where the TT REST API attempts to send too much data in response to a request, users may receive a 413 (content too large) error. In such cases, users should set the Accept-Encoding parameter in the HTTP header to “gzip”. As a result, the TT REST API will compress the data before transmitting it.

Staying Current with TT REST API Releases

It is important to stay current on all of the latest changes that TT makes in the TT REST API. You can subscribe for automated email notifications when new versions of the TT REST API are released by clicking the ‘Subscribe’ button on the TT Release Notes web page. Although we strive to keep the interface completely backwards compatible in new versions, there may be instances where this is not possible and, as such, will require developers to recompile and/or make code changes.

TT REST API endpoints accessed via apigateway.trade.tt are serviced through a single instance located in the U.S. To improve resiliency, TT deployed a new version of TT REST API to multiple instances around the globe in the past year. Non-U.S. client applications communicate with a local regional instance, and automatic failover occurs if that local instance becomes unavailable. This provides improved performance along with the seamless operation of all applications.

To access this new version, clients must update the target URL of their applications from apigateway.trade.tt to https://ttrestapi.trade.tt. Clients who continue to use the legacy URL will be impacted in the event of an outage of the single U.S. instance. Furthermore, non-U.S. clients will continue to be subject to possible latency timeouts. As such, TT strongly recommends that clients migrate to the endpoints via https://ttrestapi.trade.tt to avoid business continuity issues.

Contacting TT Support

If you need help with TT REST API issues, you can submit a support ticket. To submit a support ticket, visit the TT Support Center page in the Resources section of the TT website and click OPEN A TICKET.

This site is registered on wpml.org as a development site. Switch to a production site key to remove this banner.