Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'realizedPnL' immediately after " python main.py" is executed #24

Open
developeralgo8888 opened this issue Apr 29, 2021 · 1 comment

Comments

@developeralgo8888
Copy link

Traceback (most recent call last):
File "/home/miniconda3/lib/python3.8/site-packages/eventkit/event.py", line 184, in emit
func(obj, *args)
File "/developer/Downloads/High-Frequency-Trading-Model-with-IB/models/hft_model_1.py", line 78, in on_tick
self.perform_trade_logic()
File "/developer/Downloads/High-Frequency-Trading-Model-with-IB/models/hft_model_1.py", line 101, in perform_trade_logic
self.print_strategy_params()
File "/developer/Downloads/High-Frequency-Trading-Model-with-IB/models/hft_model_1.py", line 127, in print_strategy_params
rpnl=self.pnl.realizedPnL,
AttributeError: 'NoneType' object has no attribute 'realizedPnL'

Note sure what is missing in ib_sync or interactive Brokers response.

@pengfengyong
Copy link

I also meet this problem, whether you solved this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants