refactor price broker to do thread sleep