github上的Goanda用于GoLang中的Oanda API Rest

When I try to install this package:

go get github.com/jasonnfls/goanda

I get this error:

/usr/local/go/bin/src/github.com/jasonnfls/goanda/trade.go:47: cannot use responseObj (type UpdateTradeResponse) as type OrderResponse in return argument

What would be the best way to resolve this?

Anyone have a good solution to this?

The bug in the package appears to be a copy/paste error. In the file trade.go, change the return value on line 20 from OrderResponse to UpdateTradeResponse, then run go install github.com/jasonnfls/goanda.

The file will be in your $GOPATH/src/github.com/jasonnfls/goanda

I submitted a pull request with the fix to the repo owner.

There's a bug in the package. It contains invalid code.

The solution would be to use an older version that isn't broken (if there is one), fix the bug, or get someone else (perhaps the author) to fix the bug.