Retrieve bins

Functioin

async fetchBins({
  pair: string
  coinTypeA: string
  coinTypeB: string
  offset: number
  limit: number
}: FetchBinsParams): Promise<EventBin[]>

Parameters

  • pair: pool object id

  • coinTypeA: the coin type address about coinA.

  • coinTypeB: the coin type address about coinB.

  • offset: the start index of the returned bins.

  • limit: the max number of the returned bins.

Please refer to the original function for specific parameter types.

Example

Last updated