Skip to content

"Extended hours and market hours mismatch." #453

Open
@doctorcolossus

Description

@doctorcolossus

I am a new robin_stocks user, so apologies if I am missing something, but extended hours trading does not seem to work correctly for me. I am using robin_stocks 3.0.6.

It is currently 18:30 in NYC and the after-hours session is open.

The documentation for robin_stocks.robinhood.orders.order() notes: "Premium users only." I am a gold subscriber, and I am able to trade during extended hours and on the 24-hour market normally through the web application.

The documentation also says that extendedHours should be Optional[str]), and I tried both a string ("true") and a boolean (True).

However, both:

robin_stocks.robinhood.orders.order(symbol        = "DIS",
                                    quantity      = 1,
                                    side          = "buy",
                                    limitPrice    = 91.02,
                                    extendedHours = True)

... and:

robin_stocks.robinhood.orders.order(symbol        = "DIS",
                                    quantity      = 1,
                                    side          = "buy",
                                    limitPrice    = 91.02,
                                    extendedHours = "true")

... return:

{'non_field_errors': ['Extended hours and market hours mismatch.']}

... for me.

Am I doing something wrong, or is something broken?

I almost always select extended hours when placing orders normally through the web application, even during the standard market hours trading session, so that my targets can execute after the closing bell or in the pre-market session on subsequent days. So I don't understand this message and what needs to match. After all, it is extended hours now, so why shouldn't I be able to place an extended hours order now? 🧐

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