Hi Dev,
Will keep this clean thats for sure :)
Got this on testnet:
50:50.730|DEBUG |Agent MM | q & prices : bids []
asks [{'price': 5271.5, 't_market': 174.375905, 'q_pos': 0.751}]
50:50.731|DEBUG |Agent MM | cur orders {'bids': [], 'asks':
[{'symbol': 'XBTUSD', 'price': 5271.5, 'orderQty': -1000, 'clOrdID':
'7af83069-62f2-4aee-b65e-3ed58f98e0d6', 'execInst':
'ParticipateDoNotInitiate', 't_market': 174.375905, 'q_pos': 0.751}]}
50:50.731|WARNING |lomond | disconnecting websocket
Traceback (most recent call last):
File "trader.py", line 474, in
c.run()
File "trader.py", line 434, in run
self.agent.on_l2()
File "/home/ubuntu/xworks/lomond/agent/agent.py", line 466, in on_l2
self.determine_state()
File "/home/ubuntu/xworks/lomond/agent/agent.py", line 185, in
determine_state
self.agent_perform(indi_dict=indi_dict,
curr_inventory=curr_inventory)
File "/home/ubuntu/xworks/lomond/agent/agent.py", line 235, in
agent_perform
bid_post_pxs=bid_post_pxs)
File "/home/ubuntu/xworks/lomond/agent/agent.py", line 323, in
evaluate_outstanding_orders
bb = sorted(cur_orders['bids'], key= flt_fun, reverse=True)[0]
IndexError: list index out of range
As per previous suggestion from you, i already maximised the max inventory.
Please advice.
Thanks & Regards.