Green’s Dictionary of Slang

rap v.2

[? SE rap, to seize or snatch]

[late 17C–early 19C] to swap, to exchange, to barter.