Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MarketAPI

Hierarchy

  • BaseAPI
    • MarketAPI

Index

Constructors

constructor

Methods

parameters

poolDelta

  • poolDelta(params?: APIParams): Promise<Dec>
  • Gets current value of the pool delta, which is used to determine Terra<>Luna swap rates.

    Parameters

    • params: APIParams = {}

    Returns Promise<Dec>

swapRate

  • swapRate(offerCoin: Coin, askDenom: string, _params?: APIParams): Promise<Coin>
  • Gets the Market's swap rate for a given coin to a requested denomination.

    Parameters

    • offerCoin: Coin

      coin to convert

    • askDenom: string

      denomination to swap into

    • _params: APIParams = {}

    Returns Promise<Coin>