Package Exports
- @goat-sdk/plugin-coingecko
- @goat-sdk/plugin-coingecko/dist/index.js
- @goat-sdk/plugin-coingecko/dist/index.mjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@goat-sdk/plugin-coingecko) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
CoinGecko GOAT Plugin
Get tools to access market data, prices, and onchain analytics through the CoinGecko API. Use both the public and pro APIs to fetch detailed information about coins, tokens, pools, and market trends.
Requirements
- You will need a CoinGecko API key to use this plugin. You can get it from here.
Installation
npm install @goat-sdk/plugin-coingecko
yarn add @goat-sdk/plugin-coingecko
pnpm add @goat-sdk/plugin-coingeckoSetup for the Public API
import { coingecko } from "@goat-sdk/plugin-coingecko";
const tools = await getOnChainTools({
plugins: [
coingecko({
apiKey: process.env.COINGECKO_API_KEY
})
]
});Setup for the Pro API
import { coingecko } from "@goat-sdk/plugin-coingecko";
const tools = await getOnChainTools({
plugins: [
coingecko({
apiKey: process.env.COINGECKO_API_KEY,
isPro: true
})
]
});Tools
Public API Tools
- Get Trending Coins
- Get Coin Prices
- Search Coins
- Get Coin Price by Contract Address
- Get Coin Data
- Get Historical Data
- Get OHLC Data
- Get Trending Coin Categories
- Get Coin Categories
Pro API Tools
- Get Pool Data by Pool Address
- Get Trending Pools
- Get Trending Pools by Network
- Get Top Gainers/Losers
- Get Token Data by Token Address
- Get Tokens Info by Pool Address