Get the Integral FX benchmark rate for a given symbol.
Security
SSO_TOKEN
- Mock serverhttps://docs.fxinside.net/_mock/openapi/integral-api-reference/rest/v2/benchmark
const query = new URLSearchParams({symbol: 'AUD/USD'}).toString();
const resp = await fetch(
`https://docs.fxinside.net/_mock/openapi/integral-api-reference/rest/v2/benchmark?${query}`,
{
method: 'GET',
headers: {
SSO_TOKEN: 'YOUR_API_KEY_HERE'
}
}
);
const data = await resp.text();
console.log(data);An object with the Integral FX benchmark rate.
Base and term currency separated by a slash / (for example EUR/USD).
Example:"AUD/USD"
Response
{ "symbol": "AUD/USD", "rate": 0.69746, "uid": "G-4796976cd-17528d7b6ea-FXB-6237f19", "timestamp": 1602708027114 }