# Here's an example of using the bbgdl tools to perform
# ad-hoc fetches of Bloomberg Datalicense data.
use bbruntime
use bbthyme
cat > xxx <<EOFSPVXSTRIndexSX5EIndexMLT1US10IndexNDUEEGFIndexBCRIUU5EIndexBCRIUU5HIndexEOF#Makearequestfile.bbgdl-make-gethistory-request2015080120150901<mktids> rq#Postitbbgdl-put< rq#WaitfortheresponsetoarriveREPLYFILENAME=$(grepREPLYrq|cut-d=-f2)bbgdl-ls|grep$REPLYFILENAME#..repeattilyouseethexxxxx.gzfile#(Seealsothedatalicense_pollfunctioninlibdatalicense.sh)#Fetchit.bbgdl-get./${REPLYFILENAME}.gz|bbgdl-decrypt>rawdata#TurnitintoaniceCSVbbgdl-raw-to-tvfd< rawdata>tvfd#Inspectcattvfd
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.