We are thrilled to announce a powerful new feature for MetalPriceAPI: the /ohlc endpoint. This addition is designed to provide you with comprehensive open, high, low, and close price data for a given symbol and date, essential for making informed business decisions.
OHLC data is a cornerstone for professionals in various business functions. These four data points offer crucial insights into market trends and price movements:
/ohlc
Endpoint?The /ohlc
endpoint provides a simple and efficient way to access this valuable data, helping you stay ahead in dynamic markets.
/ohlc
EndpointTo access your usage data, make a GET request to the following URL:
https://api.metalpriceapi.com/v1/ohlc?api_key=[API_KEY]&base=[BASE]¤cy=[CURRENCY]&date=[DATE]
[API_KEY]
with your actual key to authenticate your request.Upon a successful request, you will receive a response in JSON format:
{
"success": true,
"base": "XAU",
"quote": "USD",
"timestamp": 1738108799,
"rate": {
"close": 2742.2233288617,
"high": 2764.9591200794,
"low": 2735.1078165826,
"open": 2741.9706872366
}
}
To start using the /ohlc
endpoint, simply include your API key in the request URL and retrieve your OHLC data instantly. For more details on managing your API key and understanding your plan, visit our API documentation.
We hope this new feature enhances your experience with MetalPriceAPI. As always, we are here to support you. If you have any questions or need assistance, please contact our support team.