{"uid":"cap_OxWdHzBAgh8jnQ4WxS9U5","slug":"margin-sufficiency-check-64aad6cd","name":"Margin Sufficiency Check","description":"Check if posted margin is sufficient","url":"https://margin-api-production-d413.up.railway.app/check?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_6VkMVATzNidxz0qyk9zX6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks whether the currently posted margin is sufficient for a given position or collateral requirement","exampleAgentPrompt":"Can you check if my currently posted margin is sufficient to maintain my position without risk of a margin call?","exampleUseCases":[{"title":"Pre-trade margin adequacy check","prompt":"Before I open this new position, can you verify whether my posted margin is sufficient to cover the required collateral?"},{"title":"Real-time liquidation risk monitoring","prompt":"Check right now if my margin is still sufficient — I want to make sure I'm not at risk of getting liquidated given current market conditions."},{"title":"Automated margin health validation","prompt":"I need you to confirm whether the margin I've posted is enough to meet the current requirements before I move forward with the next step of my strategy."}],"resultDescription":"Returns a boolean or status indicating whether the posted margin is sufficient, potentially along with details about the current margin level versus the required threshold.","failureModes":["Missing or invalid query parameters returns an error","Service unavailable if the underlying margin calculation engine is down","Stale margin data if market prices haven't updated recently","Payment failure if USDC balance is insufficient for the $0.01 fee"],"whenToPreferThis":"Use this endpoint when you need a quick pass/fail check on margin sufficiency rather than a full margin calculation. Pair it with the sibling 'Calculate required margin for collateral' endpoint when you also need to know the exact margin amount required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:03:54.951Z","isFirstParty":false,"canonicalSlug":"margin-sufficiency-check-64aad6cd"}