intraday_live: Retrieve live stock price data for current or last working...

Description Usage Arguments Examples

Description

Download live stock prices for current (or if market does not work, for last working day) day in "xts", "data.frame" or "data.table" format. The timezone of dataset is formatted in US Eastern timezone.

Usage

1
intraday_live(stock, type="xts")

Arguments

stock

the ticker name of the stock. you are free to write the ticker in lower or uppercase characters.

type

type of dataset output. default format is "xts". it can also have an output with "data.frame" or "data.table" formats.

Examples

1
2
3
4
5
6
7
8
9
# DON'T RUN!
# xts output for Apple Inc. minutely live stock prices
live_xts <- intraday("AAPL", type="xts")

# data.frame output for Pfizer Inc. minutely live stock prices
live_df <- intraday("Pfe", type="data.frame")

# data.table output for Cisco Inc. minutely live stock prices
live_dt <- intraday_live(stock="csco", type="data.table")

egeor90/intraday documentation built on May 17, 2019, 2:14 a.m.