arbuzov vyacheslav review of packages for r for market data downloading
DESCRIPTION
Arbuzov Vyacheslav Review of packages for R for market data downloading. What is R ?. There is more than 4300 packages that allow to use specialized statistical techniques, graphical devices, import/export capabilities, reporting tools, etc. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/1.jpg)
1
Arbuzov Vyacheslav
Review of packages for R for market data downloading
![Page 2: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/2.jpg)
R is statistical and graphical programming environment
Appeared in 1993 and designed by Ross Ihaka and Robert Gentleman
R is a GNU project
R – a free implementation of the S language
It runs on a variety of platforms including Windows, Unix and MacOS
It contains advanced statistical routines not yet available in other
packages
What is R?There is more than 4300 packages that allow to
use specialized statistical techniques,
graphical devices, import/export
capabilities, reporting tools, etc.
2
![Page 3: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/3.jpg)
3
Information from 59 exchanges
(http://finance.yahoo.com/exchanges)
![Page 4: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/4.jpg)
4
Information from 35 exchanges
(http://www.google.com/googlefinance/disclaimer/)
![Page 5: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/5.jpg)
5
FOREX:• 191 currencys • 36000 currency pairs
![Page 6: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/6.jpg)
6
get.hist.quote (instrument="AAPL“, provider = "yahoo")
Package quantmod
getSymbols("GOOG",src="yahoo", from = "2007-01-01“, to = Sys.Date())
Package tseries
getSymbols.google('MSFT',verbose=TRUE)
getSymbols("USD/EUR",src="oanda")
![Page 7: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/7.jpg)
7
getSymbols('CPIAUCNS',src='FRED‘)
Package quantmod
55 000 economic time series from 45 databases
![Page 8: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/8.jpg)
8
![Page 9: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/9.jpg)
9
Russian market: • Stock• Bond• derivatives • others
![Page 10: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/10.jpg)
10
install.packages("rusquant", repos="http://R-Forge.R-project.org")
install.packages("rusquant", contriburl="http://r-forge.r-project.org/bin/windows/contrib/latest/")
getSymbols("SPFB.RTS", from="2011-01-01", src="Finam“, period="hour")
1min, 5min, 10min, 15min, 30min, hour, day, week, month
![Page 11: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/11.jpg)
11
http://datamarket.com/100 million time series from different data sources: • Eurostat, • World Bank • UN
![Page 12: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/12.jpg)
12
Package rdatamarket
dmlist("http://datamarket.com/data/set/1loo/#!display=line&ds=1loo!1n6s=2eu&e=-ag9")
dminfo("http://datamarket.com/data/set/1loo/#!display=line&ds=1loo!1n6s=2eu&e=-ag9")
![Page 13: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/13.jpg)
13
Morningstar provides data on more than 385,000 investment offerings, including stocks, mutual funds, and similar vehicles, along with real-t ime global market data on more than 8 mil l ion equit ies, indexes, futures, options, commodities, and precious metals, in addit ion to foreign exchange and Treasury markets
![Page 14: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/14.jpg)
14
Morningstar Web Services ~$5,400 per year
MATLABR ( packages bitops, Rcurl, XML, RLIM )
![Page 15: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/15.jpg)
15
install.packages("RBloomberg", repos ="http://r.findata.org")
conn <- blpConnect()
One of the leading providers of financial information
![Page 16: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/16.jpg)
16
https://developers.facebook.com/tools/explorer
https://gist.github.com/1634662
![Page 17: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/17.jpg)
17
Package twitteR
searchTwitter("#rstats", n=300)searchTwitter("patriots", geocode=’42.375,-71.1061111,10mi’)searchTwitter("trading", since="2012-10-01", until="2012-10-02")->ttwListToDF(t)getTrends("daily")
![Page 18: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/18.jpg)
18
Packagerfishbase
![Page 19: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/19.jpg)
19
data(package = "ggplot2")
Data in the packages
data(msleep, package = "ggplot2")
![Page 20: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/20.jpg)
20
Package ggplot2http://www.diamondse.info
~ 54 000 round diamonds with characteristics:
• carat• colour• clarity• total depth • width • height • price
![Page 21: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/21.jpg)
21
Package ggplot2Full information about 38 popular cars
from1999 to 2008
data(mpg, package = "ggplot2")
![Page 22: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/22.jpg)
22
Package ggplot2US economic time series
from 1967 to 2007 г.data(economics , package = "ggplot2")
![Page 23: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/23.jpg)
23
Package datasets~ 1000 Earthquakes
off Fijisince1964 year
data(quakes, package = "datasets")
![Page 24: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/24.jpg)
24
Package datasetsDistances Between
European Cities data(eurodist, package = "datasets")
![Page 25: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/25.jpg)
25
download.file
help(download.file )
![Page 26: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/26.jpg)
26
QuantmodgetSymbols("AAPL",src="yahoo")
barChart(AAPL)
candleChart(AAPL,multi.col=TRUE,theme="white")
chartSeries(AAPL,up.col='white',dn.col='blue')
addMACD()
addBBands() to.weekly(AAPL)
to.monthly(AAPL) dailyReturn(AAPL)
weeklyReturn(AAPL)
monthlyReturn(AAPL)
![Page 27: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/27.jpg)
27BEFORE: you think R like
“Swiss Army Knife”
![Page 28: Arbuzov Vyacheslav Review of packages for R for market data downloading](https://reader035.vdocuments.us/reader035/viewer/2022081420/568160ae550346895dcfcfca/html5/thumbnails/28.jpg)
28
AFTER: R really like this: