Calculate Pricing

Calculate bond price from yield or yield from price.

Specify exactly ONE of 'price' or 'yield' in the request body. The API will calculate the missing value.

Args: instrument_id: ID of the instrument request: Pricing calculation request (must specify price XOR yield) session: Database session

Returns: PricingResponse with calculated values and accrued interest details

Language
Click Try It! to start a request and see the response here!