bitfinexcom / bitfinex-api-go

BITFINEX Go trading API - Bitcoin, Litecoin, and Ether exchange
https://www.bitfinex.com/
MIT License
309 stars 220 forks source link

Fix type errors of v2 public examples #52

Closed hantuzun closed 7 years ago

hantuzun commented 7 years ago

https://github.com/bitfinexcom/bitfinex-api-go/blob/master/examples/v2/ws-book/main.go#L20 https://github.com/bitfinexcom/bitfinex-api-go/blob/master/examples/v2/ws-book/main.go#L24

The lines above causes he following errors:

./x.go:20: cannot use func literal (type func(context.Context, interface {})) as type bitfinex.handlerT in argument to c.Websocket.AttachEventHandler
./x.go:24: cannot use func literal (type func(context.Context, interface {})) as type bitfinex.handlerT in argument to c.Websocket.AttachPublicHandler