{"id":8087,"date":"2025-09-04T23:21:47","date_gmt":"2025-09-05T04:21:47","guid":{"rendered":"https:\/\/librarytestdev.wpenginepowered.com\/?post_type=doc&#038;p=8087"},"modified":"2025-09-04T23:23:49","modified_gmt":"2025-09-05T04:23:49","slug":"improving-performance-of-trade-subscriptions","status":"publish","type":"doc","link":"https:\/\/library-staging.tradingtechnologies.com\/apis\/tt-net-sdk\/working-with-trade-subscriptions\/improving-performance-of-trade-subscriptions\/","title":{"rendered":"Improving performance of trade subscriptions"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">By default, a trade subscription includes all orders and fills associated with a trader\u2019s login credentials that also pass the logical tests specified in the filters. If a&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.TradeSubscription.html\">TradeSubscription<\/a>&nbsp;object needs to manage only those orders that are submitted through it, you should set the&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.TradeSubscription.html#tt_net_sdk_TradeSubscription_OwnOrdersOnly\">OwnOrdersOnly<\/a>&nbsp;property to true before calling the&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.TradeSubscription.html#tt_net_sdk_TradeSubscription_Start\">Start()<\/a>&nbsp;method as demonstrated in the following code snippet.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>bool own_orders_only = true;\nTradeSubscription m_ts = new TradeSubscription(Dispatcher.Current, own_orders_only);\nm_ts.Start();\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Enabling this parameter reduces the order and fill traffic the&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.TradeSubscription.html\">TradeSubscription<\/a>&nbsp;object must process, which can provide better performance. TT recommends that you enable this property whenever possible.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note<\/strong>: You must call the&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.TradeSubscription.html#tt_net_sdk_TradeSubscription_SendOrder_tt_net_sdk_OrderProfile_\">TradeSubscription.SendOrder<\/a>&nbsp;method to route orders if you want the&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.TradeSubscription.html\">TradeSubscription<\/a>&nbsp;instance to include them.<\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"wp-block-paragraph\">By default, a trade subscription includes all orders and fills associated with a trader\u2019s login credentials that also pass the logical tests specified in the filters. If a&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.TradeSubscription.html\">TradeSubscription<\/a>&nbsp;object needs to manage only those orders that are submitted through it, you should set the&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.TradeSubscription.html#tt_net_sdk_TradeSubscription_OwnOrdersOnly\">OwnOrdersOnly<\/a>&nbsp;property to true before calling the&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.TradeSubscription.html#tt_net_sdk_TradeSubscription_Start\">Start()<\/a>&nbsp;method as demonstrated in the following code snippet.<\/p>\n<p class=\"wp-block-paragraph\">Enabling this parameter reduces the order and fill traffic the&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.TradeSubscription.html\">TradeSubscription<\/a>&nbsp;object must process, which can provide better performance. TT recommends that you enable this property whenever possible.<\/p>\n<p class=\"wp-block-paragraph\"><strong>Note<\/strong>: You must call the&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.TradeSubscription.html#tt_net_sdk_TradeSubscription_SendOrder_tt_net_sdk_OrderProfile_\">TradeSubscription.SendOrder<\/a>&nbsp;method to route orders if you want the&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.TradeSubscription.html\">TradeSubscription<\/a>&nbsp;instance to include them.<\/p>\n","protected":false},"author":2,"template":"wp-custom-template-single-doc-tt-net-sdk","meta":{"_acf_changed":true,"footnotes":""},"docs-category":[774],"class_list":["post-8087","doc","type-doc","status-publish","hentry","docs-category-working-with-trade-subscriptions"],"acf":[],"_links":{"self":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc\/8087","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\/8087\/revisions"}],"wp:attachment":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/media?parent=8087"}],"wp:term":[{"taxonomy":"docs-category","embeddable":true,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/docs-category?post=8087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}