Type alias PoolPricesQuery

PoolPricesQuery: {
    pool: number;
    resolution?: Duration;
    timespan: Timespan;
}

Type declaration

  • pool: number

    The pool to fetch prices for

  • Optional resolution?: Duration

    Projected space between blocks.

    Example

    // Will fetch all prices between the start and end with the stepping time between prices of 1 hour.
    sdk.model.assets.poolPrices({resolution: '1 hour', timespan: {start, end} marketId})
  • timespan: Timespan

    The timespan to fetch prices for, can be either blocks or dates

Generated using TypeDoc