wrapper.api.NewBookTickerService undefined and wrapper.api.NewPriceChangeStatsService undefined
Megavolv opened this issue · 5 comments
Hello!
I can't compile app.
golang/src/github.com/saniales/golang-crypto-trading-bot/exchanges/binance.go:191:35: wrapper.api.NewBookTickerService undefined (type *binance.Client has no field or method NewBookTickerService)
golang/src/github.com/saniales/golang-crypto-trading-bot/exchanges/binance.go:209:37: wrapper.api.NewPriceChangeStatsService undefined (type *binance.Client has no field or method NewPriceChangeStatsService)
Can you fix it?
It seems that the binance library has been updated and the bot does not work anymore. I will check it
This is not related directly to binance
itself, the imported library which is not directlybinance
https://github.com/adshao/go-binance/releases
had a mayor update to implement a v3
of binance api rest endpoints.
If you checkout 1.1.2
in the above library, you be able to compile again.
aka
cd $GPATH/src/github.com/adshao/go-binance;
git checkout 1.1.2;