The Soviet union and then Russia regularly engaged in spy swaps with the West (even if a recent trend seems to be to "get them good" even after the swap, at least on select occasions.) But historically they did these spy swaps.
Did China do the same? The fairly recent execution en block of "CIA assets" in their country seems to suggest China doesn't do spy swaps. Is that the case, historically?