bitbns-official / bitbnspy

MIT License
9 stars 6 forks source link

No data is returned for a few pairs using - currentCoinBalance #54

Closed sanket-buyhatke closed 3 years ago

sanket-buyhatke commented 3 years ago

Describe your environment

Describe the problem:

currentCoinBalance returns no data for recently added pairs.

this issue is observed in USDC, BUSD, RUNE, SOL, SAND, MANA etc (while opening issue, there were most recently added)

Steps to reproduce:

  1. fetch current coin balance via currentCoinBalance function.

Observed Results:

Relevant code exceptions or logs

Code Sample, a copy-pastable example

# Your code here
print(bitbnsObj.currentCoinBalance('BUSD'))

logs, a copy-pastable example

{'code': 200, 'data': {}, 'error': None, 'status': 1}
sanket-buyhatke commented 3 years ago

The work around this issue is, buying a small quantity of the asset, and then retrying the function, it seems to be working(even if the balance is reduced to 0 later)

print(bitbnsObj.currentCoinBalance('BUSD'))
{
 'code': 200,
 'data': {'availableorderBUSD': 0, 'inorderBUSD': 29},
 'error': None,
 'status': 1
}
atiprashant commented 3 years ago

This is sorted