We can use some code in rbloomberg and integrate with real time data. http://findata.org/rbloomberg/rbloomberg-manual-0-4-144.pdf