Update everything to use new DataFrame wrapper

This commit is contained in:
Luke I. Wilson
2023-05-14 15:28:02 -05:00
parent 7899f3f509
commit c00a468249
6 changed files with 39 additions and 36 deletions

View File

@@ -9,7 +9,6 @@ import (
"time"
"github.com/go-co-op/gocron"
df "github.com/rocketlaunchr/dataframe-go"
)
// Trader acts as the primary interface to the broker and strategy. To the strategy, it provides all the information
@@ -23,12 +22,12 @@ type Trader struct {
CandlesToKeep int
Log *log.Logger
data *df.DataFrame
data *DataFrame
sched *gocron.Scheduler
idx int
}
func (t *Trader) Data() *df.DataFrame {
func (t *Trader) Data() *DataFrame {
return t.data
}