separate trading212 logic
This commit is contained in:
18
internal/record.go
Normal file
18
internal/record.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package internal
|
||||
|
||||
import (
|
||||
"math/big"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Record interface {
|
||||
Symbol() string
|
||||
Price() *big.Float
|
||||
Quantity() *big.Float
|
||||
Direction() Direction
|
||||
Timestamp() time.Time
|
||||
}
|
||||
|
||||
type RecordReader interface {
|
||||
ReadRecord() (Record, error)
|
||||
}
|
||||
Reference in New Issue
Block a user