You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for your repo,
I want to connect to testnet network then get price history and open-close position, but I got this error, can anyone help me fix that?
Code:
Traceback (most recent call last):
File "test.py", line 3, in <module>
kwenta = Kwenta(
File "/home/tuongnh/miniconda3/envs/trade/lib/python3.8/site-packages/kwenta/kwenta.py", line 72, in __init__
) = self._load_markets()
File "/home/tuongnh/miniconda3/envs/trade/lib/python3.8/site-packages/kwenta/kwenta.py", line 183, in _load_markets
results = list(executor.map(self._load_market, allmarketsdata))
File "/home/tuongnh/miniconda3/envs/trade/lib/python3.8/concurrent/futures/_base.py", line 619, in result_iterator
yield fs.pop().result()
File "/home/tuongnh/miniconda3/envs/trade/lib/python3.8/concurrent/futures/_base.py", line 444, in result
return self.__get_result()
File "/home/tuongnh/miniconda3/envs/trade/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result
raise self._exception
File "/home/tuongnh/miniconda3/envs/trade/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/tuongnh/miniconda3/envs/trade/lib/python3.8/site-packages/kwenta/kwenta.py", line 116, in _load_market
addresses["PerpsV2MarketSettings"][self.network_id]
KeyError: 420
The text was updated successfully, but these errors were encountered:
Thank you for your repo,
I want to connect to testnet network then get price history and open-close position, but I got this error, can anyone help me fix that?
Code:
Error:
The text was updated successfully, but these errors were encountered: