tlab-trading-toolkit
Version:
A trading toolkit for building advanced trading bots on the GDAX platform
14 lines (13 loc) • 650 B
TypeScript
import { CurrencyPair, FXObject, FXProvider, FXProviderConfig } from '../FXProvider';
export default class CoinMarketCapProvider extends FXProvider {
private lastUpdate;
private initializing;
constructor(config: FXProviderConfig);
readonly name: string;
protected downloadCurrentRate(pair: CurrencyPair): Promise<FXObject>;
/**
* Valid quote currencies are USD, BTC, or one of the valid fiat currencies given in [[SUPPORTED_QUOTE_CURRENCIES]]
* The list of currently supported base currencies will be constructed when this is first called.
*/
protected supportsPair(pair: CurrencyPair): Promise<boolean>;
}