What is the cause
I created a bot based on my trading strategy and what it does to scan 26 assets in 1 second every 6 seconds and send trading signals to my frontend where I manually wait for my strategy to play out at the beginning of the new candle and then enter the trade.
It would normally scan the assets and I saw this in the log, but at some point I would see error message.
This didn't work for me as I kept getting false signals. Its backend was hosted on railway and frontend on vercel.
My questions
- What could possibly have caused this
- Could it be that I made it scan too many assets per second, if yes what's the max assets per second you recommend I make the bot to scan?
Normally the maximum assets is capped at 4, but if youre to fetch history (WIP, not very stable atm) and/or unsubscribe each time- That should work.
Thanks for your response, but I want to know exactly what you mean. You said max assets is 4.
Do you mean the max assets it can handle per time or long term is 4?
Secondly, if I choose to make the bot scan for signals on assets where it scans 1 asset per second then unsubscribes and goes to the next one. Would it be most likely to work and be sustainable?
The subscribe module supports up to 4 assets at the same time as pocket option only sends data for the last 4 assets you subscribed to.
If you use something like get_candles or history you should be able to work with more assets but as @sixtysixx said, it's not 100% stable yet and may sand data that is not fully sync with the website.
Thanks for your time and response.
Last question. With the "subscribe and unsubscribe" thing I want to implement with my bot.
How many seconds is realistic enough for subscribing to ONE ASSET+sending data based on my strategy with simple indicator calculation+ unsubscribing from one asset.
if you still need help please open another issue or contact us at https://chipatrade.com/support