availableCurrencies
Public: no authentication required.
Get list of all available currencies
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query AvailableCurrencies {
availableCurrencies {
code
name
decimalPlaces
symbol
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query AvailableCurrencies {\n availableCurrencies {\n code\n name\n decimalPlaces\n symbol\n }\n}"
}
EOF
Response:
{
"data": {
"availableCurrencies": [
{
"code": "string",
"name": "string",
"decimalPlaces": 0,
"symbol": "string"
}
]
}
}
availableCurrencies: [CurrencyListItem!]!
Type
CurrencyListItem object
A currency to pick from.