Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deposit status error if more than one transaction #74

Open
jonnymaserati opened this issue Mar 29, 2022 · 0 comments
Open

Deposit status error if more than one transaction #74

jonnymaserati opened this issue Mar 29, 2022 · 0 comments

Comments

@jonnymaserati
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant