Advertisement
dcuddihy-acr-me

knyc.acr.lab.issue.234

May 8th, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. #
  2. # [Issue 234](https://bitbucket.org/autonomy/knyc.acr.lab/issue/234 )
  3. #
  4. set -x
  5.  
  6. echo "Started: " $(date)
  7.  
  8. source /etc/portion.env
  9. source /etc/profile.d/runtime-context.sh
  10.  
  11. echo $RUNTIME_CONTEXT
  12. echo $PYTHONPATH
  13. export PATH=$PATH:/opt/bbthyme/current/bin
  14. export TERM=xterm
  15.  
  16. # Set up quotables;
  17. tx-ensure-index --name "ix.eccaua-14.index" --description "Ukraine Current Account YOY Change Forecast 20141231"
  18. tx-ensure-index --name "ix.eccaru-14.index" --description "Russia Current Account YOY Change Forecast 20141231"
  19. tx-ensure-index --name "ix.eccaar-14.index" --description "Argentina Current Account YOY Change Forecast 20141231"
  20. tx-ensure-index --name "ix.eccbua-14q4.index" --description "Ukraine Central Bank Rate Forecast 20141231"
  21. tx-ensure-index --name "ix.eccbru-14q4.index" --description "Russia Central Bank Rate Forecast 20141231"
  22. tx-ensure-deal --name "dl.badlarp.index" --description "Argentina Deposit Rates Badlar"
  23. tx-ensure-deal --name "dl.rp07.index" --description "China interbank repo 7d"
  24.  
  25. # Back fill through T-2;
  26. bbg-backfill -b 19500101 -e 20140506 -q index -m "/ticker/eccaua 14 index"
  27. bbg-backfill -b 19500101 -e 20140506 -q index -m "/ticker/eccaru 14 index"
  28. bbg-backfill -b 19500101 -e 20140506 -q index -m "/ticker/eccaar 14 index"
  29. bbg-backfill -b 19500101 -e 20140506 -q index -m "/ticker/eccbua q414 index"
  30. bbg-backfill -b 19500101 -e 20140506 -q index -m "/ticker/eccbru q414 index"
  31. bbg-backfill -b 19500101 -e 20140506 -q deal -m "/ticker/badlarp index"
  32. bbg-backfill -b 19500101 -e 20140506 -q deal -m "/ticker/rp07 index"
  33.  
  34. # Run Daily Update to get T-1;
  35. bbg-update -q deal -f lofi > /var/tmp/thyme-update.deal.lofi.log 2>&1
  36. bbg-update -q index -f lofi > /var/tmp/thyme-update.index.lofi.log 2>&1
  37. bbg-update -q deal -f raw > /var/tmp/thyme-update.deal.raw.log 2>&1
  38. bbg-update -q index -f raw > /var/tmp/thyme-update.index.raw.log 2>&1
  39.  
  40. echo "Finished: " $(date)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement