When users ask, “How is the average price of a stock in my portfolio calculated?” I usually point them to a reference post. But sometimes they want more – a step-by-step explanation that proves the calculations are correct. Unless there are very few transactions, doing this manually is time consuming. I’ve done this many times before. Thankfully, with AI, this is now quick and easy. Here’s the approach: Generate transactions in JSON format – a compact structure that AI easily understands. Write a clear signal for the AI to follow. Let AI (ChatGPT, Gemini, DeepSeek, etc.) do the work. How to receive transactions and signals? Go transaction page on desktop and filter as per the stock you want (see image below). Click “Get AI to review average price calculations”. Copy the JSON output and given prompts into your favorite AI. We’ve tested it on ChatGPT, Gemini, and DeepSeek…
