Fetch LTP

Before fetching LTP, you need to make sure, the broker token is valid.

To generate broker access token use the following command:

$ quantplay broker generate-token --broker_name Zerodha

Python code to get ltp

from quantplay.service import market

market.initialize_broker()
market.broker.get_ltp(exchange="NSE", tradingsymbol="SBIN")