You can now use the new endpoint we have and estimate fee for Bitcoin. This endpoint use estimate smart fee functionality from Bitcoin node.
You can provide (“UNSET” “ECONOMICAL” “CONSERVATIVE”) for estimateMode and a number from 1 to 1008 for confTarget.
You will get feeRate and blocks.