To build an MCX price worksheet, first identify the exact listed contract in your broker's instrument list. Gold, silver and crude oil have expiry-specific identifiers; a commodity name alone is not a valid contract selection.
Try it in your own spreadsheet
Get the free MarketXLS sample workbook (.xlsx).
No account needed. MarketXLS live data requires a paid plan. Preview workbook
Check MarketXLS India plans and confirm your required MCX contracts with the India team if coverage is essential to your purchase.
Connect the broker and test one contract — India
Install MarketXLS India, sign in and connect Zerodha or Angel One. Put the supported MarketXLS symbol for your chosen contract in A2, including its required India suffix. Then test the matching quote function:
=MXLSIN.ZerodhaLast(A2)
=MXLSIN.AngelOneLast(A2)
Use the formula for your connected broker, rather than assuming both return every exchange instrument. Verify the quote against the same contract in the broker terminal before expanding the table.
Add fields with the correct function names — India
For a supported Zerodha contract, add these formulas in adjacent columns:
=MXLSIN.ZerodhaPreviousClose(A2)
=MXLSIN.ZerodhaVolume(A2)
=MXLSIN.ZerodhaBuyQuantity(A2)
=MXLSIN.ZerodhaSellQuantity(A2)
The matching Angel One names are AngelOnePreviousClose, AngelOneVolume, AngelOneBuyQuantity and AngelOneSellQuantity. Field availability remains dependent on the broker and contract. Use headings that identify the returned quantity; order-book buy/sell quantities are not completed trade quantities.
Keep contract metadata visible — India
Add separate columns for underlying commodity, expiry and lot size from your verified contract specification. Do not reuse a previously active contract symbol after expiry. Use the broker's instrument list to select the next contract and check its quote before relying on the updated workbook.
For an export, copy and paste values into a dated sheet. Keep the live sheet separate so a later recalculation does not silently alter your saved observation.
What about historical candles? — India
The India catalog includes broker-specific history functions. Availability for a particular MCX contract, interval and period needs to be checked separately. A successful live quote is not a guarantee of historical coverage or a continuous series across expiries.
Troubleshooting — India
If the quote is unavailable, verify the exact symbol, exchange, expiry and broker connection. Test a known working instrument to distinguish a session issue from an unsupported contract. Do not assume that every formula works for every MCX future or option.
Next step — India
Get MarketXLS India and use the India function library to check each formula. Continue with the India Excel workflow series.
