Module levana_perpswap_cosmos::price
source · Expand description
Data types and conversion functions for different price representations.
Structs§
- The price of the pair as used internally by the protocol, given as
collateral / notional
. - The price of the currency pair, given as
quote / base
, e.g. “20,000 USD per BTC”. - PriceBaseInQuote converted to USD
- A modified version of a Price used as a key in a
Map
. - All prices in the protocol for a given point in time.
Enums§
- The take profit price for a position, as supplied by client messsages (in terms of BaseInQuote).