View source: R/LiveStockPricesAPI.R
get_live_stock_prices | R Documentation |
This function retrieves live stock prices from the API.
get_live_stock_prices(api_token, ticker, s = NULL)
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. |
A list containing a live stock prices.
api_token <- "demo"
ticker <- "AAPL.US"
s <- "VTI,EUR.FOREX"
result <- get_live_stock_prices(api_token, ticker, s)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.