{"slug":"chain-data-api-agentlogic-workers-dev-cost-basis-cb5410","title":"Premium UTXO cost basis and unrealized P&L report for a Bitcoin address","host":"chain-data-api.agentlogic.workers.dev","method":"GET","resource":"https://chain-data-api.agentlogic.workers.dev/cost-basis","category":"market","description":"Premium UTXO cost basis and unrealized P&L report for a Bitcoin address: current UTXOs with per-UTXO basis traced through lineage (single-input carry-forward, pro-rata fan-in blending) against Bitstamp daily BTC prices, current value at the live price, unrealized P&L, age and long/short holding flag","price_listed":0.1,"price_asked":0.1,"state":"answering","state_label":"Answering","checked_on":"2026-12-02","checks_7d":2,"answered_7d":2,"latency_ms_median":600,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"address":"1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"address":{"type":"string"}},"required":["address"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"address":{"type":"string"},"addressType":{"type":"string"},"currency":{"type":"string"},"currentPriceUsd":{"type":"number"},"durationMs":{"type":"integer"},"method":{"type":"string"},"network":{"type":"string"},"notes":{"type":"array"},"ok":{"type":"boolean"},"priceSource":{"type":"string"},"totals":{"type":"object"},"utxoCount":{"type":"integer"},"utxos":{"type":"array"}},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-12-02","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":622,"error":null},{"day":"2026-12-01","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":578,"error":null}],"description_full":"Premium UTXO cost basis and unrealized P&L report for a Bitcoin address: current UTXOs with per-UTXO basis traced through lineage (single-input carry-forward, pro-rata fan-in blending) against Bitstamp daily BTC prices, current value at the live price, unrealized P&L, age and long/short holding flag, plus address totals. Provenance breaks (CoinJoin-like funding, untraceable inputs) are flagged per UTXO with a receipt-price fallback. Estimates from on-chain receipt values, not tax advice.","last_updated":"2026-11-30T23:15:52.577Z","schemes":["exact"]}