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

beem.snapshot.AccountSnapshot.get_data returning all zeros #344

Open
jemshid opened this issue Nov 30, 2021 · 1 comment
Open

beem.snapshot.AccountSnapshot.get_data returning all zeros #344

jemshid opened this issue Nov 30, 2021 · 1 comment

Comments

@jemshid
Copy link

jemshid commented Nov 30, 2021

 import datetime as dt
 acc_snapshot = AccountSnapshot("holger80")
 acc_snapshot.get_data(timestamp=dt.datetime.now(tz=dt.timezone.utc))                           

This returns

{'timestamp': datetime.datetime(1970, 1, 1, 0, 0, tzinfo=<UTC>),
 'vests': 0.000000 VESTS,
 'delegated_vests_in': {},
 'delegated_vests_out': {},
 'sp_own': -0.0,
 'sp_eff': 0.0,
 'steem': 0.000 HIVE,
 'sbd': 0.000 HBD,
 'index': 0}

The get_data method is expected to return current balances as of now, but is returning zeros and the timestamp taken by the method is the old 1970 date, which is the default.

@jemshid
Copy link
Author

jemshid commented Dec 1, 2021

In [18]: acc_snapshot = AccountSnapshot("bobinson")                                                     

In [19]: acc_snapshot.get_data()                                                                        
i: 1
index: 0
Out[19]: 
{'timestamp': datetime.datetime(1970, 1, 1, 0, 0, tzinfo=<UTC>),
 'vests': 0.000000 VESTS,
 'delegated_vests_in': {},
 'delegated_vests_out': {},
 'sp_own': -0.0,
 'sp_eff': 0.0,
 'steem': 0.000 HIVE,
 'sbd': 0.000 HBD,
 'index': 0}

Another case

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