# finmath JSON to CSV Converter

> finmath JSON to CSV Converter is a paid API for AI agents from finmath.qzqh5rrbkz.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-18).

Converts a JSON string into CSV format, as part of the finmath deterministic finance/crypto math service.

## Facts

- Endpoint: POST https://finmath.qzqh5rrbkz.workers.dev/v1/json_to_csv?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/finmath-json-to-csv-converter-ebe6974a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7blZRbvQRNFl90CIp4N0d

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability finmath-json-to-csv-converter-ebe6974a -d '<json body>'
```

Example prompt: Convert this JSON array to CSV format: '[{"date":"2024-01-01","cashflow":-1000},{"date":"2024-06-01","cashflow":1200}]'

## When to prefer this

Use this endpoint when you need to convert a JSON string into CSV format within the finmath workflow, particularly when you want to export or display financial calculation results (e.g., NPV, IRR, bond cashflows, DeFi metrics) in a tabular, spreadsheet-compatible format. Prefer this over generic CSV converters when your data is already in the finmath ecosystem.

## Known failure modes

- Invalid or malformed JSON string returns an error
- Empty JSON input may produce empty or malformed CSV
- Deeply nested JSON objects may not flatten cleanly into CSV rows
- Missing required 'json' field returns a validation error

## How this service works

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.

## Output

Returns a result field containing the CSV-formatted output of the input JSON, along with a meta object providing additional response metadata.

## Example request

```json
{
 "json": "[{\"date\":\"2024-01-01\",\"amount\":1000},{\"date\":\"2024-01-02\",\"amount\":1500}]"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "json"
 ],
 "properties": {
  "json": {
   "type": "string",
   "description": "json"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "result",
  "meta"
 ],
 "properties": {
  "meta": {
   "type": "object"
  },
  "result": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/finmath-json-to-csv-converter-ebe6974a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from finmath.qzqh5rrbkz.workers.dev](https://www.zero.xyz/host/finmath.qzqh5rrbkz.workers.dev/llms.txt)
