Skip to content

Subscription does not permit querying recent SIP data #27

Open
@AlexCatarino

Description

Expected Behavior

Does not raise the "Subscription does not permit querying recent SIP data" error

Actual Behavior

Exception with error:
RestClientErrorException: subscription does not permit querying recent SIP data
it happens due to a historical data request on initialize for example, using warm_up_indicator.

Potential Solution

N/A

Reproducing the Problem

Deploy the following algorithm with Alpaca data:

from AlgorithmImports import *
class CryingYellowGreenChicken(QCAlgorithm):
    def initialize(self):
        self.set_start_date(2025, 1, 14)
        self.spy = self.add_equity("SPY", Resolution.MINUTE)
        rsi = self.rsi(self.spy.symbol, 100, resolution=Resolution.DAILY)
        self.warm_up_indicator(self.spy.symbol, rsi, Resolution.DAILY)

Checklist

  • I have completely filled out this template
  • I have confirmed that this issue exists on the current master branch
  • I have confirmed that this is not a duplicate issue by searching issues
  • I have provided detailed steps to reproduce the issue

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions