renamed direction to side

This commit is contained in:
2025-11-10 14:04:18 +00:00
parent 4686e36501
commit dca43fe014
7 changed files with 102 additions and 102 deletions

28
internal/side.go Normal file
View File

@@ -0,0 +1,28 @@
package internal
type Side uint
const (
SideUnknown Side = iota
SideBuy
SideSell
)
func (d Side) String() string {
switch d {
case SideBuy:
return "buy"
case SideSell:
return "sell"
default:
return "unknown"
}
}
func (d Side) IsBuy() bool {
return d == SideBuy
}
func (d Side) IsSell() bool {
return d == SideSell
}