New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when listenKey expired get error:json: cannot unmarshal string into Go struct field WsUserDataEvent.E of type int64 #524
Comments
func WsUserDataServe(listenKey string, handler WsUserDataHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error) { when key expired,message:{"e": "listenKeyExpired","E": "1699520437418","listenKey": "eKCFWuorbdKFRW27XzMmVva76epP8F2zSpPrQTlXESDBsQAXFHennNf3A7GsyCqT"} |
binance api problem: {"e": "listenKeyExpired","E": "1699520437418","listenKey": "eKCFWuorbdKFRW27XzMmVva76epP8F2zSpPrQTlXESDBsQAXFHennNf3A7GsyCqT"} {"e":"ORDER_TRADE_UPDATE","T":1699521504258,"E":1699521504260,"o":{"s":"DOGEUSDT","c":"ios_bdoSoCTJC3xJ5mpHM8BK","S":"SELL","o":"LIMIT","f":"GTC","q":"131","p":"0.610000","ap":"0","sp":"0","x":"NEW","X":"NEW","i":34611865748,"l":"0","z":"0","L":"0","n":"0","N":"USDT","T":1699521504258,"t":0,"b":"0","a":"229.188000","m":false,"R":false,"wt":"CONTRACT_PRICE","ot":"LIMIT","ps":"SHORT","cp":false,"rp":"0","pP":false,"si":0,"ss":0,"V":"NONE","pm":"NONE","gtd":0}} which you would see type of E is different. |
when listenKey expired get error:json: cannot unmarshal string into Go struct field WsUserDataEvent.E of type int64?
about an hour,which code should like this :
doneC, stopC, err := futures.WsUserDataServe(listenKey, func(event *futures.WsUserDataEvent) {
logrus.Info("****receive followed order data:")
logrus.Info(event)
switch event.Event {
case "ORDER_TRADE_UPDATE":
//when listenKey expired,get error:json: cannot unmarshal string into Go struct field WsUserDataEvent.E of type int64
logrus.Error(err)
})
see above code ,what happned?
The text was updated successfully, but these errors were encountered: