lparolari / wellets-backend

Manage your money placed in different portfolios.
https://wellets-api.ondaniel.com.br/
MIT License
2 stars 0 forks source link

Implement currency history #4

Closed lparolari closed 2 years ago

lparolari commented 2 years ago

The dollar_rate filed should be moved out to a new entity which is in charge of tracking currency history. The field on the original entity may become a custom fields which is instantiated to the latest available value.

Please note that without values (no history for a given currency) all the system breaks. We need to enforce default values on init and then fetch new ones.

lparolari commented 2 years ago

Well, there are some services that given a point in time and the currency name can return currency value. Thus, it's not convenient to implement this feature.