Twelve Data Get Forex Pairs

0.5 credits/call
ae_twelvedata_get_forex_pairs

Find available foreign exchange currency pairs from Twelve Data. Filter by base currency, quote currency, or symbol.

Productivity
0.5 credits/call

Pricing

0.5 credits/call
ConditionCharge
Each call0.5 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
pageintegerNoZero-based page index when outputsize is provided: 0 is the first page, 1 is the second page, and so on. Use page together with outputsize for pagination. For an exact single-symbol lookup, omit pagination unless needed.0
formatenum (JSON | CSV)NoThe format of the response dataJSON
symbolstringNoThe ticker symbol of an instrument for which data is requested—
delimiterstringNoThe separator used in the CSV response data;
outputsizeintegerNoNumber of records per page. Combine with page=0 for the first page, then page=1, page=2, etc. Page and outputsize are not mutually exclusive. If omitted, all matching available records may be returned.—
currency_basestringNoFilter by currency base—
currency_quotestringNoFilter by currency quote—

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_twelvedata_get_forex_pairs' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "symbol": "EUR/USD"
  }
}'
Response exampleresponse.json
JSON
{
  "count": 1,
  "data": [
    {
      "currency_base": "Euro",
      "currency_group": "Major",
      "currency_quote": "US Dollar",
      "symbol": "EUR/USD"
    }
  ],
  "status": "ok"
}