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

# Market (BQEN)

> Price and volume candles for a trading pair on one exchange: open, high, low, close and volume, in USD and in the raw quote currency. Each series is one market, keyed by its market id.

|                  |                                                                                                                 |
| ---------------- | --------------------------------------------------------------------------------------------------------------- |
| Access           | Market\_data\_unified                                                                                           |
| Timeseries model | `bqen`: intervals `5m`, `1h`, `1d`, `1w`, series key `id` (Market ID), series must be named (up to 20 per call) |

## Endpoints

<CardGroup cols={2}>
  <Card title="Batch Get Market timeseries" icon="arrow-right" href="/api-reference/data-api/markets/timeseries-bqen">
    Up to 20 series in one request, named by Market ID in `series`.
  </Card>

  <Card title="Get Market timeseries" icon="arrow-right" href="/api-reference/data-api/markets/timeseries-bqen-by-id">
    One series over a time window, keyed by its Market ID.
  </Card>
</CardGroup>

## Metrics

10 metrics. Use the `Field` value in `selections`; every point starts with the timestamp and continues in this order.

| Field             | Name            | Type    | Unit | Description                       |
| ----------------- | --------------- | ------- | ---- | --------------------------------- |
| `open-price`      | Open Price      | float64 | usd  | USD price at the candle open.     |
| `open-price-raw`  | Open Price Raw  | float64 | usd  | Raw price at the candle open.     |
| `high-price`      | High Price      | float64 | usd  | High USD price during the candle. |
| `high-price-raw`  | High Price Raw  | float64 | usd  | Raw high price during the candle. |
| `low-price`       | Low Price       | float64 | usd  | Low USD price during the candle.  |
| `low-price-raw`   | Low Price Raw   | float64 | usd  | Raw low price during the candle.  |
| `close-price`     | Close Price     | float64 | usd  | USD price at the candle close.    |
| `close-price-raw` | Close Price Raw | float64 | usd  | Raw price at the candle close.    |
| `volume`          | Volume          | float64 | usd  | Volume traded during candle.      |
| `volume-raw`      | Volume Raw      | float64 | usd  | Raw volume traded during candle.  |

## Example

```bash curl theme={null}
curl "https://api.blockworks.com/query/timeseries/bqen/1d/100-140-110?timeframe=7d&selections=close-price,volume" \
  -H "X-Blockworks-API-Key: $BLOCKWORKS_API_KEY"
```

See [Get Market timeseries](/api-reference/data-api/markets/timeseries-bqen-by-id) for the response and the errors.
