Closed andferno closed 3 years ago
Hey @andferno
you have mentioned that API limit affects Web GUI refresh rate because of max credit reached
API limit does not impact Web GUI as it is completely separated.
But you are also using Websockets that have different limits (24h session and 5 requests per second).
Binance Websocket does not have a limit except a maximum stream which is not our case. Refer: https://github.com/binance/binance-spot-api-docs/blob/master/web-socket-streams.md#websocket-limits
Sometimes I see currency rising on Binance and the Web GUI stuck in an older position when a perfect selling price is reached.
Ok, let me explain
trailingTrade
will retrieve candle cache which is saved from WebSocket - https://github.com/chrisleekr/binance-trading-bot/blob/feature-monitoring-simultaneously/app/cronjob/trailingTrade/step/get-indicators.js#L46You can see there are some gaps between the live price and the timing when it is calculated. It's in fact almost instant (less than 1 sec, max 5 secs gap). But when you see the price in the frontend, that is definitely old data, because that is after processing.
See the below screenshot of my bot. It is also old price.
I really love this bot and would be happy to improve it..
Definitely, if I can make it faster, that would be great.
Wow! Very detailed information of the process, thank you. It's very simple and optimized.
What I was suffering is that currency price is stuck for more than 30 seconds (sometimes minutes) and selling opportunities are lost.
I'll try to give some ideas, but can't assure any good result. I'm not so good at this.
@andferno
If your question is answered, let's close the issue.
@chrisleekr , you have mentioned that API limit affects Web GUI refresh rate because of max credit reached. But you are also using Websockets that have different limits (24h session and 5 requests per second). So I would be happy understanding how Websockets are used to minimize the impact of refreshing in Web GUI refresh. Sometimes I see currency rising on Binance and the Web GUI stuck in an older position when a perfect selling price is reached.
Please explain the logic under API/Websockets usage to be able to help into that matter. I really love this bot and would be happy to improve it..
Thanks.