mirror of
https://github.com/lukewilson2002/autotrader.git
synced 2025-06-15 00:13:51 +00:00
19 lines
321 B
Go
19 lines
321 B
Go
//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())
|
|
}
|