Fetch Salem Gold 18k (SALE-18k) prices through this API
Introduction
In the ever-evolving landscape of precious metals trading, the ability to access real-time data is crucial for developers and traders alike. The Salem Gold 18k (SALE-18k) prices can be efficiently fetched through the Metals-API, a powerful tool that provides comprehensive data on various metals, including gold (XAU). This blog post delves into the capabilities of the Metals-API, its endpoints, and how it can transform the way developers interact with precious metals markets.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of wealth and investment. In recent years, the digital transformation in precious metals has opened new avenues for data analytics and market insights. The integration of technology in trading has revolutionized the way investors discover prices and manage their portfolios. With the rise of digital asset solutions, the demand for accurate and timely data has never been higher.
The Metals-API stands at the forefront of this transformation, offering developers the tools needed to build next-generation applications that leverage real-time metals data. By utilizing the API, developers can access a wealth of information that empowers them to make informed decisions and optimize their trading strategies.
API Description
The Metals-API is designed to provide developers with a robust platform for accessing real-time and historical data on various metals. With its innovative features, the API enables users to build applications that can track market trends, analyze price fluctuations, and convert between different metal currencies. The API is not just a data source; it is a transformative tool that enhances the trading experience.
For detailed information on how to implement the API, refer to the Metals-API Documentation, which provides comprehensive guidance on using the API effectively.
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
The Latest Rates Endpoint provides real-time exchange rate data for metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or every 10 minutes. This feature is essential for traders who need to stay informed about the latest market conditions.
{
"success": true,
"timestamp": 1767831246,
"base": "USD",
"date": "2026-01-08",
"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 to historical rates is crucial for analyzing market trends over time. The Historical Rates Endpoint allows users to query rates dating back to 2019 by appending a specific date. This feature is invaluable for conducting thorough market analyses and understanding price movements.
{
"success": true,
"timestamp": 1767744846,
"base": "USD",
"date": "2026-01-07",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
The Bid and Ask Endpoint is a powerful feature that retrieves real-time bid and ask prices for metals. This information is crucial for traders looking to execute trades at optimal prices. The bid price represents the maximum price that a buyer is willing to pay, while the ask price is the minimum price a seller is willing to accept.
{
"success": true,
"timestamp": 1767831246,
"base": "USD",
"date": "2026-01-08",
"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"
}
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for traders who need to quickly assess the value of their holdings in different currencies.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1767831246,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint enables users to query the API for daily historical rates between two dates of their choice. This feature is essential for traders looking to analyze price trends over specific periods.
{
"success": true,
"timeseries": true,
"start_date": "2026-01-01",
"end_date": "2026-01-08",
"base": "USD",
"rates": {
"2026-01-01": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-03": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-01-08": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides insights into how currencies fluctuate on a day-to-day basis. This information is vital for traders who need to understand market volatility and make informed trading decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-01",
"end_date": "2026-01-08",
"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"
}
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price Endpoint allows users to retrieve the open, high, low, and close prices for a specific time period. This data is crucial for technical analysis and helps traders identify market trends.
{
"success": true,
"timestamp": 1767831246,
"base": "USD",
"date": "2026-01-08",
"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"
}
Lowest/Highest Price Endpoint
The Lowest/Highest Price Endpoint allows users to query the API to get the lowest and highest price for a specific date. This feature is useful for traders looking to identify price extremes and make informed trading decisions.
{
"success": true,
"timestamp": 1767831246,
"base": "USD",
"date": "2026-01-08",
"rates": {
"XAU": {
"lowest": 0.000481,
"highest": 0.000487
},
"XAG": {
"lowest": 0.0381,
"highest": 0.0383
},
"XPT": {
"lowest": 0.00091,
"highest": 0.000918
}
},
"unit": "per troy ounce"
}
Historical LME Endpoint
The Historical LME Endpoint provides access to historical rates for LME symbols dating back to 2008. This endpoint is particularly useful for traders interested in the London Metal Exchange market.
{
"success": true,
"timestamp": 1767831246,
"base": "USD",
"date": "2026-01-08",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
},
"unit": "per troy ounce"
}
API Key and Response
Your API Key is essential for accessing the Metals-API. It is passed into the API base URL's access_key parameter to authenticate your requests. The API responses are delivered in JSON format, with exchange rates typically relative to USD. Understanding the structure of these responses is crucial for effective data handling.
Available Endpoints
The Metals-API offers a total of 14 endpoints, each providing unique functionalities. For a complete list of available endpoints, refer to the Metals-API Supported Symbols page.
News Endpoint
The News Endpoint allows users to retrieve the latest news articles related to various metals. Staying updated with market news is essential for making informed trading decisions.
Conclusion
The Metals-API is a powerful tool for developers and traders looking to access real-time and historical data on precious metals like gold (XAU). With its comprehensive features, including the Latest Rates, Historical Rates, and Bid/Ask endpoints, the API empowers users to make informed decisions and optimize their trading strategies. By leveraging the capabilities of the Metals-API, developers can build innovative applications that enhance the trading experience.
For more information on how to get started, visit the Metals-API Website and explore the extensive Metals-API Documentation for detailed implementation guidance.