inside your index.html, while using jinja syntax to display currency anywhere such as price or total price etc by "{{ share["price"] }}" instead use this "{{ share["price"] | usd}}",add "| usd" and it will resolve your problem and check50 will no more give you error, check50 will give you error again in history.html, you need to do the same and use "| usd" inside your jinja syntax and your problem will mebe surely resolved.