Zum Inhalt
HALOWERK

Kettenwerk

wallet / pnl

Reads token movements of a wallet, prices every inflow and outflow at the time it happened, and derives cost basis, realised and unrealised profit or loss per asset. The method is stated because the result depends on it. Uncertainty is a mandatory field, not a footnote: an on-chain history knows nothing about deposits from exchanges, transfers between wallets of the same owner, or assets no price source covers. coverage_pct says which share of the movements carries a price; below sixty.

POST https://kette.halowerk.com/wallet/pnl

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
walletstringJaWallet address, 0x followed by 40 hex characters.
chainsarrayNeinChains to query. Default: base. Each chain costs time, so the cap is two.
methodstringNeinCost basis method. The result depends on it and it is echoed in method_used.
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "wallet"
  ],
  "additionalProperties": false,
  "properties": {
    "wallet": {
      "type": "string",
      "description": "Wallet address, 0x followed by 40 hex characters."
    },
    "chains": {
      "type": "array",
      "maxItems": 2,
      "items": {
        "type": "string"
      },
      "description": "Chains to query. Default: base. Each chain costs time, so the cap is two."
    },
    "method": {
      "type": "string",
      "enum": [
        "fifo",
        "lifo",
        "average"
      ],
      "default": "fifo",
      "description": "Cost basis method. The result depends on it and it is echoed in method_used."
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "wallet": "beispiel",
  "method": "fifo"
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →