When I run RUN_ME i have this error.
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf3 in position 36: invalid continuation byte
Console Output:
IBridgePy version 10.1.2
fileName = example_show_positions.py
Traceback (most recent call last):
File "C:\Users\guillermo\Downloads\IBridgePy_Win_Anaconda38_64\RUN_ME.py", line 53, in <module>
run_me(fileName, globals())
File "C:\Users\guillermo\Downloads\IBridgePy_Win_Anaconda38_64\configuration.py", line 31, in run_me
finally_run(userConfig, LiveBacktest.LIVE)
File "C:\Users\guillermo\Downloads\IBridgePy_Win_Anaconda38_64\configuration.py", line 117, in finally_run
c.run()
File "C:\Users\guillermo\Downloads\IBridgePy_Win_Anaconda38_64\IBridgePy\MarketManagerBase.py", line 65, in run
self._run_once()
File "C:\Users\guillermo\Downloads\IBridgePy_Win_Anaconda38_64\IBridgePy\MarketManagerBase.py", line 61, in _run_once
self.trader.initialize_Function()
File "C:\Users\guillermo\Downloads\IBridgePy_Win_Anaconda38_64\IBridgePy\Trader.py", line 311, in initialize_Function
self.brokerService.submit_requests(ReqCurrentTime())
File "C:\Users\guillermo\Downloads\IBridgePy_Win_Anaconda38_64\broker_service_factory\BrokerService.py", line 262, in submit_requests
return self._brokerClient.request_data(*args)
File "C:\Users\guillermo\Downloads\IBridgePy_Win_Anaconda38_64\broker_client_factory\BrokerClient.py", line 270, in request_data
self.processMessagesWrapper(None)
File "C:\Users\guillermo\Downloads\IBridgePy_Win_Anaconda38_64\broker_client_factory\BrokerClient_IB.py", line 166, in processMessagesWrapper
self.processMessages() # IBCpp function
Hello Guelliermo,
You can add encoding="utf8", highlighted below in line number 83 of configuration.py file.
This file is located at C:\Users.…\IBridgePy_Win_Anacondaxx_yy\configuration.py
with open(os.path.join(os.getcwd(), 'Strategies', fileName), encoding="utf8") as f:
script = f.read()