GetForexPairs
Access daily-updated forex pairs data via API. Filter by symbol, base currency, or quote currency to retrieve real-time forex market information.
Instructions
This API call returns an array of forex pairs available at Twelve Data API. This list is updated daily.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
params | Yes |
Input Schema (JSON Schema)
{
"$defs": {
"GetForexPairsRequest": {
"description": "This API call returns an array of forex pairs available at Twelve Data API. This list is updated daily.",
"properties": {
"apikey": {
"default": "demo",
"description": "API key",
"examples": [
"demo"
],
"title": "Apikey",
"type": "string"
},
"currency_base": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by currency base",
"examples": [
"EUR"
],
"title": "Currency Base"
},
"currency_quote": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by currency quote",
"examples": [
"USD"
],
"title": "Currency Quote"
},
"delimiter": {
"default": ";",
"description": "The separator used in the CSV response data",
"title": "Delimiter",
"type": "string"
},
"format": {
"default": "JSON",
"description": "The format of the response data",
"examples": [
"JSON",
"CSV"
],
"title": "Format",
"type": "string"
},
"outputsize": {
"default": 10,
"description": "Number of data points to retrieve. Supports values in the range from `1` to `5000`. Default `10` when no date parameters are set, otherwise set to maximum",
"examples": [
10
],
"title": "Outputsize",
"type": "integer"
},
"symbol": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The ticker symbol of an instrument for which data is requested",
"examples": [
"EUR/USD"
],
"title": "Symbol"
}
},
"title": "GetForexPairsRequest",
"type": "object"
}
},
"properties": {
"params": {
"$ref": "#/$defs/GetForexPairsRequest"
}
},
"required": [
"params"
],
"title": "GetForexPairsArguments",
"type": "object"
}