@goat-sdk/plugin-coingecko
v0.2.10
Published
<div align="center"> <a href="https://github.com/goat-sdk/goat">
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
