add web api for trade