sammchardy / python-idex

IDEX v3 Exchange REST API python implementation

Home Page:https://python-idex.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't get next nonce

Dzhei52 opened this issue · comments

Hello!
When I try to init client like
self.__client = Client(address, pk)
I got an error from idex:
{'result': 'error', 'errors': ['[LAMBDA-RUNNER]\n FAILED TO INITIALIZE LAMBDA! \n \n Our initialization function expects either one or two arguments, however, \n you provided 3 parameters.', "Cannot set property 'agent' of undefined"]}

It is a result of get_next_nonce(address) function.
What could be wrong?
Thanks!

I am having a similar problem with getting the next nonce, this is my output:

~/anaconda3/envs/pyth36/lib/python3.6/site-packages/idex/client.py in set_wallet_address(self, address, private_key)
168 self._wallet_address = address.lower()
169 nonce_res = self.get_my_next_nonce()
--> 170 self._start_nonce = nonce_res['nonce']
171 if private_key:
172 if re.match(r"^0x[0-9a-zA-Z]{64}$", private_key) is None:

KeyError: 'nonce'

Same here (although not actually using this package). { result: 'error', errors: [ '[LAMBDA-RUNNER]\n FAILED TO INITIALIZE LAMBDA! \n \n Our initialization function expects either one or two arguments, however, \n you provided 3 parameters.', 'Cannot set property \'agent\' of undefined' ] }

This was a server issue