Windows' built-in OCR engine used to parse an options broker's position grid into a workbook

A developer built nifty-desk, an MIT-licensed Python tool for Windows that turns a broker position screenshot into an Excel workbook with live premiums and P&L. It relies on Windows.Media.Ocr, the engine used by the Photos app, called through a short PowerShell script to avoid cloud OCR costs and privacy concerns. Upscaling the image before recognition was described as the largest single accuracy improvement. The tool reads column headers to map values, recovers dropped option-type labels from sibling legs or live prices, and infers lot sizes from quantities. It also adopts a sign convention for short and buy positions, documented in the README and printed in the sheet, to keep P&L formulas correct.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in