UNPKG

@orca-so/whirlpool-sdk

Version:

Whirlpool SDK for the Orca protocol.

15 lines (14 loc) 570 B
import { Address } from "@project-serum/anchor"; import Decimal from "decimal.js"; import { WhirlpoolContext } from "../context"; export declare type LiquidityDataPoint = { liquidity: Decimal; price: Decimal; tickIndex: number; }; export declare type LiquidityDistribution = { currentPrice: Decimal; currentTickIndex: number; datapoints: LiquidityDataPoint[]; }; export declare function getLiquidityDistribution(ctx: WhirlpoolContext, poolAddress: Address, tickLower: number, tickUpper: number, refresh: boolean): Promise<LiquidityDistribution>;