evgrmn / tmatic

Tmatic is a cryptocurrency platform designed for automated trading on the Bitmex, Bybit and Deribit crypto exchanges.
https://www.tmatic.org
GNU General Public License v3.0
25 stars 6 forks source link

Error buying BTCUSD, BTCUSDT at Bybit #178

Closed nikolayromenskiy closed 4 months ago

nikolayromenskiy commented 4 months ago

2024-04-26 14:34:52,072 - root - INFO - Posting symbol=('BTCUSD', 'inverse', 'Bybit') clOrdID=1231283091.BTCUSD.inverse side=Buy price=64150.0 qty=1.0 2024-04-26 14:34:52,311 - root - INFO - Bybit New Buy: orderID=f917575f-9c42-4cfd-83f5-6c0d7efad012 clOrdID=1231283091.BTCUSD.inverse price=64150.0 qty=1 _____ KeyError 2024-04-26 14:34:52,331 - websocket - ERROR - error from callback <function _WebSocketManager._connect.. at 0x7929e394db40>: 'accountType' 2024-04-26 14:34:52,548 - websocket - ERROR - error from callback <function _WebSocketManager._connect.. at 0x7929e394d900>: 'accountType' 2024-04-26 14:34:52,549 - websocket - INFO - tearing down on exception 'accountType'

As well as BTCUSDT:

2024-04-26 15:51:33,281 - root - INFO - Posting symbol=('BTCUSDT', 'linear', 'Bybit') clOrdID=1231354678.BTCUSDT.linear side=Buy price=64151.0 qty=0.002 2024-04-26 15:51:33,700 - root - INFO - Bybit New Buy: orderID=b1c795ab-4b22-4341-9a36-c5ac7834e8ec clOrdID=1231354678.BTCUSDT.linear price=64151.0 qty=0.002 _____ KeyError 2024-04-26 15:51:33,710 - websocket - ERROR - error from callback <function _WebSocketManager._connect.. at 0x786a1ed43400>: 'accountType' 2024-04-26 15:51:33,925 - websocket - ERROR - error from callback <function _WebSocketManager._connect.. at 0x786a1ed431c0>: 'accountType' 2024-04-26 15:51:33,925 - websocket - INFO - tearing down on exception 'accountType'

evgrmn commented 4 months ago

Corrected. Typo in the __update_account() function.