Module price

Module price 

Source
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.
PriceBaseInQuote
The price of the currency pair, given as quote / base, e.g. “20,000 USD per BTC”.
PriceCollateralInUsd
PriceBaseInQuote converted to USD
PriceKey
A modified version of a Price used as a key in a Map.
PricePoint
All prices in the protocol for a given point in time.

Enums§

TakeProfitTrader
The take profit price for a position, as supplied by client messsages (in terms of BaseInQuote).