{"uid":"cap_GR_p7IwVPRNX4qKyMxDx3","slug":"delx-commerce-margin-required-calculator-8fbb4153","name":"Delx Commerce — Margin Required 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/margin-required?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"leverage":{"type":"integer","description":"Input field: leverage."},"notional":{"type":"integer","description":"Input field: notional."}}},"responseSchema":{"type":"json","example":{"margin":1000,"schema":"delx/util-margin-required/v1","leverage":5,"notional":5000}},"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_Q0pM_3L1q15537Xk2ZOeo","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 the required margin for a leveraged position given a notional value and leverage multiplier","exampleAgentPrompt":"What's the required margin if I want to open a position with 5x leverage on a $5000 notional value?","exampleUseCases":[{"title":"Pre-trade margin check for futures","prompt":"I'm about to open a futures position with 10x leverage on a $20000 notional — how much margin do I need to have ready?"},{"title":"Risk sizing for leveraged portfolio","prompt":"Help me figure out the margin required for a 3x leveraged position with a $15000 notional so I can size my position correctly."},{"title":"Automated trading bot margin validation","prompt":"Before my bot submits this order, calculate the margin required for 7x leverage on a $8000 notional position so we can confirm we have enough collateral."}],"resultDescription":"Returns a JSON object with the computed margin amount, the leverage and notional values echoed back, and a schema identifier (e.g. 'delx/util-margin-required/v1'). For example: {margin: 1000, leverage: 5, notional: 5000, schema: 'delx/util-margin-required/v1'}.","failureModes":["Missing leverage or notional fields results in a 400 Bad Request","Non-integer values for leverage or notional may be rejected","Zero or negative leverage/notional values may cause computation errors or rejection","Payment failure via x402 protocol results in 402 Payment Required before computation occurs"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-use margin requirement calculation without API key signup, especially within an automated trading or risk management agent pipeline. Prefer it for verifiable, micro-priced computations paid in USDC on Base or Solana via x402 protocol when building agent-native financial workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:41.302Z","isFirstParty":false,"canonicalSlug":"delx-commerce-margin-required-calculator-8fbb4153"}