{"uid":"cap_FxGC8UYMGFI3BM0WRyChd","slug":"true402-quant-calculator-2d435c4c","name":"true402 Quant Calculator","description":"The machine-native marketplace. Wallet = identity. Pay per call with HTTP 402.","url":"https://true402.dev/api/v1/quant","method":"POST","headers":{},"bodySchema":{"type":"object","required":["params","function"],"properties":{"params":{"type":"object","description":"Parameters for the chosen function"},"function":{"enum":["black_scholes","implied_volatility","kelly","sharpe","sortino","max_drawdown","historical_var","cvar","cagr","volatility"],"type":"string","description":"Which calculator to run"}}},"responseSchema":{"type":"object","properties":{"result":{"type":"object"},"function":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_t5NwXoAZPcZhDm7SAOHH-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a named quantitative/mathematical calculator function with supplied parameters, paid per call via HTTP 402.","exampleAgentPrompt":"Run the 'black_scholes' calculator on true402 with these params: stock price 150, strike 155, risk-free rate 0.05, volatility 0.2, time to expiry 0.5 years — I need the option price.","exampleUseCases":[{"title":"Option pricing on demand","prompt":"Use the true402 quant endpoint to run the 'black_scholes' function with a spot price of 100, strike of 105, risk-free rate of 0.04, volatility of 0.25, and time to expiry of 1 year — what's the call option price?"},{"title":"Portfolio volatility calculation","prompt":"I need to compute portfolio volatility — call the 'portfolio_volatility' calculator on true402 with my weights [0.4, 0.35, 0.25] and covariance matrix [[0.04,0.01,0.02],[0.01,0.09,0.03],[0.02,0.03,0.06]]."},{"title":"Compound interest computation","prompt":"Run the 'compound_interest' function on the true402 quant API: principal 10000, annual rate 0.07, compounding frequency 12, and a 5-year horizon — give me the final value."}],"resultDescription":"A JSON object containing the output of the named quantitative function — typically a numeric result or structured computation output depending on which calculator was invoked.","failureModes":["Unknown function name returns an error or empty result","Malformed or missing params object causes a 400-level rejection","Insufficient wallet balance triggers HTTP 402 payment-required response","Unsupported parameter types or out-of-range values may cause computation errors","No response schema defined, so output structure varies by function"],"whenToPreferThis":"Choose this endpoint when you need lightweight, pay-per-call quantitative computation without standing up your own math infrastructure — especially useful for financial calculations (options pricing, volatility, portfolio analytics) in agent pipelines that can handle x402 micropayments. Prefer it over general-purpose code execution when a named calculator function matching your use case exists on the true402 marketplace.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:40:23.871Z","isFirstParty":false}