-
Notifications
You must be signed in to change notification settings - Fork 462
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
order_buy_limit extended hours "Ensure that there are no more than 8 digits before the decimal point." #435
Comments
@justindavies I think this might be related to #429 , When you call
which has a signature of:
That method calls
When your parameters are passed in, the resulting call is
The original signature for the
When your parameters are passed in according to position, you get:
The
which in your case is
... @justindavies I think that's what's causing your error. In order to avoid it, I would probably just use the ... Thanks, I enjoy your repo and would love to help out however possible :) ! |
Perfect, that sorted the problem for me and the Order is accepted in extended hours trading. Only problem now is whenever I submit that order, a few seconds later I get a message in RH saying the order has failed due to an error: Submit Order: If this order isn't filled by the end of extended hours today (6:00pm ET), it will expire. A few seconds later: |
That's strange. I usually also provide this and they go through
|
is it possible to get the extended hour stock price? Any code example? Thanks |
Love the library first off. I usually place fractional shares during market hours, but have been experimenting with extended hours trading with full shares.
When I try this (when it's extended trading):
ret = r.order_buy_limit(account_number="XXXXXX", symbol="BBCP", quantity=1, timeInForce='gfd', limitPrice="8.42000000", extendedHours=True)
I get the following error:
{'price': ['Ensure that there are no more than 8 digits before the decimal point.']}
If I do the same trade using the web, it all goes through fine. The price I used was the same that was in the payload on the web just to confirm, so I'm not sure what I'm doing wrong here.
Thanks!
The text was updated successfully, but these errors were encountered: