dominiktraxl/pykrakenapi

Deposit status error if more than one transaction

Opened this issue · 0 comments

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

depositstatus = pd.DataFrame(index=[asset], data=res['result']).T

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.