I’m encountering an issue with the order_buy_fractional_by_price function in the Robin-Stocks Python package. When placing a dollar-based buy order during regular market hours, the order is incorrectly set as a limit order. The code that looks problematic to me seems to be the cause of this issue.
I tried modifying or removing the problematic code locally in the package manager, but I encountered errors, and the API responses broke for me as well. I expected that making these changes would resolve the issue and allow dollar-based buy orders to be executed as market orders, but instead, the API responses failed.
GitHub Issue Link:
https://github.com/jmfernandes/robin_stocks/issues/485