mirror of
https://github.com/lukewilson2002/autotrader.git
synced 2025-08-02 21:19:33 +00:00
Working on trading and backtesting loop
This commit is contained in:
@@ -57,6 +57,8 @@ type Broker interface {
|
||||
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.
|
||||
OpenOrders() []Order
|
||||
OpenPositions() []Position
|
||||
// Orders returns a slice of orders that have been placed with the broker. If an order has been canceled or
|
||||
// filled, it will not be returned.
|
||||
Orders() []Order
|
||||
|
Reference in New Issue
Block a user