pyra-margin 0.2.14

Margin weight, balance, and price calculations for Drift spot positions
Documentation
  • Coverage
  • 68.18%
    15 out of 22 items documented0 out of 12 items with examples
  • Size
  • Source code size: 50.89 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.39 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 43s Average build duration of successful builds.
  • all releases: 43s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • iarlacrewe

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.