Google Spreadsheets
Quick Start Guide

Step 1: Clone the Template Spreadsheet
Open the OpenAlgo Trading Template
Click "File" > "Make a copy" to create a duplicate of the spreadsheet.
In the "Make a copy" dialog, enter a name for your copy of the spreadsheet, such as "My OpenAlgo Trading Sheet".
Ensure the "Folder" is set to your desired location, such as "My Drive".
Click the "Make a copy" button to create the new spreadsheet.

Step 2: Configure API Settings
Open the cloned spreadsheet
Go to Extensions > AppScript editor
Locate these lines in the script:
Replace with your OpenAlgo credentials:
apikey: Your unique OpenAlgo API keyHostSefver: Your Custom Domain or Free Ngrok Domain where OpenAlgo is hosted
Spreadsheet Structure
The template contains two main sheets:
PlaceOrder: For entering trade details
Logs: Automatic logging of trade orders
PlaceOrder Sheet Columns
C3
Exchange
NSE, BSE, NFO, MCX, CDS
D3
OpenAlgo Symbol
INFY, RELIANCE
E3
Action
BUY/SELL
F3
Price Type
MARKET/LIMIT/SL/SL-M
G3
Total Quantity
100
H3
Price
1500.50 (for LIMIT/STOP)
I3
Trigger Price
1480.00 (for STOP)
J3
Split Size
0 - No SplitOrder Specific Number - Send Split order with split size quantity
K3
Product Type
INTRADAY/DELIVERY
Split Order Functionality
Split Size 0: Entire quantity in one order
Split Size > 0: Multiple orders of specified size
Execution
Fill in trade details in the PlaceOrder sheet
Press the PlaceOrder function
Check response in cell C9
View detailed logs in the Logs sheet
Troubleshooting
Common Issues
API Key Invalid
Verify key in OpenAlgo dashboard
Check network connectivity
Ensure API key has trading permissions
Host URL Incorrect
Confirm exact URL from OpenAlgo platform
Check for any trailing slashes
Verify ngrok or custom endpoint
Permissions
Accept Google Sheets script permissions
Verify API key authorization
Security Notes
Keep API key confidential
Use secure, unique API keys
Regularly rotate credentials
Monitor trading activities
Last updated
Was this helpful?