Implement British Pound (GBP) Historical Prices using this API
Implement British Pound (GBP) Historical Prices using Metals-API
In today's rapidly evolving financial landscape, the ability to access and analyze historical prices for various currencies, including the British Pound (GBP), is crucial for developers and analysts alike. The Metals-API provides a robust platform for retrieving real-time and historical data on metals and currencies, empowering developers to create innovative applications that leverage this data for insightful analysis and decision-making.
About Neodymium (ND)
Neodymium, a rare earth metal, plays a significant role in various technological advancements, particularly in the fields of electronics and renewable energy. As the demand for neodymium continues to rise, driven by digital transformation in metal markets, it is essential to explore how data analytics and smart technology integration can enhance our understanding of its market dynamics. The Metals-API serves as a vital resource for accessing real-time and historical data on neodymium prices, enabling developers to build applications that can analyze trends, forecast prices, and optimize supply chains.
API Description
The Metals-API is designed to provide developers with comprehensive access to real-time and historical prices of various metals and currencies, including GBP. With its innovative capabilities, the API allows users to retrieve data that can be utilized for a multitude of applications, from financial analysis to market forecasting. The API's transformative potential lies in its ability to deliver accurate and timely data, enabling developers to create next-generation applications that can respond to market changes in real-time.
For more detailed information on how to utilize the API, you can refer to the Metals-API Documentation, which provides extensive guidance on the various endpoints and their functionalities.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data retrieval needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals and currencies, updated at intervals depending on your subscription plan. For instance, users can access the latest GBP rates every 60 minutes or even every 10 minutes, ensuring they have the most current data available.
- Historical Rates Endpoint: Users can access historical rates for GBP dating back to 2019. By appending a specific date in the format YYYY-MM-DD, developers can query the API to retrieve past exchange rates, which is invaluable for trend analysis and forecasting.
- Bid and Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for GBP and other currencies. Understanding the bid-ask spread is crucial for traders and analysts looking to make informed decisions based on market conditions.
- Convert Endpoint: The conversion endpoint enables users to convert amounts between GBP and other currencies or metals. This functionality is essential for applications that require real-time currency conversion capabilities.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two specified dates. This is particularly useful for analyzing trends over time and understanding market fluctuations.
- Fluctuation Endpoint: Users can track how GBP and other currencies fluctuate on a day-to-day basis. This endpoint provides insights into market volatility, which is critical for risk management and investment strategies.
- Carat Endpoint: This feature provides information about gold rates by carat, allowing users to understand the value of gold in various purities, which can be relevant for those dealing with precious metals.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for GBP over a specified period, which is useful for identifying market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides the open, high, low, and close prices for GBP, allowing traders to analyze price movements and make informed trading decisions.
- Historical LME Endpoint: This endpoint provides historical rates for LME symbols dating back to 2008, which can be beneficial for users interested in long-term trends in metal prices.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate and authorize access to the API.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format, making it easy to parse and integrate into applications.
- Available Endpoints: The Metals-API features 14 different endpoints, each tailored to provide specific functionalities, ensuring comprehensive coverage of user needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals, allowing users to stay informed about the symbols they can query.
List of Symbols
The Metals-API provides access to a comprehensive range of metal symbols, including GBP. 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
To get real-time exchange rates for GBP and other metals, you can use the following example response:
{
"success": true,
"timestamp": 1783037806,
"base": "GBP",
"date": "2026-07-03",
"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
Accessing historical exchange rates for GBP can be done with the following example response:
{
"success": true,
"timestamp": 1782951406,
"base": "GBP",
"date": "2026-07-02",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
To get exchange rates for GBP over a specific time period, you can refer to the following example response:
{
"success": true,
"timeseries": true,
"start_date": "2026-06-26",
"end_date": "2026-07-03",
"base": "GBP",
"rates": {
"2026-06-26": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-06-28": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-07-03": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
For converting GBP to other currencies or metals, the following example response illustrates the conversion process:
{
"success": true,
"query": {
"from": "GBP",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1783037806,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
To track rate fluctuations for GBP, you can use the following example response:
{
"success": true,
"fluctuation": true,
"start_date": "2026-06-26",
"end_date": "2026-07-03",
"base": "GBP",
"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
For obtaining OHLC data for GBP, the following example response can be referenced:
{
"success": true,
"timestamp": 1783037806,
"base": "GBP",
"date": "2026-07-03",
"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
To get current bid and ask prices for GBP, you can refer to the following example response:
{
"success": true,
"timestamp": 1783037806,
"base": "GBP",
"date": "2026-07-03",
"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
In conclusion, the Metals-API offers a powerful and flexible solution for developers seeking to implement historical prices for the British Pound (GBP) and other currencies. With its extensive range of endpoints, the API provides access to real-time and historical data, enabling users to create applications that can analyze trends, forecast prices, and optimize trading strategies. By leveraging the capabilities of the Metals-API, developers can harness the transformative potential of real-time metals data, paving the way for innovative applications that respond to the dynamic nature of financial markets.
For further exploration of the API's capabilities, be sure to check out the Metals-API Documentation and the Metals-API Supported Symbols page for a complete list of available symbols. By integrating this powerful API into your applications, you can unlock new possibilities for data-driven decision-making in the world of finance.