whittlem / pycryptobot

Python Crypto Bot (PyCryptoBot)
Apache License 2.0
1.98k stars 741 forks source link

fix: retrieve all the wallets in the account #842

Open mominafiz opened 8 months ago

mominafiz commented 8 months ago

Description

The default page size of 50 records may miss the wallet with funds, resulting in an 'Insufficient funds' error. This is an edge case as the error is only seen when a user has selected all the wallets when creating an API key.

Currently, Coinbase lists around 70 wallets and when increasing the page size to 250 the error is resolved. However, this is valid until the number of wallets is more than the maximum page size.

Type of change

Please make your selection.

How Has This Been Tested?

Manual live run of the bot using Coinbase Exchange and API keys.

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.

Checklist: