{"uid":"cap__qihw1Da_kAmB2IX2vM8f","slug":"finmath-hmac-sha256-5501ee35","name":"finmath HMAC-SHA256","description":"Deterministic finance and crypto math for AI agents: TradFi (NPV, IRR, XIRR, Black-Scholes + Greeks, bonds, VaR, Sharpe) and DeFi (impermanent loss, perp liquidation, funding, Uniswap v3, health factor, cost basis). Exact, model-free arithmetic that LLMs get wrong — priced per call in USDC.","url":"https://finmath.qzqh5rrbkz.workers.dev/v1/hmac_sha256?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["key","message"],"properties":{"key":{"type":"string","description":"key"},"message":{"type":"string","description":"message"}}},"responseSchema":{"type":"object","required":["result","meta"],"properties":{"meta":{"type":"object"},"result":{}}},"example":{"request":{"key":"test-secret-key-123","message":"order_id=12345&amount=99.99"},"response":{"meta":{"tool":"hmac_sha256","disclaimer":"Deterministic calculation utility. Not financial, investment, or trading advice.","deterministic":true},"result":{"hmac":"ad7c031f7cefd0cadb82b04c12a3e9f46a149cb6e4a239f7ef32e2ad10e2e1ce"}}},"exampleRequest":{"key":"test-secret-key-123","message":"order_id=12345&amount=99.99"},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_kCmQF49dL_IXmdYYZJHvR","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":"Computes an HMAC-SHA256 message authentication code given a key and message string","exampleAgentPrompt":"Compute the HMAC-SHA256 of the message 'order_id=12345&amount=99.99' using the secret key 'my-secret-key-abc'.","exampleUseCases":null,"resultDescription":"Returns a result object containing the HMAC-SHA256 digest of the provided message signed with the given key, along with meta information about the computation.","failureModes":["Missing required 'key' field returns validation error","Missing required 'message' field returns validation error","Payment not provided or insufficient USDC results in 402 Payment Required","Malformed request body returns 400 Bad Request"],"whenToPreferThis":"Use this endpoint when you need a deterministic, exact HMAC-SHA256 computation and want to avoid LLM approximation errors; ideal for signing API requests, verifying message integrity, or generating authentication tokens within an agent workflow that already uses the finmath payment infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T00:31:06.496Z","isFirstParty":false,"canonicalSlug":"finmath-hmac-sha256-5501ee35"}