added authentication and TradeAPI