It is normal for the market data farm connection indicator to stay red until a market data request is made from the API application. The farms can also turn red after extended inactivity.
What does the red data indicator in the IB Gateway mean?
Powered by IBot
How do I obtain historical data via API?
Can I use the TWS API with free trial accounts?
Market data farm/s disconnected in TWS. What should I do?
What are the differences between connecting via TWS API and FIX/CTCI?