Datapoint
Get datapoint historic period
AuthorizationBearer <token>
In: header
Query Parameters
idstring
The ID of the datapoint
For example: LME-CU:FCSH.Trade
fromstring
Request the from data as it was at a specific datetime
Accepts: ISO 8601 date (2025-01-01), timestamp (1765324800), or natural language (yesterday, last week, 1 hour ago, 3 days ago)
to?string | null
Request the to data as it was at a specific datetime
Accepts: ISO 8601 date (2025-01-01), timestamp (1765324800), or natural language (yesterday, last week, 1 hour ago, 3 days ago)
Default
"now"bucket_size?string | null
Determine the range
Accepts: 1m, 10m, 1h or 1d
Default
"1h"Response Body
curl -X GET "https://data.metalradar.com/v3/datapoint/period?id=LME-CU%3AFCSH.Trade&from=2025-01-01&to=2025-01-01&bucket_size=1m"{
"data": [
{
"timestamp": 0,
"close": 0
}
],
"errors": []
}{
"error": {
"message": "string",
"code": "INVALID_REQUEST"
}
}{
"message": "string",
"errors": {
"property1": [
"string"
],
"property2": [
"string"
]
}
}