sammchardy / python-binance

Binance Exchange API python implementation for automated trading
https://python-binance.readthedocs.io/en/latest/
MIT License
5.91k stars 2.19k forks source link

get_dust_assets receiving cut off list #1292

Open bartgrefte opened 1 year ago

bartgrefte commented 1 year ago

Does client.get_dust_assets() have a limit when it comes to received data? I'm getting a long list of coins back, but it's cut off.

It looks like I'm getting 56** coins back, the last part is " 'toBNBOffExchange': '", then the list just ends.

Not getting any error, so no clue where to start looking....

from binance import Client, ThreadedWebsocketManager, ThreadedDepthCacheManager
import dust_credentials # storing API-key in separate file

client = Client(dust_credentials.api_key, dust_credentials.api_secret)

dust_list = client.get_dust_assets()
print(dust_list)

**56 is far from the total, Binance's dust threshold is not low enough, I've got trades that have a value low enough to be seen as dust, hence the long list.