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 when non-existent instrument put into '.env.Bitmex' file #234

Closed nikolayromenskiy closed 3 months ago

nikolayromenskiy commented 3 months ago

We should probably check instruments' names spelling before subscription for Bitmex as well for Bybit.

2024-05-21 15:59:49,584 - root - INFO -

hello

2024-05-21 15:59:49,587 - api.bitmex.ws - INFO - (https) sending GET to instrument/active: "" 2024-05-21 15:59:49,838 - api.bitmex.agent - ERROR - Unknown symbol: ('BTCUSD', 'inverse', 'Bitmex'). Check the SYMBOLS in the .env.Bitmex file. Perhaps the name of the symbol does not correspond to the category or such symbol does not exist. connect 6 Bitmex connect 7 Bitmex 2024-05-21 15:59:49,839 - root - ERROR - Sqlite Error: no such column: None) Traceback (most recent call last): File "/Users/nrmn/Documents/tmatic_240521/main.py", line 9, in connect.setup() File "/Users/nrmn/Documents/tmatic_240521/connect.py", line 38, in setup finish_setup(Markets[name]) File "/Users/nrmn/Documents/tmatic_240521/connect.py", line 96, in finish_setup common.Init.account_balances(ws) File "/Users/nrmn/Documents/tmatic_240521/common/init.py", line 112, in account_balances symbols = list(map(lambda x: (x["SYMBOL"], x["CATEGORY"], self.name), data)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: 'NoneType' object is not iterable

evgrmn commented 3 months ago

This problem is already outdated. Such a bug cannot appear now, since the latest commits take into account many improvements.