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
| Parameter | Type | Description |
|---|---|---|
tickers | string[] | Tickers of the tokens to fetch USD price for |
abortSignal? | AbortSignal | Abort signal |
Returns
Promise<number[]>
USD prices of the passed tickers in the order that they were passed