@atomiqlabs/sdk-lib
Version:
Basic SDK functionality library for atomiq
15 lines (11 loc) • 502 B
text/typescript
import {CtorCoinTypes, IPriceProvider} from "../../abstract/IPriceProvider";
import {MultiChain} from "../../../swaps/swapper/Swapper";
export abstract class HttpPriceProvider<T extends MultiChain> extends IPriceProvider<T> {
url: string;
httpRequestTimeout?: number;
protected constructor(coinsMap: CtorCoinTypes<T>, url: string, httpRequestTimeout?: number) {
super(coinsMap);
this.url = url;
this.httpRequestTimeout = httpRequestTimeout;
}
}