Access Real-Time & Historical Moroccan Dirham Rate Information Using Indices-API
Access Real-Time & Historical Moroccan Dirham Rate Information Using Indices-API
In today's fast-paced financial landscape, having access to real-time and historical exchange rates is crucial for developers and businesses alike. The Moroccan Dirham (MAD) is a significant currency in North Africa, and understanding its fluctuations can provide valuable insights for various applications. With the Indices-API, developers can easily access both real-time and historical rates for the Moroccan Dirham, enabling them to build innovative applications that leverage this data.
About Moroccan Dirham (MAD)
The Moroccan Dirham (MAD) is the official currency of Morocco, and it plays a vital role in the region's economy. Understanding the exchange rates of the MAD against other currencies is essential for businesses involved in trade, tourism, and investment. The Indices-API provides a comprehensive solution for accessing the latest and historical exchange rates, allowing developers to integrate this data into their applications seamlessly.
API Description
The Indices-API is a powerful tool that offers developers the ability to access real-time and historical index data. With its user-friendly interface and extensive documentation, the API empowers developers to create next-generation applications that require accurate financial data. The API supports various endpoints that cater to different needs, including real-time rates, historical data, and currency conversion.
For more information on how to get started, visit the Indices-API Documentation.
Key Features and Endpoints
The Indices-API offers several key features that make it an invaluable resource for developers working with currency data:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data, updated every 60 minutes, every 10 minutes, or even more frequently, depending on your subscription plan. This feature is essential for applications that require up-to-the-minute data.
- Historical Rates Endpoint: Developers can access historical rates for the Moroccan Dirham dating back to 1999. By appending a specific date in the format YYYY-MM-DD, users can retrieve past exchange rates, which is crucial for trend analysis and financial forecasting.
- Convert Endpoint: This endpoint allows users to convert amounts from one currency to another, including conversions to and from USD. This feature is particularly useful for applications that need to display prices in different currencies.
- Time-Series Endpoint: The time-series endpoint enables users to query daily historical rates between two specified dates. This is beneficial for analyzing trends over time and understanding market movements.
- Fluctuation Endpoint: With this endpoint, developers can track how currencies fluctuate on a day-to-day basis, providing insights into market volatility.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides detailed OHLC data for a specific time period, allowing for in-depth analysis of market performance.
- API Key: Each user is assigned a unique API key, which must be included in the API requests to authenticate access.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data representation.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, making it easy for developers to find the symbols they need.
List of Symbols
The Indices-API provides access to a diverse range of index symbols. For a complete list of all supported symbols and their specifications, refer to the Indices-API Supported Symbols page.
API Endpoint Examples and Responses
Latest Rates Endpoint
To get real-time exchange rates for all available indices, you can use the following endpoint:
GET https://api.indices-api.com/latest?access_key=YOUR_API_KEY
Example response:
{
"success": true,
"timestamp": 1772239984,
"base": "USD",
"date": "2026-02-28",
"rates": {
"DOW": 0.00029,
"NASDAQ": 0.00039,
"S&P 500": 0.00024,
"FTSE 100": 0.00058,
"DAX": 0.00448,
"CAC 40": 0.00137,
"NIKKEI 225": 0.0125
},
"unit": "per index"
}
This response indicates that the API successfully retrieved the latest rates, with the base currency being USD. Each index's rate is provided, allowing developers to utilize this data in their applications.
Historical Rates Endpoint
To access historical exchange rates for any date since 1999, use the following endpoint:
GET https://api.indices-api.com/historical?access_key=YOUR_API_KEY&date=YYYY-MM-DD
Example response:
{
"success": true,
"timestamp": 1772153584,
"base": "USD",
"date": "2026-02-27",
"rates": {
"DOW": 0.00028,
"NASDAQ": 0.00038,
"S&P 500": 0.00023,
"FTSE 100": 0.0124,
"DAX": 0.0126,
"CAC 40": 0.0126,
"NIKKEI 225": 0.0126
},
"unit": "per index"
}
This response shows the historical rates for the specified date, allowing developers to analyze past market conditions.
Time-Series Endpoint
To get exchange rates for a specific time period, use the following endpoint:
GET https://api.indices-api.com/timeseries?access_key=YOUR_API_KEY&start_date=YYYY-MM-DD&end_date=YYYY-MM-DD
Example response:
{
"success": true,
"timeseries": true,
"start_date": "2026-02-21",
"end_date": "2026-02-28",
"base": "USD",
"rates": {
"2026-02-21": {
"DOW": 0.00028,
"NASDAQ": 0.00038,
"S&P 500": 0.00023,
"FTSE 100": 0.0124,
"DAX": 0.0126,
"CAC 40": 0.0126,
"NIKKEI 225": 0.0126
},
"2026-02-23": {
"DOW": 0.00029,
"NASDAQ": 0.00039,
"S&P 500": 0.00024,
"FTSE 100": 0.0124,
"DAX": 0.0126,
"CAC 40": 0.0126,
"NIKKEI 225": 0.0126
},
"2026-02-28": {
"DOW": 0.00029,
"NASDAQ": 0.00039,
"S&P 500": 0.00024,
"FTSE 100": 0.0124,
"DAX": 0.0126,
"CAC 40": 0.0126,
"NIKKEI 225": 0.0126
}
},
"unit": "per index"
}
This response provides daily rates for the specified date range, enabling developers to analyze trends over time.
Convert Endpoint
To convert any amount from one currency to another, use the following endpoint:
GET https://api.indices-api.com/convert?access_key=YOUR_API_KEY&from=USD&to=DOW&amount=1000
Example response:
{
"success": true,
"query": {
"from": "USD",
"to": "DOW",
"amount": 1000
},
"info": {
"timestamp": 1772239984,
"rate": 0.00029
},
"result": 0.29,
"unit": "per index"
}
This response shows the conversion result, indicating how much 1000 USD is worth in DOW indices.
Fluctuation Endpoint
To track rate fluctuations between two dates, use the following endpoint:
GET https://api.indices-api.com/fluctuation?access_key=YOUR_API_KEY&start_date=YYYY-MM-DD&end_date=YYYY-MM-DD
Example response:
{
"success": true,
"fluctuation": true,
"start_date": "2026-02-21",
"end_date": "2026-02-28",
"base": "USD",
"rates": {
"DOW": {
"start_rate": 0.00028,
"end_rate": 0.00029,
"change": 1.0e-5,
"change_pct": 3.57
},
"NASDAQ": {
"start_rate": 0.00038,
"end_rate": 0.00039,
"change": 1.0e-5,
"change_pct": 2.63
},
"S&P 500": {
"start_rate": 0.0124,
"end_rate": 0.0125,
"change": 0.0001,
"change_pct": 0.81
}
},
"unit": "per index"
}
This response provides detailed information about how the rates have changed over the specified period, which is essential for market analysis.
OHLC (Open/High/Low/Close) Endpoint
To get OHLC data for a specific time period, use the following endpoint:
GET https://api.indices-api.com/ohlc?access_key=YOUR_API_KEY&date=YYYY-MM-DD
Example response:
{
"success": true,
"timestamp": 1772239984,
"base": "USD",
"date": "2026-02-28",
"rates": {
"DOW": {
"open": 0.00028,
"high": 0.00029,
"low": 0.00027,
"close": 0.00029
},
"NASDAQ": {
"open": 0.00038,
"high": 0.0004,
"low": 0.00037,
"close": 0.00039
},
"S&P 500": {
"open": 0.0124,
"high": 0.0126,
"low": 0.0123,
"close": 0.0125
}
},
"unit": "per index"
}
This response provides the open, high, low, and close prices for the specified date, which is crucial for traders and analysts.
Bid/Ask Endpoint
To get current bid and ask prices for indices, use the following endpoint:
GET https://api.indices-api.com/bidask?access_key=YOUR_API_KEY
Example response:
{
"success": true,
"timestamp": 1772239984,
"base": "USD",
"date": "2026-02-28",
"rates": {
"DOW": {
"bid": 0.00028,
"ask": 0.00029,
"spread": 1.0e-5
},
"NASDAQ": {
"bid": 0.00038,
"ask": 0.00039,
"spread": 1.0e-5
},
"S&P 500": {
"bid": 0.0124,
"ask": 0.0125,
"spread": 0.0001
}
},
"unit": "per index"
}
This response provides the current bid and ask prices, which are essential for traders looking to make informed decisions.
Conclusion
Accessing real-time and historical Moroccan Dirham rate information using the Indices-API is a straightforward process that can significantly enhance the capabilities of your applications. With various endpoints available, developers can retrieve the latest rates, historical data, and perform conversions with ease. The API's robust features and comprehensive documentation make it an ideal choice for those looking to integrate financial data into their projects.
For more detailed information on how to implement these features, refer to the Indices-API Documentation. Additionally, explore the Indices-API Supported Symbols page to familiarize yourself with the available currencies and indices.
By leveraging the power of the Indices-API, developers can create innovative applications that provide users with valuable insights into currency fluctuations and market trends, ultimately driving better decision-making in financial contexts.