Get Mysore Gold 24k (MYSO-24k) Historical Prices for data visualization with this API
Introduction
In the world of precious metals trading, having access to accurate and timely data is crucial for making informed decisions. One of the most sought-after metals is gold, represented by the symbol XAU. For developers and traders looking to visualize historical prices of gold, the Metals-API offers a powerful solution. This API provides a comprehensive suite of endpoints that allow users to access real-time and historical data, enabling them to create insightful visualizations and analytics.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, often serving as a safe haven during economic uncertainty. As digital transformation sweeps across industries, the precious metals market is no exception. The integration of data analytics and technology in trading has revolutionized how investors approach gold trading. With the rise of digital asset solutions, traders can now leverage real-time data to make more informed decisions.
Data analytics plays a pivotal role in understanding market trends and price movements. By utilizing the Metals-API Documentation, developers can access a wealth of information that can be used to analyze historical price trends, fluctuations, and market insights. This data can be visualized in various formats, providing traders with a clearer picture of market dynamics.
Technological Integration in Trading
The integration of technology in trading has led to innovative approaches in price discovery. The Metals-API empowers developers to build next-generation applications that can process and analyze vast amounts of data in real-time. This capability allows for more accurate pricing models and better risk management strategies. By harnessing the power of the API, traders can create applications that not only display current prices but also analyze historical data to predict future trends.
Innovation in Price Discovery
Price discovery is a critical aspect of trading, and the Metals-API provides several endpoints that facilitate this process. For instance, the Latest Rates Endpoint allows users to retrieve real-time exchange rate data for gold and other metals. Depending on the subscription plan, this data can be updated every 60 minutes or even more frequently, ensuring that traders have the most current information at their fingertips.
API Description
The Metals-API is designed to provide developers with a robust and flexible platform for accessing metals data. With a focus on innovation and technological advancement, this API enables users to build applications that can transform how precious metals are traded and analyzed. The API supports a wide range of functionalities, from retrieving the latest rates to accessing historical data dating back to 2019.
One of the standout features of the Metals-API is its ability to deliver data in a user-friendly JSON format. This makes it easy for developers to integrate the API into their applications and start utilizing the data immediately. The API also includes a comprehensive list of supported symbols, allowing users to access information for various metals, including silver (XAG), platinum (XPT), and palladium (XPD). For a complete list of symbols, refer to the Metals-API Supported Symbols page.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rates for all available metals. The data is updated based on the user's subscription plan, ensuring that traders have access to the most current information.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve historical data for analysis.
- Bid and Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for metals, facilitating better trading decisions.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert amounts between different metals or to/from USD.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, providing insights into price movements over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, which is essential for understanding market volatility.
- Carat Endpoint: This feature provides information about gold rates by carat, allowing users to access detailed pricing information based on purity.
- Lowest/Highest Price Endpoint: Users can query the API to find the lowest and highest prices for a specified date, which is useful for identifying market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, offering a comprehensive view of market activity.
- Historical LME Endpoint: This endpoint allows users to access historical rates for LME symbols dating back to 2008, providing a wealth of data for analysis.
- API Key: Each user is assigned a unique API key, which is required to access the API's functionalities.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data presentation.
- Available Endpoints: The Metals-API features 14 different endpoints, each designed to provide specific functionalities.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers. 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": 1773793195,
"base": "USD",
"date": "2026-03-18",
"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"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1773706795,
"base": "USD",
"date": "2026-03-17",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2026-03-11",
"end_date": "2026-03-18",
"base": "USD",
"rates": {
"2026-03-11": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-13": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-18": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
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": 1773793195,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-11",
"end_date": "2026-03-18",
"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"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1773793195,
"base": "USD",
"date": "2026-03-18",
"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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1773793195,
"base": "USD",
"date": "2026-03-18",
"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"
}
Conclusion
The Metals-API is a transformative tool for developers and traders in the precious metals market. By providing access to real-time and historical data, the API empowers users to create innovative applications that enhance trading strategies and market analysis. With features such as the Latest Rates Endpoint, Historical Rates Endpoint, and various conversion options, the API offers a comprehensive solution for anyone looking to visualize and analyze gold prices.
As the market continues to evolve, leveraging technology and data analytics will be essential for success. The Metals-API not only simplifies access to critical data but also opens up new possibilities for developers to create applications that can adapt to changing market conditions. For more information on how to get started, visit the Metals-API Documentation and explore the extensive features available.