Subscriptions
Create a price watch
Create a persistent price watch that emits events when its condition is met.
post/v1/subscriptions
Request body
Example request
{
"name": "My WTI watch",
"codes": [
"WTI_USD",
"BRENT_CRUDE_USD"
],
"code": "WTI_USD",
"interval_seconds": 3600,
"deliver_webhook": true,
"source": "mcp",
"tool_name": "watch_commodity"
}Response
Price watch created
Example response
{
"status": "success",
"data": {
"subscription": {
"id": "018f47a2-4d4d-7a44-9fa4-123456789abc",
"name": "My WTI watch",
"codes": [
"WTI_USD",
"BRENT_CRUDE_USD"
],
"interval_seconds": 3600,
"status": "active",
"source": "api",
"tool_name": "watch_commodity"
}
}
}