Skip to content

Consistent currency conversion bangs? #153

@robinmetral

Description

@robinmetral

Is your feature request related to a problem? Please describe.
There are currently 20 bangs redirecting to xe.com for currency conversion.1 For example:

{
    "s": "XE (AUD2EUR)",
    "d": "www.xe.com",
    "t": "AUD2EUR",
    "u": "https://www.xe.com/currencyconverter/convert/?Amount={{{s}}}&From=AUD&To=EUR",
    "c": "Online Services",
    "sc": "Tools"
}

As far as I can tell, all 20 bangs follow the pattern: !<curA>2<curB> 👉 https://www.xe.com/currencyconverter/convert/?Amount={{{s}}}&From=<curA>&To=<curB>, with curA and curB being ISO 4217 3-letter currency codes.

However, as a bangs user, there is no way to know which currency bang will exist, and which will not. For example, !aud2eur 10 successfully redirects to xe.com to convert 10 AUD to EUR, but the opposite conversion !eur2aud 10 does not (the bang doesn't exist).

Is it somehow possible to make all currency conversion bangs work as expected?

Describe the solution you'd like
Cover all currency conversions. It's probably not feasible to hardcode all possible !<curA>2<curB> bangs to bangs.json, so we'd either need to add logic in the repo and generate them (creates more complexity), or to find a creative way to get a single bang to cover all conversions.

Note that this is more of an open question than an actual feature request, and also to give visibility to the problem (that currency conversion bangs aren't consistent right now).

Additional context
n/a

Footnotes

  1. one bang, !xe, redirects to https://xe.com/currency/{{{s}}}, which 404s.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions