Kaynağa Gözat

Market

- refactoring
Alexey Kim 5 ay önce
ebeveyn
işleme
732fa9d02c
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. 5 1
      order.go

+ 5 - 1
order.go

@@ -18,6 +18,8 @@ type Order interface {
 
 	// GetLegs an array of Order entities associated with this order
 	GetLegs() []Order
+	GetStopLoss() *Order
+	GetTakeProfit() *Order
 
 	GetSymbol() string
 	GetAction() OrderAction
@@ -27,7 +29,9 @@ type Order interface {
 	GetEntryPrice() float64
 	GetExitPrice() float64
 
-	GetStopLossPrice() *float64
+	GetLimitPrice() float64
+	GetStopPrice() float64
+
 	GetPnL() float64
 	GetCurrency() string
 	GetStatus() string