A novel two-level approach is proposed to schedule aggregated thermal loads. Revenues for prosumers in the intraday electricity market are maximized. An energy-balanced model is established for aggregated scheduling. The imbalanced energy and capacity are considered to be reduced at the same time. The effects of imbalance prices, heterogeneity and forecast errors are studied.