When getting the latest or historical exchange rates, selecting the same currency type for "initial currency" and "return currency" results in a 400 request error.
My thinking is to integrate some kind of dynamic disabling/hiding of duplicate options based on which currency is selected in the other dropdown menu.
The other option is to just omit the return type from the API call if it's the same as the initial type, and return the amount given by the user. This isn't quite as useful to the user, but is easier to code (ha!)
When getting the latest or historical exchange rates, selecting the same currency type for "initial currency" and "return currency" results in a 400 request error.
My thinking is to integrate some kind of dynamic disabling/hiding of duplicate options based on which currency is selected in the other dropdown menu.
The other option is to just omit the return type from the API call if it's the same as the initial type, and return the amount given by the user. This isn't quite as useful to the user, but is easier to code (ha!)