{"uid":"cap_4-hvdeGF-FV4ksHuqdPTH","slug":"butterfly-delta-assumption-pressure-detection-for-crypto-actions-9d095d8d","name":"Butterfly Delta – Assumption Pressure Detection for Crypto Actions","description":"Identify which explicit assumptions behind an intended crypto action were pressured by verified external changes since the caller's checkpoint.","url":"https://butterflydelta.com/api/agent/delta-gate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"trade":{"type":"object","required":["pair"],"properties":{"pair":{"type":"string","pattern":"^[A-Za-z0-9]{2,15}[-/_]USD$","description":"USD spot pair, for example BTC-USD."},"side":{"enum":["buy","sell"],"type":"string"},"venue":{"enum":["coinbase","gemini"],"type":"string","description":"Optional execution venue. Include with side and baseSize for exact-order simulation."},"summary":{"type":"string","maxLength":1000},"baseSize":{"type":"number","description":"Exact base-asset size, for example 0.25 BTC.","exclusiveMinimum":0},"deadline":{"type":"string","maxLength":120},"orderType":{"enum":["market","limit"],"type":"string","default":"market"},"limitPrice":{"type":"number","description":"Required when orderType is limit.","exclusiveMinimum":0},"minHealthyVenues":{"type":"number","default":2,"maximum":2,"minimum":1},"maxVenueSpreadBps":{"type":"number","default":10,"maximum":10000,"minimum":0},"maxQuoteAgeSeconds":{"type":"number","default":10,"maximum":3600,"minimum":0},"minDepthCoveragePct":{"type":"number","default":100,"maximum":100,"minimum":0},"maxEstimatedSlippageBps":{"type":"number","default":25,"maximum":10000,"minimum":0},"maxCrossVenueDivergenceBps":{"type":"number","default":20,"maximum":10000,"minimum":0}},"description":"Bot-native input. Butterfly Delta expands this policy into explicit, signed venue assertions.","additionalProperties":false},"action":{"type":"object","required":["kind","target"],"properties":{"kind":{"enum":["trade","purchase","transfer","deploy","publish","api_call","execute","other"],"type":"string"},"stakes":{"type":"object","properties":{"value":{"type":"string","maxLength":80},"currency":{"type":"string","maxLength":32},"irreversible":{"type":"boolean"}},"additionalProperties":false},"target":{"type":"string","maxLength":240,"minLength":2},"summary":{"type":"string","maxLength":1000},"deadline":{"type":"string","maxLength":120},"execution":{"type":"object","required":["venue","side","baseSize"],"properties":{"side":{"enum":["buy","sell"],"type":"string"},"venue":{"enum":["coinbase","gemini"],"type":"string"},"baseSize":{"type":"number","exclusiveMinimum":0},"orderType":{"enum":["market","limit"],"type":"string","default":"market"},"limitPrice":{"type":"number","exclusiveMinimum":0},"minDepthCoveragePct":{"type":"number","default":100,"maximum":100,"minimum":0},"maxEstimatedSlippageBps":{"type":"number","default":25,"maximum":10000,"minimum":0}},"description":"Exact intended order used to simulate visible depth and estimated slippage on the selected venue.","additionalProperties":false},"jurisdiction":{"type":"string","maxLength":120}},"additionalProperties":false},"intent":{"type":"object","required":["kind","instrument"],"deprecated":true,"properties":{"kind":{"enum":["trade","allocation","transfer","other"],"type":"string"},"side":{"type":"string","maxLength":32},"venue":{"type":"string","maxLength":120},"horizon":{"type":"string","maxLength":120},"summary":{"type":"string","maxLength":1000},"instrument":{"type":"string","maxLength":120,"minLength":2}},"description":"Compatibility input for butterflydelta-gate/0.x. Use action instead.","additionalProperties":false},"checkpoint":{"type":"string","maxLength":160},"assumptions":{"type":"array","items":{"type":"object","required":["statement"],"properties":{"id":{"type":"string","maxLength":64},"assertion":{"type":"object","required":["metric","operator","value"],"properties":{"unit":{"type":"string","maxLength":32},"value":{"type":["string","number","boolean"]},"metric":{"enum":["market.coinbase.accepting_orders","market.coinbase.spread_bps","market.coinbase.last_trade_age_seconds","market.gemini.accepting_orders","market.gemini.spread_bps","market.coinbase.estimated_slippage_bps","market.coinbase.depth_coverage_pct","market.gemini.estimated_slippage_bps","market.gemini.depth_coverage_pct","market.cross_venue_mid_deviation_bps","market.source_count"],"type":"string"},"operator":{"enum":["lt","lte","eq","neq","gte","gt"],"type":"string"}},"additionalProperties":false},"statement":{"type":"string","maxLength":1000,"minLength":8}},"additionalProperties":false},"maxItems":20,"minItems":1}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WCr7FNbXiNAa3gey6Drdu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Identifies which explicit assumptions behind an intended crypto action have been invalidated by verified external market changes since the caller's last checkpoint.","exampleAgentPrompt":"Before I execute a market buy of 0.25 BTC on Coinbase, check which of my original trade assumptions have been pressured by external market changes since my last checkpoint — I'm working against a deadline of end of day and I want to know if anything like spread, depth, or venue health has shifted enough to invalidate my intent.","exampleUseCases":[{"title":"Pre-trade assumption audit for BTC buy","prompt":"I'm about to place a market buy of 0.5 BTC on Coinbase — can you check which assumptions behind that trade have been pressured by external changes since my last checkpoint? I care about slippage staying under 25 bps and at least 2 healthy venues."},{"title":"Limit order staleness check for ETH sell","prompt":"I queued up a limit sell of 2 ETH on Gemini at $3,200 earlier today — before I confirm, tell me which of the explicit assumptions behind that order have been invalidated by what's happened in the market since then."},{"title":"Autonomous agent pre-deploy integrity check","prompt":"My agent is about to execute a token deployment action targeting a Coinbase venue — scan which assumptions behind that action have been pressured by verified external changes since the checkpoint, especially anything irreversible with high stakes."}],"resultDescription":"A structured response listing each explicit assumption tied to the submitted crypto action that has been 'pressured' (i.e., invalidated or stressed) by verified external market changes observed since the caller's checkpoint. Includes signed venue assertions, identification of which conditions drifted (spread, depth, slippage, venue health), and an integrity verdict indicating whether it is safe to proceed.","failureModes":["Invalid trading pair format (must match pattern like BTC-USD) returns 400","Limit order submitted without limitPrice returns validation error","Requested venue not among supported venues (coinbase, gemini) returns error","Stale quote data (exceeding maxQuoteAgeSeconds) causes degraded or failed response","Fewer than minHealthyVenues available causes integrity failure","Payment not included or insufficient USDC balance causes 402 rejection","Action target missing or too short returns 400 validation error"],"whenToPreferThis":"Use Butterfly Delta's delta-gate endpoint when an autonomous agent needs to identify specifically WHICH assumptions behind a pending crypto action have been invalidated by external market changes — not just whether to proceed, but exactly what drifted. Prefer this over a simple preflight check when the agent must explain its reasoning, log assumption pressure for audit, or handle irreversible high-stakes actions where understanding the cause of staleness matters as much as the go/no-go verdict.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:32:15.754Z","isFirstParty":false}