GPT CoinGecko Watcher

GPT CoinGecko Watcher · GPT アクション

CoinGecko API

  • GET /coins/marketsGet cryptocurrency market data
  • GET /coins/{id}Get coin details
元の API スキーマ
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "CoinGecko API",
    "license": {
      "name": "MIT"
    }
  },
  "servers": [
    {
      "url": "https://api.coingecko.com/api/v3"
    }
  ],
  "paths": {
    "/coins/markets": {
      "get": {
        "summary": "Get cryptocurrency market data",
        "operationId": "getCoinMarkets",
        "tags": [
          "coins"
        ],
        "parameters": [
          {
            "name": "vs_currency",
            "in": "query",
            "description": "The target currency of market data (e.g., usd, eur)",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ids",
            "in": "query",
            "description": "List of coin ids to filter (comma-separated)",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of coin market data",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CoinMarket"
                  }
                }
              }
            }
          },
          "default": {
            "description": "Unexpected error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/coins/{id}": {
      "get": {
        "summary": "Get coin details",
        "operationId": "getCoinDetails",
        "tags": [
          "coins"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Coin ID (e.g., bitcoin)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Coin details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Coin"
                }
              }
            }
          },
          "default": {
            "description": "Unexpected error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CoinMarket": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "current_price": {
            "type": "number"
          },
          "market_cap": {
            "type": "number"
          },
          "total_volume": {
            "type": "number"
          },
          "high_24h": {
            "type": "number"
          },
          "low_24h": {
            "type": "number"
          }
        }
      },
      "Coin": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "hashing_algorithm": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "market_data": {
            "type": "object",
            "properties": {
              "current_price": {
                "type": "object",
                "additionalProperties": {
                  "type": "number"
                }
              }
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          }
        }
      }
    }
  }
}