Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fixed precision in JSON numbers #184

Copy link
Copy link
@krokosik

Description

@krokosik
Issue body actions

I believe it is standard in currency exchange rates to set a fixed precision for a given currency rate. The current state of the Frankfurter API makes i infeasible to obtain that information, however, due to the fact that trailing zeros are truncated.

When you look at the response from let's say the Polish national bank:
https://api.nbp.pl/api/exchangerates/tables/B?format=json

You can clearly see that the JSON numbers have trailing zeros, which is part of the spec. How to read that when parsing is another story, but it is still obtainable. It would be extremely helpful if we could have that in Frankfurter. Also the NBP table A is a good and as far as I checked free provider. The B table is updated weekly sadly, but together they provide all currency rates with PLN as the intermediary.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.