Skip to content

Get ticker

Request

Get the last traded price for a given symbol.

Security
SSO_TOKEN
Query
symbolstring, <= 35 charactersrequired

Base and term currency separated by a slash /.

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

Responses

An object with the last traded price.

Bodyapplication/json
symbolstring, <= 35 characters

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

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

Rate, either bid or offer based on value of bid attribute.

Example:0.69746
isBidstring, <= 6 characters

Whether or not the rate is bid or offer:

  • true=bid

  • false=offer

Example:true
timestampinteger, (int64)

Rate timestamp in Unix time, UTC timezone.

Example:1602505075906
bidboolean

Whether or not the rate is bid or offer:

  • true=bid

  • false=offer

Example:true
Response
{ "symbol": "AUD/USD", "rate": 0.69746, "isBid": true, "timestamp": 1602505075906, "bid": true }