{
  "opencollection": "1.0.0",
  "info": {
    "name": "TD Ameritrade Accounts and Trading API",
    "version": "3.0.1"
  },
  "items": [
    {
      "info": {
        "name": "Accounts and Trading",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Order",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.tdameritrade.com/v2/accounts/:accountId/orders/:orderId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "Account Number"
              },
              {
                "name": "orderId",
                "value": "",
                "type": "path",
                "description": "Order Number"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Get a specific order for a specific account."
        },
        {
          "info": {
            "name": "Replace Order",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.tdameritrade.com/v2/accounts/:accountId/orders/:orderId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "Account Number"
              },
              {
                "name": "orderId",
                "value": "",
                "type": "path",
                "description": "Order Number"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Replace an existing order for an account. The existing order will be replaced by the new order. Once replaced, the old order will be canceled and a new order will be created."
        },
        {
          "info": {
            "name": "Cancel Order",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.tdameritrade.com/v2/accounts/:accountId/orders/:orderId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "Account Number"
              },
              {
                "name": "orderId",
                "value": "",
                "type": "path",
                "description": "Order Number"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Cancel a specific order for a specific account. "
        },
        {
          "info": {
            "name": "Get Orders By Path",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.tdameritrade.com/v2/accounts/:accountId/orders",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "Account Number"
              },
              {
                "name": "maxResults",
                "value": "",
                "type": "query",
                "description": "The maximum number of orders to retrieve."
              },
              {
                "name": "fromEnteredTime",
                "value": "",
                "type": "query",
                "description": "Specifies that no orders entered before this time should be returned. Valid ISO-8601 formats are  yyyy-MM-dd and yyyy-MM-dd'T'HH:mm:ssz Date must be within 60 days from today's date. 'toEnteredTime' must also be set."
              },
              {
                "name": "toEnteredTime",
                "value": "",
                "type": "query",
                "description": "Specifies that no orders entered after this time should be returned.Valid ISO-8601 formats are :yyyy-MM-dd and yyyy-MM-dd'T'HH:mm:ssz. 'fromEnteredTime' must also be set."
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "The maximum number of orders to retrieve."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Orders for a specific account."
        },
        {
          "info": {
            "name": "Place Order",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.tdameritrade.com/v2/accounts/:accountId/orders",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "Account Number"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Place an order for a specific account."
        },
        {
          "info": {
            "name": "Get Orders By Query",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.tdameritrade.com/v2/orders",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "query",
                "description": "Account Number"
              },
              {
                "name": "maxResults",
                "value": "",
                "type": "query",
                "description": "The maximum number of orders to retrieve."
              },
              {
                "name": "fromEnteredTime",
                "value": "",
                "type": "query",
                "description": "Specifies that no orders entered before this time should be returned. Valid ISO-8601 formats are  yyyy-MM-dd and yyyy-MM-dd'T'HH:mm:ssz Date must be within 60 days from today's date. 'toEnteredTime' must also be set."
              },
              {
                "name": "toEnteredTime",
                "value": "",
                "type": "query",
                "description": "Specifies that no orders entered after this time should be returned.Valid ISO-8601 formats are :yyyy-MM-dd and yyyy-MM-dd'T'HH:mm:ssz. 'fromEnteredTime' must also be set."
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "The maximum number of orders to retrieve."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "All orders for a specific account or, if account ID isn't specified, orders will be returned for all linked accounts"
        },
        {
          "info": {
            "name": "Get Saved Orders by Path",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.tdameritrade.com/v2/accounts/:accountId/savedorders",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "Account Number"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Saved orders for a specific account."
        },
        {
          "info": {
            "name": "Create Saved Order",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.tdameritrade.com/v2/accounts/:accountId/savedorders",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "Account Number"
              },
              {
                "name": "orderId",
                "value": "",
                "type": "path",
                "description": "Order Number"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Save an order for a specific account. "
        },
        {
          "info": {
            "name": "Get Saved Order",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.tdameritrade.com/v2/accounts/:accountId/savedorders/:savedOrderId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "Account Number"
              },
              {
                "name": "savedOrderId",
                "value": "",
                "type": "path",
                "description": "Order Number"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Specific saved order by its ID, for a specific account."
        },
        {
          "info": {
            "name": "Replace Saved Order",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.tdameritrade.com/v2/accounts/:accountId/savedorders/:savedOrderId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "Account Number"
              },
              {
                "name": "savedOrderId",
                "value": "",
                "type": "path",
                "description": "Order Number"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Replace an existing saved order for an account. The existing saved order will be replaced by the new order."
        },
        {
          "info": {
            "name": "Delete Saved Order",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.tdameritrade.com/v2/accounts/:accountId/savedorders/:savedOrderId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "Account Number"
              },
              {
                "name": "savedOrderId",
                "value": "",
                "type": "path",
                "description": "Order Number"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Delete a specific saved order for a specific account."
        },
        {
          "info": {
            "name": "Get Account",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.tdameritrade.com/v2/accounts/:accountId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "Account Number"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Account balances, positions, and orders for a specific account."
        },
        {
          "info": {
            "name": "Get Accounts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.tdameritrade.com/v2/accounts",
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Account balances, positions, and orders for a specific account."
        }
      ]
    }
  ],
  "bundled": true
}