This depends. Does the broker API use a high-level "trades" abstraction or does it only process "orders"?