Window Fair Value
workflow.run_window_fair_valueTheoretical fair value for a time-windowed crypto up/down contract (the shape ADI Predictstreet and Kalshi-style daily crypto markets use: pays out based on whether the settlement price finishes at/above or below a reference price pinned at window open, by a fixed close time): a cash-or-nothing digital option, priced with the standard N(d2) formula. It gives the probability at the close time only, not the probability of touching a level at any point before it (first passage). Time convention: a year is 365 days. Use this when there's no live market price to read (e.g. a venue's contract has real terms but zero trading volume) instead of a live-market odds tool. Volatility is a required manual input; there is no live implied-vol market on these contracts to pull it from. Edge cases: currentPrice, referencePrice, minutesToClose and volatilityPct (annualized) above zero; riskFreeRatePct 0 to 100 (default 0); the volatility is yours, nothing is estimated; a year is 365 days. The result is the probability at the close only, not of touching the level before it. Not covered: first-passage (touch) probability, volatility that changes, jumps, the venue fees, order book prices, and the exact settlement rule of the venue. Use when user asks "what does the N(d2) model give for this up/down contract?" or "what's the model probability BTC finishes above $X in N minutes?". Returns: d1, d2, probAbovePct, probBelowPct, fairPriceAboveCents, fairPriceBelowCents (cents convention, directly comparable to how these venues quote a contract).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"currentPrice": "<currentPrice>",
"referencePrice": "<referencePrice>",
"minutesToClose": "<minutesToClose>",
"volatilityPct": "<volatilityPct>"
},
"name": "workflow.run_window_fair_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currentPrice | Yes | Current spot price of the coin, in USD. | |
| volatilityPct | Yes | Annualized volatility, in percentage points (e.g. 50 for 50%). Required; no live source for this on these contracts. | |
| minutesToClose | Yes | Minutes remaining until the window closes/settles. | |
| referencePrice | Yes | The reference/pinned price the contract resolves against (the window's open price, or a stated strike). | |
| riskFreeRatePct | No | Risk-free rate in percentage points. Default 0: negligible for these short windows. |