Skip to main content

Interface: GetQuoteResult

Result from getting a price quote for a token swap. Contains pricing information and impact analysis for the proposed trade.

Properties​

amount0​

amount0: BigNumber;

Raw amount of token0 that would be involved in the swap (ordered by token address)


amount1​

amount1: BigNumber;

Raw amount of token1 that would be involved in the swap (ordered by token address)


currentPoolSqrtPrice​

currentPoolSqrtPrice: SqrtPrice;

Current square root price of the pool before the trade


currentPrice​

currentPrice: Price;

Current price of the pool (how many output tokens per input token)


feeTier​

feeTier: number;

Fee tier of the pool used for this quote (e.g., 500 for 0.05%, 3000 for 0.3%)


inTokenAmount​

inTokenAmount: BigNumber;

Amount of the input token (the token being sold)


newPoolSqrtPrice​

newPoolSqrtPrice: SqrtPrice;

New square root price of the pool after the trade would execute


newPrice​

newPrice: Price;

New price of the pool after the trade (how many output tokens per input token)


outTokenAmount​

outTokenAmount: BigNumber;

Amount of the output token (the token being bought)


priceImpact​

priceImpact: BigNumber;

Price impact of the trade as a percentage (e.g., 0.05 for 0.05% impact)