How to use both historical and Trading api in single app