JestonBlu / RobinHood

An R interface for the RobinHood.com no commision investing site
https://jestonblu.github.io/RobinHood/
GNU Lesser General Public License v3.0
45 stars 12 forks source link

bug fix for api_accounts() - reformat margin balances - logic check #146

Closed JanLauGe closed 2 years ago

JanLauGe commented 2 years ago

logical check in the part of api_accounts that is supposed to reformat margin balances was buggy and lead to that part always being executed, no matter the input format, causing the whole function to fail for me. I am pretty sure this is the intended logic, please review and let me know.

JanLauGe commented 2 years ago

Related to https://github.com/JestonBlu/RobinHood/issues/99

JestonBlu commented 2 years ago

Thanks for the contribution!