Get rates from market data sets (MDSs) managed by the Integral Pricing engine.
The MDS workflow determines the parameters you need to send and the type of rates you receive.
Regular workflow
A regular MDS contains active market rates.
Required parameter values for regular rates:
id: you must include the ID of a regular MDS.org: you must omit this parameter for regular rates. If you specify theidof a regular MDS and theorgparameter, an error is returned.symbol: you must include eithersymbolorsymbols. If neither is included, an error is returned.symbols: you must include eithersymbolorsymbols. If neither is included, an error is returned.
/v2/marketdataset?id=RealTimeMDS&symbol=EUR/USD
/v2/marketdataset?id=RealTimeMDS&symbols=EUR/USD,USD/JPY,USD/CAD&tenor=1W
End-of-day workflow
An end-of-day MDS contains reference rates and is active after a specific time, typically after the end of the business day.
Required parameter values for end-of-day rates:
id: you must include the ID of an end-of-day MDS.org: you must omit this parameter for end-of-day rates. If you specify theidof a end-of-day MDS and theorgparameter, an error is returned.symbol: you must include eithersymbolorsymbols. If neither is included, an error is returned.symbols: you must include eithersymbolorsymbols. If neither is included, an error is returned.
/v2/marketdataset?id=EODMDS&symbol=EUR/USD
/v2/marketdataset?id=EODMDS&symbol=EUR/USD&date=2024-10-24
Fixed-period workflow
A fixed-period MDS contains rates generated at a specific time and that are active and valid during a specified time window with a start and end time.
Required parameter values for fixed-period rates:
id: you must include eitheridororg. Do not include both. Specify the MDS ID for fixed-period rates from a specific fixed-period MDS.org: you must include eitheridororg. Do not include both. Specify the organization ID for rates from all fixed-period MDSs for the organization.
/v2/marketdataset?id=FixedPeriodMDS&symbol=EUR/USD
/v2/marketdataset?id=FixedPeriodMDS&symbol=EUR/USD&date=2024-10-24&timeWindow=1500-1700
/v2/marketdataset?org=organizationID&date=2024-10-24&timeWindow=1500-1700
ID of market data set from the Integral Pricing Engine.
Required for regular market data sets.
Optional for EOD and fixed-period market data sets.
If not included, you must include org. Do not include both id and org in your request.
Comma-separated list of currency pairs. Each currency pair consists of base and term currencies separated by a slash "/" (for example EUR/USD,USD/JPY,NZD/USD). Optional for fixed-period workflow. For regular and end-of-day workflows, you must include either symbol or symbols. If neither is included, an error is returned.
MDS tenor. If not specified, all rates configured in the MDS are returned.
Today: todayTOD: todayON: overnight (today)TN: tomorrowSP: spotSPOT: spotSN: spot next (spot+1)- n
D: a number of days after the current business date (for example, 1D, 2D, 10D) - n
W: a number of weeks after the current business date (for example, 1W, 2W, 3W) - n
M: a number of months after the current business date (for example, 1M, 2M, 3M) - n
Y: a number of years after the current business date (for example, 1Y, 2Y, 3Y) - n
IMM: The next International Monetary Market (IMM) settlement date. IMM dates are the third Wednesday of the last month of every quarter (March, June, September, December).IMMresults in the next IMM date on or after the spot date.2IMMresults in two IMM dates after the spot date. SnIMM: (spot + IMM) for swapsTnIMM: (tomorrow + IMM) for swaps
Time in 24-hour format during which the market date set is active, either a discrete time hhmm or a time period with a start time and end time hhmm-hhmm. If not specified, currently active market data sets are returned.
const query = new URLSearchParams({
id: 'RealTimeMDS',
org: 'BNK1-4HOrg',
symbol: 'EUR/USD',
symbols: 'EUR/USD,USD/JPY',
date: '2024-10-24',
tenor: 'SPOT',
timeWindow: '1500-1700'
}).toString();
const resp = await fetch(
`https://docs.fxinside.net/_mock/openapi/integral-api-reference/rest/v2/marketdataset?${query}`,
{
method: 'GET',
headers: {
SSO_TOKEN: 'YOUR_API_KEY_HERE'
}
}
);
const data = await resp.text();
console.log(data);A market data set object containing one or more rates.
Business date of the current market data set in the format YYYY-MM-DD. Applicable to end-of-day and fixed-period MDSs only. Null for regular MDSs.
Applicable to fixed-period market data sets only. Time window when the rates in the market data set are active. Specified in 24-hour format from start time to end time (hhmm-hhmm).
Market data set creation date/time in the 24-hour format yyyy-MM-dd HH:mm:ss,SSS Z.
Applicable to fixed-period market data sets only. Market data set activation date/time in the 24-hour format yyyy-MM-dd HH:mm:ss,SSS Z.
Applicable to fixed-period market data sets only. Date/time the market data set is valid until in the 24-hour format yyyy-MM-dd HH:mm:ss,SSS Z.
Applicable to fixed-period market data sets only. Date/time in 24-hour GMT the next market data set creation in the format yyyy-MM-dd HH:mm:ss,SSS Z.
Applicable to fixed-period market data sets only. Date/time at which the market data set expires in the format yyyy-MM-dd HH:mm:ss,SSS Z. The time is calculated by adding the Create Frequency value from the MDS configuration in the pricing engine to the activationTime value.
- Real-time market data set with one rate
- Real-time market data set with multiple rates
- End-of-day market data set with one rate
- End-of-day market data set with multiple rates
- Fixed-period market data set with one rate
- Fixed-period market data set with multiple rates
- Multiple fixed-period market data sets
[ { "id": "RealTimeMDS", "date": null, "timeWindow": null, "name": "Real-time market data", "createdTime": null, "activationTime": null, "validUntil": null, "nextCreationTime": null, "expirationTime": null, "rates": [ … ] } ]