Created
May 17, 2022 18:41
-
-
Save os11k/c3df7b4beb5dd50ac8af9b62074146ae to your computer and use it in GitHub Desktop.
GBPEUR from wise to prometheus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GBPEUR=$(curl -s "https://api.transferwise.com/v3/comparisons/?sourceCurrency=GBP&targetCurrency=EUR&sendAmount=8000" | jq .providers | jq '.[] | select( .alias == "wise" ).quotes' | jq .[].rate) | |
echo "gbpeur ${GBPEUR}" > /adapools/stats/wise.prom |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment