Google Apps Script code showing automated stock trading functions with IG Labs API integration for real-time market data

Automated Stock Trading Journal with IG Labs API Integration

As a Google Apps Script developer specializing in stock trading automation, I craft bespoke solutions that streamline complex financial processes.

This portfolio showcases a robust Google Apps Script stock trading project developed for a client, designed to integrate seamlessly with the IG Labs API for advanced trading functionalities, real-time data management, and insightful reporting within Google Sheets.

The Client’s Challenge: Bridging Real-time Trading Data with Personal Analysis

Before engaging my services, my client, an active stock trader, faced a common yet critical challenge: effectively integrating live market data from their trading broker’s API (IG Labs) directly into their existing personal trading journal in Google Sheets. While dedicated trading platforms offer robust features, they often lack the personalized analytical flexibility and custom reporting capabilities that a bespoke spreadsheet-based journal provides.

The core problem was the manual, time-consuming, and error-prone process of acquiring real-time stock prices and other critical trading information. Relying solely on the broker’s web interface or external tools meant:

The client specifically sought a Google Sheets solution for several compelling reasons:

Key Features & Functionalities of the Solution

This solution transforms Google Sheets into a powerful, automated trading journal

Secure IG Labs API authentication panel in Google Sheets showing login fields, API key input, and session management for stock trading automation
The secure API login panel of the system
Google Sheets watchlist management system with create, delete, and list functions for stock trading automation using Google Apps Script
Watchlist management sheet – columns A:J
Real-time stock market data display in Google Sheets showing watchlist instruments with bid/offer prices and market status via IG Labs API
Watchlist management sheet – columns K:X
Market exploration interface in Google Sheets showing market categories, search functionality, and real-time price updates using Google Apps Script
Explore markets sheet – columns A:K
Tesla stock search results in Google Sheets displaying instrument details, EPICs, and market data through IG Labs API integration
Explore markets sheet – columns L:U
Live stock price streaming data in Google Sheets showing bid/offer prices, market status, and update times for automated trading
Explore markets sheet – columns V:AG
Historical stock price data table in Google Sheets displaying minute-by-minute trading data with open, high, low, close prices via Google Apps Script
Explore markets sheet – columns AH:AR
Automated trading position calculator in Google Sheets showing position sizing, risk management, and buy/sell order placement using Google Apps Script
Positions management sheet – columns A:M
Multi-instrument trading dashboard in Google Sheets displaying real-time prices for gold, silver, and FTSE 100 positions with automated updates
Positions management sheet – columns N:Z
Trading portfolio overview in Google Sheets showing equity, margin usage, position management, and risk metrics through IG Labs API automation
Positions management sheet – columns AA:AJ
Active trading positions display in Google Sheets showing current prices, P&L, and position details for automated stock trading management
Orders management sheet – columns A:H
Real-time trading positions dashboard in Google Sheets displaying current market prices, direction, and trade values using Google Apps Script automation
Orders management sheet – columns J:P
Detailed trading journal interface showing watchlist management and instrument selection for automated stock trading in Google Sheets
Orders management sheet – columns Q:X
Google Apps Script code sample showing CreatePositionsMinuteTrigger function for automated stock trading data updates and IG Labs API integration
Code sample

Technologies Used:

  • Google Apps Script: The core automation and integration logic is built using Google Apps Script, leveraging its capabilities for custom functions, UI elements, and external API calls.
  • IG Labs API: Direct integration with the IG Labs API ensures access to real-time market data, trading functionalities, and account information.
  • Google Sheets: Utilized as the primary user interface and data visualization platform, providing a flexible and familiar environment for traders.

This project exemplifies my ability to develop powerful, custom Google Apps Script solutions that enhance productivity and provide competitive advantages in data-intensive fields like stock trading.

Contact me to discuss how I can help automate your workflows and connect your data sources.

Ready to take your Google Workspace to the next level?

Contact us today to discuss how a tailored web application can transform your business operations.