Hi, there is currently a bug in the API where the account_update positions return “ZERO” instead of the actual number, only on round hours. (minute and seconds = 0)
sub_client.subscribe_user_data_event(listen_key, UserDataCallback, error)
In this section:
elif data_type == SubscribeMessageType.PAYLOAD:
if(event.eventType == “ACCOUNT_UPDATE”):
You can see here that position was .639, then ZERO at 12:00:00 and then .649 again after the next update
2020/05/18 11:59:52 - BTCUSDT: 0.649 ,
2020/05/18 11:59:54 - BTCUSDT: 0.639 ,
2020/05/18 12:00:00 - BTCUSDT: 0
2020/05/18 12:00:22 - BTCUSDT: 0.649 ,
2020/05/18 12:00:33 - BTCUSDT: 0.659 ,
and Here:
2020/05/17 11:59:26 - BTCUSDT: 0.17
2020/05/17 11:59:32 - BTCUSDT: 0.18
2020/05/17 12:00:00 - BTCUSDT: 0
2020/05/17 12:00:15 - BTCUSDT: 0.17
2020/05/17 12:00:18 - BTCUSDT: 0.16
…and here:
2020/05/17 19:57:29 - BTCUSDT: 0.59 ,
2020/05/17 19:57:30 - BTCUSDT: 0.58 ,
2020/05/17 19:57:45 - BTCUSDT: 0.57 ,
2020/05/17 20:00:00 - BTCUSDT: 0
2020/05/17 20:00:16 - BTCUSDT: 0.56 ,
2020/05/17 20:00:17 - BTCUSDT: 0.55 ,
…and here !
2020/05/18 03:59:45 - BTCUSDT: 0.36
2020/05/18 03:59:54 - BTCUSDT: 0.35
2020/05/18 04:00:00 - BTCUSDT: 0
2020/05/18 04:00:15 - BTCUSDT: 0.34
2020/05/18 04:00:20 - BTCUSDT: 0.35
This bug could really mess up some bots algorithms!!
Oh, one more thing. The Entry Price is ALSO reporting 0 instead of the actual entry price.