Get Orders By Query

GET

Get Orders By Query

All orders for a specific account or, if account ID isn't specified, orders will be returned for all linked accounts

Resource URL

https://api.tdameritrade.com/v1 /orders

Query Parameters

Name Values Description
accountId

Account number.

maxResults

The maximum number of orders to retrieve.

fromEnteredTime

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:sszDate must be within 60 days from today's date. 'toEnteredTime' must also be set.

toEnteredTime

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.

status

Specifies that only orders of this status should be returned.

Header Parameters

Name Values Description
Authorization

Supply an access token to make an authenticated request. The format is Bearer <access token>.

Try it out !!

HTTP Basic

OAuth 2.0

API Key

RESET

Make a request and see the response.

Make a request and see the response.

Make a request and see the response.

Resource Summary

Security

Category

Orders

Response Summary

Resource Error Codes

HTTP Code

Description

400

An error message indicating the validation problem with the request.

401

An error message indicating the caller must pass a valid AuthToken in the HTTP authorization request header.

500

An error message indicating there was an unexpected server error.

403

An error message indicating the caller is forbidden from accessing this page.

Working...