Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

TD Ameritrade Holding Orders API

Order placement, management, and retrieval

TD Ameritrade Holding Orders API is one of 9 APIs that TD Ameritrade Holding publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Orders. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 6 operations across 3 paths, and defines 5 schemas. It is described by OpenAPI 3.0.3, at version 1.

Requests are made against a single base URL, https://api.tdameritrade.com/v1.

6 operations 3 paths 5 schemas 1 DELETE3 GET1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
1
Base URL
https://api.tdameritrade.com/v1
Authentication
OAuth 2.0
Resource Areas
1

Authentication & Security 1

TD Ameritrade Holding Orders API declares 1 security scheme for authenticating requests. It supports OAuth 2.0 (OAuth2) using the authorizationCode flow, exposing 3 scopes. By default, every request must be authenticated.

  • OAuth2 — TD Ameritrade uses OAuth 2.0 token-based authentication

Paths & Operations 6

Across 3 paths, the API surfaces 6 operations — 1 DELETE, 3 GET, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Orders 6

Order placement, management, and retrieval

GET
/accounts/{accountId}/orders
Get Orders By Account
getOrdersByPath 5 params → 200401
POST
/accounts/{accountId}/orders
Place Order
placeOrder 1 param body → 200400401
GET
/accounts/{accountId}/orders/{orderId}
Get Order
getOrder 2 params → 200401404
PUT
/accounts/{accountId}/orders/{orderId}
Replace Order
replaceOrder 2 params body → 200400401
DELETE
/accounts/{accountId}/orders/{orderId}
Cancel Order
cancelOrder 2 params → 200401404
GET
/orders
Get All Orders
getOrdersByQuery 4 params → 200401

Schemas 5

The contract defines 5 schemas that model the data the API accepts and returns. The most detailed are Order (20 properties), OrderLeg (6 properties), OrderRequest (6 properties), Instrument (5 properties). Each schema is shown below with its type and property counts.

Order
object
A trade order
20 properties
Error
object
2 properties
OrderRequest
object
Order placement request
6 properties 5 required
Instrument
object
A financial instrument (stock, ETF, option, etc.)
5 properties
OrderLeg
object
6 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

td-ameritrade-holding-orders-api-openapi.yml Raw ↑

Other APIs TD Ameritrade Holding publishes across the network.

TD Ameritrade Holding Accounts API
TD Ameritrade Holding Instruments API
TD Ameritrade Holding Market Data API
TD Ameritrade Holding Options API
TD Ameritrade Holding Saved Orders API
TD Ameritrade Holding Transactions API
TD Ameritrade Holding User Management API
TD Ameritrade Holding Watchlists API