init trade thread