Hi, I am trying to get community outlook data, sending minute by minute requests, using JSON. It works once and I am getting an error in the next minute's try. Here are the code and the error, has someone had a similar problem? or any idea to fix it?
Error: Outlook_data = Outlook_response.json()['symbols'] File 'C:\Python\lib\site-packages\requests\models.py', line 900, in json return complexjson.loads(self.text, **kwargs) File 'C:\Python\lib\json\__init__.py', line 357, in loads return _default_decoder.decode(s) File 'C:\Python\lib\json\decoder.py', line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File 'C:\Python\lib\json\decoder.py', line 355, in raw_decode raise JSONDecodeError('Expecting value', s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Np, for avoiding the mentioned error you need to run the first part once (till the sixth line), and repeat only the second part every 15 minutes or more, using a loop or any other technic. Free accounts are not able to collect data in less than 15 minutes time frames. Also, replace the email and password with your account information and log out at the end.
HIGH RISK WARNING: Foreign exchange trading carries a high level of risk that may not be suitable for all investors.
Leverage creates additional risk and loss exposure. Before you decide to trade foreign exchange, carefully consider your investment objectives, experience level, and risk tolerance.
You could lose some or all of your initial investment. Do not invest money that you cannot afford to lose. Educate yourself on the risks associated with foreign exchange trading, and seek advice from an independent financial or tax advisor if you have any questions.
Any data and information is provided 'as is' solely for informational purposes, and is not intended for trading purposes or advice.
Past performance is not indicative of future results.