Access Salem Gold 24k (SALE-24k) Historical Prices for development using this API
Access Salem Gold 24k (SALE-24k) Historical Prices for Development Using This API
In the world of precious metals trading, having access to accurate and timely data is crucial for making informed decisions. One of the most valuable resources for developers and traders alike is the Metals-API, which provides comprehensive access to historical prices for various metals, including Gold (XAU). This blog post will delve into the capabilities of the Metals-API, focusing on how to retrieve historical prices and the transformative potential of real-time metals data.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of wealth and investment. As digital transformation sweeps across industries, the precious metals market is no exception. The integration of technology in trading has ushered in a new era of data analytics and market insights, allowing traders to make more informed decisions based on real-time data. The Metals-API stands at the forefront of this transformation, providing developers with the tools needed to harness the power of data analytics in the precious metals market.
With the Metals-API, developers can access a wealth of information about Gold prices, including historical data that dates back to 2019. This capability is essential for those looking to analyze trends, forecast future prices, and make strategic investment decisions. The API empowers developers to build next-generation applications that leverage real-time metals data, enabling innovation in price discovery and digital asset solutions.
API Description
The Metals-API is a powerful tool that provides developers with access to real-time and historical data for various metals. This API is designed to facilitate the integration of metals pricing data into applications, allowing for seamless access to critical information. The API's capabilities include retrieving the latest rates, historical prices, bid and ask prices, and much more. By utilizing the Metals-API, developers can create applications that provide users with up-to-date information on metal prices, enhancing their trading strategies and decision-making processes.
For more detailed information on how to use the API, developers can refer to the Metals-API Documentation, which outlines the various endpoints and their functionalities. Additionally, the Metals-API Supported Symbols page provides a comprehensive list of available metal symbols, including XAU for Gold.
Key Features and Endpoints
The Metals-API offers a range of endpoints that cater to different data needs. Here are some of the key features and their potential applications:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated based on the user's subscription plan. Developers can use this feature to display current market prices in their applications, ensuring users have access to the latest 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 prices for analysis and trend forecasting.
- Bid and Ask Endpoint: This powerful feature allows developers to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert amounts from one metal to another or to/from USD. This feature is particularly useful for traders dealing with multiple currencies.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two chosen dates, allowing for in-depth analysis of price movements over time.
- Fluctuation Endpoint: This endpoint provides information about how metal prices fluctuate on a day-to-day basis, offering insights into market volatility.
- Carat Endpoint: Users can retrieve information about Gold rates by carat, which is essential for jewelers and those in the jewelry industry.
- Lowest/Highest Price Endpoint: This feature allows users to query the API for the lowest and highest prices of metals over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Developers can access OHLC data for a specific time period, which is crucial for technical analysis and trading strategies.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing for comprehensive market analysis.
- API Key: The API requires an API key for authentication, which is passed into the API base URL's access_key parameter.
- API Response: The Metals-API delivers exchange rates relative to USD, with all data returned in a structured JSON format.
- Available Endpoints: The API includes 14 endpoints, each offering unique functionalities to cater to various data needs.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
API Endpoint Examples and Responses
To illustrate the capabilities of the Metals-API, here are examples of JSON responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1774657094,
"base": "USD",
"date": "2026-03-28",
"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
{
"success": true,
"timestamp": 1774570694,
"base": "USD",
"date": "2026-03-27",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-03-21",
"end_date": "2026-03-28",
"base": "USD",
"rates": {
"2026-03-21": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-23": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-28": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1774657094,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-21",
"end_date": "2026-03-28",
"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) Price Endpoint
{
"success": true,
"timestamp": 1774657094,
"base": "USD",
"date": "2026-03-28",
"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
{
"success": true,
"timestamp": 1774657094,
"base": "USD",
"date": "2026-03-28",
"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 an invaluable resource for developers looking to access historical prices and real-time data for precious metals like Gold (XAU). By leveraging the API's extensive features, developers can create innovative applications that enhance trading strategies and provide users with critical market insights. Whether you are interested in historical rates, real-time pricing, or market fluctuations, the Metals-API offers the tools necessary to succeed in the dynamic world of precious metals trading.
For more information on how to get started with the Metals-API, visit the Metals-API Website and explore the comprehensive Metals-API Documentation for detailed guidance on implementation and usage. By utilizing this powerful API, you can unlock the full potential of precious metals data and drive your trading strategies to new heights.