pyra-margin 0.2.16

Margin weight, balance, and price calculations for Drift spot positions
Documentation

Margin weight, balance, and price calculations for Drift spot positions.

Provides shared math used by api-v2, settlement-service, and notification-service for computing token balances, USDC values, asset/liability weights with IMF size adjustments, and conservative oracle prices.