Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transfer_dust() for multiple currencies #550

Open
sasa-buklijas opened this issue Jul 10, 2020 · 9 comments
Open

transfer_dust() for multiple currencies #550

sasa-buklijas opened this issue Jul 10, 2020 · 9 comments

Comments

@sasa-buklijas
Copy link

How is it possible to do transfer_dust() for multiple currencies at once ?

With one it is working fine:

result = client.transfer_dust(asset='ONE')

from: https://python-binance.readthedocs.io/en/latest/binance.html#binance.client.Client.transfer_dust
But multiple currencies at once are also officially supported, like:

"The asset being converted. For example: asset=BTC&asset=USDT"

from: https://github.com/binance-exchange/binance-official-api-docs/blob/9dbe0e961b80557bb19708a707c7fad08842b28e/wapi-api.md#dust-transfer-user_data

I tried few ideas but with no success:

transfer = client.transfer_dust(asset='asset=TRX&asset=BTT')     # APIError(code=-5003): You don't have this asset.
transfer = client.transfer_dust(asset='TRX&asset=BTT')                # APIError(code=-5003): You don't have this asset.
transfer = client.transfer_dust(asset='asset=BTT')                         # APIError(code=-5003): You don't have this asset.
transfer = client.transfer_dust(asset='=BTT')                                  # APIError(code=-5003): You don't have this asset.
transfer = client.transfer_dust(asset='PAX TRX')                            # APIError(code=-5003): You don't have this asset.
transfer = client.transfer_dust(asset=['PAX', 'TRX'])                       # APIError(code=-1022): Signature for this request is not valid.

Any Ideas ?

@iamdushyantgupta
Copy link

Below done job for me.
{'asset': 'BTT,XLM'}
client._request_margin_api('post', 'asset/dust', True, data=assets)

@rha2thm
Copy link

rha2thm commented Feb 19, 2021

Below done job for me.
{'asset': 'BTT,XLM'}
client._request_margin_api('post', 'asset/dust', True, data=assets)

this didn't work for me

@cuongitl
Copy link

Anyone have the solution for this issue?

@cuongitl
Copy link

Below done job for me.
{'asset': 'BTT,XLM'}
client._request_margin_api('post', 'asset/dust', True, data=assets)

this didn't work,

@davidefornelli
Copy link

davidefornelli commented Apr 13, 2021

This works:

dust = 'BTT,XLM'
client.transfer_dust(asset=dust)

@cuongitl
Copy link

This works:

dust = 'BTT,XLM'
client.transfer_dust(asset=dust)

Worked!
Thank you very much.

@newjoin2021
Copy link

Hello everyone excuse me, Im new in python-binance, does the "client.transfer_dust(asset='ONE')" function allow me to change coins to other coins? i mean convert from BTC to ETH?

@AlexNik
Copy link
Contributor

AlexNik commented May 28, 2021

@newjoin2021 No, it converts small amount of coins to BNB.
You should use client.create_order

def create_order(self, **params):

@dpcwee
Copy link

dpcwee commented Nov 15, 2022

hello, the conversion of several assets is broken, the view client.transfer_dust(asset = 'BTC,ETH'), but does not work

APIError(code=-1102): illegal parameter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants