{"product_id":"the-ledger-cost-basis-trading-records-os-brain","title":"THE LEDGER — Cost Basis \u0026 Trading Records OS Brain","description":"\u003cstyle\u003e\n.pl{--ink:#17141c;--ln:rgba(0,0,0,.09);--sg:#ff5a2b;--vi:#7c6cf0;--tl:#2f736a;--mut:#6b6577;font-family:'Instrument Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);line-height:1.6;max-width:100%}\n.pl *{box-sizing:border-box}\n.pl h2,.pl h3{font-family:'Space Grotesk',-apple-system,sans-serif;letter-spacing:-.02em;line-height:1.15;margin:0}\n.pl-hero{border:1px solid var(--ln);border-radius:16px;padding:26px;background:linear-gradient(160deg,#fbf9f5,#fff);margin-bottom:22px}\n.pl-eng{display:inline-flex;align-items:center;gap:7px;font-family:ui-monospace,monospace;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--sg);border:1px solid rgba(255,90,43,.35);border-radius:999px;padding:5px 12px;margin-bottom:14px}\n.pl-hero h2{font-size:27px;margin-bottom:8px}\n.pl-lead{font-size:16.5px;color:#3b3646;margin:0}\n.pl-eb{border-left:3px solid var(--sg);background:#fff6f2;border-radius:0 10px 10px 0;padding:14px 18px;margin:18px 0 0}\n.pl-eb b{display:block;font-family:ui-monospace,monospace;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--sg);margin-bottom:5px}\n.pl-eb p{margin:0;font-size:15px}\n.pl-code{border:1px solid rgba(124,108,240,.34);border-radius:14px;padding:18px 20px;margin-bottom:22px;background:#f7f6fe}\n.pl-code b{display:block;font-family:ui-monospace,monospace;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--vi);margin-bottom:8px}\n.pl-code code{font-family:ui-monospace,monospace;font-size:13.5px;background:#fff;border:1px solid rgba(124,108,240,.3);border-radius:6px;padding:3px 8px;color:#4b3fb8}\n.pl-code p{margin:9px 0 0;font-size:14.5px;color:#3b3646}\n.pl-say{border:1px solid var(--ln);border-radius:14px;padding:20px 22px;margin-bottom:22px;background:#fff}\n.pl-say h3{font-size:15px;margin-bottom:12px}\n.pl-r{display:flex;align-items:flex-start;gap:12px;padding:10px 0;border-top:1px solid var(--ln)}\n.pl-r:first-of-type{border-top:0}\n.pl-q{flex:1;font-size:14.5px;color:#3b3646;font-style:italic}\n.pl-a{font-family:ui-monospace,monospace;font-size:12px;color:var(--tl);background:rgba(47,115,106,.08);border-radius:6px;padding:4px 9px;white-space:nowrap}\n.pl-sec{font-family:ui-monospace,monospace;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--mut);margin:0 0 12px}\n.pl-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:22px}\n.pl-s{border:1px solid var(--ln);border-radius:11px;padding:13px 15px;background:#fff}\n.pl-s b{display:block;font-family:'Space Grotesk',sans-serif;font-size:14.5px;margin-bottom:3px}\n.pl-s span{font-size:13px;color:var(--mut)}\n.pl-n{font-family:ui-monospace,monospace;font-size:11px;color:var(--sg);margin-right:7px}\n.pl-ch{border:1px solid var(--ln);border-radius:14px;padding:20px 22px;margin-bottom:22px;background:#faf9fc}\n.pl-ch-t{font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:15px;margin-bottom:14px}\n.pl-ch-g{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}\n.pl-c{display:flex;gap:9px;align-items:flex-start;background:#fff;border:1px solid var(--ln);border-radius:9px;padding:10px 11px}\n.pl-c b{font-family:ui-monospace,monospace;font-size:11px;color:var(--vi);flex:none}\n.pl-c span{font-size:12.5px;font-weight:600;line-height:1.3}\n.pl-c i{display:block;font-style:normal;font-weight:400;font-size:11.5px;color:var(--mut);margin-top:2px}\n.pl-gates{border:1px solid rgba(255,90,43,.3);border-radius:14px;padding:20px 22px;margin-bottom:22px;background:#fff8f5}\n.pl-gates h3{font-size:15px;margin-bottom:11px}\n.pl-gates ul{margin:0;padding-left:17px}\n.pl-gates li{font-size:14.5px;margin-bottom:6px}\n.pl-foot{border-top:1px solid var(--ln);padding-top:16px;font-size:13.5px;color:var(--mut)}\n@media(max-width:640px){.pl-grid,.pl-ch-g{grid-template-columns:1fr}.pl-hero h2{font-size:22px}}\n\u003c\/style\u003e\n\u003cdiv class=\"pl\"\u003e\n\u003cdiv class=\"pl-hero\"\u003e\n\u003cspan class=\"pl-eng\"\u003e◆ cost_basis.py · the number your return needs\u003c\/span\u003e\u003ch2\u003eTHE LEDGER — Cost Basis \u0026amp; Trading Records OS Brain\u003c\/h2\u003e\n\u003cp class=\"pl-lead\"\u003eFor the records you will need and do not have. One orchestrator plus ten specialists that compute cost basis across disposals, reconcile transactions across venues, and build the trail before a deadline rather than during one.\u003c\/p\u003e\n\u003cdiv class=\"pl-eb\"\u003e\n\u003cb\u003eWhat makes it different\u003c\/b\u003e\u003cp\u003eMost people reconstruct their trading year in the week the return is due, from exchange exports that no longer reconcile, for venues that have since closed. The basis script takes your transaction history and computes realised gains under FIFO, LIFO and weighted average, showing the difference between them — which is frequently large, and which may or may not be a choice you are allowed to make depending on where you live. Doing this in January rather than deadline week is the whole difference between a calculation and an archaeology project.\u003c\/p\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"pl-code\"\u003e\n\u003cb\u003eIt ships working code, not just prompts\u003c\/b\u003e\n\u003ccode\u003ecost_basis.py\u003c\/code\u003e\n\u003cp\u003eComputes realised gains under FIFO, LIFO and weighted average from a transaction ledger, shows the difference each method produces, and flags every disposal with a missing or unmatched acquisition record. Every OS Brain in this drop carries its own executable component, so the judgement calls stay with you and the arithmetic stops being a matter of opinion. Runs anywhere Python runs, and the specialists still work on their own if you never open it.\u003c\/p\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"pl-say\"\u003e\n\u003ch3\u003eSay it in plain words — it works out the rest\u003c\/h3\u003e\n\u003cdiv class=\"pl-r\"\u003e\n\u003cspan class=\"pl-q\"\u003e\"Tax return is due\"\u003c\/span\u003e\u003cspan class=\"pl-a\"\u003e→ full pipeline, reconcile first\u003c\/span\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"pl-r\"\u003e\n\u003cspan class=\"pl-q\"\u003e\"Which method do I use?\"\u003c\/span\u003e\u003cspan class=\"pl-a\"\u003e→ 03 · often not your choice\u003c\/span\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"pl-r\"\u003e\n\u003cspan class=\"pl-q\"\u003e\"The exchange shut down\"\u003c\/span\u003e\u003cspan class=\"pl-a\"\u003e→ 05 · reconstruct from what remains\u003c\/span\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"pl-r\"\u003e\n\u003cspan class=\"pl-q\"\u003e\"I moved coins between wallets\"\u003c\/span\u003e\u003cspan class=\"pl-a\"\u003e→ 04 · transfers are not disposals\u003c\/span\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"pl-r\"\u003e\n\u003cspan class=\"pl-q\"\u003e\"I have no records at all\"\u003c\/span\u003e\u003cspan class=\"pl-a\"\u003e→ 02 · start from the chain and the bank\u003c\/span\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cp class=\"pl-sec\"\u003eInside · orchestrator + 10 specialists\u003c\/p\u003e\n\u003cdiv class=\"pl-grid\"\u003e\n\u003cdiv class=\"pl-s\"\u003e\n\u003cb\u003e\u003cspan class=\"pl-n\"\u003e01\u003c\/span\u003eThe Transaction Set\u003c\/b\u003e\u003cspan\u003eEverything, every venue\u003c\/span\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"pl-s\"\u003e\n\u003cb\u003e\u003cspan class=\"pl-n\"\u003e02\u003c\/span\u003eReconstructing Gaps\u003c\/b\u003e\u003cspan\u003eWhen the export is gone\u003c\/span\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"pl-s\"\u003e\n\u003cb\u003e\u003cspan class=\"pl-n\"\u003e03\u003c\/span\u003eMethod Selection\u003c\/b\u003e\u003cspan\u003eFIFO, LIFO, average\u003c\/span\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"pl-s\"\u003e\n\u003cb\u003e\u003cspan class=\"pl-n\"\u003e04\u003c\/span\u003eTransfers and Disposals\u003c\/b\u003e\u003cspan\u003eThe distinction that matters\u003c\/span\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"pl-s\"\u003e\n\u003cb\u003e\u003cspan class=\"pl-n\"\u003e05\u003c\/span\u003eVenue Failure\u003c\/b\u003e\u003cspan\u003eExchanges that no longer exist\u003c\/span\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"pl-s\"\u003e\n\u003cb\u003e\u003cspan class=\"pl-n\"\u003e06\u003c\/span\u003eFees and Costs\u003c\/b\u003e\u003cspan\u003eWhat is deductible\u003c\/span\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"pl-s\"\u003e\n\u003cb\u003e\u003cspan class=\"pl-n\"\u003e07\u003c\/span\u003eRealised and Unrealised\u003c\/b\u003e\u003cspan\u003eKeeping them apart\u003c\/span\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"pl-s\"\u003e\n\u003cb\u003e\u003cspan class=\"pl-n\"\u003e08\u003c\/span\u003eThe Trail\u003c\/b\u003e\u003cspan\u003eEvidence that survives a question\u003c\/span\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"pl-s\"\u003e\n\u003cb\u003e\u003cspan class=\"pl-n\"\u003e09\u003c\/span\u003eOngoing Capture\u003c\/b\u003e\u003cspan\u003eSo next year is easy\u003c\/span\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"pl-s\"\u003e\n\u003cb\u003e\u003cspan class=\"pl-n\"\u003e10\u003c\/span\u003eRecords Ledger\u003c\/b\u003e\u003cspan\u003eThe archive itself\u003c\/span\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"pl-gates\"\u003e\n\u003ch3\u003eWhere it refuses to skip ahead\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cb\u003eNo calculation on an incomplete set\u003c\/b\u003e — a basis computed from partial records is confidently wrong.\u003c\/li\u003e\n\u003cli\u003e\n\u003cb\u003eTransfers are not disposals\u003c\/b\u003e — mislabelling them is the most common and most expensive error in the category.\u003c\/li\u003e\n\u003cli\u003e\n\u003cb\u003eMethod is not a free choice everywhere\u003c\/b\u003e — several jurisdictions mandate one, and picking the favourable one anyway creates a problem.\u003c\/li\u003e\n\u003cli\u003e\n\u003cb\u003eNo number filed without professional review\u003c\/b\u003e — this prepares the working. It does not file it and it does not sign it.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"pl-ch\"\u003e\n  \u003cdiv class=\"pl-ch-t\"\u003eWorks in all 7 channels\u003c\/div\u003e\n  \u003cdiv class=\"pl-ch-g\"\u003e\n    \u003cdiv class=\"pl-c\"\u003e\n\u003cb\u003e1\u003c\/b\u003e\u003cspan\u003eAny chat\u003ci\u003eupload the zip\u003c\/i\u003e\u003c\/span\u003e\n\u003c\/div\u003e\n    \u003cdiv class=\"pl-c\"\u003e\n\u003cb\u003e2\u003c\/b\u003e\u003cspan\u003eClaude Projects\u003ci\u003eadd as knowledge\u003c\/i\u003e\u003c\/span\u003e\n\u003c\/div\u003e\n    \u003cdiv class=\"pl-c\"\u003e\n\u003cb\u003e3\u003c\/b\u003e\u003cspan\u003eChatGPT \/ GPTs\u003ci\u003eknowledge files\u003c\/i\u003e\u003c\/span\u003e\n\u003c\/div\u003e\n    \u003cdiv class=\"pl-c\"\u003e\n\u003cb\u003e4\u003c\/b\u003e\u003cspan\u003eGemini Gems\u003ci\u003eknowledge files\u003c\/i\u003e\u003c\/span\u003e\n\u003c\/div\u003e\n    \u003cdiv class=\"pl-c\"\u003e\n\u003cb\u003e5\u003c\/b\u003e\u003cspan\u003eClaude Code\u003ci\u003eskills folder\u003c\/i\u003e\u003c\/span\u003e\n\u003c\/div\u003e\n    \u003cdiv class=\"pl-c\"\u003e\n\u003cb\u003e6\u003c\/b\u003e\u003cspan\u003eAgent frameworks\u003ci\u003esystem instruction\u003c\/i\u003e\u003c\/span\u003e\n\u003c\/div\u003e\n    \u003cdiv class=\"pl-c\"\u003e\n\u003cb\u003e7\u003c\/b\u003e\u003cspan\u003ePaste-only\u003ci\u003edegrades gracefully\u003c\/i\u003e\u003c\/span\u003e\n\u003c\/div\u003e\n  \u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"pl-foot\"\u003eThe habit it is really selling: capture transactions monthly, so the annual job becomes twenty minutes instead of a weekend. Single-seat license. This is a record-keeping and calculation tool and explicitly not tax advice — cost basis rules, permitted methods and reporting obligations vary substantially by jurisdiction and change often. Have an accountant review the output before anything is filed.\u003c\/div\u003e\n\u003c\/div\u003e","brand":"PromptLeadz","offers":[{"title":"Default Title","offer_id":53317565251851,"sku":"OS-LEDGER-39","price":49.0,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0928\/7932\/3403\/files\/os39-ledger.png?v=1787416800","url":"https:\/\/promptleadz.com\/fr\/products\/the-ledger-cost-basis-trading-records-os-brain","provider":"Prompt Leadz","version":"1.0","type":"link"}