{"uid":"cap_BivjlQXsq9OoK_dB6O9WB","slug":"quantoracle-watch-position-monitor-0262889d","name":"QuantOracle Watch Position Monitor","description":"QuantOracle: /v1/watch/position","url":"https://api.quantoracle.dev/v1/watch/position","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","title":"WatchIn","required":["asset","direction","entry_price","position_size","collateral"],"properties":{"asset":{"type":"string","title":"Asset","description":"Crypto asset symbol, e.g. BTC, ETH, SOL (USD pair)"},"direction":{"enum":["long","short"],"type":"string","title":"Direction","description":"Position direction"},"collateral":{"type":"number","title":"Collateral","description":"Collateral backing the position, in USD","exclusiveMinimum":0},"thresholds":{"anyOf":[{"type":"object","title":"WatchThresholds","properties":{"warn_pct":{"type":"number","title":"Warn Pct","default":15,"maximum":90,"description":"Warn when liquidation distance falls below this percent","exclusiveMinimum":0},"vol_regime":{"type":"boolean","title":"Vol Regime","default":true,"description":"Alert when the realized-vol regime changes"},"critical_pct":{"type":"number","title":"Critical Pct","default":7,"maximum":90,"description":"Critical alert below this percent distance to liquidation","exclusiveMinimum":0},"funding_flip":{"type":"boolean","title":"Funding Flip","default":true,"description":"Alert when the funding rate flips sign"}}},{"type":"null"}],"description":"Alert thresholds (sensible defaults if omitted)"},"entry_price":{"type":"number","title":"Entry Price","description":"Entry price in USD","exclusiveMinimum":0},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"Public http(s) endpoint for HMAC-signed alert POSTs. Optional — status + alert history are always available via GET /v1/watch/{monitor_id}."},"position_size":{"type":"number","title":"Position Size","description":"Notional position size in USD","exclusiveMinimum":0},"maintenance_margin_rate":{"type":"number","title":"Maintenance Margin Rate","default":0.005,"minimum":0,"description":"Maintenance margin rate (e.g. 0.005 = 0.5%)","exclusiveMaximum":0.5}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"5","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-mfVOVwLovfZ2QaHuau6n","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"5","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Creates a real-time liquidation-risk and funding-rate monitor for a crypto derivatives position, delivering alerts via webhook or polling","exampleAgentPrompt":"Set up a liquidation risk monitor on QuantOracle for my long BTC position — I entered at $67,000, my notional size is $50,000, and I have $5,000 collateral. Send critical alerts when liquidation distance drops below 7% and warn me at 15%, and post alerts to https://my-alerts.example.com/webhook.","exampleUseCases":[{"title":"Leveraged long BTC liquidation guard","prompt":"Watch my BTC long for me — I'm in at $67,500 with a $40,000 position size and $4,000 collateral. Alert me at my webhook https://alerts.mybot.io/crypto when liquidation distance drops below 15% for a warning and below 7% for critical."},{"title":"ETH short funding rate flip alert","prompt":"I've got a short on ETH entered at $3,200, $20,000 position size, $2,500 collateral. Set up a monitor that alerts me if the funding rate flips sign — I don't need liquidation alerts, just the funding flip and volatility regime change notifications."},{"title":"SOL position risk dashboard feed","prompt":"Start monitoring my SOL long: entered at $155, $15,000 notional, $1,500 collateral. I want alerts posted to https://hooks.myapp.com/sol-risk whenever liquidation distance gets critical, and I'll also poll the monitor status endpoint myself for a dashboard feed."}],"resultDescription":"Returns a monitor_id and initial position snapshot including computed liquidation price, current distance-to-liquidation percentage, and confirmed alert threshold configuration. Subsequent alerts (warn, critical, funding flip, vol regime change) are delivered as HMAC-signed POSTs to the provided webhook URL and are always accessible via GET /v1/watch/{monitor_id} with full alert history.","failureModes":["Missing required fields (asset, direction, entry_price, position_size, collateral) returns 422 validation error","Non-positive numeric values for price, size, or collateral return validation error","Invalid or unreachable webhook URL may cause silent alert delivery failures","Unsupported asset symbol returns error or undefined behavior","warn_pct must be greater than critical_pct or thresholds will be logically inconsistent","Payment failure or insufficient USDC balance returns 402 Payment Required","Rate limiting may occur with rapid successive monitor creation"],"whenToPreferThis":"Choose this endpoint when you need continuous, real-time liquidation risk monitoring for a specific crypto derivatives position rather than a one-time margin calculation. It is ideal when you want automated push alerts (webhook) or a persistent monitor_id you can poll, particularly for leveraged positions where liquidation distance, funding rate flips, and volatility regime shifts are all relevant. Prefer this over a simple margin calculator when the position is live and ongoing surveillance with configurable thresholds is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:42:53.136Z","isFirstParty":false}