UNPKG

@atomiqlabs/sdk

Version:

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

18 lines (17 loc) 649 B
import { HttpPriceProvider } from "./HttpPriceProvider"; import { CoinType } from "../../abstract/IPriceProvider"; import { MultiChain } from "../../../swapper/Swapper"; export declare abstract class ExchangePriceProvider<T extends MultiChain> extends HttpPriceProvider<T> { /** * Fetches the price on the specific exchange pair * * @param pair * @param abortSignal * @protected */ protected abstract fetchPair(pair: string, abortSignal?: AbortSignal): Promise<number>; /** * @inheritDoc */ protected fetchPrice(token: CoinType, abortSignal?: AbortSignal): Promise<bigint>; }