{"uid":"cap_71iTJMQ8sktz2-P81CXds","slug":"token-position-price-stress-batch-calculation-145b1d5d","name":"Token Position Price Stress — Batch Calculation","description":"Token position price stress — Batch calculation: Batch calculation for Token position price stress. Supplied token observations only. Deterministic calculation or caller-threshold verdict, not a live scan, safety proof or trade recommendation. Specialised preset in a shared 50-profile, 20-operation engine. 0.01 USDC includes one bounded batch calculation report.","url":"https://market.datapackvibe.com/x402/assistant-bx-token-valuation-stress-batch?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["position_tokens","price_usd","price_change_percent"],"properties":{"price_usd":{"type":"number","default":2,"maximum":10000000000000000,"minimum":0,"exclusiveMinimum":0},"position_tokens":{"type":"number","default":1000,"maximum":10000000000000000,"minimum":0,"exclusiveMinimum":0},"price_change_percent":{"type":"number","default":-20,"maximum":1000,"minimum":-100}},"additionalProperties":false},"default":[{"price_usd":2,"position_tokens":1000,"price_change_percent":-20},{"price_usd":2.2,"position_tokens":1100,"price_change_percent":-22}],"maxItems":200,"minItems":1}}},"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_bHrl99cUnNmB3fS0AYMl6","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":"Calculates price stress impact on multiple token positions in a single batch, returning deterministic P&L or threshold verdict for each row of supplied token observations.","exampleAgentPrompt":"Stress test these two token positions for me: 1000 tokens at $2.00 with a -20% price change, and 1100 tokens at $2.20 with a -22% price change — give me the batch calculation report showing the impact on each.","exampleUseCases":[{"title":"DeFi portfolio drawdown scenario","prompt":"I hold 5000 tokens at $1.50 and another 2000 tokens at $3.80 — run a stress test assuming the first drops 25% and the second drops 15%, and tell me the value impact on each position."},{"title":"Risk threshold check before trade","prompt":"Before I add to my position, can you stress test 750 tokens at $4.20 with a -30% price shock and 500 tokens at $0.85 with a -18% shock so I can see if either hits my loss threshold?"},{"title":"Multi-token liquidation risk audit","prompt":"I need to audit my exposure across four token positions for a worst-case price drop: 10000 tokens at $0.12 down 40%, 3000 tokens at $5.50 down 22%, 800 tokens at $20.00 down 35%, and 25000 tokens at $0.03 down 50% — batch calculate the stress results for all of them."}],"resultDescription":"A bounded batch calculation report containing, for each input row, the deterministic stress outcome showing the computed value impact of the specified price change on the token position (e.g. position value before and after shock, P&L change, or a pass/fail verdict against a caller-specified threshold). Up to 200 rows processed per call.","failureModes":["Invalid price_usd (must be > 0 and ≤ 1e16) returns validation error","price_change_percent outside -100 to 1000 range rejected","position_tokens <= 0 or missing causes row-level validation failure","Batch exceeds 200 rows returns payload too large error","Missing required fields per row returns schema validation error","Payment failure via x402 protocol results in 402 response with no calculation"],"whenToPreferThis":"Use this endpoint when you need deterministic, reproducible stress calculations on one or more token positions using your own supplied price observations — not live market data. Ideal for batch risk checks, pre-trade analysis, or portfolio audits where you already have the token quantities, current prices, and hypothetical price change percentages. Prefer this over single-row alternatives when processing multiple positions in one call (up to 200 rows), and over live-scan services when you need a fixed, auditable result rather than a real-time market sweep.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:35:18.620Z","isFirstParty":false,"canonicalSlug":"token-position-price-stress-batch-calculation-145b1d5d"}