---
title: "Discount Window Borrowing-Capacity Calculator"
method: POST
path: "/v1/tools/compute_discount_window_capacity"
tags: ["TODO_TAGS_REVIEW", "TODO_AP2_EXPORT_REVIEW"]
---

# Discount Window Borrowing-Capacity Calculator

`POST /v1/tools/compute_discount_window_capacity`

## Request

- Base URL: `https://ainumbers.co`
- URL: `https://ainumbers.co/v1/tools/compute_discount_window_capacity`
- Auth: none declared

Federal Reserve Discount Window borrowing-capacity calculator: lendable value = sum of pledged collateral positions x published Fed collateral margins (margin table effective date is caller-supplied policy input, not hardcoded) compared against a runnable-liability / uninsured-deposit coverage target. Timely given the pending Discount Window Preparedness Act and the Treasury LCR-recognition push for pre-positioned collateral; no existing vendor tool covers this calculation.

**Tool URL:** https://ainumbers.co/chaingraph/art-427-discount-window-capacity.html

## Request body

- object
  - `collateral_positions` unknown, required
  - `coverage_target_pct` number: Percentage value
  - `margin_table_version` unknown, required
  - `runnable_liabilities` unknown, required

## Response `200`

Successful tool execution result

- object
  - `capacity_compliant` boolean
  - `capacity_surplus_shortfall_musd` integer
  - `collateral_par_value_musd` integer
  - `coverage_pct` number
  - `coverage_target_pct` integer
  - `lendable_value_musd` integer
  - `margin_table_version` string
  - `note` string
  - `runnable_liabilities_musd` integer

---

[API](https://skmtc.dev/ainumbers/apis/ainumbers-co-fintech-intelligence-suite.md) · [All operations](https://skmtc.dev/ainumbers/apis/ainumbers-co-fintech-intelligence-suite/llms.txt) · [OpenAPI document](https://skmtc.dev/ainumbers/apis/ainumbers-co-fintech-intelligence-suite/revisions/b462e4f5bb28?raw)
