@bmancini55/finance
Version:
Finance utilities for JavaScript
11 lines (10 loc) • 351 B
TypeScript
/**
* Calculates the probability of the asset being at or below
* the price x in the given number of days.
*
* @param x target price
* @param spot current spot price
* @param days days until expiration
* @param vol annualized volatility of asset
*/
export declare function calcProb(x: number, spot: number, days: number, vol: number): number;