TWS of cpp API