-
Notifications
You must be signed in to change notification settings - Fork 0
Support Scripts
mt1976 edited this page Dec 12, 2019
·
5 revisions
All support scripts are held in .../SIENA.SCRIPTS
Call by support scripts to initialise shared parameters.
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
initLoc=$DIR"/mdsInit.sh"
. $initLoc
Queries a public rates source (mid rates only) to extract FX spot rates which will in time form the basis of a rate import into siena.
- API KEY :
c3811be81a6df1db0e14304d77b3a23d
- Series Key :
USD,JPY,GBP,BTC,CAD,AUD,XAU,CHF,MXN,STD,NOK,DKK,RUR,RMB,HKD,CAD,CHF,DKK,GBP,HKD,JPY,NOK,SEK,SGD,USD,ZAR
- Source Site :
http://data.fixer.io/api/
To collect EONIA data from the ECB
- Series Key :
198.EON.D.EONIA_TO.RATE
- Source Site :
https://sdw.ecb.europa.eu
To collect Libor data from the "FRED"
- API KEY :
d4d50b886c05baa2795c363319ca64db
- Series Key :
CHF12MD156N CHF1MTD156N CHF1WKD156N CHF3MTD156N CHF6MTD156N CHFONTD156N EUR12MD156N EUR1MTD156N EUR1WKD156N EUR2MTD156N EUR3MTD156N EUR6MTD156N EURONTD156N GBP12MD156N GBP1MTD156N GBP1WKD156N GBP2MTD156N GBP3MTD156N GBP6MTD156N GBPONTD156N JPY12MD156N JPY1MTD156N JPY1WKD156N JPY2MTD156N JPY3MTD156N JPY6MTD156N JPYONTD156N USD12MD156N USD1MTD156N USD1WKD156N USD2MTD156N USD3MTD156N USD6MTD156N USDONTD156N
- Source Site :
https://api.stlouisfed.org/fred/series/
To collect cpi data from the "FRED"
- API KEY :
d4d50b886c05baa2795c363319ca64db
- Series Key:
GBRCPIALLMINMEI CPALCY01USQ661N
- Source Site :
https://api.stlouisfed.org/fred/series/
Before running please use dos2unix to remove any CRLF charcters that git introduces when it downloads the file and helpfully thinks its downloading to an windows OS.
$ dos2unix mdsInit.sh
$ dos2unix fxSPfetch.sh
$ dos2unix ecbFetch.sh
$ dos2unix liborFetch.sh
$ dos2unix cpiFetch.sh
- dos2unix
$ sudo apt-get install dos2unix