Subscription issue with retrieving historical results

Hi All,

I’m trying to get back into algorithmic trading with Alpaca, and as playing around with the basic version of the API (I am subscribed). In the basic plan description, it says it has 5 years of historical data, yet when I try to query the historical data, it tells me "subscription does not permit querying recent SIP data (see call below). Is there another way I should be querying historical data? Thanks!

  var historicalBarsRequest = new HistoricalBarsRequest(symbol, DateTime.UtcNow.AddDays(-30), DateTime.UtcNow, BarTimeFrame.Day);
  var historicalBars = await client.ListHistoricalBarsAsync(historicalBarsRequest); - error here.

Never mind. I figured it out. Looks like I can’t get anything more real-time than 15 min (booo!!). They used to have a 9.99 a month subscription that included real-time. 99 is just too much for a hobby trader like myself.

So how did you fix your query to get some data?

ah - need to specify the exchange in the data call (use IEX vs SIP). Here is what mine looks like:
[your_df_name] = api.get_bars(‘SPY’, ‘1D’, start1,end1, feed=‘iex’).df

the addition of the ", feed=‘iex’ " fixed this issue for me