How can I get all expired symbol of quarterly USD-M Futures?

exchangeInfo only shows current quarterly symbol, e.g. ‘BTCUSDT_220325’
I need to get historical candles of specific quarterly future. Is there any API endpoint from which I can get all expired future symbols?

No. The API does not provide exchange information for expired contracts.