{"uid":"cap_BcsLOEnrCOpoY34zXWbbH","slug":"fraction-to-basis-points-converter-68aaeb5f","name":"Fraction to Basis Points Converter","description":"Convert fractional rates into basis points for trading UIs. Call when you need bps labels from internal 0–1 fee or edge fractions. Returns bps = fraction*10000 as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.","url":"https://api.delx.ai/api/v1/x402/fraction-to-bps","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"fraction":{"type":"number","description":"Input field: fraction."}}},"responseSchema":{"type":"json","example":{"bps":25,"schema":"delx/util-fraction-to-bps/v1","fraction":0.0025}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_auSPjmtlGmwUa1s0fsyLG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a fractional rate (0–1) to basis points by multiplying by 10,000, returning the result as deterministic JSON.","exampleAgentPrompt":"Convert a fraction of 0.0025 to basis points so I can label it correctly in our trading UI.","exampleUseCases":[{"title":"Fee label for DeFi trading UI","prompt":"Our swap fee is stored internally as 0.003 — what is that in basis points so I can display it correctly in the UI?"},{"title":"Slippage tolerance display","prompt":"The user set a slippage tolerance of 0.005 as a decimal. Convert that to basis points so I can show it as a bps label on the order confirmation screen."},{"title":"Edge fee rate conversion","prompt":"I have a market-making edge fraction of 0.00125 — convert it to basis points for me so I can include it in the trade summary report."}],"resultDescription":"Returns a JSON object containing the computed basis points value (bps = fraction × 10,000) as a number, derived entirely from local deterministic math with no external data sources.","failureModes":["Missing or null fraction field — returns an error indicating the required input is absent","Fraction value out of expected 0–1 range — may return a result but caller should validate input bounds","Non-numeric fraction value — likely returns a type or validation error","Payment failure via x402 — call does not execute if $0.001 USDC micropayment is not settled"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, no-key, no-RPC conversion of an internal decimal fee or rate fraction (0–1) into a basis points integer for display in trading UIs, reports, or operator-facing copy. Prefer it over manual calculation when you need a reliable, auditable JSON response with x402 micropayment traceability.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:42:45.755Z","isFirstParty":false}