Aded methods to retrive trade history and depth from the database.