@goat-sdk/plugin-coingecko
TypeScript icon, indicating that this package has built-in type declarations

0.2.10 • Public • Published

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-coingecko

Setup 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

  1. Get Trending Coins
  2. Get Coin Prices
  3. Search Coins
  4. Get Coin Price by Contract Address
  5. Get Coin Data
  6. Get Historical Data
  7. Get OHLC Data
  8. Get Trending Coin Categories
  9. Get Coin Categories

Pro API Tools

  1. Get Pool Data by Pool Address
  2. Get Trending Pools
  3. Get Trending Pools by Network
  4. Get Top Gainers/Losers
  5. Get Token Data by Token Address
  6. Get Tokens Info by Pool Address


Readme

Keywords

Package Sidebar

Install

npm i @goat-sdk/plugin-coingecko

Homepage

ohmygoat.dev

Weekly Downloads

729

Version

0.2.10

License

MIT

Unpacked Size

66.9 kB

Total Files

44

Last publish

Collaborators

  • aigustin
  • mpaella