Restore deprecated trade api
Fixes #4500