#power #position #share #liquidity #concentrated #down #greeks

defi_greeks

Library to calculate greeks for an option, power perpetual, or concentrated liquidity share

1 unstable release

Uses old Rust 2015

0.0.1 May 1, 2022

#17 in #liquidity

MIT license

29KB
538 lines

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

No runtime deps

Features