Skip to content

[Bug]: Cannot fill order for a short sale with a trailing stop #681

@jus3q

Description

@jus3q

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Submitting a short sale on a stock with a trailing stop does not work

api.submit_order(
symbol=‘SPY’,
qty=1,
side=‘sell’,
type=‘trailing_stop’,
trail_percent=4.0,
time_in_force=‘day’,
)

Expected Behavior

I expect the order to fill and the trailing stop to be above the current price.

SDK Version I encountered this issue in

v2

Steps To Reproduce

in juptyer notebook on web input and through vscode.

Filled out the Steps to Reproduce section?

  • I have entered valid steps to reproduce my issue or have attached a minimally reproducible case in code that shows my issue happening; and understand that without this my issue will be flagged as invalid and closed after 30 days.

Anything else?

no

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions