ccxt icon indicating copy to clipboard operation
ccxt copied to clipboard

PermissionDenied: htx

Open block98ct opened this issue 1 year ago • 4 comments

Operating System

ubuntu

Programming Languages

JavaScript

CCXT Version

4.2.26

Description

PermissionDenied: htx {"status":"error","err-code":"api-not-support-temp-addr","err-msg":"API withdrawal does not support temporary addresses","data":null} at htx.throwExactlyMatchedException (file:///home/palash/Public/test/node_modules/ccxt/js/src/base/Exchange.js:3824:19) at htx.handleErrors (file:///home/palash/Public/test/node_modules/ccxt/js/src/htx.js:7253:22) at file:///home/palash/Public/test/node_modules/ccxt/js/src/base/Exchange.js:926:51 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async htx.fetch2 (file:///home/palash/Public/test/node_modules/ccxt/js/src/base/Exchange.js:3398:16) at async htx.request (file:///home/palash/Public/test/node_modules/ccxt/js/src/base/Exchange.js:3401:16) at async htx.withdraw (file:///home/palash/Public/test/node_modules/ccxt/js/src/htx.js:6553:26) at async transferFund (file:///home/palash/Public/test/test.js:18:22)

I am making arbitrage bot, to do that I need to transfer fund from one cex to another cex, while transferring fund I am getting error

Code

   async function transferFund(){
     try {
       const order = await  huobiExchange.withdraw('ALGO', 20, "MWR7GSIW2VYSXXQ6METWOPZDWOTAXJCOL3OVL7PBJIGG5POXESLAT5QOQE")
       huobiExchange.t
       console.log(order)
      
     } catch (error) {
        console.log(error);
        
     }
 }


block98ct avatar Feb 02 '24 07:02 block98ct

@block98ct

You may need to add the address to whitelist. Details on their doc: https://huobiapi.github.io/docs/spot/v1/en/#error-code-4

image

sc0Vu avatar Feb 02 '24 10:02 sc0Vu

@block98ct

You may need to add the address to whitelist. Details on their doc: https://huobiapi.github.io/docs/spot/v1/en/#error-code-4

image

same for binance also??

block98ct avatar Feb 02 '24 10:02 block98ct

Operating System

ubuntu

Programming Languages

JavaScript

CCXT Version

4.2.26

Description

PermissionDenied: htx {"status":"error","err-code":"api-not-support-temp-addr","err-msg":"API withdrawal does not support temporary addresses","data":null} at htx.throwExactlyMatchedException (file:///home/palash/Public/test/node_modules/ccxt/js/src/base/Exchange.js:3824:19) at htx.handleErrors (file:///home/palash/Public/test/node_modules/ccxt/js/src/htx.js:7253:22) at file:///home/palash/Public/test/node_modules/ccxt/js/src/base/Exchange.js:926:51 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async htx.fetch2 (file:///home/palash/Public/test/node_modules/ccxt/js/src/base/Exchange.js:3398:16) at async htx.request (file:///home/palash/Public/test/node_modules/ccxt/js/src/base/Exchange.js:3401:16) at async htx.withdraw (file:///home/palash/Public/test/node_modules/ccxt/js/src/htx.js:6553:26) at async transferFund (file:///home/palash/Public/test/test.js:18:22)

I am making arbitrage bot, to do that I need to transfer fund from one cex to another cex, while transferring fund I am getting error

Code

   async function transferFund(){
     try {
       const order = await  huobiExchange.withdraw('ALGO', 20, "MWR7GSIW2VYSXXQ6METWOPZDWOTAXJCOL3OVL7PBJIGG5POXESLAT5QOQE")
       huobiExchange.t
       console.log(order)
      
     } catch (error) {
        console.log(error);
        
     }
 }

the address I mention here is from binance address

block98ct avatar Feb 02 '24 10:02 block98ct

Yes, you probably need to ask htx about the settings.

sc0Vu avatar Feb 04 '24 06:02 sc0Vu