-
Notifications
You must be signed in to change notification settings - Fork 490
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
Comments
This works for me, hope it helps. #--------------- Note that buying_power reflects ( it has been subtracted already ) the amounts of pending buys that may exist, if any. |
I'll give it a try, thanks.
From: Adelantado ***@***.***>
Sent: Friday, February 14, 2025 8:34 PM
To: jmfernandes/robin_stocks ***@***.***>
Cc: Two20Two21 ***@***.***>; Author ***@***.***>
Subject: Re: [jmfernandes/robin_stocks] Buying Power in API doesn't match the app. However, cash from the API matches Buying Power in the app. (Issue #544)
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.
-
Reply to this email directly, view it on GitHub<#544 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BNQ7WZJ4L4PMVLYHCJFPXD32P2RQZAVCNFSM6AAAAABWWUF7IKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRQGY2DGNZQGQ>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
[Adelantado]Adelantado left a comment (jmfernandes/robin_stocks#544)<#544 (comment)>
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.
-
Reply to this email directly, view it on GitHub<#544 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BNQ7WZJ4L4PMVLYHCJFPXD32P2RQZAVCNFSM6AAAAABWWUF7IKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRQGY2DGNZQGQ>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
That fixed the problem. Not sure why the other value is wrong. Thanks again.
From: Adelantado ***@***.***>
Sent: Friday, February 14, 2025 8:34 PM
To: jmfernandes/robin_stocks ***@***.***>
Cc: Two20Two21 ***@***.***>; Author ***@***.***>
Subject: Re: [jmfernandes/robin_stocks] Buying Power in API doesn't match the app. However, cash from the API matches Buying Power in the app. (Issue #544)
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.
-
Reply to this email directly, view it on GitHub<#544 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BNQ7WZJ4L4PMVLYHCJFPXD32P2RQZAVCNFSM6AAAAABWWUF7IKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRQGY2DGNZQGQ>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
[Adelantado]Adelantado left a comment (jmfernandes/robin_stocks#544)<#544 (comment)>
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.
-
Reply to this email directly, view it on GitHub<#544 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BNQ7WZJ4L4PMVLYHCJFPXD32P2RQZAVCNFSM6AAAAABWWUF7IKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRQGY2DGNZQGQ>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
#==> [0_0] Kool! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: