separate trading212 logic

This commit is contained in:
2025-11-10 13:38:49 +00:00
parent 06dc25ae88
commit 4686e36501
5 changed files with 359 additions and 0 deletions

18
internal/record.go Normal file
View 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)
}