Skip to content

Commit 38aa014

Browse files
gliptakjreback
authored andcommitted
Removed Oanda as it became subscription only (#366)
1 parent a88c84e commit 38aa014

File tree

5 files changed

+7
-143
lines changed

5 files changed

+7
-143
lines changed

docs/source/remote_data.rst

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ Currently the following sources are supported:
3333
- :ref:`OECD<remote_data.oecd>`
3434
- :ref:`Eurostat<remote_data.eurostat>`
3535
- :ref:`Thrift Savings Plan<remote_data.tsp>`
36-
- :ref:`Oanda currency historical rate<remote_data.oanda_curr_hist>`
3736
- :ref:`Nasdaq Trader symbol definitions<remote_data.nasdaq_symbols>`
3837

3938
It should be noted, that various sources support different kinds of data, so not all sources implement the same methods and the data elements returned might also differ.
@@ -537,42 +536,6 @@ Download mutual fund index prices for the TSP.
537536
tspreader.read()
538537
539538
540-
.. _remote_data.oanda_curr_hist:
541-
542-
Oanda currency historical rate
543-
==============================
544-
545-
Download currency historical rate from `Oanda <https://www.oanda.com/>`__.
546-
547-
.. code-block:: python
548-
549-
In [1]: from pandas_datareader.oanda import get_oanda_currency_historical_rates
550-
In [2]: start, end = "2016-01-01", "2016-06-01"
551-
In [3]: quote_currency = "USD"
552-
In [4]: base_currency = ["EUR", "GBP", "JPY"]
553-
In [5]: df_rates = get_oanda_currency_historical_rates(
554-
start, end,
555-
quote_currency=quote_currency,
556-
base_currency=base_currency
557-
)
558-
In [6]: print(df_rates)
559-
560-
EUR/USD GBP/USD JPY/USD
561-
Date
562-
2016-01-01 1.087090 1.473989 0.008320
563-
2016-01-02 1.087090 1.473989 0.008320
564-
2016-01-03 1.087090 1.473989 0.008320
565-
2016-01-04 1.086730 1.473481 0.008370
566-
2016-01-05 1.078760 1.469430 0.008388
567-
... ... ... ...
568-
2016-05-28 1.111669 1.462630 0.009072
569-
2016-05-29 1.111669 1.462630 0.009072
570-
2016-05-30 1.112479 1.461999 0.009006
571-
2016-05-31 1.114269 1.461021 0.009010
572-
2016-06-01 1.115170 1.445410 0.009095
573-
574-
[153 rows x 3 columns]
575-
576539
.. _remote_data.nasdaq_symbols:
577540
578541
Nasdaq Trader Symbol Definitions

docs/source/whatsnew/v0.5.0.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ Enhancements
2020

2121
- ``DataReader`` now supports Quandl, see :ref:`here<remote_data.quandl>` (:issue:`361`).
2222

23+
.. _whatsnew_050.api_breaking:
24+
25+
Backwards incompatible API changes
26+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
27+
28+
- Removed Oanda as it became subscription only (:issue:`296`).
29+
2330
.. _whatsnew_050.bug_fixes:
2431

2532
Bug Fixes

pandas_datareader/data.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from pandas_datareader.oecd import OECDReader
2121
from pandas_datareader.edgar import EdgarIndexReader
2222
from pandas_datareader.enigma import EnigmaReader
23-
from pandas_datareader.oanda import get_oanda_currency_historical_rates
2423
from pandas_datareader.nasdaq_trader import get_nasdaq_symbols
2524
from pandas_datareader.quandl import QuandlReader
2625

@@ -162,12 +161,6 @@ def DataReader(name, data_source=None, start=None, end=None,
162161
return EdgarIndexReader(symbols=name, start=start, end=end,
163162
retry_count=retry_count, pause=pause,
164163
session=session).read()
165-
elif data_source == "oanda":
166-
return get_oanda_currency_historical_rates(
167-
start, end,
168-
quote_currency="USD", base_currency=name,
169-
reversed=True, session=session
170-
)
171164
elif data_source == 'nasdaq':
172165
if name != 'symbols':
173166
raise ValueError("Only the string 'symbols' is supported for "

pandas_datareader/oanda.py

Lines changed: 0 additions & 58 deletions
This file was deleted.

pandas_datareader/tests/test_oanda.py

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)