This is a CoinGecko Client for the Platform SDK. The implementation makes use of CoinCap, CoinGecko and CryptoCompare and adheres to the contracts laid out in the specification.
pnpm install @payvo/marketsimport { MarketService } from "@payvo/markets";
MarketService.make("cryptocompare", new Request());await marketService.verifyToken("ark");await marketService.marketData("ark");await marketService.historicalPriceForDay("ark", "btc");await marketService.historicalPriceForWeek("ark", "btc");await marketService.historicalPriceForMonth("ark", "btc");await marketService.historicalPriceForQuarter("ark", "btc");await marketService.historicalPriceForYear("ark", "btc");await marketService.historicalVolumeForDay("ark", "btc");await marketService.historicalVolumeForWeek("ark", "btc");await marketService.historicalVolumeForMonth("ark", "btc");await marketService.historicalVolumeForQuarter("ark", "btc");await marketService.historicalVolumeForYear("ark", "btc");await marketService.dailyAverage("ark", "btc", Date.now());If you discover a security vulnerability within this package, please send an e-mail to security@payvo.com. All security vulnerabilities will be promptly addressed.