Skip to content

Commit

Permalink
Merge pull request #88 from alpacahq/support_trailing_stop_in_replace…
Browse files Browse the repository at this point in the history
…_order

Add support for replacing a trailing_stop order
  • Loading branch information
Shlomi Kushchi authored Aug 24, 2020
2 parents 88fd96e + 50ffca5 commit 8da0a94
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions alpaca/entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ type ReplaceOrderRequest struct {
Qty *decimal.Decimal `json:"qty"`
LimitPrice *decimal.Decimal `json:"limit_price"`
StopPrice *decimal.Decimal `json:"stop_price"`
Trail *decimal.Decimal `json:"trail"`
TimeInForce TimeInForce `json:"time_in_force"`
ClientOrderID string `json:"client_order_id"`
}
Expand Down Expand Up @@ -325,8 +326,8 @@ type OrderClass string

const (
Bracket OrderClass = "bracket"
Oto OrderClass = "oto"
Oco OrderClass = "oco"
Oto OrderClass = "oto"
Oco OrderClass = "oco"
Simple OrderClass = "simple"
)

Expand Down

0 comments on commit 8da0a94

Please sign in to comment.