Fetching historical data using the broker API