How To Get LTP Of any stock option price : NSE:M&M24APR2100CE

I wanted to fetch the LTP of the current option (NSE:M&M24APR2100CE) and then place the order as LTP.

Can any one help me to understand how we can do that through the API

As of now I am using their API (https://api-t1.fyers.in/data/quotes/?symbols=NSE:M&M24APR2100CE) to get the LTP but this API is working for Equity stocks but not for option

Response of the API

{ "message": "", "code": 200, "d": [ { "n": "NSE:M", "v": { "ask": 0, "bid": 0, "chp": 0, "ch": 0, "description": "NSE:M", "exchange": "NSE", "fyToken": "NSE:M", "high_price": 0, "low_price": 0, "lp": 0, "open_price": 0, "original_name": "NSE:M", "prev_close_price": 0, "short_name": "M", "spread": 0, "symbol": "NSE:M", "tt": "1712707200", "volume": 0 }, "s": "ok" } ], "s": "ok" }

Can you please check and update me the same.

1 reply