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

Prevent "Sell may cause PDT designation" error #17

Open
siropkin opened this issue Nov 1, 2024 · 0 comments
Open

Prevent "Sell may cause PDT designation" error #17

siropkin opened this issue Nov 1, 2024 · 0 comments

Comments

@siropkin
Copy link
Owner

siropkin commented Nov 1, 2024

Sometimes you can see that bot can't sell stocks because of this error: Sell may cause PDT designation.

Log example:

[2024-11-01 12:02:28] [INFO]    BZUN > Decision: sell with amount $300.0
[2024-11-01 12:02:29] [DEBUG]   Function: order_sell_fractional_by_price, Parameters: ('BZUN', 300.0), Attempt: 1/3, Result: {'detail': 'Sell may cause PDT designation.'}
[2024-11-01 12:02:29] [ERROR]   BZUN > Error selling: Sell may cause PDT designation.

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

Info about pattern day trading from Robinhood: https://robinhood.com/us/en/support/articles/pattern-day-trading/

@siropkin siropkin changed the title Prevent "Sell may cause PDT designation" errors Prevent "Sell may cause PDT designation" error Nov 1, 2024
siropkin added a commit that referenced this issue Dec 4, 2024
#17 Mark PDT limits as Beta and set to False by default
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

1 participant