From 50ffca566083d2fc7564b98b243bf1948079efc8 Mon Sep 17 00:00:00 2001 From: Shlomi Kushchi Date: Mon, 24 Aug 2020 17:15:52 +0300 Subject: [PATCH] add support for replacing a trailing_stop order. --- alpaca/entities.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/alpaca/entities.go b/alpaca/entities.go index e380216..db1f5ed 100644 --- a/alpaca/entities.go +++ b/alpaca/entities.go @@ -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"` } @@ -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" )