How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

TD Ameritrade Accounts and Trading API

The Accounts and Trading API from TD Ameritrade — 7 operation(s) for accounts and trading.

TD Ameritrade Accounts and Trading API is one of 15 APIs that TD Ameritrade publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Accounts and Trading. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and authentication docs.

This API exposes 13 operations across 7 paths, and defines 32 schemas. It is described by OpenAPI 3.2.0, at version 3.0.1.

Requests are made against 2 base URLs: https://api.tdameritrade.com/v2, http://api.tdameritrade.com/v2.

13 operations 7 paths 32 schemas 2 DELETE7 GET2 POST2 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
3.0.1
Base URL
https://api.tdameritrade.com/v1
Authentication
API Key
Terms of Service
Resource Areas
1

Authentication & Security 1

TD Ameritrade Accounts and Trading API declares 1 security scheme for authenticating requests. An API key is passed in the header as Authorization (Bearer).

Paths & Operations 13

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

Accounts and Trading 13
DELETE
/accounts/{accountId}/orders/{orderId}
Cancel Order
cancelOrder 2 params → 400401403404500
PUT
/accounts/{accountId}/orders/{orderId}
Replace Order
replaceOrder 2 params body → 400401403404500
GET
/accounts/{accountId}/orders/{orderId}
Get Order
getOrder 2 params → 200400401403500
GET
/accounts/{accountId}/orders
Get Orders By Path
getOrdersByPath 5 params → 200400401403500
POST
/accounts/{accountId}/orders
Place Order
placeOrder 1 param body → 200400401403500
GET
/orders
Get Orders By Query
getOrdersByQuery 5 params → 400401403500
GET
/accounts/{accountId}/savedorders
Get Saved Orders by Path
getSavedOrdersByPath 1 param → 200400401403500
POST
/accounts/{accountId}/savedorders
Create Saved Order
saveOrder 2 params body → 400401403500
DELETE
/accounts/{accountId}/savedorders/{savedOrderId}
Delete Saved Order
deleteSavedOrder 2 params → 400401403500
GET
/accounts/{accountId}/savedorders/{savedOrderId}
Get Saved Order
getSavedOrder 2 params → 200400401403500
PUT
/accounts/{accountId}/savedorders/{savedOrderId}
Replace Saved Order
replaceSavedOrder 2 params body → 400401403404500
GET
/accounts/{accountId}
Get Account
getAccount 1 param → 200400401403500
GET
/accounts
Get Accounts
getAccounts → 200207400401403500

Schemas 32

The contract defines 32 schemas that model the data the API accepts and returns. The most detailed are SavedOrder (37 properties), Order (36 properties), CashAccount (10 properties), MarginAccount (10 properties). Each schema is shown below with its type and property counts.

Session
string
AccountType
object
SavedOrder
object
37 properties
InstrumentType
object
PriceLinkType
string
MarginAccount
object
10 properties
OrderStatus
string
CashEquivalent
object
5 properties
Order
object
36 properties
OrderStrategyType
string
PositionEffect
string
Instruction
string
QuantityType
string
Duration
string
ComplexOrderStrategyType
string
CashAccount
object
10 properties
StopType
string
PutOrCall
string
DestinationExchange
string
Execution
object
5 properties
Equity
object
4 properties
OrderType
string
AssetType
string
SpecialInstruction
string
TaxLotMethod
string
Account
object
1 property
FixedIncome
object
7 properties
MutualFund
object
5 properties
CurrencyType
string
Option
object
9 properties
OptionType
string
PriceLinkBasis
string

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

td-ameritrade-accounts-and-trading-api-openapi.yml Raw ↑

Other APIs TD Ameritrade publishes across the network.

TD Ameritrade Market Data API
TD Ameritrade Instruments API
TD Ameritrade Authentication API
TD Ameritrade Streaming Market Data API
TD Ameritrade Authentication API
TD Ameritrade Instruments API
TD Ameritrade Market Hours API
TD Ameritrade Movers API
TD Ameritrade Option Chains API
TD Ameritrade Price History API
TD Ameritrade Quotes API
TD Ameritrade Transaction History API
Where this information came from

This is an independent, third-party profile of TD Ameritrade Accounts and Trading API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.