Class PriceEngine

Class used for keeping track of asset prices. This class has access to different price sources, allowing the generation of averages of any kind. All values are subjects, allowing the user to subscribe to price updates.

Hierarchy

  • PriceEngine

Constructors

Properties

Methods

Constructors

Properties

coingecko: CoingeckoPricing

Methods

  • Returns the price of an asset in USD

    Parameters

    • assetId: string

      Ticker of the asset we want the price of. These are set in the config file.

    Returns BehaviorSubject<number>

    The price of the asset in USD as a subject

Generated using TypeDoc