GET
Get Price History
Get price history for a symbol
Resource URL
https://api.tdameritrade.com/v1 /marketdata/{symbol}/pricehistory
Query Parameters
| Name | Values | Description |
|---|---|---|
| apikey |
Pass your OAuth User ID to make an unauthenticated request for delayed data. |
|
| periodType |
The type of period to show. Valid values are |
|
| period |
The number of periods to show. |
|
| frequencyType |
The type of frequency with which a new candle is formed. |
|
| frequency |
The number of the frequencyType to be included in each candle. |
|
| endDate |
End date as milliseconds since epoch. If startDate and endDate are provided, period should not be provided. Default is previous trading day. |
|
| startDate |
Start date as milliseconds since epoch. If startDate and endDate are provided, period should not be provided. |
|
| needExtendedHoursData |
|
Header Parameters
| Name | Values | Description |
|---|---|---|
| Authorization |
Supply an access token to make an authenticated request. The format is |
Resource Summary |
|
|
Security |
|
|
Content Type |
application/json |
|
Category |
Price History |
Response Summary
Resource Error Codes |
||
|
HTTP Code |
Description |
|
|
401 |
Unauthorized |
|
|
403 |
Forbidden |
|
|
404 |
Not Found |
|
Working...