A robust script to scrape real-time FX pair values
A robust script to scrape real-time FX pair values, stored with up to 80% lossless compression.
This activity is performed to monitor real time FX spot data, available by http. Stored as 60s OHLC candles.
class Candles(object):
def __init__(self):
self.Open = 0
self.Low = 0
self.High = 9
self.Close = 0
self.TimeStamp = 0
pass
Here is a quick python3 script.
With,
Install mongoDB
Edit mongodb credentials
_client = MongoClient('mongodb://mymongouser:mymongouserpassword@101.111.121.131:27017/EURUSD')
python3 -m pip install pymongo
python3 scrape.py
Data access is licensed for personal / educational use.