---
title: "Download Pricing"
method: POST
path: "/api/instrument/{instrument_id}/calculate/download"
tags: ["pricing"]
---

# Download Pricing

`POST /api/instrument/{instrument_id}/calculate/download`

Calculate bond price from yield or yield from price and return Excel file.

Specify exactly ONE of 'price' or 'yield' in the request body.

## Path parameters

- `instrument_id` integer, required

## Request body

- PricingCalculationRequest — Request schema for pricing calculations.
  - `as_of_date` string, date, required — Settlement date for pricing calculation
  - `quantum` union — Face value/quantum for calculation. Defaults to instrument's par value if not specified. Cannot be used together with 'quantity'.
    - number
    - string
  - `quantity` union — Number of units traded. If provided, quantum is calculated as quantity * par_value. Cannot be used together with 'quantum'.
    - number
    - string
  - `yield` union — Yield as decimal (e.g., 0.09 for 9%). Specify one of price or yield.
    - number
    - string
  - `price` union — Unit clean price per 100 of par value. Specify one of price or yield.
    - number
    - string
  - `termination_type` 'maturity' | 'call' | 'put' — Termination type exposed via datafeed APIs.
  - `calculation_type` 'eay' | 'bey' | 'mmy' — Calculation type for yield.
  - `put_date` string, date, nullable — Optional put date to use for put termination calculations.
  - `call_date` string, date, nullable — Optional call date to use for call termination calculations.
  - `benchmark_rate` union — Current benchmark rate for floating/reset rate bonds. Used to calculate future coupon rates as (benchmark_rate + spread).
    - number
    - string

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/inferedge/apis/india-fixed-income-data-feed.md) · [All operations](https://skmtc.net/inferedge/apis/india-fixed-income-data-feed/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/inferedge/india-fixed-income-data-feed/revisions/eea35c5e8d81/schema)
