Skip to content
Fourohtwo

www.brainiac.software/api/v1/crypto-tax/exchange-csv-normalize

Convert a caller CSV export into the shared ledger schema using a caller column mapping, or return a mapping template from headers. Docs: https://www.brainiac.software/api/crypto-tax/exchange-csv-normalize

BaseAnswering
POSThttps://www.brainiac.software/api/v1/crypto-tax/exchange-csv-normalize

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://www.brainiac.software/api/v1/crypto-tax/exchange-csv-normalize", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"csv":"Date,Type,Asset,Amount,Total\n2026-01-02 10:00:00,Buy,BTC,0.1,4000.00\n","fiatCurrency":"USD","mapping":{"asset":"Asset","fiatValue":{"column":"Total","scale":100},"qty":"Amount","ts":{"column":"Date","format":"yyyy-MM-dd HH:mm:ss","timezone":"UTC"},"type":{"column":"Type","values":{"Buy":"buy","Sell":"sell"}}},"wallet":"exchange-1"}),
});
console.log(await res.json());

Example input

{
  "csv": "Date,Type,Asset,Amount,Total\n2026-01-02 10:00:00,Buy,BTC,0.1,4000.00\n",
  "fiatCurrency": "USD",
  "mapping": {
    "asset": "Asset",
    "fiatValue": {
      "column": "Total",
      "scale": 100
    },
    "qty": "Amount",
    "ts": {
      "column": "Date",
      "format": "yyyy-MM-dd HH:mm:ss",
      "timezone": "UTC"
    },
    "type": {
      "column": "Type",
      "values": {
        "Buy": "buy",
        "Sell": "sell"
      }
    }
  },
  "wallet": "exchange-1"
}