Skip to content

Prevent "Not enough shares to sell" error #19

@siropkin

Description

@siropkin

Sometimes you can see that bot can't sell stocks because of this error: Not enough shares to sell.

Log example:

[2024-11-01 11:28:53] [INFO]    WD > Decision: sell with amount $1.0
[2024-11-01 11:28:53] [DEBUG]   Function: order_sell_fractional_by_price, Parameters: ('WD', 1.0), Attempt: 1/3, Result: {'detail': 'Not enough shares to sell.'}
[2024-11-01 11:28:53] [ERROR]   WD > Error selling: Not enough shares to sell.

It will be great if bot will prevent it before sell attempt.

Info about this error from Robinhood: https://robinhood.com/us/en/support/articles/not-enough-shares-error/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions