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