built trade init function