Alerts
List price alerts
Changed onEvery price alert on the account, ordered by commodity code and creation time. Returns an empty array when the account has none. Alert management calls are not metered against the request quota.
get/v1/alerts
Request
- Base URLhttps://api.oilpriceapi.com
- AuthAPI key in header Authorization
Response
The account's price alerts
Example response
[
{
"id": 1234,
"name": "Brent above 95",
"commodity_code": "BRENT_CRUDE_USD",
"alert_type": "threshold",
"delivery_mode": "threshold",
"condition_operator": "greater_than",
"condition_value": 95,
"condition": "BRENT_CRUDE_USD > 95.0",
"enabled": true,
"cooldown_minutes": 60
}
]Changes
- info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info