ccxt: idex {"error":"Invalid withdrawal signature. Please try again."}
Hello
- OS: macOS
- Programming Language version: PHP 7.3.9
- CCXT version: 1.21.22
- Exchange: IDEX
- Method: Private (POST)
ccxt\ExchangeError : idex {"error":"Invalid withdrawal signature. Please try again."}
at /var/www/vhosts/xxxxxxx/xxxxxxxx/vendor/ccxt/ccxt/php/idex.php:1079
1075| if (is_array($response) && array_key_exists('error', $response)) {
1076| if (is_array($this->exceptions) && array_key_exists($response['error'], $this->exceptions)) {
1077| throw new $this->exceptions[$response['error']]($this->id . ' ' . $response['error']);
1078| }
> 1079| throw new ExchangeError($this->id . ' ' . $body);
1080| }
1081| }
1082| }
1083|
Exception trace:
1 ccxt\idex::handle_errors()
/var/www/vhosts/xxxxxxx/xxxxxxxxx/vendor/ccxt/ccxt/php/base/Exchange.php:1398
2 ccxt\Exchange::fetch()
/var/www/vhosts/xxxxxxx/xxxxxxxxx/vendor/ccxt/ccxt/php/base/Exchange.php:1175
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (10 by maintainers)
@ndubel the IDEX v1 API is now deprecated, the v2 API (idex2) is currently on Rinkeby and it will be launched on the mainnet on Oct 20: https://idex.io
yeah i will investigate this as soon as possible. it was working when we integrated the v1 originally, but i guess something has changed on one of our ends.
I couldn’t test with any other ones as the first POST request I need to make is to get an access_token.
Basically, the endpoint seems to check for a JSON body and the encode cahnges that for a query-styled string
For reference:
My issue ended up being caused by the encoding of the body in the fetch method (lines 528 & 529 in exchange.py)
Removing the body encoding allowed the post request to function properly.
@kroitor I recently had issues with a POST request working correctly when using curl, but returning errors when using ccxt. I ended earching a bit deeper and found that the issue is related to the requests package.
It is a current issue over here: https://github.com/psf/requests/issues/5003
Perhaps, that’s the issue here as well?
The same, but
Invalid cancel signature@kroitor thank you, but the php version have many bug also can’t make a idex market order