List stock quotes
GET https://data.partnr.ai/v2/stocks/[ticker]/quotes
Return a list of quotes from the ticker specified by the [ticker]
identifier.
Quotes are updated daily and have a daily frequence. The prices are not adjusted.
Request Parameters
Parameter | Location | Description | Required |
---|---|---|---|
[ticker] | URL | Ticker of the quotes to be returned. Example: PETR3 | Required |
start_date | Query parameter | Date to start time-series. Format: YYYY-MM-DD | Optional |
end_date | Query parameter | Date to end time-series. Format: YYYY-MM-DD | Optional |
info
Note that if no start_date is specified, it will default to the current date last year. If no end_date is selected, end_date will be considered today.
Response
Code | Description |
---|---|
200 | Returns a list of stock quotes. |
400 | Missing or malformed required parameters. |
401 | Unauthorized. |
404 | No data or stock were not found. |
Example
[
{
"date": "2022-09-20T00:00:00.000Z",
"ticker": "PETR4",
"average_price": 31.23,
"open_price": 31.42,
"volume": 2117532314,
"lowest_price": 30.84,
"close_price": 31.09,
"currency": "BRL",
"highest_price": 31.6
},
{
"date": "2022-09-19T00:00:00.000Z",
"ticker": "PETR4",
"close_price": 31.27,
"lowest_price": 29.88,
"open_price": 30.5,
"volume": 2027447827,
"average_price": 30.92,
"currency": "BRL",
"highest_price": 31.38
},
{
"date": "2022-09-16T00:00:00.000Z",
"ticker": "PETR4",
"close_price": 30.78,
"volume": 3290924994,
"currency": "BRL",
"highest_price": 30.95,
"average_price": 30.66,
"open_price": 30.86,
"lowest_price": 30.34
},
{
"date": "2022-09-15T00:00:00.000Z",
"ticker": "PETR4",
"average_price": 30.99,
"open_price": 30.92,
"lowest_price": 30.8,
"volume": 1412121928,
"close_price": 31.06,
"currency": "BRL",
"highest_price": 31.23
}
]