Access Salem Gold 24k (SALE-24k) Historical Prices for Market Analysis via this API
Access Salem Gold 24k (SALE-24k) Historical Prices for Market Analysis via this API
In the ever-evolving landscape of precious metals trading, gold (XAU) remains a cornerstone for investors and traders alike. The ability to access historical prices is crucial for market analysis, and the Metals-API provides a robust solution for developers seeking to integrate real-time and historical gold data into their applications. This blog post will delve into the transformative potential of the Metals-API, exploring its capabilities, features, and how it can empower developers to create next-generation applications that leverage gold market insights.
About Gold (XAU)
Gold has long been regarded as a safe-haven asset, particularly during times of economic uncertainty. As digital transformation sweeps across various industries, the precious metals market is no exception. The integration of data analytics and technology into trading practices is reshaping how investors approach gold trading. With the rise of digital asset solutions, the demand for accurate and timely data has never been higher.
In this context, the Metals-API stands out as a powerful tool for accessing gold prices and other precious metals data. By utilizing this API, developers can harness the power of real-time data analytics to gain insights into market trends, price fluctuations, and historical performance. This enables them to make informed decisions and optimize their trading strategies.
API Description
The Metals-API is designed to provide developers with comprehensive access to metals prices and currency conversion data through a simple and intuitive JSON API. Its innovative capabilities allow for seamless integration into various applications, enabling users to retrieve real-time and historical data effortlessly. The API empowers developers to build applications that can analyze market trends, track price movements, and provide valuable insights into the precious metals market.
For more detailed information, you can visit the Metals-API Website or refer to the Metals-API Documentation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs within the precious metals market. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for gold and other metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on your subscription plan. This feature is essential for traders who need to stay updated on market movements.
- Historical Rates Endpoint: Access historical rates dating back to 2019 by appending a specific date (YYYY-MM-DD) to the API request. This is invaluable for conducting market analysis and understanding price trends over time.
- Bid and Ask Endpoint: Retrieve real-time bid and ask prices for metals, allowing traders to make informed decisions based on current market conditions.
- Convert Endpoint: This feature enables users to convert any amount from one metal to another or to/from USD, facilitating easy transactions and calculations.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, providing a comprehensive view of price movements over a specified period.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, offering insights into market volatility and trends.
- Carat Endpoint: Retrieve information about gold rates by carat, which is particularly useful for jewelers and those in the jewelry industry.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specified date, helping traders identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Get detailed OHLC data for a specific time period, essential for technical analysis and trading strategies.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term view of market trends.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users informed about market developments.
For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers. Below are examples of various API endpoints and their responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1776039268,
"base": "USD",
"date": "2026-04-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"
}
The response indicates the success of the request and provides the latest rates for various metals, including gold (XAU). The rates are expressed per troy ounce, which is the standard measurement for precious metals.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1775952868,
"base": "USD",
"date": "2026-04-12",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This endpoint allows users to access historical exchange rates for any date since 1999. The response includes the rates for gold and other metals, enabling users to analyze past performance.
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-04-06",
"end_date": "2026-04-13",
"base": "USD",
"rates": {
"2026-04-06": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-04-08": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-04-13": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint provides a detailed view of exchange rates over a specified period, allowing for in-depth analysis of price trends.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1776039268,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This endpoint allows users to convert amounts between different metals or to/from USD. The response includes the conversion rate and the result, making it easy to perform financial calculations.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-04-06",
"end_date": "2026-04-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"
}
The fluctuation endpoint provides insights into how prices have changed over a specified period, highlighting both absolute changes and percentage fluctuations.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1776039268,
"base": "USD",
"date": "2026-04-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"
}
This endpoint provides essential data for traders, including the opening, highest, lowest, and closing prices for a specific date, which is crucial for technical analysis.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1776039268,
"base": "USD",
"date": "2026-04-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"
}
The bid/ask endpoint provides current bid and ask prices, along with the spread, which is essential for traders to understand market liquidity and make informed trading decisions.
Conclusion
The Metals-API is a powerful tool for developers looking to access historical prices and real-time data for gold and other precious metals. By leveraging its various endpoints, developers can create applications that provide valuable insights into market trends, price fluctuations, and trading strategies. The ability to access comprehensive data, including historical rates, bid/ask prices, and conversion capabilities, empowers users to make informed decisions in the precious metals market.
As the digital transformation continues to shape the financial landscape, integrating advanced data analytics and technology into trading practices will be crucial for success. The Metals-API stands at the forefront of this transformation, offering developers the tools they need to build innovative applications that drive market insights and enhance trading strategies.
For more information on how to get started with the Metals-API, visit the Metals-API Documentation and explore the extensive capabilities of this powerful API.