How does it dynamicly change?

How does op code for buying/selling trade dynamicly change? How does my client or server know that opcode is for buying/selling trade anyone has ideas about it?