How to get Ludhiana Gold 24k (LUDH-24k) prices from the API
Introduction
In the world of precious metals trading, obtaining accurate and real-time data is crucial for making informed decisions. One of the most sought-after assets is Gold, represented by the symbol XAU. For developers and traders looking to access the latest Gold prices, the Metals-API provides a robust solution. This blog post will delve into the capabilities of the Metals-API, exploring how it empowers users to access Gold prices and other metal data efficiently.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and stability, often seen as a safe haven during economic uncertainty. As digital transformation sweeps across industries, the precious metals market is no exception. The integration of technology into trading practices has revolutionized how traders access and analyze market data. With the rise of data analytics, traders can now gain insights into market trends, price movements, and historical data, enabling them to make more informed decisions.
The Metals-API plays a pivotal role in this transformation. By providing real-time data and analytics, it allows developers to create applications that can track Gold prices, analyze market trends, and even predict future price movements. This API not only enhances trading strategies but also fosters innovation in price discovery and digital asset solutions.
API Description
The Metals-API is designed to deliver real-time and historical data on various metals, including Gold, Silver, Platinum, and Palladium. It empowers developers to build next-generation applications that require accurate and timely metals data. The API supports a wide range of functionalities, allowing users to access the latest rates, historical data, and even perform currency conversions.
With the Metals-API, developers can leverage the power of real-time data to create applications that cater to traders, investors, and financial analysts. The API's capabilities extend beyond mere data retrieval; it enables users to analyze fluctuations, track historical trends, and gain insights into market dynamics.
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: Depending on your subscription plan, this endpoint provides real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This allows traders to stay informed about the latest Gold prices and make timely decisions.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a date to the API request, developers can retrieve past prices, enabling them to analyze trends over time.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time Bid and Ask prices for Gold and other metals. Understanding the spread between these prices is essential for traders looking to optimize their trades.
- Convert Endpoint: The API includes a currency conversion endpoint, allowing users to convert any amount from one metal to another or to/from USD. This is particularly useful for traders dealing in multiple currencies.
- Time-Series Endpoint: Users can query the API for daily historical rates between two dates of their choice. This feature is invaluable for analyzing price movements over specific periods.
- Fluctuation Endpoint: This endpoint provides information about how Gold and other metals fluctuate on a day-to-day basis, helping traders understand 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 to get the lowest and highest prices for Gold over a specified period.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can retrieve the open, high, low, and close prices for Gold, providing a comprehensive view of market performance.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols, dating back to 2008, which is crucial for traders dealing with industrial metals.
- API Key: Each user is assigned a unique API Key, which is essential for authentication and accessing the API's features.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency across different requests.
- Available Endpoints: The API comprises 14 endpoints, each offering distinct functionalities tailored to various user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, allowing users to stay informed about the latest symbols.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them updated on market developments.
List of Symbols
The Metals-API provides access to a comprehensive range of metal symbols. 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 implementation. 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": 1767744778,
"base": "USD",
"date": "2026-01-07",
"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": 1767658378,
"base": "USD",
"date": "2026-01-06",
"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": "2025-12-31",
"end_date": "2026-01-07",
"base": "USD",
"rates": {
"2025-12-31": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-02": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-01-07": {
"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": 1767744778,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-12-31",
"end_date": "2026-01-07",
"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": 1767744778,
"base": "USD",
"date": "2026-01-07",
"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": 1767744778,
"base": "USD",
"date": "2026-01-07",
"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 and traders looking to access real-time and historical data on Gold and other precious metals. By leveraging its extensive features, including the latest rates, historical data, and conversion capabilities, users can enhance their trading strategies and gain deeper insights into market dynamics. The API's innovative approach to data delivery empowers developers to create applications that meet the evolving needs of the financial market.
For more information, visit the Metals-API Documentation to explore the full range of capabilities and start integrating the API into your applications today. Whether you are a trader, developer, or financial analyst, the Metals-API offers the tools you need to succeed in the precious metals market.