{"__v":1,"_id":"5694450e46b943190027fe45","category":{"__v":8,"_id":"56940bc2d8c04d1700e5adb6","pages":["56940ce773f48f0d0075c9df","56941dd246b943190027fdf8","5694325e5f1c951900644d0a","569443761005590d0062cacc","5694450e46b943190027fe45","569511bcfe18811700c9bf59","56951873dcaf0d1700cb86a3","56951a76caa32519009c40f4"],"project":"563cc7119799fb0d00047685","version":"563cc7119799fb0d00047688","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-01-11T20:08:34.666Z","from_sync":false,"order":4,"slug":"orders","title":"Orders"},"editedParams":true,"editedParams2":true,"parentDoc":null,"project":"563cc7119799fb0d00047685","user":"563cc6fa8894d20d00014ea3","version":{"__v":16,"_id":"563cc7119799fb0d00047688","project":"563cc7119799fb0d00047685","createdAt":"2015-11-06T15:28:17.683Z","releaseDate":"2015-11-06T15:28:17.683Z","categories":["563cc7129799fb0d00047689","566f37f37ffa002300c3cd5b","56914e9bd47b020d002225ac","5692b19ffe72e00d00e4f0a8","56940bc2d8c04d1700e5adb6","56940bc83e9d080d00f064f0","56951b2dfcb1032d0089df7a","569522aecaa32519009c410c","569523ce562335190016da97","569523fddcaf0d1700cb86bf","56980e4a8560a60d00e2c3c3","569921a41693520d002e1305","5699323b7465970d00650b82","569e6cc4fbee990d0072d927","56a2768a0aefae0d00b7fe66","5862e862b8b7fa23009665b7"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Model T","version_clean":"1.0.0","version":"1"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-01-12T00:13:02.240Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"DELETE /v1/orders/DA.1850446e-ce8f-448a-8d41-d1b65f04590c HTTP/1.1\nHost: api.drivewealth.io\nAccept: application/json\nContent-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW\nx-mysolomeo-session-key: 02e57c7d-d071-4c63-b491-1194a9939ea5.2016-01-13T22:34:53.101Z","language":"http"},{"code":"curl -X DELETE -H \"Accept: application/json\" -H \"Content-Type: application/json\" -H \"x-mysolomeo-session-key: 02e57c7d-d071-4c63-b491-1194a9939ea5.2016-01-13T22:34:53.101Z\" 'http://api.drivewealth.io/v1/orders/DA.1850446e-ce8f-448a-8d41-d1b65f04590c'","language":"curl"}]},"method":"delete","results":{"codes":[{"name":"","code":"{\n  \"code\": 0\n}","language":"json","status":200},{"name":"","code":"{\n  \"code\": 400,\n\"Order is not open [orderID=DA.1850446e-ce8f-448a-8d41-d1b65f04590c]\"\n}","language":"json","status":400}]},"settings":"","auth":"required","params":[{"_id":"5694450e46b943190027fe46","ref":"","in":"path","required":true,"desc":"Order ID.","default":"DA.1850446e-ce8f-448a-8d41-d1b65f04590c","type":"string","name":"orderID"}],"url":"/orders/:orderID"},"isReference":true,"order":6,"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Response\"\n}\n[/block]\nFor an existing open order, the response will be an HTTP status code `200`, and the body results only showing `code: 0`.\nIf the order is already cancelled, or does not exist (wrong order ID), the response will be an HTTP status code `400`.\nFor detailed information about a specific order refer to the [Order Status (Market Order)](doc:get_market) or [Account Blotter](doc:account-blotter) APIs.","excerpt":"Cancel an existing resting stop or limit order.","slug":"cancel_order","type":"endpoint","title":"Cancel Order"}

deleteCancel Order

Cancel an existing resting stop or limit order.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

orderID:
required
stringDA.1850446e-ce8f-448a-8d41-d1b65f04590c
Order ID.

Examples


Result Format


Documentation

[block:api-header] { "type": "basic", "title": "Response" } [/block] For an existing open order, the response will be an HTTP status code `200`, and the body results only showing `code: 0`. If the order is already cancelled, or does not exist (wrong order ID), the response will be an HTTP status code `400`. For detailed information about a specific order refer to the [Order Status (Market Order)](doc:get_market) or [Account Blotter](doc:account-blotter) APIs.

User Information

Try It Out

delete
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}