diff --git a/forex_python/converter.py b/forex_python/converter.py
index bcc8348..316f0cf 100644
--- a/forex_python/converter.py
+++ b/forex_python/converter.py
@@ -56,6 +56,8 @@ class CurrencyRates(Common):
         raise RatesNotAvailableError("Currency Rates Source Not Ready")
 
     def get_rate(self, base_cur, dest_cur, date_obj=None):
+        if base_cur == dest_cur:
+            return 1.
         date_str = self._get_date_string(date_obj)
         payload = {'base': base_cur, 'symbols': dest_cur}
         source_url = self._source_url() + date_str

identity get_rate
It would be nice that the conversion from one currency to itself also work
```
>>> c.get_rate("CHF", "CHF")
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/home/user/.virtualenvs/tool/local/lib/python2.7/site-packages/forex_python/converter.py", line 67, in get_rate
    base_cur, dest_cur, date_str))
RatesNotAvailableError: Currency Rate CHF => CHF not available for Date latest
```
diff --git a/tests/test.py b/tests/test.py
index 040ed75..2501aa9 100644
--- a/tests/test.py
+++ b/tests/test.py
@@ -50,6 +50,11 @@ class TestGetRate(TestCase):
 
         # check if return value is float
         self.assertTrue(isinstance(rate, float))
+    
+    def test_get_rate_with_valid_codes_same_currency(self):
+        rate = get_rate('USD', 'USD')
+        # rate should be 1.
+        self.assertEqual(1., rate)
 
     def test_get_rate_with_date(self):
         date_obj = datetime.datetime.strptime('2010-05-10', "%Y-%m-%d").date()

pip install -e .
parse_log_pytest
pytest
pytest pytest-cov pytest-mock
3.5
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
certifi==2021.5.30
charset-normalizer==2.0.12
coverage==6.2
-e git+https://github.com/MicroPyramid/forex-python.git@1ebd8dda32503ca63d52b8a55f5647804fd1d1dd#egg=forex_python
idna==3.10
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work
packaging @ file:///tmp/build/80754af9/packaging_1637314298585/work
pluggy @ file:///tmp/build/80754af9/pluggy_1615976315926/work
py @ file:///opt/conda/conda-bld/py_1644396412707/work
pyparsing @ file:///tmp/build/80754af9/pyparsing_1635766073266/work
pytest==6.2.4
pytest-cov==4.0.0
pytest-mock==3.6.1
requests==2.27.1
simplejson==3.20.1
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
tomli==1.2.3
typing_extensions @ file:///opt/conda/conda-bld/typing_extensions_1647553014482/work
urllib3==1.26.20
zipp @ file:///tmp/build/80754af9/zipp_1633618647012/work

name: forex-python
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - attrs=21.4.0=pyhd3eb1b0_0
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - importlib-metadata=4.8.1=py36h06a4308_0
  - importlib_metadata=4.8.1=hd3eb1b0_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - more-itertools=8.12.0=pyhd3eb1b0_0
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - packaging=21.3=pyhd3eb1b0_0
  - pip=21.2.2=py36h06a4308_0
  - pluggy=0.13.1=py36h06a4308_0
  - py=1.11.0=pyhd3eb1b0_0
  - pyparsing=3.0.4=pyhd3eb1b0_0
  - pytest=6.2.4=py36h06a4308_2
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - toml=0.10.2=pyhd3eb1b0_0
  - typing_extensions=4.1.1=pyh06a4308_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zipp=3.6.0=pyhd3eb1b0_0
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - charset-normalizer==2.0.12
      - coverage==6.2
      - idna==3.10
      - pytest-cov==4.0.0
      - pytest-mock==3.6.1
      - requests==2.27.1
      - simplejson==3.20.1
      - tomli==1.2.3
      - urllib3==1.26.20
prefix: /opt/conda/envs/forex-python

tests/test.py::TestGetRate::test_get_rate_with_valid_codes_same_currency
tests/test.py::TestGetRates::test_get_rates_valid_code tests/test.py::TestGetRates::test_get_rates_with_date tests/test.py::TestGetRate::test_get_rate_with_date tests/test.py::TestGetRate::test_get_rate_with_valid_codes tests/test.py::TestAmountConvert::test_amount_convert_date tests/test.py::TestAmountConvert::test_amount_convert_valid_currency tests/test.py::TestForceDecimalAmountConvert::test_amount_decimal_convert tests/test.py::TestForceDecimalAmountConvert::test_amount_decimal_convert_date tests/test.py::TestForceDecimalAmountConvert::test_amount_decimal_invalid_type tests/test.py::TestForceDecimalAmountConvert::test_decimal_get_rate_with_date tests/test.py::TestForceDecimalAmountConvert::test_decimal_get_rate_with_valid_codes tests/test.py::TestForceDecimalAmountConvert::test_decimal_get_rates_valid_code tests/test.py::TestForceDecimalAmountConvert::test_decimal_get_rates_with_date
tests/test.py::TestGetRates::test_get_rates_invalid_code tests/test.py::TestGetRate::test_get_rate_with_invalid_codes tests/test.py::TestAmountConvert::test_amount_convert_invalid_currency tests/test.py::TestAmountConvert::test_amount_convert_valid_currency_same_currency tests/test.py::TestForceDecimalAmountConvert::test_decimal_get_rate_with_invalid_codes tests/test.py::TestForceDecimalAmountConvert::test_decimal_get_rates_invalid_code tests/test.py::TestCurrencySymbol::test_with_invalid_currency_code tests/test.py::TestCurrencySymbol::test_with_valid_currency_code tests/test.py::TestCurrencyName::test_with_invalid_currency_code tests/test.py::TestCurrencyName::test_with_valid_currency_code
forex_python/converter.py
forex_python/converter.py