> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.dataglade.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.dataglade.com/_mcp/server.

# Get stock prices

> Get historical price intervals for a stock by calling the `equity/{ticker}/prices` endpoint.

### Get the latest available quote

Get the latest quote for an equity by calling the `equity/{ticker}/quote` endpoint. Replace `{ticker}` with the stock symbol you want to get the quote for.

**`curl`**

```bash title="curl"
curl -X GET "https://api.dataglade.com/equity/AAPL/quote" -H "Authorization : Bearer <YOUR_API_KEY>"
```

**`Python`**

```python title="Python"
import requests

url = "https://api.dataglade.com/equity/AAPL/quote"

response = requests.get(url, headers={
    "Authorization": "Bearer <YOUR_API_KEY>"
})

print(response.json())
```

Make sure to pass your API key.

**`Response`**

```json title="Response"
{
  "data": [
    {
      "symbol": "AAPL",
      "name": "Apple Inc.",
      "price": 235.86,
      "percentChange": -0.2622,
      "change": -0.62,
      "dayLow": 232.61,
      "dayHigh": 236.19,
      "yearHigh": 237.49,
      "yearLow": 164.08,
      "marketCap": 3586039026000,
      "priceAvg50": 225.9344,
      "priceAvg200": 200.1021,
      "volume": 34958938,
      "avgVolume": 51003768,
      "open": 233.885,
      "lastClose": 236.48,
      "eps": 6.57,
      "pe": 35.9,
      "shares": 15204100000,
      "timestamp": 1729627201
    }
  ],
  "message": "message",
  "info": "info"
}
```

### Historical prices (charting)

You can get historical price intervals for a stock by calling the `equity/{ticker}/prices` endpoint. Replace `{ticker}` with the stock symbol you want to get the prices for.

Historical prices include day trading ranges - open, high, low, close - as well as volume (OHLCV). This makes them idea for charting, including for drawing candlestick charts.

**`curl`**

```bash title="curl"
curl -X GET "https://api.dataglade.com/equity/AAPL/quote" -H "Authorization : Bearer <YOUR_API_KEY>"
```

**`Python`**

```python title="Python"
import requests

url = "https://api.dataglade.com/equity/AAPL/quote"

response = requests.get(url, headers={
    "Authorization": "Bearer <YOUR_API_KEY>"
})

print(response.json())
```

Make sure to pass your API key.

**`Response`**

```json title="Response"
{
  "data": [
    {
      "symbol": "AAPL",
      "name": "Apple Inc.",
      "price": 235.86,
      "percentChange": -0.2622,
      "change": -0.62,
      "dayLow": 232.61,
      "dayHigh": 236.19,
      "yearHigh": 237.49,
      "yearLow": 164.08,
      "marketCap": 3586039026000,
      "priceAvg50": 225.9344,
      "priceAvg200": 200.1021,
      "volume": 34958938,
      "avgVolume": 51003768,
      "open": 233.885,
      "lastClose": 236.48,
      "eps": 6.57,
      "pe": 35.9,
      "shares": 15204100000,
      "timestamp": 1729627201
    }
  ],
  "message": "message",
  "info": "info"
}
```