Crypto GPT

Crypto GPT · Ações GPT

CoinGecko API - Live Cryptocurrency Prices

Fetches live cryptocurrency prices.

  • GET /simple/pricegetLiveCryptocurrencyPrices
Esquema API original
{
  "openapi": "3.1.0",
  "info": {
    "title": "CoinGecko API - Live Cryptocurrency Prices",
    "version": "v3",
    "description": "Fetches live cryptocurrency prices."
  },
  "servers": [
    {
      "url": "https://api.coingecko.com/api/v3",
      "description": "CoinGecko API server for public endpoints"
    }
  ],
  "paths": {
    "/simple/price": {
      "get": {
        "operationId": "getLiveCryptocurrencyPrices",
        "tags": [
          "Live Prices"
        ],
        "parameters": [
          {
            "name": "ids",
            "in": "query",
            "required": true,
            "description": "Comma-separated cryptocurrency IDs to fetch live prices for",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "vs_currencies",
            "in": "query",
            "required": true,
            "description": "Comma-separated fiat or cryptocurrency symbols to convert the prices into",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with live prices",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "cryptoId": {
                      "type": "object",
                      "properties": {
                        "currency": {
                          "type": "number",
                          "description": "Price of the cryptocurrency in the specified currency"
                        }
                      }
                    }
                  },
                  "additionalProperties": {
                    "type": "object"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}