[Type] Currencies
Return
This endpoint allows you to retrieve a list of supported currencies in the system. It includes information about the currency code, name, and symbol.
Endpoint URL
https://api.wealthtechs.com/v2/graphql/
Authorization
// Authorization via JWT Token
Authorization: Bearer <YourToken>
Learn how to get access to our API V2.0 by clicking here.
You canΒ copyΒ andΒ useΒ ourΒ API v2.0 Public TokenΒ to get familiar with ourΒ API GraphQL Resources.
Responses
Code | Type |
---|---|
200 | Success |
204 | No Content |
400 | Bad Request |
401 | Unauthorized |
Example Code
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySW5mbyI6IntcIklkXCI6OTgxLFwiSWRlbnRpdHlJZFwiOlwiNjMyMzhhZTQtMzAyMC00NWI5LWEwODktOTE2ZTY4MDMyZTY3XCIsXCJVc2VyTmFtZVwiOlwiMF9URVNUX0NMSUVOVFwiLFwiRW1haWxcIjpcInRlc3RjbGllbnRAd2VhbHRodGVjaHMuY29tXCIsXCJGaXJzdE5hbWVcIjpcIlRlc3RcIixcIkxhc3ROYW1lXCI6XCJDbGllbnRcIixcIklzQ2xpZW50VXNlclwiOmZhbHNlfSIsIm5iZiI6MTY5NDcwMjU3OSwiZXhwIjoxOTI0OTIzNjAwLCJpc3MiOiJXZWFsdGhUZWNocyIsImF1ZCI6IkFQSVVzZXJzIn0.bNcP0ouNwtFoxrI7pYXw0WKiw0TN6w_R2-Ban5moo1A");
var graphql = JSON.stringify({
query: "query Currencies {\r\n currencies {\r\n nodes {\r\n id\r\n alpha2Code\r\n alpha3Code\r\n description\r\n }\r\n }\r\n}",
variables: {}
})
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: graphql,
redirect: 'follow'
};
fetch("https://api.wealthtechs.com/v2/graphql/", requestOptions)
.then(response => response.json())
.then(result => console.log(result))
.catch(error => console.log('error', error));
Example Response
{
"data": {
"currencies": {
"nodes": [
{
"id": 1,
"alpha2Code": "AE",
"alpha3Code": "AED",
"description": "Dirham"
},
{
"id": 2,
"alpha2Code": "AF",
"alpha3Code": "AFN",
"description": "Afghani"
},
{
"id": 3,
"alpha2Code": "AL",
"alpha3Code": "ALL",
"description": "Lek"
},
{
"id": 4,
"alpha2Code": "AM",
"alpha3Code": "AMD",
"description": "Dram"
},
{
"id": 5,
"alpha2Code": "AN",
"alpha3Code": "ANG",
"description": "Netherlands Antilles Guilder"
},
{
"id": 6,
"alpha2Code": "AO",
"alpha3Code": "AOA",
"description": "Angolan kwanza"
},
{
"id": 7,
"alpha2Code": "AR",
"alpha3Code": "ARS",
"description": "Peso"
},
{
"id": 8,
"alpha2Code": "AU",
"alpha3Code": "AUD",
"description": "Australian Dollars"
},
{
"id": 9,
"alpha2Code": "AZ",
"alpha3Code": "AZN",
"description": "Manat"
},
{
"id": 10,
"alpha2Code": "BA",
"alpha3Code": "BAM",
"description": "Bosnia and Herzegovina convertible mark"
}
]
}
}
}