finish CTPTrader functions