{"uid":"cap_Chayjl1gImNUswCq3gIK2","slug":"xrpl-data-desk-trade-cost-calculator-ffeb6896","name":"XRPL Data Desk – Trade Cost Calculator","description":"Live XRP Ledger market data for AI agents, paid per call in XRP. Settled on the XRP Ledger itself; every endpoint independently audited. Information, not advice.","url":"https://data.azeronyx.com/v1/cost?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["side","amount"],"properties":{"side":{"type":"string","description":"buy or sell the base"},"unit":{"type":"string","description":"base or quote (default base)"},"amount":{"type":"string","description":"how much, in the unit given"},"market":{"type":"string","description":"an XRP Ledger market as BASE/QUOTE (see /v1/markets)"}}},"responseSchema":{"type":"object","description":"See https://data.azeronyx.com/v1/sample?path=/v1/cost for a recent example","additionalProperties":true},"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_KSkXy7Zc3FBTzKOuTTFSc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"XRP","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the estimated cost (slippage, fees, and effective price) of executing a buy or sell trade on a specified XRP Ledger market","exampleAgentPrompt":"What would it cost me to buy 500 SOLO using XRP on the XRP Ledger DEX — can you calculate the trade cost including any slippage for the SOLO/XRP market?","exampleUseCases":[{"title":"Pre-trade slippage check for large order","prompt":"I'm about to buy 10000 units of COREUM on the XRPL DEX using the COREUM/XRP market — can you calculate what that buy would actually cost me in XRP, including slippage?"},{"title":"Sell-side cost estimate for portfolio rebalancing","prompt":"I need to sell 2000 XRP worth of SOLO tokens on the XRP Ledger — using the SOLO/XRP market, estimate the cost and effective price if I'm selling in quote units."},{"title":"Comparing effective price before executing a trade","prompt":"Before I execute, can you tell me the effective price and total cost to buy 100 base units of RLUSD on the RLUSD/XRP market on the XRP Ledger DEX?"}],"resultDescription":"Returns a structured object containing the estimated total cost of the trade, effective price, slippage details, and fee information for the specified buy or sell order on the given XRPL market pair. See the /v1/sample endpoint for a live example response.","failureModes":["Invalid market pair format (not BASE/QUOTE) returns an error — check /v1/markets for valid pairs","Missing required fields 'side' or 'amount' returns a validation error","Unknown or illiquid market with insufficient order book depth may return a cost estimate with high slippage or an error","Invalid 'side' value (not 'buy' or 'sell') returns a bad request error","Payment failure (x402) if XRP payment is not settled correctly before the call is processed"],"whenToPreferThis":"Use this endpoint when you need to estimate the real cost — including slippage and fees — of executing a trade on the XRP Ledger decentralized exchange before committing to it. It is ideal for pre-trade analysis, order sizing, and slippage-aware routing on XRPL markets. Prefer this over generic crypto price APIs when you specifically need DEX trade cost simulation on the XRP Ledger rather than a simple mid-market price quote.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:39:54.890Z","isFirstParty":false,"canonicalSlug":"xrpl-data-desk-trade-cost-calculator-ffeb6896"}