btcde icon indicating copy to clipboard operation
btcde copied to clipboard

Implement v4 API functions for Deposit

Open peshay opened this issue 3 years ago • 2 comments

peshay avatar Apr 10 '21 12:04 peshay

Hi, I added a new short function in the definition for showDeposits which is working well for the moment. I have no playing experience with github so here is my code which I inserted before showAccountInfo() procedure:

` showDeposits()

def showDeposits(self, currency, **args):
    """Query on Deposits."""
    params = args
    avail_params = [ 'deposit_id', 'page' ]
    uri = f'{self.apibase}{currency}/deposits'
    p = ParameterBuilder(avail_params, params, uri)
    return self.APIConnect('GET', p)

`

CosmicDuck avatar Mar 17 '22 06:03 CosmicDuck

Can you create a PR for it, with a unit test and documentation about that function in the README?

peshay avatar Mar 17 '22 08:03 peshay