2
0

order.go 619 B

12345678910111213141516171819202122232425262728293031
  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. GetPrice() float64
  20. GetStopLossPrice() *float64
  21. GetPnL() float64
  22. GetCurrency() string
  23. GetStatus() string
  24. }