Skip to content

v0.5.0

Choose a tag to compare

@rustyconover rustyconover released this 13 Nov 22:31
· 13 commits to main since this release

Adds carry math: seven scalars that turn an instrument's quote into a continuously compounded annual rate, so futures, box spreads, T-bills and perp funding compare directly.

  • implied_carry_rate(spot, forward, ttm)
  • calendar_spread_rate(near_price, far_price, near_ttm, far_ttm)
  • box_spread_rate(box_price, low_strike, high_strike, ttm)
  • tbill_rate(discount_rate, days)
  • funding_rate_annual(rate, interval_hours)
  • simple_to_continuous(rate, ttm), continuous_to_simple(rate, ttm)

Speaks VGI protocol 3.3 (vgi-python 0.51).