Skip to content

Get benchmark

Request

Get the Integral FX benchmark rate for a given symbol.

Security
SSO_TOKEN
Query
symbolstring, <= 35 charactersrequired

Base and term currency separated by a slash /.

Example:symbol=AUD/USD
JavaScript
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);

Responses

An object with the Integral FX benchmark rate.

Bodyapplication/json
symbolstring, <= 35 characters

Base and term currency separated by a slash / (for example EUR/USD).

Example:"AUD/USD"
ratenumber, (double)

Benchmark rate.

Example:0.69746
uidstring, <= 128 characters

GUID for the rate.

Example:"G-4796976cd-17528d7b6ea-FXB-6237f19"
timestampinteger, (int64)

Rate timestamp in milliseconds Unix time, UTC timezone.

Example:1602708027114
Response
{ "symbol": "AUD/USD", "rate": 0.69746, "uid": "G-4796976cd-17528d7b6ea-FXB-6237f19", "timestamp": 1602708027114 }