apply new api for trade