Description Usage Arguments Details Value Note See Also Examples
Fetches various price data from Matriks Historical Data Service
1 2 3 | matriksData(ticker, dataType = c("trade", "bestbidoffer", "depth",
"openinterest", "bar"), startDate, endDate = Sys.Date(), period = NULL,
isLocal = NULL)
|
ticker |
A character variable for ticker symbol. |
dataType |
A character type variable. One of the followings: " |
startDate |
A character object as " |
endDate |
A character object as " |
period |
A character variable. Valid only when datatype arguement is set to " |
A matriksData object is a data frame that contains trade, bestbidoffer, depth, openinterest
and bar.
If dataType is trade, data frame contains seven column: timestamp,
symbol, bid_or_ask, trade_no, price, quantity and signal_time. timestamp column includes
transaction time.bid_or_ask column delineates whether the trade occured on the b(id) or on the a(sk) side. signal_time shows the number of seconds elapsed
since 01/01/1970.
By setting dataType to bestbidoffer one has the following columns:
six columns:timestamp,symbol,best_bid_price,best_bid_size,best_ask_price,best_ask_size.
If dataType is set to openinterest, total amount of nominal positions on options or futures are returned.
If dataType is set to bar, the function fetches aggregated prices (open, high, close, low) and total volume information for the chosen period level of aggregation.
A data.frame object is is returned. See details above.
Although, as of now, Matriks Data Services can provide with historical data since the year 2013, the data coverage is more likely to expand in time.
trade, bestbidoffer, depth, openinterest, bar
1 2 3 4 | ##NOT RUN
# matriksData("GARAN","bar","2016-01-22","2016-01-23","1hour")
# matriksData("GARAN","trade","2016-01-22","2016-01-23")
##NOT RUN
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.