This endpoint provides up-to-date exchange rates for different currency pairs. You can use it to obtain exchange rates used in transactions and currency conversion.
Endpoint URL
https://api.wealthtechs.com/v1/FxRates
Authorization
// Authorization via JWT Token.Authorization:Bearer<YourToken>
Learn how to get your API v1.0 Token by clicking here.
Parameters
Type
Format
Required
CustodianId
integer($int32)
Required
Date
string($date-time)
format: yyyy-MM-dd
Required
Responses
Code
Type
200
Success
204
No Content
400
Bad Request
401
Unauthorized
Example Code
// JavaScript example using fetch() API// Store your JWT token in a variablelettoken='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySW5mbyI6IntcIklkXCI6OTM0LFwiSWRlbnRpdHlJZFwiOlwiNDI5NmIyMzItZGUxYy00YWZhLWFlYmItNDY5ZDYxZWU0NzJjXCIsXCJVc2VyTmFtZVwiOlwiTUFaT1o0NFwiLFwiRW1haWxcIjpcIm1hdGlhc3pvQHdlYWx0aHRlY2hzLmNvbVwiLFwiRmlyc3ROYW1lXCI6XCJNYXRpYXNcIixcIkxhc3ROYW1lXCI6XCJab3pheWFcIixcIklzQ2xpZW50VXNlclwiOmZhbHNlfSIsIm5iZiI6MTY5NDU0NDM2MiwiZXhwIjoxNjk0NjMwNzYyLCJpc3MiOiJXZWFsdGhUZWNocyIsImF1ZCI6IkFQSVVzZXJzIn0.6auZH-83ML_cDo2bqbgECvKcsvXOefbVg68xq-0di2g';// Set your desired parametersletcustodianId='16';letdate='2023-01-30';//yyyy-MM-dd// Make the request and log the responsefetch(`https://api.wealthtechs.com/v1/FxRates?CustodianId=${custodianId}&Date=${date}`,{headers:newHeaders({"Authorization":"Bearer "+token,}),}).then(response=>response.json()).then(data=>console.log(data));