Crypto Trading & Investing 💹

Crypto Trading & Investing 💹 · GPT-Aktionen

CoinMarketCap API

A suite of high-performance RESTful JSON endpoints designed to meet the demands of developers, data scientists, and businesses. Provides access to cryptocurrency, exchange, global metrics, and other related data.

  • GET /v1/cryptocurrency/listings/latestGet latest cryptocurrency listings

    Fetches a list of all active cryptocurrencies ordered by market cap.

Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "CoinMarketCap API",
    "description": "A suite of high-performance RESTful JSON endpoints designed to meet the demands of developers, data scientists, and businesses. Provides access to cryptocurrency, exchange, global metrics, and other related data.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://pro-api.coinmarketcap.com",
      "description": "Production server"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-CMC_PRO_API_KEY"
      }
    },
    "schemas": {}
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/v1/cryptocurrency/listings/latest": {
      "get": {
        "operationId": "getLatestCryptocurrencyListings",
        "summary": "Get latest cryptocurrency listings",
        "description": "Fetches a list of all active cryptocurrencies ordered by market cap.",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "description": "The starting rank number."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 5000
            },
            "description": "The number of results to return."
          },
          {
            "name": "convert",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "USD"
            },
            "description": "The currency to convert prices to."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer"
                          },
                          "name": {
                            "type": "string"
                          },
                          "symbol": {
                            "type": "string"
                          },
                          "slug": {
                            "type": "string"
                          },
                          "cmc_rank": {
                            "type": "integer"
                          },
                          "quote": {
                            "type": "object",
                            "properties": {
                              "USD": {
                                "type": "object",
                                "properties": {
                                  "price": {
                                    "type": "number"
                                  },
                                  "volume_24h": {
                                    "type": "number"
                                  },
                                  "percent_change_1h": {
                                    "type": "number"
                                  },
                                  "percent_change_24h": {
                                    "type": "number"
                                  },
                                  "percent_change_7d": {
                                    "type": "number"
                                  },
                                  "market_cap": {
                                    "type": "number"
                                  },
                                  "last_updated": {
                                    "type": "string",
                                    "format": "date-time"
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "status": {
                      "type": "object",
                      "properties": {
                        "timestamp": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "error_code": {
                          "type": "integer"
                        },
                        "error_message": {
                          "type": "string"
                        },
                        "elapsed": {
                          "type": "integer"
                        },
                        "credit_count": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request"
          },
          "401": {
            "description": "Unauthorized - invalid API key"
          },
          "429": {
            "description": "Rate limit exceeded"
          }
        }
      }
    }
  }
}