{
"type": "object",
"properties": {
"currencyCodes": {
"type": "array",
"items": {
"type": "string",
"enum": [
"EUR",
"USD",
"GBP",
"CAD",
"CNY",
"TRY",
"CHF",
"SAR",
"AED",
"TND",
"MAD",
"DZD"
]
},
"description": "Optional list of currency codes to return. Defaults to all supported currencies."
},
"includeOfficial": {
"type": "boolean",
"description": "Whether to include the official EUR rate in the response.",
"default": true
}
},
"required": []
}{
"type": "object",
"properties": {
"amount": {
"type": "number",
"minimum": 0,
"description": "Amount to convert."
},
"currencyCode": {
"type": "string",
"enum": [
"EUR",
"USD",
"GBP",
"CAD",
"CNY",
"TRY",
"CHF",
"SAR",
"AED",
"TND",
"MAD"
],
"description": "Currency code to convert to or from DZD."
},
"direction": {
"type": "string",
"enum": [
"toDZD",
"fromDZD"
],
"description": "Conversion direction. Use \"toDZD\" to convert foreign currency into DZD, or \"fromDZD\" to convert DZD into foreign currency."
},
"rateType": {
"type": "string",
"enum": [
"buy",
"sell"
],
"default": "buy",
"description": "Whether to use the buy or sell rate for conversion."
}
},
"required": [
"amount",
"currencyCode",
"direction"
]
}{
"type": "object",
"properties": {
"date": {
"type": "string",
"description": "Historical date in YYYY-MM-DD format."
}
},
"required": [
"date"
]
}