get_ltp_data: Function to obtain last traded prices.

View source: R/api_calls.R

get_ltp_dataR Documentation

Function to obtain last traded prices.

Description

Function to obtain last traded prices.

Usage

get_ltp_data(object, exchange, tradingsymbol, symboltoken)

Arguments

object

An object of type smart connect.

exchange

Exchange for the order, e.g. NSE, NFO, CDS etc.

tradingsymbol

Trading Symbol of the instrument.

symboltoken

Symbol token

Details

This function accepts a list of instruments (as exchange:symbol pair, e.g. NFO:NIFTY18JANFUT) and returns last traded prices. Please note: this function is meant to be called as a one-off way to get the quotes. One should not call this function too many times. The api possibly has a rate limit and too many requests will block the user

Value

a data frame with last price data, with instruments as row names.


angelbroking-github/smartapi-r documentation built on March 30, 2022, 8:04 a.m.