{"uid":"cap_-gdDx80lWlvbQnw5nEI_t","slug":"straelo-defi-route-decision-05242ba3","name":"Straelo DeFi Route Decision","description":"Compare read-only Base swap quotes obtained from 1inch and KyberSwap, evaluating output, minimum output, fees/gas, price impact, consensus, and divergence to return a deterministic economic route decision (EXECUTE_BEST, WAIT, or INSUFFICIENT_DATA). The product consults external providers during the request; quotes reflect the market state observed at that moment and identical calls can produce different results. Provider unavailability or failure can yield a partial result or insufficient data.","url":"https://relay.straelo.com/defi-route-decision?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chain":{"enum":["base"],"type":"string","description":"Base Mainnet only in this quote-only MVP."},"token_in":{"enum":["USDC","USDT","ETH","WETH"],"type":"string","description":"Input Base asset symbol."},"amount_in":{"type":"string","description":"Positive decimal input amount, converted exactly to raw token units."},"token_out":{"enum":["USDC","USDT","ETH","WETH"],"type":"string","description":"Output Base asset symbol; must differ from token_in."},"slippage_bps":{"type":"integer","maximum":10000,"minimum":0,"description":"Slippage tolerance in basis points; it is not treated as a cost."},"baseline_provider":{"enum":["oneinch","kyberswap"],"type":"string","description":"Optional provider used only for a direct economic comparison."}}},"responseSchema":{"type":"json","example":{"usage":{"provider_calls":[]},"quotes":[],"status":"COMPARISON_AVAILABLE","partial":false,"decision":"INSUFFICIENT_DATA","consensus":{"basis":"gross_output_only","comparable_output_raw":0},"economics":{"total_estimated_cogs_usd":null},"confidence":"MEDIUM","observed_at":"2026-01-01T00:00:00Z","best_provider":"kyberswap","decision_reason":"no valid quote from any provider","decision_signals":{"confidence":"LOW","is_outlier":null,"price_impact":null,"best_provider":null,"minimum_output":null,"provider_success_count":0,"provider_failures_count":0,"economic_advantage_basis":null},"evidence_quality":{},"provider_failures":[],"economic_advantage":null}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TTYBlpO1rD0h77EEceQ_t","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares Base swap quotes from 1inch and KyberSwap across multiple economic dimensions and returns a deterministic routing decision (EXECUTE_BEST, WAIT, or INSUFFICIENT_DATA)","exampleAgentPrompt":"Compare swap quotes on Base for converting 500 USDC to ETH using 1inch and KyberSwap — with 50 bps slippage tolerance — and tell me whether to execute the best one or wait.","exampleUseCases":[{"title":"Pre-trade swap routing check","prompt":"Before I swap 2000 USDT to WETH on Base, check both 1inch and KyberSwap and tell me if the quotes are good enough to execute now or if I should wait — use 30 bps slippage."},{"title":"Automated agent trade gate","prompt":"My agent is about to swap 0.5 ETH to USDC on Base. Run a route decision check with 100 bps slippage against KyberSwap as the baseline and block the trade if the result isn't EXECUTE_BEST."},{"title":"Quote divergence monitoring","prompt":"Compare the current 1inch and KyberSwap quotes for swapping 10000 USDC to WETH on Base with 25 bps slippage and tell me how much the two providers diverge — I want to know if the market is fragmented right now."}],"resultDescription":"A deterministic routing decision object including one of three verdicts (EXECUTE_BEST, WAIT, or INSUFFICIENT_DATA), the winning provider, normalized quote metrics from each aggregator (output amount, minimum output, gas/fees, price impact), a consensus signal, and a divergence measure between providers. When only one provider responds, a partial result may be returned.","failureModes":["One or both providers (1inch, KyberSwap) are unavailable, resulting in INSUFFICIENT_DATA or partial result","Invalid or mismatched token_in/token_out pair (e.g. same token on both sides) returns a validation error","amount_in is zero, negative, or non-numeric","Requested chain is not Base (only Base mainnet is supported in this MVP)","Extreme market volatility causes quotes to shift between provider fetch and response, reducing reliability","slippage_bps outside 0–10000 range rejected","Network latency to external providers causes timeout"],"whenToPreferThis":"Use this endpoint when an AI agent or automated system needs a trusted, vendor-neutral go/no-go decision before executing a token swap on Base — particularly when comparing 1inch vs KyberSwap output matters, when price impact or divergence awareness is critical, or when you want a single structured verdict rather than raw quotes. Prefer this over querying each DEX aggregator separately when you need consensus scoring and a deterministic action recommendation baked in.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-02T18:33:48.838Z","isFirstParty":false,"canonicalSlug":"straelo-defi-route-decision-05242ba3"}