UNPKG

@atomiqlabs/sdk

Version:

atomiq labs SDK for cross-chain swaps between smart chains and bitcoin

12 lines (11 loc) 436 B
/** * Custom pricing callback function type, fetches the USD price for the provided array * of token tickers. * * @param tickers Tickers of the tokens to fetch USD price for * @param abortSignal Abort signal * @returns USD prices of the passed tickers in the order that they were passed * * @category Pricing */ export type CustomPriceFunction = (tickers: string[], abortSignal?: AbortSignal) => Promise<number[]>;