pykrakenapi icon indicating copy to clipboard operation
pykrakenapi copied to clipboard

Deposit status error if more than one transaction

Open jonnymaserati opened this issue 2 years ago • 0 comments

The following line doesn't work if there's more than one transaction returned.

https://github.com/dominiktraxl/pykrakenapi/blob/3817add24389f1e222498b0a5c508cc88ac9971a/pykrakenapi/pykrakenapi.py#L1567

I think this should be replaced with the following that will return a dataframe of transactions indexed by their datetime:

depositstatus = pd.DataFrame(data=res['result']).set_index('time')
depositstatus.index = pd.to_datetime(depositstatus.index, unit='s')

I suspect the same applies to withdrawals.

jonnymaserati avatar Mar 29 '22 21:03 jonnymaserati