{ "opencollection": "1.0.0", "info": { "name": "TD Ameritrade and Trading Accounts Orders API", "version": "1" }, "request": { "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://auth.tdameritrade.com/auth", "accessTokenUrl": "https://api.tdameritrade.com/v1/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Orders", "type": "folder" }, "items": [ { "info": { "name": "Get Orders By Account", "type": "http" }, "http": { "method": "GET", "url": "https://api.tdameritrade.com/v1/accounts/:accountId/orders", "params": [ { "name": "accountId", "value": "", "type": "path", "description": "Unique account identifier" }, { "name": "maxResults", "value": "", "type": "query", "description": "Maximum number of orders to return" }, { "name": "fromEnteredTime", "value": "", "type": "query", "description": "Start date/time filter (yyyy-MM-dd format)" }, { "name": "toEnteredTime", "value": "", "type": "query", "description": "End date/time filter (yyyy-MM-dd format)" }, { "name": "status", "value": "", "type": "query", "description": "Filter by order status" } ] }, "docs": "Retrieve all orders for a specific account with optional filtering by date range and status." }, { "info": { "name": "Place Order", "type": "http" }, "http": { "method": "POST", "url": "https://api.tdameritrade.com/v1/accounts/:accountId/orders", "params": [ { "name": "accountId", "value": "", "type": "path", "description": "Unique account identifier" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Place a new order for a specific account." }, { "info": { "name": "Get Order", "type": "http" }, "http": { "method": "GET", "url": "https://api.tdameritrade.com/v1/accounts/:accountId/orders/:orderId", "params": [ { "name": "accountId", "value": "", "type": "path", "description": "Unique account identifier" }, { "name": "orderId", "value": "", "type": "path", "description": "Unique order identifier" } ] }, "docs": "Retrieve a specific order by its order ID." }, { "info": { "name": "Replace Order", "type": "http" }, "http": { "method": "PUT", "url": "https://api.tdameritrade.com/v1/accounts/:accountId/orders/:orderId", "params": [ { "name": "accountId", "value": "", "type": "path", "description": "Unique account identifier" }, { "name": "orderId", "value": "", "type": "path", "description": "Unique order identifier" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Replace an existing order with a new order specification." }, { "info": { "name": "Cancel Order", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.tdameritrade.com/v1/accounts/:accountId/orders/:orderId", "params": [ { "name": "accountId", "value": "", "type": "path", "description": "Unique account identifier" }, { "name": "orderId", "value": "", "type": "path", "description": "Unique order identifier" } ] }, "docs": "Cancel a specific pending order." }, { "info": { "name": "Get All Orders", "type": "http" }, "http": { "method": "GET", "url": "https://api.tdameritrade.com/v1/orders", "params": [ { "name": "maxResults", "value": "", "type": "query", "description": "Maximum number of orders to return" }, { "name": "fromEnteredTime", "value": "", "type": "query", "description": "Start date filter (yyyy-MM-dd)" }, { "name": "toEnteredTime", "value": "", "type": "query", "description": "End date filter (yyyy-MM-dd)" }, { "name": "status", "value": "", "type": "query", "description": "Filter by order status" } ] }, "docs": "Retrieve orders for all linked accounts with optional filtering." } ] } ], "bundled": true }