trader: fix buy sequencing