{"uid":"cap_FKLaA5LzFFF6N9y7dcv5C","slug":"finmath-csv-to-json-converter-3daada87","name":"finmath CSV to JSON Converter","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/csv_to_json","method":"POST","headers":{},"bodySchema":{"type":"object","required":["csv"],"properties":{"csv":{"type":"string","description":"csv"},"headers":{"type":"boolean","description":"headers"}}},"responseSchema":{"type":"object","required":["result","meta"],"properties":{"meta":{"type":"object"},"result":{}}},"example":{"request":{"csv":"date,price,volume\n2024-01-01,150.25,10000\n2024-01-02,152.00,12000\n2024-01-03,151.50,11500","headers":true},"response":{"meta":{"tool":"csv_to_json","disclaimer":"Deterministic calculation utility. Not financial, investment, or trading advice.","deterministic":true},"result":{"rows":[{"date":"2024-01-01","price":"150.25","volume":"10000"},{"date":"2024-01-02","price":"152.00","volume":"12000"},{"date":"2024-01-03","price":"151.50","volume":"11500"}]}}},"exampleRequest":{"csv":"date,price,volume\n2024-01-01,150.25,10000\n2024-01-02,152.00,12000\n2024-01-03,151.50,11500","headers":true},"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_GrzlJJ26eQVKVlZTS6a11","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":"Converts a CSV string into a structured JSON array, with optional header row handling, as part of a deterministic finance math service.","exampleAgentPrompt":"Can you convert this CSV data into JSON for me? The first row contains headers: 'date,price,volume\\n2024-01-01,150.25,10000\\n2024-01-02,152.00,12000'","exampleUseCases":null,"resultDescription":"Returns a JSON object with a 'result' field containing the parsed CSV as a JSON array (with objects keyed by header names if headers=true, or arrays of values if headers=false), plus a 'meta' object with processing metadata such as row count and column info.","failureModes":["Malformed CSV string causes parse error — returns error in result field","Missing required 'csv' field returns a 400-style error","Empty CSV string may return empty result array","CSV with inconsistent column counts may produce ragged arrays or errors","Very large CSV strings may hit payload limits on the Workers runtime"],"whenToPreferThis":"Use this endpoint when you need a lightweight, deterministic CSV-to-JSON conversion as part of a financial data pipeline on the finmath platform, especially when you need the output to feed into other finmath calculations (NPV, IRR, Black-Scholes, etc.) that expect structured JSON input. Prefer this over general-purpose parsing libraries when working within a USDC-metered agent workflow that already uses finmath services.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:43:09.759Z","isFirstParty":false}