search
auto_awesome
What's New
13 New Features
New Feature
v1.8.0
MCX Option Chain
MCX option chain is now live — fetch a fully formatted, ready-to-use option chain in just a few clicks • Extended MCX compatibility to EXPIRY(), EXPIRES(), STRIKESTEP() and ATMSTRIKE() formulas
New Feature
v1.8.0
Indian Number Formats
Added two new number formats with Indian-style (Lakh/Crore) thousand separators • Indian Separator (e.g., 1,22,333) • Indian Separator with 2 Decimals (e.g., 1,22,333.00)
New Feature
v1.7.1
New ShortCuts in Sheets - Ctrl+Shift+9/0
Ctrl+Shift+9/0 to unhide rows or columns, Shift+F10 for the right-click menu
New Feature
v1.7.0
Reliable Market Data & New Fundamentals Formulas
Sector/Industry formulas, cell-reference inputs on every data formula, and full keyboard & screen-reader accessibility
New Feature
v1.5.0
Advanced Conditional Formatting
Top and Bottom rules in conditional formatting — by count or percent — plus Above average, Below average and their equal-or variants • 12 ready-made colour scale presets with live gradient previews, in 2-colour and 3-colour styles • OI Bars now offer gradient and solid fills in Green, Red, Orange, Blue, Purple and Pink, with a crisp border
New Feature
v1.4.2
Time Formula
TIME, HOUR, MINUTE and SECOND formulas
New Feature
v1.4.2
Text Formula
TEXT formula with full Excel-style formatting patterns, including positive/negative/zero/text sections, fractions, scientific notation and elapsed time
New Feature
v1.4.0
Live Option Chains & a Smarter Editor
Option chain support with automatic ATM strike detection and ready-styled chain layouts • A formula help panel while you type, showing what the formula does, its arguments, an example, and a link to its documentation • Ready-made option strategy templates
New Feature
v1.3.0
Simplified Formula Names & New Additions
Formula names have been simplified by dropping the GET prefix (e.g. GETTICKS is now TICKS), and six new formulas have been added: EXPIRY, EXPIRIES, LOTSIZE, COMPANYNAME, ATMSTRIKE, and STRIKESTEP.
New Feature
v1.0.0
Google Drive and other cloud storage providers
Save files directly to Google Drive and other cloud storage providers, and open files straight from the cloud
New Feature
v0.7.0
Conditional Formatting, Price Alerts
Conditional formatting — automatically highlight cells based on rules you define • Price alerts — set target-based alerts on any cell, with "once" or "every time" triggers and edge/interval conditions
New Feature
v0.4.0
Scripting & Live bar Streaming
Live bar streaming with a live OHLC candlestick chart • TD Scripting engine
New Feature
v0.2.0
Live Market Formulas
Custom TrueData formulas built directly into the spreadsheet engine.
Sheet Read / Write
Only four TD.Sheet methods are available. Do not use or invent any others (Rule 9). All four are async — always await them.
Write a single cell — TD.Sheet.setCell
await TD.Sheet.setCell(cellIndex, value);
// Example
await TD.Sheet.setCell("A1", data[0]);
Write a range — TD.Sheet.setCellRange
Writes an array starting from startCell, filling across columns (A, B, C...). This is the method used to dump header rows and data rows from Historical, Analytics, and Option Chain responses.
await TD.Sheet.setCellRange(startCell, dataArray);
// Example — fills A1, B1, C1, ... one cell per array item
await TD.Sheet.setCellRange("A1", data);
Read a single cell — TD.Sheet.getCell
const value = await TD.Sheet.getCell(cellIndex);
// Example
const cellValue = await TD.Sheet.getCell("A1");
Read a range — TD.Sheet.getCellRange
const values = await TD.Sheet.getCellRange(startCell, endCell);
// Example
const values = await TD.Sheet.getCellRange("A1", "C1");
// Response: ["RELIANCE", "NIFTY"]
Complete Examples — Touchline to Sheet
Using setCell
const SYMBOLS = ["NIFTY"];
TD.onStart = async () => {
try {
const response = await TD.Feed.addSymbols(SYMBOLS);
if (!response.success) throw new Error(response.message);
const data = response.symbollist[0];
await TD.Sheet.setCell("A1", data[0]); // Symbol name
await TD.Sheet.setCell("B1", data[1]); // Symbol ID
await TD.Sheet.setCell("C1", data[2]); // Last Update Time
await TD.Sheet.setCell("D1", data[3]); // LTP (string — parse for math)
} catch (err) {
TD.log("Error: " + err.message);
}
};
TD.onStop = async () => {
await TD.Feed.removeSymbols(SYMBOLS);
};
TD.onError = (error) => {
TD.log(error);
};
Using setCellRange
const SYMBOLS = ["NIFTY"];
TD.onStart = async () => {
try {
const response = await TD.Feed.addSymbols(SYMBOLS);
if (!response.success) throw new Error(response.message);
const data = response.symbollist[0];
await TD.Sheet.setCellRange("A1", data);
// writes all 18 touchline fields across row 1
} catch (err) {
TD.log("Error: " + err.message);
}
};
TD.onStop = async () => {
await TD.Feed.removeSymbols(SYMBOLS);
};
TD.onError = (error) => {
TD.log(error);
};
Touchline Field Map — symbollist row
All values are strings. Use
parseFloat() for numeric fields. This is the field map for the addSymbols response row — different from the tick event's field order, which is documented on Live Events.| Index | Field |
|---|---|
0 |
Symbol name |
1 |
Symbol ID |
2 |
Last Update Time |
3 |
LTP (Last Trade Price) |
4 |
Tick Volume |
5 |
Average Traded Price |
6 |
Total Volume |
7 |
Open |
8 |
High |
9 |
Low |
10 |
Previous Close |
11 |
Today's Open Interest |
12 |
Previous OI Close |
13 |
Turnover |
14 |
Bid |
15 |
Bid Quantity |
16 |
Ask |
17 |
Ask Quantity |
Empowering traders and analysts with high-performance real-time market data directly within their spreadsheets.
Resources
Support
© 2026 TrueData Market Data Services LLP. All rights reserved.