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

Websocket Issues #16

Open
martygriffin opened this issue Dec 19, 2020 · 2 comments
Open

Websocket Issues #16

martygriffin opened this issue Dec 19, 2020 · 2 comments

Comments

@martygriffin
Copy link

When running from the CLI, the script appears to be stuck a look opening/closing the websocket. Is this a known issue or is there something wrong with my setup?

-- CBPRO Websocket Closed ---
-- CBPRO Websocket Opened ---
-- CBPRO Websocket Closed ---
-- CBPRO Websocket Closed ---
-- CBPRO Websocket Opened ---
-- CBPRO Websocket Closed ---
-- CBPRO Websocket Closed ---

@martygriffin martygriffin changed the title Websockt Issues Websocket Issues Dec 19, 2020
@martygriffin
Copy link
Author

Here it the content in error.log

2020-12-19 10:09:27.538637
Traceback (most recent call last):
File "/Users/marty/GitHub/cbpro-trader/cbpro-trader/daemon/engine/TradeEngine.py", line 71, in update_orders
self.recent_fills = sorted(self.temp_recent_fills, key=lambda x: x['created_at'], reverse=True)[:5]
File "/Users/marty/GitHub/cbpro-trader/cbpro-trader/daemon/engine/TradeEngine.py", line 71, in
self.recent_fills = sorted(self.temp_recent_fills, key=lambda x: x['created_at'], reverse=True)[:5]
TypeError: string indices must be integers
2020-12-19 10:09:27.726466
Traceback (most recent call last):
File "/Users/marty/GitHub/cbpro-trader/cbpro-trader/daemon/./cbpro-trader.py", line 110, in start
product.order_book.process_message(msg)
AttributeError: 'OrderBookCustom' object has no attribute 'process_message'
2020-12-19 10:09:28.651176
Traceback (most recent call last):
File "/Users/marty/GitHub/cbpro-trader/cbpro-trader/daemon/engine/TradeEngine.py", line 71, in update_orders
self.recent_fills = sorted(self.temp_recent_fills, key=lambda x: x['created_at'], reverse=True)[:5]
File "/Users/marty/GitHub/cbpro-trader/cbpro-trader/daemon/engine/TradeEngine.py", line 71, in
self.recent_fills = sorted(self.temp_recent_fills, key=lambda x: x['created_at'], reverse=True)[:5]
TypeError: string indices must be integers
2020-12-19 10:09:29.961216
Traceback (most recent call last):
File "/Users/marty/GitHub/cbpro-trader/cbpro-trader/daemon/engine/TradeEngine.py", line 71, in update_orders
self.recent_fills = sorted(self.temp_recent_fills, key=lambda x: x['created_at'], reverse=True)[:5]
File "/Users/marty/GitHub/cbpro-trader/cbpro-trader/daemon/engine/TradeEngine.py", line 71, in
self.recent_fills = sorted(self.temp_recent_fills, key=lambda x: x['created_at'], reverse=True)[:5]
TypeError: string indices must be integers

@martygriffin
Copy link
Author

2020-12-19 10:30:07.007735
Traceback (most recent call last):
File "/Users/marty/GitHub/cbpro-trader/cbpro-trader/daemon/./cbpro-trader.py", line 110, in start
product.order_book.process_message(msg)
AttributeError: 'OrderBookCustom' object has no attribute 'process_message'
2020-12-19 10:30:52.802056
Traceback (most recent call last):
File "/Users/marty/GitHub/cbpro-trader/cbpro-trader/daemon/./cbpro-trader.py", line 110, in start
product.order_book.process_message(msg)
AttributeError: 'OrderBookCustom' object has no attribute 'process_message'
2020-12-19 10:31:13.089105
Traceback (most recent call last):
File "/Users/marty/GitHub/cbpro-trader/cbpro-trader/daemon/./cbpro-trader.py", line 110, in start
product.order_book.process_message(msg)
AttributeError: 'OrderBookCustom' object has no attribute 'process_message'

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

1 participant