Get Moroccan Dirham (MAD) Historical Prices for Your Application using this API
Introduction
In today's fast-paced financial landscape, accessing accurate and historical currency data is crucial for developers and businesses alike. If you're looking to get Moroccan Dirham (MAD) historical prices for your application, the Metals-API offers a robust solution. This API provides real-time and historical data for various metals and currencies, enabling developers to create applications that require precise financial information.
Understanding Molybdenum and Its Market Dynamics
Molybdenum (MO) is a critical metal used in various industrial applications, particularly in steel production and manufacturing. As the demand for high-strength materials increases, the importance of tracking molybdenum prices becomes paramount. The digital transformation in metal markets has led to the integration of advanced technologies, allowing for real-time data analytics and insights.
Technological innovations have revolutionized how we approach metal trading and investment. With the advent of smart technology integration, developers can leverage APIs like Metals-API to access comprehensive data on molybdenum and other metals. This API empowers developers to build next-generation applications that can analyze market trends, forecast prices, and provide valuable insights to users.
API Capabilities and Features
The Metals-API is designed to provide developers with a seamless experience when accessing metal prices and currency conversion data. With its innovative features, the API allows for real-time updates and historical data retrieval, making it an essential tool for financial applications.
One of the standout features of the Metals-API is its Latest Rates Endpoint, which provides real-time exchange rate data for metals. Depending on your subscription plan, this endpoint updates every 60 minutes, every 10 minutes, or even more frequently, ensuring that you have the most current information at your fingertips.
For those interested in historical data, the Historical Rates Endpoint allows you to access rates dating back to 2019. By appending a specific date in the format YYYY-MM-DD, developers can retrieve historical prices for any metal, including molybdenum, which is invaluable for trend analysis and market forecasting.
The Bid and Ask Endpoint is another powerful feature that enables users to retrieve real-time bid and ask prices for metals. This is particularly useful for traders who need to make quick decisions based on the latest market conditions.
Additionally, the Convert Endpoint allows for seamless currency conversion, enabling users to convert any amount from one currency to another. This feature is essential for applications that require multi-currency support, especially in international trading scenarios.
The Time-Series Endpoint provides the ability to query daily historical rates between two dates of your choice. This is particularly useful for analyzing price movements over time and understanding market volatility.
For developers interested in tracking fluctuations, the Fluctuation Endpoint offers insights into how currencies fluctuate on a day-to-day basis. This endpoint can help identify trends and patterns that may influence trading strategies.
Moreover, the Carat Endpoint allows users to retrieve information about gold rates by carat, which is essential for jewelers and investors in precious metals. The Lowest/Highest Price Endpoint enables users to query the API for the lowest and highest prices within a specified timeframe, providing valuable insights into market extremes.
For more detailed analysis, the Open/High/Low/Close (OHLC) Price Endpoint provides comprehensive data on the open, high, low, and close prices for a specific date. This data is crucial for traders who rely on candlestick patterns and other technical analysis tools.
The Historical LME Endpoint offers access to historical rates for LME symbols dating back to 2008, making it an invaluable resource for those interested in long-term trends in the metals market.
To access the API, developers must use their unique API Key, which is passed into the API base URL's access_key parameter. This key ensures secure access to the API's features and data.
All exchange rates delivered by the Metals-API are relative to USD by default, and the data is returned in a structured JSON format, making it easy to integrate into applications.
For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Understanding the API's responses is crucial for effective integration. Below are examples of various endpoints and their corresponding JSON responses.
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1783901849,
"base": "USD",
"date": "2026-07-13",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744,
"XCU": 0.294118,
"XAL": 0.434783,
"XNI": 0.142857,
"XZN": 0.344828
},
"unit": "per troy ounce"
}
In this response, the success field indicates whether the request was successful, while the timestamp provides the time of the request. The base field shows the base currency, and the rates object contains the exchange rates for various metals.
Historical Rates Endpoint
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1783815449,
"base": "USD",
"date": "2026-07-12",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response structure is similar to the latest rates, but it provides historical data for a specific date. The date field indicates the date for which the rates are provided.
Time-Series Endpoint
Get exchange rates for a specific time period.
{
"success": true,
"timeseries": true,
"start_date": "2026-07-06",
"end_date": "2026-07-13",
"base": "USD",
"rates": {
"2026-07-06": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-07-08": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-07-13": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of rates between two specified dates, allowing developers to analyze trends over time.
Convert Endpoint
Convert any amount from one metal to another or to/from USD.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1783901849,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The Convert Endpoint allows users to convert a specified amount from one currency to another. The result field shows the converted amount, while the rate field provides the conversion rate used.
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-07-06",
"end_date": "2026-07-13",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
},
"XAG": {
"start_rate": 0.03825,
"end_rate": 0.03815,
"change": -0.0001,
"change_pct": -0.26
},
"XPT": {
"start_rate": 0.000915,
"end_rate": 0.000912,
"change": -3.0e-6,
"change_pct": -0.33
}
},
"unit": "per troy ounce"
}
This endpoint provides detailed information about how rates have changed over a specified period, including the percentage change.
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1783901849,
"base": "USD",
"date": "2026-07-13",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
},
"XAG": {
"open": 0.03825,
"high": 0.0383,
"low": 0.0381,
"close": 0.03815
},
"XPT": {
"open": 0.000915,
"high": 0.000918,
"low": 0.00091,
"close": 0.000912
}
},
"unit": "per troy ounce"
}
The OHLC data is essential for traders who analyze price movements and make informed decisions based on historical performance.
Bid/Ask Endpoint
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1783901849,
"base": "USD",
"date": "2026-07-13",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
},
"XAG": {
"bid": 0.0381,
"ask": 0.0382,
"spread": 0.0001
},
"XPT": {
"bid": 0.000911,
"ask": 0.000913,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}
This endpoint provides the current bid and ask prices, along with the spread, which is crucial for traders looking to execute orders at the best possible prices.
Conclusion
In conclusion, the Metals-API is an invaluable resource for developers seeking to access Moroccan Dirham (MAD) historical prices and other metal data. With its comprehensive features, including real-time rates, historical data, and various endpoints for conversion and fluctuation tracking, this API empowers developers to create sophisticated financial applications.
By leveraging the capabilities of the Metals-API, developers can gain insights into market trends, optimize trading strategies, and provide users with accurate and timely information. Whether you're building a trading platform, a financial analysis tool, or a currency conversion application, the Metals-API offers the tools you need to succeed.
For more information on how to get started, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available currencies and metals. With the right tools and data, you can unlock the potential of the metals market and enhance your application's capabilities.