How Real-Time Data Ensures Market Safety for AI Agents in DeFi