ProConfig Tutorial
  • Overview & Setup
  • Tutorial Structure
  • Tutorial
    • Hello World with Pro Config
    • Building Workflow
    • Transitions
    • Expressions and Variables
    • An Advanced Example
    • Function Calling Example
    • Random Routing Example
  • API Reference
    • 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
  • Tools
    • AutoConfig Bot
    • Cache Mode
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. API Reference
  2. Widgets

CoinGecko

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

PreviousChampNextControlNet with Civitai

Last updated 1 year 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