API reference/REST API//
- Get spot rate by type and symbol for organization
Get spot rate by symbol
Get spot rate by type and symbol
Get market data
Get benchmark
Get ticker
Get spot rate by type and...
Get real-time spot bid and offer rates by rate type and symbol from liquidity providers for an organization. Returns an aggregated list of rates, which may include prices from multiple liquidity providers or external market data sources.
Security
SSO_TOKEN
- Mock serverhttps://docs.fxinside.net/_mock/openapi/integral-api-reference/rest/v2/rates/spot/{type}/{org}
const query = new URLSearchParams({symbol: 'EUR/USD'}).toString();
const type = 'TOB';
const org = 'BrokerOrgA1';
const resp = await fetch(
`https://docs.fxinside.net/_mock/openapi/integral-api-reference/rest/v2/rates/spot/${type}/${org}?${query}`,
{
method: 'GET',
headers: {
SSO_TOKEN: 'YOUR_API_KEY_HERE'
}
}
);
const data = await resp.text();
console.log(data);Response
type=TOB (spot rate object with top-of-book rates)
{ "symbol": "EUR/USD", "bid": 1.1863, "offer": 1.18638, "bidLimit": 1000000, "offerLimit": 1000000, "time": 1602536120080, "rateId": "2022-11-10-EURUSD-SPOT-435ef73249" }