
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
breeden-litzenberger
Advanced tools
Breeden-Litzenberger formula with derivatives calculated via central differences.
Simple implementation, not always numerically stable -- can return negative values etc
Experimental, use at your own risk
npm i breeden-litzenberger
var {calcFromLastPrices, calcFromBidAskPrices} = require('breeden-litzenberger');
var riskFreeRate=0.0369; //default. 3.69% rate for this example
let timeToExpirationInYears = 0.0055; //for this example, expiring in about 1.8 days [the default is 1 week, or 0.01916 years]
var optionChain = require('jsonfile').readFileSync('./example-chain.json');
//optionChain = [
// {
// strike: 90,
// last: 85.23,
// bid: 84.5,
// ask: 86.55,
// }, ...
// ]
//calcFromBidAskPrices uses bid-ask midpts as prices
//calcFromLastPrices uses the last prices
console.log(calcFromBidAskPrices(optionChain, timeToExpirationInYears, riskFreeRate))
// [
// { strike: 95, density: 0.020804230141809044, option }, //"option" field is reference back to original data row
// { strike: 100, density: -0.03800772814368944, option },
// { strike: 105, density: -0.11122261498890337, option },
// ...
// { strike: 220, density: 0, option },
// { strike: 225, density: 0, option },
// { strike: 230, density: 0.00020004067444047308, option },
// { strike: 240, density: -0.00040008134888094615, option }
// ]
//defaults:
//calcFromLastPrices(optionsChain, timeToExpiration=0.01916, riskFreeRate= 0.0369)
//calcFromBidAskPrices(optionsChain, timeToExpiration=0.01916, riskFreeRate= 0.0369)
FAQs
Breeden-Litzenberger formula with central differences
We found that breeden-litzenberger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.