MyShell
  • About MyShell
    • What is MyShell
    • MyShell in a Nutshell
    • Quickstart
  • Explore AI Agents
    • Image Generation
    • Video Generation
    • Meme Generation
    • Role-Playing Game
    • Character
    • Utility
  • Create AI Agents
    • Classic Mode
      • Enhanced Prompt
      • Knowledge Base
      • Telegram Integration
    • Pro Config Mode
      • Core Concepts
      • Tutorial
        • Tutorial Structure
        • Hello World with Pro Config
        • Building Workflow
        • Transitions
        • Expressions and Variables
        • Integration with Any Widget
        • An Advanced Example
      • Basic
        • Common
        • Atomic State
        • Transition
        • Automata
        • Modules
      • Advanced
        • Cron Pusher
        • Neutral Language To SD Prompt
        • Advanced Input Validation
        • Advanced Memory Manager in Prompt Widget
      • Tools
        • AutoConfig Agent
        • Cache Mode
        • Knowledge Base Agent
        • Crawler Widget
      • Example
        • Homeless With You
        • Random Routing
        • Function Calling
      • API Reference
        • Atomic State
        • Transition
        • Automata
        • Context
        • Module
          • AnyWidget Module
            • Prompt Widget
            • LLM Widget
            • TTS Widget
            • Code Runner Widget
            • Melo TTS
            • Age Transformation
            • ChatImg
            • GIF Generation
            • Music Generation
          • LLM Module
          • LLM Function Module
          • TTS Module
          • Google Search Module
        • Widgets
          • Bark TTS
          • Champ
          • CoinGecko
          • ControlNet with Civitai
          • Crawler
          • Crypto News
          • Data Visualizer
          • Email Sender
          • Google Flight Search
          • Google Hotel Search
          • Google Image Search
          • Google Map Search
          • Google News Search
          • Google Scholar Search
          • Google Search
          • GroundedSAM
          • Image Text Fuser
          • Information Extractor - OpenAI Schema Generator
          • Information Extractor
          • Instagram Search
          • JSON to Table
          • LinkedIn
          • MS Word to Markdown
          • Markdown to MS Word
          • Markdown to PDF
          • Mindmap Generator
          • Notion Database
          • OCR
          • Pdf to Markdown
          • RMBG
          • Stabel-Video-Diffusion
          • Stable Diffusion Inpaint
          • Stable Diffusion Recommend
          • Stable Diffusion Transform
          • Stable Diffusion Upscale
          • Stable Diffusion with 6 fixed category
          • Stable Diffusion with Civitai
          • Storydiffusion
          • Suno Lyrics Generator
          • Suno Music Generator
          • Table to Markdown
          • TripAdvisor
          • Twitter Search
          • UDOP: Document Question Answering
          • Weather forecasting
          • Whisper large-v3
          • Wikipedia
          • Wolfram Alpha Search
          • Yelp Search
          • YouTube Downloader
          • YouTube Transcriber
          • Youtube Search
      • FAQs
      • Changelog
    • ShellAgent Mode
      • Download and Installation
      • App Builder
      • Workflow
      • Build Custom Widget
      • Publish to MyShell
      • Customized Pricing For Your Agent
      • Example
        • Child Book X Agent w/ DeepSeek
        • Kids Book NFT AI Agent w/ BNB Chain
        • DeFAI Agent w/ BNB Chain
  • Shell Launchpad
    • How to Launch a Token
    • Trade Agent Tokens
  • Tokenomics
    • $SHELL Basics
    • $SHELL Token Utility
    • How to Obtain $SHELL
    • Roadmap
  • Open-source AI Framework/SDK
    • ShellAgent
    • OpenVoice
    • MeloTTS
    • JetMoE
    • AIlice
  • Links
Powered by GitBook
On this page
  • Usage
  • Get the Coin ID
  • Get the Coin Data by ID
  • Get the Coin Ticker by ID
  • Advanced
  • Detailed Guidelines
  1. Create AI Agents
  2. Pro Config Mode
  3. API Reference
  4. Widgets

CoinGecko

Obtain price feed, market data, and historical data of crypto assets

PreviousChampNextControlNet with Civitai

Last updated 8 months ago

Try it in the Widget Center

Click this to try this widget and copy the Pro Config template.

Usage

Get the Coin ID

action coin_id

Input Parameters

Name
Type
Description
Default
Required

action

string

The action you want to perform

coin_id

name

string

The name of the coin. Required if you search coin by name.

Output Parameters

Name
Type
Description
File Type

data

object

The output of coingecko API.

Output Example

{
  "status": "SUCCESS",
  "created_at": "2024-04-25T02:58:32.161881",
  "started_at": "2024-04-25T02:58:36.511598",
  "result": {
    "data": {
      "id": "bitcoin",
      "symbol": "btc",
      "name": "Bitcoin"
    }
  },
  "finished_at": "2024-04-25T02:58:38.489827"
}

Get the Coin Data by ID

action coin_data_by_id

Input Parameters

Name
Type
Description
Default
Required

action

string

The action you want to perform

coin_data_by_id

id

string

The id of the coin.

Output Parameters

Name
Type
Description
File Type

data

object

The output of coingecko API.

Output Example


{
    "status": "SUCCESS",
    "created_at": "2024-04-25T03:12:37.276366",
    "started_at": "2024-04-25T03:12:39.650554",
    "result": {
      "data": {
        "id": "bitcoin",
        "symbol": "btc",
        "name": "Bitcoin",
        "web_slug": "bitcoin",
        "asset_platform_id": null,
        "*****"
      }
    },
    "finished_at": "2024-04-25T03:12:41.767455"
}

Get the Coin Ticker by ID

action coin_ticker_by_id

Input Parameters

Name
Type
Description
Default
Required

action

string

The action you want to perform

coin_ticker_by_id

id

string

The id of the coin.

Output Parameters

Name
Type
Description
File Type

data

object

The output of coingecko API.

Output Example

{
    "status": "SUCCESS",
    "created_at": "2024-04-25T03:21:00.040066",
    "started_at": "2024-04-25T03:21:03.711204",
    "result": {
      "data": {
        "name": "Bitcoin",
        "tickers": ["***"]
      }
    },
    "finished_at": "2024-04-25T03:21:06.378630"
}

Advanced

Input Parameters

Name
Type
Description
Default
Required

endpoint

string

The endpoint url of Coingecko, please add the path params in the endpoint

https://pro-api.coingecko.com/api/v3/coins/id

query_param

string

Dict type of query params

Detailed Guidelines

Note: You can test this feature in the widget center, but please be cautious not to output excessive information on the website. Some cryptocurrency data can be extensive and may cause your website to become unresponsive or crash.

  • Main parameter of Coins:

    • task_type , you can use the coin_id to obtain the identifier of your chosen cryptocurrency. Then, utilize other functions named xx_by_id to fetch specific details about that cryptocurrency.

      • When using coin_id, you should provide the name of the coin as a parameter. For xx_by_id functions, you should supply the coin's ID as the parameter.

  • Main parameter of Advanced

  • Some examples

endpoint, refer to the and use the API interface as the endpoint. Be sure to include the path parameters in the endpoint.

For the query parameters, add them as a dictionary, following the format described in the

url
CoinGecko API documentation
CoinGecko API documentation