Skip to content

Instantly share code, notes, and snippets.

@os11k
Created May 17, 2022 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save os11k/c3df7b4beb5dd50ac8af9b62074146ae to your computer and use it in GitHub Desktop.
Save os11k/c3df7b4beb5dd50ac8af9b62074146ae to your computer and use it in GitHub Desktop.
GBPEUR from wise to prometheus
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