How to get the 30-day average of get_icp_xdr_conversion_rate?

because the cycles minting canister only have get_icp_xdr_conversion_rate

Either collect values daily and in one month you have the value you’re looking for :smiley:
Or just call external resources for that. To get ICP/XDR price you need two prices: ICP/USD and XDR/USD. I believe, both can be queried via http outcalls.