get_ohlc: Function to obtain current OHLC prices for a list of...

Description Usage Arguments Details Value See Also

View source: R/restful.R

Description

Function to obtain open/high/low/close prices.

Usage

1
get_ohlc(object, instruments)

Arguments

object

An object of type kite connect with valid api_key and access_token.

instruments

A list of instruments. See details below.

Details

This function accepts a list of instruments (as exchange:symbol pair, e.g. NFO:NIFTY18JANFUT) and returns current OHLC 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. For continous data, websocket is more appropriate choice. Check the Kite Connect online documentation for more details.

Value

a dataframe with OHLC data, with instruments as row names.

See Also

get_quote

get_ltp

get_historical_price


prodipta/kiteconnect3 documentation built on Sept. 24, 2020, 8:30 a.m.