Skip to content

add currency endpoint #360

Open
Open

Description

@franzns

we would like to be able to switch currencies and the frontend wants to pull exchange rates from the api. We need to query and store exchange rate for an external provider and offer a query endpoint

https://github.com/balancer/frontend-v3/blob/main/lib/shared/utils/currencies.ts#L31-L43

we return the full list in the query
add eth and btc price to the list (at query time, not to the DB, so it stays up to date)
re-query every 10mins to stay in request limits

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions