polyledger/connect

Price fetching non-whitelisted coins breaks app

Closed this issue · 1 comments

Description

Currently coins have to be added via Django admin in order for their prices to be retrieved every day. We need to design a solution to enable the fetching of prices for all coins supported by the Bitbutter API and determine a solution when a price for a token cannot be found.

Currently if there is an unfound price when sending a GET request to /api/portfolio/assets, a 500 internal server error is returned resulting in a bad UX.

image 2018-05-03 at 12 25 25 pm

image 2018-05-03 at 12 25 55 pm

This issue has been addressed. If a coin is not supported, the price will be $0 for now.