Skip to content
Fourohtwo

saylorinnovations.com/api/tax/crypto-gains

Capital gain from a crypto sale by lot using FIFO, LIFO or HIFO, with cost basis, proceeds and the short-term and long-term split per lot.

BaseAnswering
GEThttps://saylorinnovations.com/api/tax/crypto-gains

Uptime100% of 1 check 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://saylorinnovations.com/api/tax/crypto-gains?lots=%5B%7B%22date%22%3A%222024-01-10%22%2C%22qty%22%3A1%2C%22price%22%3A42000%7D%2C%7B%22date%22%3A%222025-03-05%22%2C%22qty%22%3A1%2C%22price%22%3A85000%7D%5D&method=hifo&sell_qty=1.5&sell_date=2025-10-17&sell_price=95000");
console.log(await res.json());

Example input

{
  "lots": "[{\"date\":\"2024-01-10\",\"qty\":1,\"price\":42000},{\"date\":\"2025-03-05\",\"qty\":1,\"price\":85000}]",
  "method": "hifo",
  "sell_qty": "1.5",
  "sell_date": "2025-10-17",
  "sell_price": "95000"
}

More from Saylor Innovations Data DeskProvider status