{"uid":"cap_KuKiu6GHcYyJ5iS4nl2MO","slug":"funding-payment-calculator-f1e694f2","name":"Funding Payment Calculator","description":"Funding payment ≈ notional × funding_rate for a period. Call when estimating perp funding drag/credit offline. Returns funding payment in quote 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/funding-payment","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_unidq1R9uO_EMB-iLj4Pr","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":"Calculates perpetual futures funding payment (notional × funding_rate × hours) and returns the result as deterministic JSON for a $0.001 USDC micropayment.","exampleAgentPrompt":"How much funding will I pay on a $50,000 notional perp position with a funding rate of 0.0001 over the next 8 hours?","exampleUseCases":[{"title":"Estimating overnight funding drag","prompt":"I have a $100,000 notional long perp position with a funding rate of 0.00015 — can you calculate how much funding I'll pay over the next 24 hours?"},{"title":"Comparing funding cost across hold durations","prompt":"My perp position is $25,000 notional and the funding rate is 0.0003. What's the funding payment if I hold for 4 hours versus 8 hours?"},{"title":"Calculating funding credit for a short position","prompt":"I'm short $75,000 notional on a perp with a -0.0002 funding rate. How much funding credit do I earn over the next 12 hours?"}],"resultDescription":"Returns a deterministic JSON object containing the computed funding payment in quote currency (e.g. USDC), derived purely from the formula: notional × funding_rate × (hours/8) or equivalent period logic. No live market data or RPC calls are made — result is advisory only.","failureModes":["Missing required fields (notional, funding_rate, hours) result in a validation error","Non-numeric or negative notional/hours values may cause rejection","Payment failure via x402 protocol if insufficient USDC balance on Base","Extremely large or small floating point values for funding_rate may produce precision edge cases"],"whenToPreferThis":"Choose this endpoint when you need a fast, offline, deterministic calculation of perpetual futures funding payment without requiring live market data, API keys, or RPC connectivity. Ideal for agents that need to estimate funding drag or credit as part of position sizing logic, P&L attribution, or pre-trade analysis. Not suitable for real-time funding rate discovery or live position monitoring.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:16:15.342Z","isFirstParty":false}