Skip to content

Improved Currency API #3406

@dennisrijsdijk

Description

@dennisrijsdijk

Describe the solution you'd like
The Currency API (api/v1/currency/:currencyName and api/v1/currency/:currencyName/top) should allow fetching currency by ID, and should properly return errors when a currency is not found.

Additionally, for top currency holders, since it's an endpoint for a single currency, the currency prop should be changed from the current full currency object to a simple number value.

Additional context
Currently, when a currency is not found, api/v1/currency/:currencyName returns an empty string and api/v1/currency/:currencyName/top returns an HTML error page with code 500

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions