← Back to the library
Trading and investing

Cost Basis Engine

Multi-method cost basis computation including specific identification, FIFO, LIFO, HIFO, and proportional average cost with partial sell handling. Trading analysis or dry-run only; live data and broker access require separately available host tools.

Works with the context you provideVersion 1.0.0

Cost Basis Engine

First read and apply `references/chiefos-runtime.md`. Choose the source method below that matches the requested outcome and available evidence; do not execute every alternate provider path.

agiprolabs: cost-basis-engine

Load `references/agiprolabs/cost-basis-engine/SKILL.md` for the complete method, required inputs, ordered decisions, and output contract. Resolve its local resources beneath the same directory.

For upstream sibling names, resolve the canonical skill and source entrypoint with `references/source-routing.json`. Load sibling resources from that canonical skill; do not assume the original directory name is independently installed.