Learn R Programming

eodhd (version 1.0.4)

get_live_stock_prices: Get live stock prices

Description

This function retrieves live stock prices from the API.

Usage

get_live_stock_prices(api_token, ticker, s = NULL)

Value

A list containing a live stock prices.

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.

Examples

Run this code
api_token <- "demo"
ticker <- "AAPL.US"
s <- "VTI,EUR.FOREX"
result <- get_live_stock_prices(api_token, ticker, s)

Run the code above in your browser using DataLab