Open Jerryyin29 opened 1 year ago
Hi, Atreyutrading:
when i run following code on Jupyter Notebook:
from atreyu_backtrader_api import IBData
It shows following error message, can you take a look? thanks a lot
Traceback (most recent call last):
File ~\anaconda3\lib\site-packages\IPython\core\interactiveshell.py:3398 in run_code exec(code_obj, self.user_global_ns, self.user_ns)
Input In [14] in <cell line: 1> import backtrader as bt
File ~\anaconda3\lib\site-packages\backtrader__init__.py:62 in from .cerebro import *
File ~\anaconda3\lib\site-packages\backtrader\cerebro.py:35 in from .brokers import BackBroker
File ~\anaconda3\lib\site-packages\backtrader\brokers__init__.py:30 in from .ibbroker import IBBroker
File ~\anaconda3\lib\site-packages\backtrader\brokers\ibbroker.py:30 in import ib.ext.Order
File ~\anaconda3\lib\site-packages\ib\ext\Order.py:9 in from ib.lib import Double, Integer
File ~\anaconda3\lib\site-packages\ib\lib__init__.py:239 except (socket.error, ), ex: ^ SyntaxError: invalid syntax
Hi, Atreyutrading:
when i run following code on Jupyter Notebook:
from atreyu_backtrader_api import IBData
It shows following error message, can you take a look? thanks a lot
Traceback (most recent call last):
File ~\anaconda3\lib\site-packages\IPython\core\interactiveshell.py:3398 in run_code exec(code_obj, self.user_global_ns, self.user_ns)
Input In [14] in <cell line: 1> import backtrader as bt
File ~\anaconda3\lib\site-packages\backtrader__init__.py:62 in
from .cerebro import *
File ~\anaconda3\lib\site-packages\backtrader\cerebro.py:35 in
from .brokers import BackBroker
File ~\anaconda3\lib\site-packages\backtrader\brokers__init__.py:30 in
from .ibbroker import IBBroker
File ~\anaconda3\lib\site-packages\backtrader\brokers\ibbroker.py:30 in
import ib.ext.Order
File ~\anaconda3\lib\site-packages\ib\ext\Order.py:9 in
from ib.lib import Double, Integer
File ~\anaconda3\lib\site-packages\ib\lib__init__.py:239 except (socket.error, ), ex: ^ SyntaxError: invalid syntax