defi_greeks

Crates.iodefi_greeks
lib.rsdefi_greeks
version0.0.1
sourcesrc
created_at2022-05-01 20:19:11.816698
updated_at2022-05-01 20:19:11.816698
descriptionLibrary to calculate greeks for an option, power perpetual, or concentrated liquidity share
homepage
repositoryhttps://github.com/0xperp/new_age_greeks
max_upload_size
id578731
size34,640
Nate (0xperp)

documentation

README

New Age Greeks

Huge thanks to wateryan/greeks for the initial greeks repo

Break down power perpetuals and concentrated liquididty positions in their respective greeks

Supported Calculations

Greeks [From wateryan/greeks]

First Order

  • Delta
  • Lambda
  • Rho
  • Theta
  • Vega

Second Order

  • Gamma

Pricing

  • European call option
  • European put option

Valution

  • Call option at expiry
  • Put option at expiry

Squeeks

  • Delta
  • Gamma
  • Theta
  • Vega

Concentrated Liquidity Shares

see this gist for formulas, and resources

  • Delta
  • Gamma
Commit count: 11

cargo fmt