Skip to content
Fourohtwo

finops.halowerk.com/v1/post-sale-replacement-loss-basis-ledger

One uniform-basis original long stock lot sold fully at a loss plus original chronological replacement purchases determines first-bought share matching in days1..30, deferred loss, matched/unmatched replacement sublot bases, adjusted bases and unmatched original loss. Conditional own arithmetic inspired by IRS Publication550, not actual tax eligibility, substantially-identical determination, allow

BaseAnswering
POSThttps://finops.halowerk.com/v1/post-sale-replacement-loss-basis-ledger

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://finops.halowerk.com/v1/post-sale-replacement-loss-basis-ledger", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"original_basis":100,"replacements":[{"cost_minor":1,"day":1,"shares_domain":[1]}],"report":{"adjusted_basis":[{"d":"3","n":"103"}],"basis_increase_total":{"d":"3","n":"100"},"deferred_loss":[{"d":"3","n":"100"}],"deferred_total":{"d":"3","n":"100"},"loss_conservation_gap":{"d":"1","n":"0"},"matched_basis":[{"d":"3","n":"103"}],"matched_shares":[{"d":"1","n":"1"}],"matched_total":{"d":"1","n":"1"),
});
console.log(await res.json());

Example input

{"original_basis":100,"replacements":[{"cost_minor":1,"day":1,"shares_domain":[1]}],"report":{"adjusted_basis":[{"d":"3","n":"103"}],"basis_increase_total":{"d":"3","n":"100"},"deferred_loss":[{"d":"3","n":"100"}],"deferred_total":{"d":"3","n":"100"},"loss_conservation_gap":{"d":"1","n":"0"},"matched_basis":[{"d":"3","n":"103"}],"matched_shares":[{"d":"1","n":"1"}],"matched_total":{"d":"1","n":"1"