{"uid":"cap_Mx6ZjT1h2_rElhIjBZYgd","slug":"signalharness-defi-liquidity-share-calculator-6675fc75","name":"SignalHarness DeFi Liquidity Share Calculator","description":"Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.","url":"https://signalharness.ai/api/agent/services/defi_liquidity_share/invoke","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"liquidity_share_request":{"type":"string","maxLength":65536,"minLength":2}}},"responseSchema":{"type":"json","example":{"replay":false,"result":{"warnings":["LP balances and supply are caller supplied."],"service_id":"defi_liquidity_share","evidence_scope":"caller_supplied_data","liquidity_share":"{\"share\":\"0.1\",\"share_percent\":\"10\"}"},"status":"succeeded","receipt":{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","usage":[],"status":"succeeded","network":"eip155:8453","artifacts":[],"endedAtMs":0,"latencyMs":0,"paymentId":"example-payment","receiptId":"example-receipt","requestId":"example-request","serviceId":"defi_liquidity_share","executionId":"example-execution","startedAtMs":0,"amountAtomic":"5000","resultSha256":"e97f32a0e0f02a9035f7427678bc2d7c950bcc14c7b8e1ef25057ca28f2ac627","serviceVersion":"1.0.0","settlementReference":"0x0000000000000000000000000000000000000000000000000000000000000000"},"artifacts":[],"requestId":"example-request","executionId":"example-execution"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7s80GDk-kE5_FMuip2CpW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the liquidity share for a given DeFi position or pool context based on caller-supplied data","exampleAgentPrompt":"Can you calculate my liquidity share in this DeFi pool? Here's the position data: I provided 5000 USDC and 2 ETH to a Uniswap v3 pool with total reserves of 1,000,000 USDC and 400 ETH.","exampleUseCases":[{"title":"LP share calculation for AMM position","prompt":"I just added 10,000 USDC and 5 ETH to a liquidity pool that has total reserves of 2,000,000 USDC and 1000 ETH — can you figure out what percentage share of that pool I own?"},{"title":"DeFi portfolio rebalancing decision","prompt":"I need to know my current liquidity share across my Curve Finance position before I decide whether to add more funds — here's my position: 50,000 DAI deposited into a pool with 5,000,000 DAI total liquidity. What's my share?"},{"title":"Yield farming share audit","prompt":"Can you compute the liquidity share for this farming position I'm evaluating: someone put in 200 WBTC into a pool with 8,000 WBTC total. I need to know their ownership percentage to estimate yield."}],"resultDescription":"Returns a JSON object containing the computed liquidity_share value, any warnings about data quality or assumptions, the evidence_scope indicating the data source was caller-supplied, and a full execution receipt including payment metadata, latency, and a SHA-256 result hash for verification.","failureModes":["Invalid or malformed liquidity_share_request string returns an error","Missing required liquidity_share_request field causes a validation failure","Request string too short (under 2 chars) or too long (over 65536 chars) is rejected","Ambiguous or insufficient pool data may result in warnings rather than a precise figure","Payment failure via x402 protocol causes the call to be rejected before execution"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call computation of a DeFi liquidity share without maintaining a persistent connection to a blockchain node or indexer. It is suitable for agents that need on-demand LP share estimates from caller-supplied data at low cost ($0.005 USDC), especially when integrating with x402-compatible micropayment flows on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T13:07:22.751Z","isFirstParty":false}