Skip to content

Activating stop orders before it hits the limit price #463

@atakanokan

Description

@atakanokan

Hi,
Especially in volatile situations, I have seen some of my stop orders were run past because the limit price and stop price are the same thus there is a chance that it will not be put on the order book as fast as needed.

Current code:

self.auth_client.place_stop_order(
                product_id = ticker,
                stop_type = stop_type,
                price = price,
                size = size
            )

Looks like place_stop_order doesn't allow to specify different limit_price and price arguments. However place_order method does.
How should I specify the side, price and stop_type and stop_price arguments for the following to make sure they are activated a little bit before to ensure execution (assuming I want the stop to be activated 5$ before the stop price)?

  1. Long position & Stop Loss
  2. Long position & Take Profit
  3. Short position & stop loss
  4. short position & take profit

Any help would be appreciated!

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