Skip to content

Instantly share code, notes, and snippets.

@lumisota
Created December 4, 2018 15:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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