autoSelectExchangeQuotes: Retain only data from the stock exchange with the highest volume
Description
Function returns an xts object containing only observations
of the exchange with highest
value for the sum of "BIDSIZ" and "OFRSIZ", i.e. the highest quote volume.
Usage
autoSelectExchangeQuotes(qData)
Arguments
qData
a data.table or xts object with at least a column "EX", indicating the exchange symbol
and columns "BIDSIZ" and "OFRSIZ", indicating
the volume available at the bid and ask respectively.
The chosen exchange is printed on the console.
The possible exchanges are: