{"uid":"cap_c0EzXbUnymJfSUJBf9I9K","slug":"delx-commerce-funding-payment-calculator-168e1144","name":"Delx Commerce — Funding Payment Calculator","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/funding-payment?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"hours":{"type":"integer","description":"Input field: hours."},"notional":{"type":"integer","description":"Input field: notional."},"funding_rate":{"type":"number","description":"Input field: funding rate."}}},"responseSchema":{"type":"json","example":{"hours":8,"schema":"delx/util-funding-payment/v1","payment":1,"notional":10000,"funding_rate":0.0001}},"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_9yRx2mi6U08kV_jC0cLsa","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":"Computes the periodic funding payment amount for a leveraged position given notional size, funding rate, and holding period in hours.","exampleAgentPrompt":"What's the funding payment on a $10,000 notional position held for 8 hours at a funding rate of 0.01%?","exampleUseCases":[{"title":"Perpetual swap cost estimation","prompt":"I'm holding a $50,000 long on a perpetual swap for the next 24 hours and the current funding rate is 0.005% — how much will I pay in funding?"},{"title":"Compare funding cost across time windows","prompt":"What's the funding payment on a $25,000 notional at a 0.0001 funding rate if I hold it for 4 hours versus 8 hours?"},{"title":"DeFi agent position management","prompt":"My bot is holding a $10,000 position and the current funding rate is 0.0001 — calculate the funding payment for an 8-hour period so I can decide whether to keep the position open."}],"resultDescription":"Returns a JSON object containing the computed funding payment amount (in USD or notional currency units), along with echoed inputs (hours, notional, funding_rate) and a schema version identifier (delx/util-funding-payment/v1) for verifiability.","failureModes":["Missing required fields (hours, notional, or funding_rate) returns a validation error","Non-integer hours or notional values may cause a type error","Negative or zero notional/funding_rate values may return unexpected results or errors","Payment gateway failure (x402 USDC payment not confirmed) blocks response","Malformed JSON body returns 400 error"],"whenToPreferThis":"Use this endpoint when you need a fast, pay-per-call, no-signup calculation of futures or perpetual swap funding payments and want verifiable delivery over USDC on Base or Solana. Prefer this over building your own formula when you need an auditable, on-chain-paid result that can be verified by schema version. Especially useful for AI agents autonomously managing leveraged positions that need funding cost estimates before deciding to hold or close.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:38.930Z","isFirstParty":false,"canonicalSlug":"delx-commerce-funding-payment-calculator-168e1144"}