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

Buying Power in API doesn't match the app. However, cash from the API matches Buying Power in the app. #544

Open
Two20Two21 opened this issue Feb 7, 2025 · 4 comments

Comments

@Two20Two21
Copy link

Two20Two21 commented Feb 7, 2025

I'm calling load_account_profile to get buying_power. I'm finding that the value I get for buying_power from the API doesn't match Buying Power as displayed in the app.

account_info = robin_stocks.robinhood.profiles.load_account_profile(account_number=None, info=None,dataType='indexzero')
buying_power = float(account_info['buying_power'])
cash = float(account_info['cash'])

The app says 1929.68 where as the API says 2542.91.

Given the amount I started with this morning and the stocks I bought, 1929.68 should be correct.

@Adelantado
Copy link

This works for me, hope it helps.

#---------------
get_Cash_Totals = robin_stocks.robinhood.account.load_phoenix_account(info=None)
buying_Power = round(Decimal(get_Cash_Totals ['crypto_buying_power'] ['amount']),2)
#---------------

Note that buying_power reflects ( it has been subtracted already ) the amounts of pending buys that may exist, if any.

@Two20Two21
Copy link
Author

Two20Two21 commented Feb 15, 2025 via email

@Two20Two21
Copy link
Author

Two20Two21 commented Feb 15, 2025 via email

@Adelantado
Copy link

#==> [0_0] Kool!

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

2 participants