get_live_stock_prices {eodhd} | R Documentation |
Get live stock prices
Description
This function retrieves live stock prices from the API.
Usage
get_live_stock_prices(api_token, ticker, s = NULL)
Arguments
api_token |
The API token for authentication. |
ticker |
consists of two parts: [SYMBOL_NAME].[EXCHANGE_ID] |
s |
add “s=” parameter to your function and you will be able to get data for multiple tickers at one request, all tickers should be separated with a comma. |
Value
A list containing a live stock prices.
Examples
api_token <- "demo"
ticker <- "AAPL.US"
s <- "VTI,EUR.FOREX"
result <- get_live_stock_prices(api_token, ticker, s)
[Package eodhd version 1.0.4 Index]