mirror of
https://github.com/lukewilson2002/autotrader.git
synced 2025-08-02 13:19:32 +00:00
Fixed so many IndexedSeries bugs...
This commit is contained in:
18
cmd/oanda_testing.go
Normal file
18
cmd/oanda_testing.go
Normal file
@@ -0,0 +1,18 @@
|
||||
//go:build ignore
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/fivemoreminix/autotrader/oanda"
|
||||
)
|
||||
|
||||
func main() {
|
||||
broker := oanda.NewOandaBroker(os.Getenv("OANDA_TOKEN"), os.Getenv("OANDA_ACCOUNT_ID"), true)
|
||||
candles, err := broker.Candles("EUR_USD", "D", 100)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
println(candles.String())
|
||||
}
|
Reference in New Issue
Block a user