Get Ugandan Shilling (UGX) prices using this API
Introduction
The Ugandan Shilling (UGX) is a vital currency in East Africa, serving as the official currency of Uganda. Understanding its market dynamics and exchange rates is crucial for businesses, investors, and developers alike. In this blog post, we will explore how to get real-time UGX prices using the Metals-API, a powerful tool that provides comprehensive data on metals and currencies. We will delve into the capabilities of this API, its various endpoints, and how it can empower developers to create innovative applications that leverage real-time data.
Metals-API Information
About Neodymium (ND)
Neodymium is a rare earth metal that plays a significant role in various technological advancements, particularly in the fields of electronics and renewable energy. As industries undergo digital transformation, the demand for neodymium is expected to rise, driven by its applications in high-strength magnets, lasers, and batteries. The integration of smart technology and data analytics in the metal markets is revolutionizing how we understand and utilize these materials. With the right data, developers can gain insights into market trends and make informed decisions.
API Description
The Metals-API is designed to provide real-time and historical data on metal prices and currency exchange rates. This API is particularly beneficial for developers looking to build applications that require up-to-date information on metals, including neodymium and other precious metals. By utilizing the API, developers can access a wealth of data that can be integrated into various applications, from financial analysis tools to e-commerce platforms.
One of the key features of the Metals-API is its ability to deliver real-time exchange rate data, which is updated frequently based on the subscription plan chosen. This allows developers to create applications that reflect the most current market conditions, enabling users to make timely decisions.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Here are some of the most notable features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for UGX and other currencies. Depending on your subscription plan, updates can occur every 60 minutes or even more frequently.
- Historical Rates Endpoint: Access historical exchange rates dating back to 2019. This feature is essential for analyzing trends over time and making informed predictions.
- Bid And Ask Endpoint: Retrieve real-time bid and ask prices for UGX and other currencies, allowing traders to make quick decisions based on market conditions.
- Convert Endpoint: Easily convert amounts from UGX to other currencies or metals, facilitating transactions and financial analysis.
- Time-Series Endpoint: Query daily historical rates between two dates, providing insights into price movements over specific periods.
- Fluctuation Endpoint: Track how UGX and other currencies fluctuate on a day-to-day basis, helping users understand market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, which can be particularly useful for jewelers and investors in precious metals.
- Lowest/Highest Price Endpoint: Get the lowest and highest prices for UGX over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Access detailed OHLC data for UGX, which is crucial for traders looking to analyze price trends.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term view of market trends.
- API Key: Each user receives a unique API key that must be included in requests to authenticate access to the API.
- API Response: The API delivers exchange rates relative to USD, ensuring consistency across data.
- Available Endpoints: The Metals-API includes 14 endpoints, each designed to provide specific functionalities for developers.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies and metals.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users informed about market developments.
List of Symbols
The Metals-API provides access to a comprehensive range of metal symbols, including neodymium and other precious metals. For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Latest Rates Endpoint
Get real-time exchange rates for UGX and other available metals:
{
"success": true,
"timestamp": 1777248594,
"base": "USD",
"date": "2026-04-27",
"rates": {
"UGX": 3700.00,
"XAU": 0.000482,
"XAG": 0.03815
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Access historical exchange rates for UGX since 1999:
{
"success": true,
"timestamp": 1777162194,
"base": "USD",
"date": "2026-04-26",
"rates": {
"UGX": 3685.00,
"XAU": 0.000485,
"XAG": 0.03825
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for UGX over a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2026-04-20",
"end_date": "2026-04-27",
"base": "USD",
"rates": {
"2026-04-20": {
"UGX": 3670.00,
"XAU": 0.000485
},
"2026-04-22": {
"UGX": 3680.00,
"XAU": 0.000483
},
"2026-04-27": {
"UGX": 3700.00,
"XAU": 0.000482
}
},
"unit": "per troy ounce"
}
Convert Endpoint
Convert any amount from UGX to another currency or metal:
{
"success": true,
"query": {
"from": "UGX",
"to": "XAU",
"amount": 1000000
},
"info": {
"timestamp": 1777248594,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations for UGX between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-04-20",
"end_date": "2026-04-27",
"base": "USD",
"rates": {
"UGX": {
"start_rate": 3670.00,
"end_rate": 3700.00,
"change": 30.00,
"change_pct": 0.82
}
},
"unit": "per troy ounce"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for UGX over a specific time period:
{
"success": true,
"timestamp": 1777248594,
"base": "USD",
"date": "2026-04-27",
"rates": {
"UGX": {
"open": 3680.00,
"high": 3705.00,
"low": 3670.00,
"close": 3700.00
}
},
"unit": "per troy ounce"
}
Bid/Ask Endpoint
Get current bid and ask prices for UGX:
{
"success": true,
"timestamp": 1777248594,
"base": "USD",
"date": "2026-04-27",
"rates": {
"UGX": {
"bid": 3695.00,
"ask": 3705.00,
"spread": 10.00
}
},
"unit": "per troy ounce"
}
Conclusion
In conclusion, the Metals-API provides a robust solution for accessing real-time and historical data on the Ugandan Shilling (UGX) and various metals. By leveraging its extensive features, developers can create applications that offer valuable insights into market trends and facilitate informed decision-making. Whether you are looking to analyze historical data, track fluctuations, or convert currencies, the Metals-API is an essential tool for anyone involved in the financial markets.
For more information on how to implement these features, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available currencies and metals. With the right tools and data, you can stay ahead in the ever-evolving financial landscape.