getQuote: getQuote Barchart data.

Description Usage Arguments Value Author(s) See Also Examples

Description

getQuote returns an data frame The getQuote API is used to request price data, either real-time, delayed or end-of-day, by symbol on stocks, indexes, mutual funds, ETFs, futures, foreign exchange, or cryptocurrencies.

Usage

1
getQuote(symbols, fields = NULL, only = NULL)

Arguments

symbols

Required; A symbol or code that identifies a financial instrument. Multiple symbols separated by a comma may be used. For futures, notation such as for the active contract or for the first nearby is supported, as is for all futures contracts for a given root symbol, as is for all options contracts for a given underlying futures symbol.

fields

optional; The fields requested. Example fiftyTwoWkHigh,fiftyTwoWkHighDate,fiftyTwoWkLow,fiftyTwoWkLowDate

only

optional; Returns only specified fields. Example symbol,name

Value

data frame

Author(s)

Mario Pisa

See Also

https://www.barchart.com/ondemand/api/getQuote

Examples

1
2
getQuote(symbols = 'ESM19')
getQuote(symbols = 'NGM19,ESM19', fields = 'openInterest')

mariope/RBarchart documentation built on June 24, 2019, 9:47 p.m.