{"id":8022,"date":"2025-09-04T21:37:58","date_gmt":"2025-09-05T02:37:58","guid":{"rendered":"https:\/\/librarytestdev.wpenginepowered.com\/?post_type=doc&#038;p=8022"},"modified":"2025-09-04T23:23:56","modified_gmt":"2025-09-05T04:23:56","slug":"migrating-from-tt-api","status":"publish","type":"doc","link":"https:\/\/library-staging.tradingtechnologies.com\/apis\/tt-net-sdk\/getting-started-with-tt-net-sdk\/migrating-from-tt-api\/","title":{"rendered":"Migrating from TT API"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The TT .NET SDK interface was designed to duplicate that of of the X_TRADER platform\u2019s TT API to minimize migration efforts. However, some changes will be required to your application since complete backwards compatibility is not possible given some significant differences between the X_TRADER and TT platforms. To assist you in migrating your application, the following guidelines may prove useful.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"getting-started\"><a href=\"\/tt-net-sdk\/articles\/gs-migrating-from-tt-api.html#getting-started\"><\/a>Getting started<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">All migrations should begin by performing the following steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>De-reference the TT API DLL and reference the TT .NET SDK DLL.<\/li>\n\n\n\n<li>Replace any \u2018using\u2019 directives that reference any TT API namespaces with references to the TT .NET SDK namespace.<strong>TT API<\/strong><code>using TradingTechnologies.TTAPI; <\/code><strong>TT .NET SDK<\/strong><code>using tt_net_sdk;<\/code><\/li>\n\n\n\n<li>Replace any fully qualified TT API namespace reference to use TT .NET SDK Client Side references. For example:<strong>TT API<\/strong><code>TradingTechnologies.TTAPI.UniversalLoginTTAPI m_api = null; <\/code><strong>TT .NET SDK<\/strong><code>tt_net_sdk.TTAPI m_api = null;<\/code><\/li>\n\n\n\n<li>Update the initialization code to reflect that an application key \/ secret are required in TT .NET SDK applications instead of username \/ password. Complete details are provided for both\u00a0<a href=\"\/tt-net-sdk\/articles\/af-console-app.html\">Console<\/a>\u00a0and\u00a0<a href=\"\/tt-net-sdk\/articles\/af-forms-app.html\">UI<\/a>\u00a0applications.<strong>Notes:<\/strong>\n<ul class=\"wp-block-list\">\n<li>\u201cFollow X_TRADER\u201d login mode has been deprecated.<\/li>\n\n\n\n<li>You need not enable \/ disable implieds anymore using the\u00a0<strong>XTraderModeTTAPIOptions.EnableImplieds<\/strong>\u00a0property since implieds are calculated on a separate TT server and always available.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"deprecated-properties-and-methods\"><a href=\"\/tt-net-sdk\/articles\/gs-migrating-from-tt-api.html#deprecated-properties-and-methods\"><\/a>Deprecated properties and methods<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You may encounter some properties and methods that will show up in Visual Studio as deprecated. These properties and methods will still work. However, the deprecation message will indicate that a new, more efficient implementation has been provided.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2025\/09\/editor-1.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">TT strongly advises that you update your code such that deprecated properties and methods are not used since they will be removed from the API in a future release.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"enumerations\"><a href=\"\/tt-net-sdk\/articles\/gs-migrating-from-tt-api.html#enumerations\"><\/a>Enumerations<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">While some enumerations were easily migrated from TT API to TT .NET SDK, others had no corollary in the TT platform. Developers are advised to review the enumerated values being used to ensure that there are no compilation issues.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"orderprofile\"><a href=\"\/tt-net-sdk\/articles\/gs-migrating-from-tt-api.html#orderprofile\"><\/a>OrderProfile<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Many exchange-specific fields, as well as MiFID II fields, which were previously configured in 7.x TT API&nbsp;<strong>OrderProfile<\/strong>&nbsp;can no longer be set in the TT .NET SDK&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.OrderProfile.html\">OrderProfile<\/a>&nbsp;class and are now configured in&nbsp;<strong>Setup<\/strong>. Configurable fields can be found in the&nbsp;<strong>Task<\/strong>&nbsp;article sections for [each exchange]|(<a href=\"\/user-setup\/index.html#tt-exchanges-eu\">https:\/\/library.tradingtechnologies.com\/user-setup\/index.html#tt-exchanges-eu<\/a>) within the&nbsp;<strong>Setup<\/strong>&nbsp;documentation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In addition, the 7x TT API free form text fields (<strong>FFT2<\/strong>,&nbsp;<strong>FFT3<\/strong>,&nbsp;<strong>FFT4<\/strong>,&nbsp;<strong>FFT5<\/strong>,&nbsp;<strong>FFT6<\/strong>) have been replaced with the new&nbsp;<strong>TextA<\/strong>,&nbsp;<strong>TextB<\/strong>,&nbsp;<strong>TextC<\/strong>, and&nbsp;<strong>TextTT<\/strong>&nbsp;fields. Character limitations and exchange tag mappings are summarized [here]|(<a href=\"\/trade\/ot-reference.html#fft-table\">https:\/\/library.tradingtechnologies.com\/trade\/ot-reference.html#fft-table<\/a>). Full documentation can be found in each of the \u201cConfiguring User Access\u201d&nbsp;<strong>Task<\/strong>&nbsp;articles linked above.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The TT .NET SDK interface was designed to duplicate that of of the X_TRADER platform\u2019s TT API to minimize migr [&hellip;]<\/p>\n","protected":false},"author":2,"template":"wp-custom-template-single-doc-tt-net-sdk","meta":{"_acf_changed":true,"footnotes":""},"docs-category":[769],"class_list":["post-8022","doc","type-doc","status-publish","hentry","docs-category-getting-started-with-tt-net-sdk"],"acf":[],"_links":{"self":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc\/8022","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/types\/doc"}],"author":[{"embeddable":true,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/users\/2"}],"version-history":[{"count":0,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc\/8022\/revisions"}],"wp:attachment":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/media?parent=8022"}],"wp:term":[{"taxonomy":"docs-category","embeddable":true,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/docs-category?post=8022"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}