Skip to main content
GET
Python (SDK)

Authorizations

Authorization
string
header
required

OAuth2 Bearer token: obtain an access token from the token endpoint and send it in the Authorization header.

Scopes

market:supplemental

News, company profiles, financials, filings, ETF data, technical analysis

Query Parameters

ticker
string
required

Stock ticker symbol, such as AAPL. Use the exact ticker for the company you want to research.

Example:

"AAPL"

multiplier
integer
required

Size of each aggregate time window. Enter 1 or greater, such as 1 day or 5 minutes depending on timespan.

Required range: x >= 1
Example:

1

timespan
enum<string>
required

Time span unit for each aggregate bar, such as minute, hour, day, week, month, quarter, or year when supported.

Available options:
second,
minute,
hour,
day,
week,
month,
quarter,
year
Example:

"day"

from
string
required

Start date in YYYY-MM-DD format. Enter the first date to include in the research window. or timestamp

Example:

"2024-01-01"

to
string
required

End date in YYYY-MM-DD format. Enter the last date to include in the research window. or timestamp

Example:

"2024-01-31"

adjusted
boolean

Whether to adjust historical prices for stock splits. Use true for normalized charting and false for raw market data.

Example:

true

sort
enum<string>

Sort direction for aggregate bars. Use asc for oldest first or desc for newest first. Sort direction for results. Use ascending for oldest or smallest first, descending for newest or largest first.

Available options:
asc,
desc
Example:

"asc"

limit
integer

Maximum number of results to return. Use smaller values for UI pages and larger values for exports within API limits.

Required range: 1 <= x <= 50000
Example:

1000

next
string

Pagination cursor included in the returned nextUrl. Follow the entire nextUrl to fetch the next page; it also contains updated from/to bounds required to advance through the results.

Response

Successful response

Aggregate OHLC bars for a stock over a requested range and timespan, as returned by the upstream data provider.

adjusted
boolean

Whether or not the results are adjusted for splits

nextUrl
string

URL for the next page of results, including the continuation cursor and updated time bounds. Follow this URL unchanged. Omitted when there are no more pages.

queryCount
integer

Number of results returned

requestId
string

Unique request ID

results
object[]

Array of aggregate bars

resultsCount
integer

Total number of results

status
string

Status string from the upstream data provider — typically OK for a successful response. Treat any other value as an error indicator alongside the HTTP status code.

ticker
string

Stock ticker symbol, such as AAPL. Use the exact ticker for the company you want to research.