Currency Converter
Currency Converter · GPT-Aktionen
Currency Conversion API
This API returns real-time exchange rate and converted amount for currency pairs including forex and cryptocurrency.
GET /currency_conversionConvert CurrencyGet real-time exchange rate and converted amount for a specified currency pair.
Ursprüngliches API-Schema
{
"openapi": "3.0.3",
"info": {
"title": "Currency Conversion API",
"description": "This API returns real-time exchange rate and converted amount for currency pairs including forex and cryptocurrency.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://api.twelvedata.com"
}
],
"paths": {
"/currency_conversion": {
"get": {
"summary": "Convert Currency",
"description": "Get real-time exchange rate and converted amount for a specified currency pair.",
"operationId": "convertCurrency",
"parameters": [
{
"name": "symbol",
"in": "query",
"description": "Currency pair to convert, e.g., EUR/USD or BTC/ETH.",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "amount",
"in": "query",
"description": "Amount of base currency to be converted.",
"required": true,
"schema": {
"type": "number"
}
},
{
"name": "date",
"in": "query",
"description": "Exchange rate date in YYYY-MM-DD or YYYY-MM-DD HH:MM:SS format.",
"required": false,
"schema": {
"type": "string",
"format": "date-time"
}
},
{
"name": "format",
"in": "query",
"description": "Response format, either JSON or CSV. Default is JSON.",
"required": false,
"schema": {
"type": "string",
"enum": [
"JSON",
"CSV"
]
}
},
{
"name": "delimiter",
"in": "query",
"description": "Delimiter for CSV format. Default is semicolon (;).",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"symbol": {
"type": "string",
"example": "USD/JPY"
},
"rate": {
"type": "number",
"example": 105.12
},
"amount": {
"type": "number",
"example": 12824.64
},
"timestamp": {
"type": "integer",
"format": "int64",
"example": 1602714051
}
}
}
}
}
}
}
}
}
}
}