2
0

order.go 650 B

12345678910111213141516171819202122232425262728293031323334
  1. package sentio
  2. import "time"
  3. type Order interface {
  4. Market() string
  5. AccountId() string
  6. GetId() string
  7. GetCreatedAt() time.Time
  8. GetUpdatedAt() time.Time
  9. // HasReplacedBy The order ID that this order was replaced by
  10. HasReplacedBy() *string
  11. // HasReplaced The order ID that this order replaces
  12. HasReplaced() *string
  13. // GetLegs an array of Order entities associated with this order
  14. GetLegs() []Order
  15. GetSymbol() string
  16. GetAction() OrderAction
  17. GetTimeInForce() TimeInForce
  18. GetSize() float64
  19. GetEntryPrice() float64
  20. GetExitPrice() float64
  21. GetStopLossPrice() *float64
  22. GetPnL() float64
  23. GetCurrency() string
  24. GetStatus() string
  25. }