fetch_stock: Fetches stock historical data from DataHub

Description Usage Arguments Value Examples

View source: R/stock.R

Description

Fetches stock historical data from DataHub

Usage

1
fetch_stock(code, source_code, query = list())

Arguments

code

the code of the interest series

source_code

the source code of the interest series

query

optional, availible list(from = yyyy-mm-dd, to = yyyy-mm-dd)

Value

dataframe

code

interest series code

source_code

source code

date

series date

closing_price

Closing price

opening_price

Opening price

bid_price

Bid price

ask_price

Ask price

high_price

High price of the day

low_price

Low price of the day

volume

Volume traded

Examples

1
fetch_interest('ICEAIR', 'NASDAQ')

palmargisla/datahub-r documentation built on Sept. 18, 2019, 9:50 p.m.