---
title: "Reads the latest quotes for symbols."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.sherpo.io/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Sherpo merchant API › portfolio

`POST /v1/stores/{store}/symbols/quotes/query`

## Authentication

- `bearer`, http, header `Authorization`, scopes: `portfolio:read`

## Path parameters

- `store` (`quoteSymbols.path.store`; string, required) — The store's id.

## Request body

_Required._

- `symbols` (`quoteSymbols.symbols`; array<object>, required)
  - `symbol` (`quoteSymbols.symbols.symbol`; string, required)
    - minLength 1; maxLength 32; pattern `^[A-Za-z0-9.^=_&-]{1,32}$`
  - `symbol_type` (`quoteSymbols.symbols.symbol_type`; string, required)
    - one of `"stock"`, `"crypto"`

## Example request

```json
{
  "symbols": [
    {
      "symbol": "string",
      "symbol_type": "stock"
    }
  ]
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.sherpo.io/merchant/v1/stores/<store>/symbols/quotes/query' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "symbols": [
    {
      "symbol": "string",
      "symbol_type": "stock"
    }
  ]
}
'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/merchant/v1/stores/<store>/symbols/quotes/query';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({symbols: [{symbol: 'string', symbol_type: 'stock'}]})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.sherpo.io/merchant/v1/stores/<store>/symbols/quotes/query"

payload = { "symbols": [
        {
            "symbol": "string",
            "symbol_type": "stock"
        }
    ] }
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Reads the latest quotes for symbols.

#### Example

```json
{
  "items": [
    {
      "symbol": "string",
      "symbol_type": "string",
      "price": 0,
      "currency": "string",
      "exponent": 0,
      "change_percent": 0,
      "as_of": "string",
      "stale": true
    }
  ],
  "unpriced": [
    {
      "symbol": "string",
      "symbol_type": "string"
    }
  ],
  "failed_types": [
    "string"
  ]
}
```

- `items` (`quoteSymbols.response.200.items`; array<object>, required)
  - `symbol` (`quoteSymbols.response.200.items.symbol`; string, required)
  - `symbol_type` (`quoteSymbols.response.200.items.symbol_type`; string, required)
  - `price` (`quoteSymbols.response.200.items.price`; number, required) — Per share or coin, in the currency's minor unit.
  - `currency` (`quoteSymbols.response.200.items.currency`; string, required)
  - `exponent` (`quoteSymbols.response.200.items.exponent`; number, required)
  - `change_percent` (`quoteSymbols.response.200.items.change_percent`; any of, required) — The day's move in percent, null when there is no prior close or the quote is stale.
    - any of: `number`, `null`
  - `as_of` (`quoteSymbols.response.200.items.as_of`; any of, required)
    - any of: `string`, `null`
  - `stale` (`quoteSymbols.response.200.items.stale`; boolean, required) — Too old to show as live.
- `unpriced` (`quoteSymbols.response.200.unpriced`; array<object>, required)
  - `symbol` (`quoteSymbols.response.200.unpriced.symbol`; string, required)
  - `symbol_type` (`quoteSymbols.response.200.unpriced.symbol_type`; string, required)
- `failed_types` (`quoteSymbols.response.200.failed_types`; array<string>, required) — The types whose read failed, their symbols left unpriced, so a caller can ask again.

### default

A problem; see https://api.sherpo.io/merchant/docs/errors.

#### Example

```json
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "context": {},
  "reached_core": true,
  "core_answer": "string"
}
```

- `type` (`quoteSymbols.response.default.type`; string, required)
  - format `uri`
- `title` (`quoteSymbols.response.default.title`; string, required)
- `status` (`quoteSymbols.response.default.status`; integer, required)
- `detail` (`quoteSymbols.response.default.detail`; string, required)
- `code` (`quoteSymbols.response.default.code`; string, optional)
- `context` (`quoteSymbols.response.default.context`; object, optional)
- `reached_core` (`quoteSymbols.response.default.reached_core`; boolean, optional)
- `core_answer` (`quoteSymbols.response.default.core_answer`; string, optional)


Source: https://docs.sherpo.io/merchant-api/reference/quote-symbols/index.md
