/fxrt

Realtime FX prices from the Oanda broker.

Primary LanguagePython

FXRT

Retrieve realtime FX prices from the Oanda broker without any configuration or key.

The realtime prices are updated every 5 seconds.

Installation

From pip:

pip install fxrt

From the sources:

git clone git@github.com:philipperemy/fxrt.git && cd fxrt
pip install -e .

Example

Display the realtime feeds.

$ python example.py
2020-05-16 07:34:46 {'AUD/CAD': {'bid': '0.90453', 'ask': '0.90550'}, 'AUD/CHF': {'bid': '0.62273', 'ask': '0.62365'}, [...]
2020-05-16 07:34:51 {'AUD/CAD': {'bid': '0.90453', 'ask': '0.90550'}, 'AUD/CHF': {'bid': '0.62273', 'ask': '0.62365'}, [...]
2020-05-16 07:34:56 {'AUD/CAD': {'bid': '0.90453', 'ask': '0.90550'}, 'AUD/CHF': {'bid': '0.62273', 'ask': '0.62365'}, [...]