Skip to main content

CustomPriceFunction()

type CustomPriceFunction = (tickers, abortSignal?) => Promise<number[]>;

Defined in: atomiq-sdk/src/types/CustomPriceFunction.ts:11

Custom pricing callback function type, fetches the USD price for the provided array of token tickers.

Parameters

ParameterTypeDescription
tickersstring[]Tickers of the tokens to fetch USD price for
abortSignal?AbortSignalAbort signal

Returns

Promise<number[]>

USD prices of the passed tickers in the order that they were passed