Get Tongan Paanga (TOP) prices using this API for your application
Get Tongan Paanga (TOP) Prices Using the Metals-API for Your Application
In today's fast-paced digital economy, accessing real-time financial data is crucial for developers building applications that require accurate currency exchange rates. One such currency is the Tongan Paanga (TOP), which is essential for businesses and individuals engaged in trade with Tonga. The Metals-API provides a robust solution for obtaining real-time and historical exchange rates for various currencies, including TOP. This blog post will explore the capabilities of the Metals-API, its innovative features, and how developers can leverage this API to enhance their applications.
Metals-API Information
About Netherlands Antillean Gulden (ANG)
The Netherlands Antillean Gulden (ANG) is a currency that has seen significant changes due to digital transformation in metal markets. As technology continues to advance, the integration of smart technology and data analytics into financial markets is becoming increasingly important. The Metals-API exemplifies this transformation by providing developers with the tools they need to access real-time data and insights into metal prices and currency exchange rates.
With the rise of technological innovation, the Metals-API allows for seamless integration of real-time data into applications, enabling developers to create next-generation solutions that can respond to market changes instantaneously. The future of currency exchange and metal pricing is bright, with possibilities for enhanced analytics, predictive modeling, and automated trading strategies.
API Description
The Metals-API is a powerful tool that enables developers to access real-time and historical data for metals and currencies. This API empowers users to build applications that require accurate and timely financial information. With its user-friendly interface and comprehensive documentation, developers can easily integrate the API into their projects.
The API supports a variety of endpoints, each designed to provide specific functionalities. For instance, the latest rates endpoint allows users to retrieve real-time exchange rates, while the historical rates endpoint provides access to past data, dating back to 2019. This flexibility makes the Metals-API an invaluable resource for developers looking to implement financial data into their applications.
For more detailed information, developers can refer to the Metals-API Documentation, which outlines all available features and how to utilize them effectively.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs, making it a versatile tool for developers. Below are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for various currencies, including TOP. Depending on your subscription plan, updates can occur every 60 minutes or every 10 minutes, ensuring that users have access to the most current information.
- Historical Rates Endpoint: Developers can access historical exchange rates for most currencies dating back to 2019. By appending a specific date in the format YYYY-MM-DD, users can retrieve past rates, which is essential for trend analysis and financial forecasting.
- Bid and Ask Endpoint: This feature allows users to obtain real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert amounts from one currency to another, including conversions involving TOP.
- Time-Series Endpoint: This endpoint allows developers to query the API for daily historical rates between two specified dates, facilitating in-depth analysis of price movements over time.
- Fluctuation Endpoint: Users can track how currencies fluctuate on a day-to-day basis, which is critical for understanding market volatility and making informed trading decisions.
- Carat Endpoint: This feature provides information about gold rates by carat, allowing users to assess the value of gold based on its purity.
- Lowest/Highest Price Endpoint: Developers can query the API to get the lowest and highest prices for a specified date, which is useful for identifying market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, essential for technical analysis and trading strategies.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is beneficial for users interested in long-term trends in metal prices.
- API Key: Each user is provided with 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 by default, ensuring consistency in data presentation.
- Available Endpoints: The Metals-API comprises 14 endpoints, each offering distinct functionalities to meet various user needs.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies, including TOP, allowing developers to stay informed about the symbols they can use.
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. This resource is invaluable for developers looking to understand the full scope of available data.
API Endpoint Examples and Responses
Understanding how to interpret API responses is crucial for developers. Below are examples of various endpoints and their JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1781568537,
"base": "USD",
"date": "2026-06-16",
"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": 1781482137,
"base": "USD",
"date": "2026-06-15",
"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": "2026-06-09",
"end_date": "2026-06-16",
"base": "USD",
"rates": {
"2026-06-09": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-06-11": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-06-16": {
"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": 1781568537,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-06-09",
"end_date": "2026-06-16",
"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) Price Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1781568537,
"base": "USD",
"date": "2026-06-16",
"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": 1781568537,
"base": "USD",
"date": "2026-06-16",
"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 essential tool for developers looking to integrate real-time and historical financial data into their applications. With its wide range of endpoints and capabilities, including the ability to access Tongan Paanga (TOP) prices, the API empowers users to make informed decisions based on accurate data. By leveraging the features of the Metals-API, developers can create innovative applications that respond to market changes and provide valuable insights.
For more information on how to get started with the Metals-API, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation. Don't forget to check the Metals-API Supported Symbols page to familiarize yourself with the various currencies and metals available for querying.