CurrencyGPT | Exchange Rate Analyst

CurrencyGPT | Exchange Rate Analyst · GPT-Aktionen

Currency API

Custom action for GPT-4 to retrieve currency exchange information using the Currency API.

  • GET /currenciesRetrieve a list of all supported currencies.
  • GET /latestRetrieve the latest currency exchange rate data.
  • GET /historicalRetrieve historical exchange rates for a specified date.
  • GET /rangeRetrieve exchange rates for a specified date range.
  • GET /convertConvert a value to another currency's value.
Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "Currency API",
    "version": "1.0.0",
    "description": "Custom action for GPT-4 to retrieve currency exchange information using the Currency API."
  },
  "servers": [
    {
      "url": "https://api.currencyapi.com/v3/",
      "description": "API server for currency exchange information."
    }
  ],
  "paths": {
    "/currencies": {
      "get": {
        "summary": "Retrieve a list of all supported currencies.",
        "operationId": "getSupportedCurrencies",
        "tags": [
          "Supported Currencies"
        ],
        "parameters": [
          {
            "name": "currencies",
            "in": "query",
            "description": "Comma-separated currency codes (e.g., EUR,USD,CAD). By default, all available currencies will be shown.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/latest": {
      "get": {
        "summary": "Retrieve the latest currency exchange rate data.",
        "operationId": "getLatestExchangeRate",
        "tags": [
          "Latest Exchange Rate"
        ],
        "parameters": [
          {
            "name": "base_currency",
            "in": "query",
            "description": "The base currency for comparison. Default is USD.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/historical": {
      "get": {
        "summary": "Retrieve historical exchange rates for a specified date.",
        "operationId": "getHistoricalExchangeRate",
        "tags": [
          "Historical Exchange Rate"
        ],
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "description": "Date for historical rates (format: YYYY-MM-DD).",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ]
      }
    },
    "/range": {
      "get": {
        "summary": "Retrieve exchange rates for a specified date range.",
        "operationId": "getDateRangeExchangeRate",
        "tags": [
          "Date Range Exchange Rate"
        ],
        "parameters": [
          {
            "name": "datetime_start",
            "in": "query",
            "description": "Start datetime for the range (ISO8601 format).",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "datetime_end",
            "in": "query",
            "description": "End datetime for the range (ISO8601 format).",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ]
      }
    },
    "/convert": {
      "get": {
        "summary": "Convert a value to another currency's value.",
        "operationId": "convertExchangeRate",
        "tags": [
          "Convert Exchange Rate"
        ],
        "parameters": [
          {
            "name": "value",
            "in": "query",
            "description": "The value to convert.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apikey": {
        "type": "apiKey",
        "in": "header",
        "name": "apikey"
      }
    },
    "schemas": {}
  }
}