saniales / golang-crypto-trading-bot

A golang implementation of a console-based trading bot for cryptocurrency exchanges

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`AddCustomStrategy` function is undefined

inigosola opened this issue · comments

The example in Readme.me file does not work.

package main

import bot "github.com/saniales/golang-crypto-trading-bot/cmd"

func main() {
	bot.AddCustomStrategy(examples.MyStrategy)
	bot.Execute()
}

AddCustomStrategy function is undefined.

./main.go:6:6: undefined: bot.AddCustomStrategy

Try

package main

import (
	bot "github.com/saniales/golang-crypto-trading-bot/cmd"
	"github.com/saniales/golang-crypto-trading-bot/strategies"
)

func main() {
	strategies.AddCustomStrategy(examples.MyStrategy)
	bot.Execute()
}

Than you!