UNPKG

cmc-api

Version:

CoinMarketCap RESTful API Wrapper. Supports endpoints cryptocurrency, exchanges (CEX), decentralized exchange (DEX), global metrics, community content and trends, tools and others.

21 lines (20 loc) 716 B
import type { CoinMarketCapApi } from "./api"; /** * Abstract base class for repositories that interact with the CoinMarketCap API. * * @decorator `@Enumerable(false)` - Marks the `cmc` property as non-enumerable. * @category Core */ export declare abstract class Repository { /** * The instance of the CoinMarketCapApi to interact with the CoinMarketCap service. * @protected */ protected cmc: CoinMarketCapApi; /** * Creates an instance of the repository with the provided {@link CoinMarketCapApi | `CoinMarketCapApi`}. * * @param cmc - An instance of the CoinMarketCapApi to interact with the CoinMarketCap service. */ constructor(cmc: CoinMarketCapApi); }