Skip to content

Instantly share code, notes, and snippets.

@lumisota
Created December 4, 2018 15:10
Show Gist options
  • Save lumisota/86663e0020825332075b67dd8d889f1f to your computer and use it in GitHub Desktop.
Save lumisota/86663e0020825332075b67dd8d889f1f to your computer and use it in GitHub Desktop.
# based on https://github.com/GiacomoLaw/Python-scripts/blob/master/monzoinvest.py
import requests
url = "https://api.monzo.com/crowdfunding-investment/total"
data = requests.get(url).json()
plainnum = int(str(data["invested_amount"])[:-4])
number = "{:,}".format(int(plainnum))
print("£",number)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment