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?
I have just opened my account. Why can't I see market data?
Can I use the TWS API with free trial accounts?
Market data farm/s disconnected in TWS. What should I do?