Options
All
  • Public
  • Public/Protected
  • All
Menu

InjectiveOracleRPC defines gRPC API of Exchange Oracle provider.

Hierarchy

  • InjectiveOracleRPC

Implemented by

Index

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>

  • StreamPrices streams new price changes markets

    Parameters

    • request: { marketIds?: string[] }
      • Optional marketIds?: string[]

        marketIDs to stream price for, empty to listen for all prices

    • Optional metadata: BrowserHeaders

    Returns Observable<internal.StreamPricesByMarketsResponse>

Generated using TypeDoc