---
title: "Latest aggregated rates"
method: GET
path: "/api/v1/rates/latest"
tags: ["Rates"]
---

# Latest aggregated rates

`GET /api/v1/rates/latest`

## Request

- Base URL: `https://pricefeed.online`
- URL: `https://pricefeed.online/api/v1/rates/latest`
- Auth: one of:
  - none
  - API key in header `X-API-Key`

Without parameters returns every active pair. With `base` (+ optional `quotes`) returns that base against the requested quotes. With `source` returns the price from a single exchange instead of the median.

## Query parameters

- `base` string
- `quotes` string
- `source` string

## Response `200`

OK

- union
  - LatestByBase
    - `success` boolean
    - `base` string
    - `rates` object
    - `meta` object
      - `source` string
      - `source_count` integer
      - `stale` boolean
      - `updated_at` string, date-time
  - LatestAllPairs
    - `success` boolean
    - `rates` object[]
      - `pair` string
      - `base` string
      - `quote` string
      - `price` number
      - `spread_percent` number, nullable
      - `change_24h` number, nullable
      - `source_count` integer
      - `stale` boolean
      - `updated_at` string, date-time
  - LatestBySource
    - `success` boolean
    - `base` string
    - `quote` string
    - `source` string
    - `price` number
    - `bid` number, nullable
    - `ask` number, nullable
    - `change_24h` number, nullable
    - `volume_24h` number, nullable
    - `deviation_percent` number, nullable
    - `is_outlier` boolean
    - `age_seconds` integer, nullable
    - `updated_at` string, date-time, nullable

## Other responses

- `404`: Error response
- `429`: Error response

---

[API](https://skmtc.dev/pricefeed/apis/pricefeed-api.md) · [All operations](https://skmtc.dev/pricefeed/apis/pricefeed-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pricefeed/apis/pricefeed-api/revisions/b1429d14be52?raw)
