Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • InjectiveOracleRPCClientImpl

Implements

Index

Constructors

  • Parameters

    • rpc: Rpc

    Returns InjectiveOracleRPCClientImpl

Properties

rpc: Rpc

Methods

  • Gets the price of the oracle

    Parameters

    • request: { baseSymbol?: string; oracleScaleFactor?: number; oracleType?: string; quoteSymbol?: string }
      • Optional baseSymbol?: string

        Oracle base currency

      • Optional oracleScaleFactor?: number

        OracleScaleFactor

      • Optional oracleType?: string

        Oracle Type

      • Optional quoteSymbol?: string

        Oracle quote currency

    • Optional metadata: BrowserHeaders

    Returns internal.Promise<internal.PriceResponse>

  • StreamPrices streams new price changes for a specified oracle. If no oracles are provided, all price changes are streamed.

    Parameters

    • request: { baseSymbol?: string; oracleType?: string; quoteSymbol?: string }
      • Optional baseSymbol?: string

        Oracle base currency

      • Optional oracleType?: string

        Oracle Type

      • Optional quoteSymbol?: string

        Oracle quote currency

    • Optional metadata: BrowserHeaders

    Returns Observable<internal.StreamPricesResponse>

Generated using TypeDoc