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

@@ -3,8 +3,6 @@ package autotrader
import (
"errors"
"time"
df "github.com/rocketlaunchr/dataframe-go"
)
type OrderType string
@@ -53,7 +51,7 @@ type Position interface {
type Broker interface {
// Candles returns a dataframe of candles for the given symbol, frequency, and count by querying the broker.
Candles(symbol string, frequency string, count int) (*df.DataFrame, error)
Candles(symbol string, frequency string, count int) (*DataFrame, error)
MarketOrder(symbol string, units float64, stopLoss, takeProfit float64) (Order, error)
NAV() float64 // NAV returns the net asset value of the account.
// Orders returns a slice of orders that have been placed with the broker. If an order has been canceled or