Get the last traded price for a given symbol.
Security
SSO_TOKEN
- Mock serverhttps://docs.fxinside.net/_mock/openapi/integral-api-reference/rest/v2/ticker
const query = new URLSearchParams({symbol: 'EUR/USD'}).toString();
const resp = await fetch(
`https://docs.fxinside.net/_mock/openapi/integral-api-reference/rest/v2/ticker?${query}`,
{
method: 'GET',
headers: {
SSO_TOKEN: 'YOUR_API_KEY_HERE'
}
}
);
const data = await resp.text();
console.log(data);An object with the last traded price.
Base and term currency separated by a slash / (for example EUR/USD).
Example:"AUD/USD"
Response
{ "symbol": "AUD/USD", "rate": 0.69746, "isBid": true, "timestamp": 1602505075906, "bid": true }