{"id":7023,"date":"2025-08-28T22:11:58","date_gmt":"2025-08-29T03:11:58","guid":{"rendered":"https:\/\/librarytestdev.wpenginepowered.com\/?post_type=doc&#038;p=7023"},"modified":"2026-06-29T13:31:19","modified_gmt":"2026-06-29T18:31:19","slug":"modifying-orders","status":"publish","type":"doc","link":"https:\/\/library-staging.tradingtechnologies.com\/apis\/tt-core-sdk\/working-with-orders-and-fills\/modifying-orders\/","title":{"rendered":"Modifying Orders"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Once an order has been submitted, you can subsequently change it by:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Incrementing the requestId variable in the OrderProfile instance.<\/li>\n\n\n\n<li>Updating any order parameters in the OrderProfile instance.<\/li>\n\n\n\n<li>Calling the SendChange() method of the OrderPtr instance passing the updated OrderProfile instance.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The following code snippet demonstrates an example of this process.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n\nvoid ChangeOrder(double newPrice)\n{\n          profile_.request_id++;\n          profile_.price = newPrice;\n          order_-&gt;SendChange(profile_);\n}\n\n\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Once an order has been submitted, you can subsequently change it by:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Incrementing the requestId variable in the OrderProfile instance.<\/li>\n\n\n\n<li>Calling the SendCancel() method of the OrderPtr instance passing the updated OrderProfile instance.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The following code snippet demonstrates an example of this process.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n\nvoid CancelOrder()\n{\n        profile_.request_id++;\n        order_-&gt;SendCancel(profile_);\n}\n\n <\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p class=\"wp-block-paragraph\">Once an order has been submitted, you can subsequently change it by:<\/p>\n<p class=\"wp-block-paragraph\">The following code snippet demonstrates an example of this process.<\/p>\n<p class=\"wp-block-paragraph\">Once an order has been submitted, you can subsequently change it by:<\/p>\n<p class=\"wp-block-paragraph\">The following code snippet demonstrates an example of this process.<\/p>\n","protected":false},"author":2,"template":"wp-custom-template-single-doc-tt-core-sdk","meta":{"_acf_changed":false,"footnotes":""},"docs-category":[448],"class_list":["post-7023","doc","type-doc","status-publish","hentry","docs-category-working-with-orders-and-fills"],"acf":[],"_links":{"self":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc\/7023","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":2,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc\/7023\/revisions"}],"predecessor-version":[{"id":59689,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc\/7023\/revisions\/59689"}],"wp:attachment":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/media?parent=7023"}],"wp:term":[{"taxonomy":"docs-category","embeddable":true,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/docs-category?post=7023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}