{"uid":"cap_-9rFspyHCXsqWSHC2tcok","slug":"delx-commerce-position-size-risk-calculator-97c5e5ea","name":"Delx Commerce — Position Size & Risk 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/position-size-risk?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"stop":{"type":"integer","description":"Input field: stop."},"entry":{"type":"integer","description":"Input field: entry."},"equity":{"type":"integer","description":"Input field: equity."},"risk_pct":{"type":"number","description":"Input field: risk pct."}}},"responseSchema":{"type":"json","example":{"size":20,"stop":95,"entry":100,"schema":"delx/util-position-size-risk/v1","risk_dollars":100}},"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_kPhAd9SallgLx72SgfKpL","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 appropriate position size for a trade given entry price, stop loss, account equity, and risk percentage.","exampleAgentPrompt":"I'm entering a trade at $100 with a stop at $95, my account equity is $10000, and I want to risk 1% per trade — what position size should I take?","exampleUseCases":[{"title":"Stock trade sizing with risk cap","prompt":"I'm buying a stock at $150 with a stop loss at $140, I have $25000 in my account and never want to risk more than 2% on a single trade — how many shares should I buy?"},{"title":"Crypto position sizing for day trader","prompt":"I'm entering Bitcoin at $60000 with a stop at $58000, my trading account has $5000 in equity and I want to risk 1.5% — what's the right position size?"},{"title":"Options or futures risk check before entry","prompt":"My entry is $200, stop is $190, account equity is $50000, and my max risk per trade is 0.5% — can you calculate how many units I should trade?"}],"resultDescription":"Returns a JSON object with the computed position size (number of units/shares), the dollar amount being risked, and echo of the entry and stop prices used in the calculation, conforming to schema delx/util-position-size-risk/v1.","failureModes":["Missing required fields (entry, stop, equity, risk_pct) returns an error","Stop price equal to or greater than entry price may produce undefined or negative results","Extremely small risk_pct or very wide stop-to-entry spread may produce a position size of zero or fractional unit","Non-numeric or malformed input values cause validation errors","Payment failure via x402 protocol results in 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when an AI agent or trading workflow needs to programmatically compute position size based on fixed fractional risk management rules. It is ideal for agents managing trade execution pipelines, backtesting harnesses, or advisory bots that need per-trade risk sizing without building the math internally. It pays per result in USDC with no signup, making it suitable for lightweight or serverless agent workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:43.233Z","isFirstParty":false,"canonicalSlug":"delx-commerce-position-size-risk-calculator-97c5e5ea"}