Skip to content

Convert accrued interest from currency to USD or EUR #23

Description

@desytech

If an order becomes active we can derive the accrued interest.

Actual:

  • push notifications displays the currency representation (BTC, ETH, ...)

Expected:

  • display the accrued interest in some human readable format (USD, EUR)
  • we can introduce a setting in the config that leads the application to one user preferred currency

I like the implementation of Coindesk, no additional API Key is needed:
https://api.coindesk.com/v1/bpi/currentprice.json

{"time":{"updated":"Dec 12, 2020 13:03:00 UTC","updatedISO":"2020-12-12T13:03:00+00:00","updateduk":"Dec 12, 2020 at 13:03 GMT"},"disclaimer":"This data was produced from the CoinDesk Bitcoin Price Index (USD). Non-USD currency data converted using hourly conversion rate from openexchangerates.org","chartName":"Bitcoin","bpi":{"USD":{"code":"USD","symbol":"$","rate":"18,457.9816","description":"United States Dollar","rate_float":18457.9816},"GBP":{"code":"GBP","symbol":"£","rate":"13,956.3567","description":"British Pound Sterling","rate_float":13956.3567},"EUR":{"code":"EUR","symbol":"€","rate":"15,239.9248","description":"Euro","rate_float":15239.9248}}}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions