search
Searching...
functions
Formulas
menu_book
Pages
manage_search
Content Match
search_off
No results for ""
Option Chain
Use TD.OptionChain inside TD.onStart. Always await. This is a one-shot REST call — never loop or poll it (Rule 17).
Expiry format is
"DD-MM-YYYY". records[0] is the header row — data starts at records[1]. Underlying/spot LTP is not a documented field in either response below — if a script needs the index's spot price alongside the chain, subscribe to the underlying separately via TD.Feed.addSymbols + TD.on("tick", ...) and read LTP from the tick payload. Do not guess at a row index for spot LTP inside option chain records — see Known Gaps.1. getOptionChain
const data = await TD.OptionChain.getOptionChain({
symbol: "NIFTY",
expiry: "23-06-2026",
});
Response field map per data row (records[1+]):
| Index | Field |
|---|---|
0 |
Symbol |
1 |
Expiry |
2 |
Call Timestamp |
3 |
Call Vol |
4 |
Call LTP |
5 |
Call Bid |
6 |
Call Bid Qty |
7 |
Call Ask |
8 |
Call Ask Qty |
9 |
Call OI |
10 |
Call POI |
11 |
Strike |
12 |
Put Bid |
13 |
Put Bid Qty |
14 |
Put Ask |
15 |
Put Ask Qty |
16 |
Put OI |
17 |
Put POI |
18 |
Put LTP |
19 |
Put Vol |
20 |
Put Timestamp |
2. getOptionChainWithGreeks
const data = await TD.OptionChain.getOptionChainWithGreeks({
symbol: "NIFTY",
expiry: "23-06-2026",
});
Response field map per data row (records[1+]):
| Index | Field |
|---|---|
0 |
symbol |
1 |
expiry |
2 |
calltimestamp |
3 |
callVol |
4 |
callltp |
5 |
callPClose |
6 |
callbid |
7 |
callbidqty |
8 |
callask |
9 |
callaskqty |
10 |
callOI |
11 |
callpOI |
12 |
cdelta |
13 |
ctheta |
14 |
cvega |
15 |
cgamma |
16 |
crho |
17 |
civ |
18 |
strike |
19 |
pdelta |
20 |
ptheta |
21 |
pvega |
22 |
pgamma |
23 |
prho |
24 |
piv |
25 |
putbid |
26 |
putbidqty |
27 |
putask |
28 |
putaskqty |
29 |
putOI |
30 |
putPOI |
31 |
putLTP |
32 |
putPClose |
33 |
putVol |
34 |
puttimestamp |
Some rows may have
null for Greeks when data is unavailable. Always null-check before using Greek values.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.