---
title: "Compute a formula and return outputs with a receipt"
method: POST
path: "/v1/compute/{id}"
---

# Compute a formula and return outputs with a receipt

`POST /v1/compute/{id}`

## Request

- Base URL: `https://canon.wallstreet.wiki`
- URL: `https://canon.wallstreet.wiki/v1/compute/{id}`
- Auth: none declared

## Path parameters

- `id` 'options.bsm.price' | 'options.bsm.greeks' | 'options.implied_vol' | 'options.put_call_parity' | 'options.vertical_spread' | 'options.kelly' | 'options.expected_move' | 'bonds.price' | 'bonds.ytm' | 'bonds.risk' | 'hf.sharpe' | 'hf.sortino' | 'hf.max_drawdown' | 'hf.fee_net' | 'quant.annualize' | 'quant.var_parametric' | 'pe.irr' | 'pe.multiples' | 'vc.round' | 'ma.accretion_dilution' | 'ma.lbo_returns' | 'credit.all_in_yield' | 'credit.coverage' | 'cal.is_trading_day' | 'cal.holidays' | 'cal.trading_days_between' | 'cal.add_trading_days' | 'cal.settlement' | 'cal.next_expiration' | 'cal.year_fraction', required

## Request body

- object: Formula inputs; see /v1/formulas/{id}

## Response `200`

ok

## Other responses

- `400`: invalid input, with problems listed
- `422`: inputs valid but no solution

---

[API](https://skmtc.dev/wallstreet/apis/wallstreet-wiki-canon.md) · [All operations](https://skmtc.dev/wallstreet/apis/wallstreet-wiki-canon/llms.txt) · [OpenAPI document](https://skmtc.dev/wallstreet/apis/wallstreet-wiki-canon/revisions/3f3f0dbdfa70?raw)
