Skip to content

Comments

Added stop and trailing stop (limit) order templates with validation#322

Open
pssolanki111 wants to merge 2 commits intoalexgolec:masterfrom
pssolanki111:master
Open

Added stop and trailing stop (limit) order templates with validation#322
pssolanki111 wants to merge 2 commits intoalexgolec:masterfrom
pssolanki111:master

Conversation

@pssolanki111
Copy link
Contributor

  • equity stop
  • equity stop limit
  • equity trailing stop
  • equity trailing stop limit
  • Basic validation in the templates.
  • relevant docs changes

raise ValueError('When using percent, trailing offset must be >=1 and <=99')

return (OrderBuilder()
.set_order_type(OrderType.TRAILING_STOP)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.set_order_type(OrderType.TRAILING_STOP)
.set_order_type(OrderType.TRAILING_STOP_LIMIT)

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

Successfully merging this pull request may close these issues.

2 participants