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

# Federal Reserve Bank of New York Markets Data

> US reference rates (SOFR, EFFR, OBFR, TGCR, BGCR), SOMA holdings, repo and reverse repo operations and primary dealer statistics from the New York Fed.

![](https://mintcdn.com/webrouter/JBFYvcRI1PVnd4YX/logo/data-apis/newyorkfed.webp?fit=max\&auto=format\&n=JBFYvcRI1PVnd4YX\&q=85\&s=d70c5a9ec4ae973ccc00e8933e7b7e6b)

[Web Catalog · Finance](https://docs.webrouter.net/data-apis.md?category=finance)

No key needed

Endpoints

10

Auth

None

[Vendor docs](https://markets.newyorkfed.org/static/docs/markets-api.html)

## Notes

* Keyless: no account or API key.
* The response format is part of the path (latest.json, search.csv ...); json is the one to use for agents.
* Dates are yyyy-MM-dd. Search endpoints default startDate to today, so pass a range for history.

## Endpoints

GET

Get the latest reference rates

The latest secured (SOFR, BGCR, TGCR, SOFR averages and index) and unsecured (EFFR, OBFR) rates.

[Open](#newyorkfed-rates-latest)

GET

Search reference rates

Secured and unsecured rates or volumes over a date range.

[Open](#newyorkfed-rates-search)

GET

Search one secured rate

SOFR, BGCR, TGCR or the SOFR averages and index over a date range.

[Open](#newyorkfed-rates-secured-search)

GET

Get the last N of a secured rate

The most recent N publications of SOFR, BGCR, TGCR or the SOFR averages and index.

[Open](#newyorkfed-rates-secured-last)

GET

Search one unsecured rate

EFFR or OBFR rates or volumes over a date range.

[Open](#newyorkfed-rates-unsecured-search)

GET

Get SOMA holdings summary

Totals of the System Open Market Account holdings by security type for each as-of date.

[Open](#newyorkfed-soma-summary)

GET

Get SOMA Treasury holdings on a date

Every Treasury security the SOMA held on one weekly as-of date.

[Open](#newyorkfed-soma-treasury-asof)

GET

Get the latest SOMA as-of date

The most recent date SOMA holdings were published for.

[Open](#newyorkfed-soma-asofdates-latest)

GET

Search repo and reverse repo operations

Results of the Desk's repo and reverse repo operations over a date range.

[Open](#newyorkfed-repo-search)

GET

Get primary dealer survey series

Primary dealer statistics for one or more time series across all series breaks.

[Open](#newyorkfed-primarydealer-timeseries)

### Get the latest reference rates

GET

`/api/rates/all/latest.{format}`

`newyorkfed.rates.latest`

The latest secured (SOFR, BGCR, TGCR, SOFR averages and index) and unsecured (EFFR, OBFR) rates.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`format` required</td><td>string</td><td>path</td><td>Response format. One of `json`, `xml`, `csv`, `xlsx` Example `json`</td></tr>
  </tbody>
</table>

[Vendor docs](https://markets.newyorkfed.org/static/docs/markets-api.html) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-quote), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-ticker-24hr), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-stats-get), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-global-metrics-latest), [Commodity Price API](https://docs.webrouter.net/data-apis/commoditypriceapi.md#commoditypriceapi-rates-latest), [EODHD](https://docs.webrouter.net/data-apis/eodhd.md#eodhd-live-quote)

```python Python theme={null}
router.call_data_api("newyorkfed.rates.latest", {'format': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="newyorkfed.rates.latest", params={"format": "json"})
```

### Search reference rates

GET

`/api/rates/all/search.{format}`

`newyorkfed.rates.search`

Secured and unsecured rates or volumes over a date range.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`format` required</td><td>string</td><td>path</td><td>Response format. One of `json`, `xml`, `csv`, `xlsx` Example `json`</td></tr>

    <tr>
      <td>
        `startDate`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        First date, inclusive, yyyy-MM-dd; defaults to today.
      </td>
    </tr>

    <tr>
      <td>
        `endDate`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Last date, inclusive, yyyy-MM-dd.
      </td>
    </tr>

    <tr><td>`type`</td><td>string</td><td>query</td><td>rate or volume. One of `rate`, `volume`</td></tr>
  </tbody>
</table>

[Vendor docs](https://markets.newyorkfed.org/static/docs/markets-api.html) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-daily), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-observations-series), [Bank of England](https://docs.webrouter.net/data-apis/bankofengland.md#bankofengland-series-csv), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-klines), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-candles-get), [CoinGecko](https://docs.webrouter.net/data-apis/coingecko.md#coingecko-coins-market-chart)

```python Python theme={null}
router.call_data_api("newyorkfed.rates.search", {'format': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="newyorkfed.rates.search", params={"format": "json"})
```

### Search one secured rate

GET

`/api/rates/secured/{ratetype}/search.{format}`

`newyorkfed.rates.secured.search`

SOFR, BGCR, TGCR or the SOFR averages and index over a date range.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`ratetype` required</td><td>string</td><td>path</td><td>sofrai is the SOFR averages and index. One of `all`, `tgcr`, `bgcr`, `sofr`, `sofrai` Example `sofr`</td></tr>
    <tr><td>`format` required</td><td>string</td><td>path</td><td>Response format. One of `json`, `xml`, `csv`, `xlsx` Example `json`</td></tr>

    <tr>
      <td>
        `startDate`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        First date, inclusive, yyyy-MM-dd; defaults to today.
      </td>
    </tr>

    <tr>
      <td>
        `endDate`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Last date, inclusive, yyyy-MM-dd.
      </td>
    </tr>

    <tr><td>`type`</td><td>string</td><td>query</td><td>rate or volume. One of `rate`, `volume`</td></tr>
  </tbody>
</table>

[Vendor docs](https://markets.newyorkfed.org/static/docs/markets-api.html) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-daily), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-observations-series), [Bank of England](https://docs.webrouter.net/data-apis/bankofengland.md#bankofengland-series-csv), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-klines), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-candles-get), [CoinGecko](https://docs.webrouter.net/data-apis/coingecko.md#coingecko-coins-market-chart)

```python Python theme={null}
router.call_data_api("newyorkfed.rates.secured.search", {'ratetype': 'sofr', 'format': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="newyorkfed.rates.secured.search", params={"ratetype": "sofr", "format": "json"})
```

### Get the last N of a secured rate

GET

`/api/rates/secured/{ratetype}/last/{number}.{format}`

`newyorkfed.rates.secured.last`

The most recent N publications of SOFR, BGCR, TGCR or the SOFR averages and index.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `ratetype`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        &#x20;One of&#x20;

        `tgcr`

        ,&#x20;

        `bgcr`

        ,&#x20;

        `sofr`

        ,&#x20;

        `sofrai`

        &#x20;Example&#x20;

        `sofr`
      </td>
    </tr>

    <tr><td>`number` required</td><td>integer</td><td>path</td><td>How many publications. Example `10`</td></tr>
    <tr><td>`format` required</td><td>string</td><td>path</td><td>Response format. One of `json`, `xml`, `csv`, `xlsx` Example `json`</td></tr>
  </tbody>
</table>

[Vendor docs](https://markets.newyorkfed.org/static/docs/markets-api.html) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-daily), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-observations-series), [Bank of England](https://docs.webrouter.net/data-apis/bankofengland.md#bankofengland-series-csv), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-klines), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-candles-get), [CoinGecko](https://docs.webrouter.net/data-apis/coingecko.md#coingecko-coins-market-chart)

```python Python theme={null}
router.call_data_api("newyorkfed.rates.secured.last", {'ratetype': 'sofr', 'number': 10, 'format': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="newyorkfed.rates.secured.last", params={"ratetype": "sofr", "number": 10, "format": "json"})
```

### Search one unsecured rate

GET

`/api/rates/unsecured/{ratetype}/search.{format}`

`newyorkfed.rates.unsecured.search`

EFFR or OBFR rates or volumes over a date range.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `ratetype`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        &#x20;One of&#x20;

        `all`

        ,&#x20;

        `effr`

        ,&#x20;

        `obfr`

        &#x20;Example&#x20;

        `effr`
      </td>
    </tr>

    <tr><td>`format` required</td><td>string</td><td>path</td><td>Response format. One of `json`, `xml`, `csv`, `xlsx` Example `json`</td></tr>

    <tr>
      <td>
        `startDate`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        First date, inclusive, yyyy-MM-dd; defaults to today.
      </td>
    </tr>

    <tr>
      <td>
        `endDate`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Last date, inclusive, yyyy-MM-dd.
      </td>
    </tr>

    <tr><td>`type`</td><td>string</td><td>query</td><td>rate or volume. One of `rate`, `volume`</td></tr>
  </tbody>
</table>

[Vendor docs](https://markets.newyorkfed.org/static/docs/markets-api.html) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-daily), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-observations-series), [Bank of England](https://docs.webrouter.net/data-apis/bankofengland.md#bankofengland-series-csv), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-klines), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-candles-get), [CoinGecko](https://docs.webrouter.net/data-apis/coingecko.md#coingecko-coins-market-chart)

```python Python theme={null}
router.call_data_api("newyorkfed.rates.unsecured.search", {'ratetype': 'effr', 'format': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="newyorkfed.rates.unsecured.search", params={"ratetype": "effr", "format": "json"})
```

### Get SOMA holdings summary

GET

`/api/soma/summary.{format}`

`newyorkfed.soma.summary`

Totals of the System Open Market Account holdings by security type for each as-of date.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`format` required</td><td>string</td><td>path</td><td>Response format. One of `json`, `xml`, `csv` Example `json`</td></tr>
  </tbody>
</table>

[Vendor docs](https://markets.newyorkfed.org/static/docs/markets-api.html)

```python Python theme={null}
router.call_data_api("newyorkfed.soma.summary", {'format': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="newyorkfed.soma.summary", params={"format": "json"})
```

### Get SOMA Treasury holdings on a date

GET

`/api/soma/tsy/get/asof/{date}.{format}`

`newyorkfed.soma.treasury.asof`

Every Treasury security the SOMA held on one weekly as-of date.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`date` required</td><td>string</td><td>path</td><td>As-of date, yyyy-MM-dd; a published SOMA as-of date (list them with /api/soma/asofdates/list.json). Example `2025-01-01`</td></tr>
    <tr><td>`format` required</td><td>string</td><td>path</td><td>Response format. One of `json`, `xml`, `csv` Example `json`</td></tr>
  </tbody>
</table>

[Vendor docs](https://markets.newyorkfed.org/static/docs/markets-api.html)

```python Python theme={null}
router.call_data_api("newyorkfed.soma.treasury.asof", {'date': '2025-01-01', 'format': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="newyorkfed.soma.treasury.asof", params={"date": "2025-01-01", "format": "json"})
```

### Get the latest SOMA as-of date

GET

`/api/soma/asofdates/latest.{format}`

`newyorkfed.soma.asofdates.latest`

The most recent date SOMA holdings were published for.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`format` required</td><td>string</td><td>path</td><td>Response format. One of `json`, `xml`, `csv` Example `json`</td></tr>
  </tbody>
</table>

[Vendor docs](https://markets.newyorkfed.org/static/docs/markets-api.html)

```python Python theme={null}
router.call_data_api("newyorkfed.soma.asofdates.latest", {'format': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="newyorkfed.soma.asofdates.latest", params={"format": "json"})
```

### Search repo and reverse repo operations

GET

`/api/rp/results/search.{format}`

`newyorkfed.repo.search`

Results of the Desk's repo and reverse repo operations over a date range.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`format` required</td><td>string</td><td>path</td><td>Response format. One of `json`, `xml`, `csv`, `xlsx` Example `json`</td></tr>

    <tr>
      <td>
        `startDate`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        First date, inclusive, yyyy-MM-dd.
      </td>
    </tr>

    <tr>
      <td>
        `endDate`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Last date, inclusive, yyyy-MM-dd.
      </td>
    </tr>

    <tr>
      <td>
        `operationTypes`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated: Repo, Reverse Repo.
      </td>
    </tr>

    <tr>
      <td>
        `method`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        &#x20;One of&#x20;

        `multiple`

        ,&#x20;

        `single`

        ,&#x20;

        `fixed`

        ,&#x20;

        `allotment`
      </td>
    </tr>

    <tr>
      <td>
        `securityType`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        &#x20;One of&#x20;

        `mbs`

        ,&#x20;

        `agency`

        ,&#x20;

        `tsy`

        ,&#x20;

        `srf`
      </td>
    </tr>

    <tr>
      <td>
        `term`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        &#x20;One of&#x20;

        `overnight`

        ,&#x20;

        `term`
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://markets.newyorkfed.org/static/docs/markets-api.html)

```python Python theme={null}
router.call_data_api("newyorkfed.repo.search", {'format': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="newyorkfed.repo.search", params={"format": "json"})
```

### Get primary dealer survey series

GET

`/api/pd/get/{timeseries}.{format}`

`newyorkfed.primarydealer.timeseries`

Primary dealer statistics for one or more time series across all series breaks.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `timeseries`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Time series key ids, several joined with underscores; list them with /api/pd/list/timeseries.json.
      </td>
    </tr>

    <tr><td>`format` required</td><td>string</td><td>path</td><td>Response format. One of `json`, `xml`, `csv`, `xlsx` Example `json`</td></tr>
  </tbody>
</table>

[Vendor docs](https://markets.newyorkfed.org/static/docs/markets-api.html)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.