{"id":8082,"date":"2025-09-04T23:21:48","date_gmt":"2025-09-05T04:21:48","guid":{"rendered":"https:\/\/librarytestdev.wpenginepowered.com\/?post_type=doc&#038;p=8082"},"modified":"2025-09-04T23:23:50","modified_gmt":"2025-09-05T04:23:50","slug":"cleaning-up","status":"publish","type":"doc","link":"https:\/\/library-staging.tradingtechnologies.com\/apis\/tt-net-sdk\/working-with-orders-and-fills-tt-net-sdk\/cleaning-up\/","title":{"rendered":"Cleaning up"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">When you shut down your application, you should detach all event handlers and call the&nbsp;<strong>Dispose<\/strong>&nbsp;method for each instance of the&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.TradeSubscription.html\">TradeSubscription<\/a>&nbsp;and&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.FillsSubscription.html\">FillsSubscription<\/a>&nbsp;classes. For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>m_ts.OrderAdded -= m_ts_OrderAdded;\nm_ts.OrderDeleted -= m_ts_OrderDeleted;\nm_ts.OrderFilled -= m_ts_OrderFilled;\nm_ts.OrderRejected -= m_ts_OrderRejected;\nm_ts.OrderUpdated -= m_ts_OrderUpdated;\nm_ts.OrderUpdated -= m_ts_OrderStatusUnknown;\nm_ts.OrderUpdated -= m_ts_OrderTimeout;\n\nm_ts.Dispose();\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>m_fs.FillAdded -= m_fs_FillAdded;\nm_fs.FillBookDownload -= m_fs_FillBookDownload;\nm_fs.FillListEnd -= m_fs_FillListEnd;\nm_fs.FillListStart -= m_fs_FillListStart;\n\nm_fs.Dispose();<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>When you shut down your application, you should detach all event handlers and call the&nbsp;Dispose&nbsp;metho [&hellip;]<\/p>\n","protected":false},"author":2,"template":"wp-custom-template-single-doc-tt-net-sdk","meta":{"_acf_changed":true,"footnotes":""},"docs-category":[773],"class_list":["post-8082","doc","type-doc","status-publish","hentry","docs-category-working-with-orders-and-fills-tt-net-sdk"],"acf":[],"_links":{"self":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc\/8082","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\/8082\/revisions"}],"wp:attachment":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/media?parent=8082"}],"wp:term":[{"taxonomy":"docs-category","embeddable":true,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/docs-category?post=8082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}