Skip to content

Calculates for warrents the price and greeks according to black scholes with a more human interface.

License

Notifications You must be signed in to change notification settings

StromFLIX/warrant

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Warrant Price and Greeks calculator

Calculates for warrents the price and greeks according to black scholes with a more human interface.

Usage:

let params = {
    priceUnderlying: 130,
    strike: 130,
    expiration: new Date("04-15-2022"),
    volatility: 0.3,
    riskFreeInterest: 0.12,
    direction: Direction.PUT,
    ratio: 1
}

console.log("omega:", new Warrant(params).omega)
console.log("Price:", new Warrant(params).price)
console.log("theta:", new Warrant(params).theta)
console.log("delta:", new Warrant(params).delta)
console.log("gamma:", new Warrant(params).gamma)
console.log("rho:", new Warrant(params).rho)
console.log("vega:", new Warrant(params).vega)

Caveats

American pricing is still really inaccurate.

About

Calculates for warrents the price and greeks according to black scholes with a more human interface.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%