adshao / go-binance

A Go SDK for Binance API
MIT License
1.54k stars 676 forks source link

Use binance.WsUserDataServe does nothing #333

Closed pdemaio closed 2 years ago

pdemaio commented 2 years ago

Hi I tried the example from the readme (where wsHandler has wrong parameter as it's expected to be *binance.WsUserDataEvent) but nothing happens. I tried with prod and testnet creating trades and cancelling them o trying to get filled (by TP or SL) and no event was reported by my app. Am I missing something? does the example needs something else?

pdemaio commented 2 years ago

I found out I was using the wrong WS, futures WS is called differently (found digging around pr's as is not documented).