Provides comprehensive portfolio analytics for Interactive Brokers accounts, integrating with the Flex Query API for automated data fetching and generating rich reports.
IB Analytics is a powerful Python library designed to streamline and enhance portfolio management for Interactive Brokers (IB) account holders. It offers multi-account support and seamlessly integrates with the IB Flex Query API v3 to automate the fetching of financial data. Users can perform comprehensive analyses on their portfolios, covering performance, tax implications, cost efficiency, risk assessment, and detailed bond analytics. The library prioritizes data integrity with Pydantic v2 for type safety, supports asynchronous operations for efficient data retrieval, and provides flexible reporting options including console, HTML, and PDF formats. It also includes an MCP server for integration with clients like Claude Desktop.