florianv / swap

:currency_exchange: Currency exchange rates library

Home Page:https://florianv.github.io/swap/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When base and quote currency are equal it throw exception

assaqqaf opened this issue · comments

In google provider, when the base and quote currency are equal (EUR/EUR)., it throw ChainProviderException. because google converter didn't handle this case it return Could not convert.

it suppose to return 1 in this case.

http://www.google.com/finance/converter?a=1&from=EUR&to=EUR

it's only work with USD/USD:

http://www.google.com/finance/converter?a=1&from=USD&to=USD