Is there a way to transfer my assets from binance to a different crypto exchange like WazirX using API. Need to create an application which does this, however I couldn’t find anything online.
Any help would be much appreciated. Thanks
Is there a way to transfer my assets from binance to a different crypto exchange like WazirX using API. Need to create an application which does this, however I couldn’t find anything online.
Any help would be much appreciated. Thanks
You are looking for the Withdraw endpoint. You are required to specify the destination wallet address and network.
https://binance-docs.github.io/apidocs/spot/en/#withdraw-user_data
As far as I know if I do this on a main network I may loose my asset if some wrong detail is entered. Can I use this with the binance testnet ?
As far as I know if I do this on a main network I may loose my asset if some wrong detail is entered.
This depends on the network, however it is most likely the case.
Can I use this with the testnet ?
The Withdraw endpoint is not supported on the testnet.
Yes, it’s technically possible, but not directly via a single API. You’d need to:
Use the Binance API to initiate a withdrawal to your WazirX deposit address.
Manually or programmatically retrieve your WazirX deposit address (WazirX doesn’t provide an API for deposit addresses, so you’ll likely need to input it manually).
Use Binance’s withdrawal endpoint (/sapi/v1/capital/withdraw/apply) with that address.
Optionally, monitor the blockchain or your WazirX account to confirm the deposit.
Make sure withdrawal via API is enabled in Binance and your IP is whitelisted. Handle API keys securely.
Hope that helps!