Websocket data giving really strange repetitions

Hello,
I’m having a problem with streaming the websocket data for the “ask price”.

I’m able to authenticate and connect to the websocket fine, and I’m able to stream data and parse the data fine, but the data itself seems really buggy.

I had the websocket print a long snippet of just the ask price data, which I’ve pasted below. In this example, you can see that that it’s giving good current data in the $110.81~$110.89 range, which is the same ask price that I saw on Tradingview and Yahoo. The problem is that it keeps oscillating up to $11.41 for some reason, which seems like it shouldn’t be happening at all. I’ve marked most of the instances of this below.

The annoying part is that time I run the websocket, it oscillates up to a different number, not just $11.41, and it’s sometimes as much as $2 or $3 above what the real ask price is.

If it helps, I’m just subscribing to “NVDA” stock quotes and I only have a free account, so I’m using iex.

I’m still new to all of this. Is this just because I’m using iex?

Example:
current ask price is 110.84
current ask price is 110.84
current ask price is 110.84
current ask price is 110.84
current ask price is 110.84
current ask price is 110.81
current ask price is 110.84
current ask price is 110.84
current ask price is 110.84
current ask price is 110.84
current ask price is 110.84
current ask price is 110.84
current ask price is 110.84
current ask price is 110.84
current ask price is 110.85
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 110.86
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 110.87
current ask price is 111.41
current ask price is 111.41
current ask price is 110.86
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 110.84
current ask price is 111.41
current ask price is 110.82
current ask price is 110.85
current ask price is 110.85
current ask price is 110.83
current ask price is 110.83
current ask price is 110.85
current ask price is 110.85
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.87
current ask price is 110.87
current ask price is 110.87
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 110.86
current ask price is 110.86
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 110.88
current ask price is 110.89
current ask price is 110.89
current ask price is 110.87
current ask price is 110.86
current ask price is 110.89
current ask price is 110.89
current ask price is 110.89
current ask price is 110.89
current ask price is 110.89
current ask price is 110.89
current ask price is 110.86
current ask price is 110.89
current ask price is 110.86
current ask price is 110.89
current ask price is 110.89
current ask price is 110.89
current ask price is 110.89
current ask price is 110.89
current ask price is 110.89
current ask price is 110.89
current ask price is 110.89
current ask price is 110.87
current ask price is 110.89
current ask price is 110.89
current ask price is 110.89
current ask price is 110.89
current ask price is 110.9
current ask price is 110.9
current ask price is 110.9
current ask price is 110.87
current ask price is 110.9
current ask price is 110.87
current ask price is 110.9
current ask price is 110.87
current ask price is 110.87
current ask price is 110.9
current ask price is 110.86
current ask price is 110.9
current ask price is 110.9
current ask price is 110.86
current ask price is 110.9
current ask price is 110.86
current ask price is 110.86
current ask price is 110.9
current ask price is 110.86
current ask price is 110.9
current ask price is 110.85
current ask price is 110.9
current ask price is 110.9
current ask price is 110.85
current ask price is 110.9
current ask price is 110.9
current ask price is 110.9
current ask price is 110.9
current ask price is 110.9
current ask price is 110.9
current ask price is 110.9
current ask price is 110.84
current ask price is 110.9
current ask price is 110.84
current ask price is 110.84
current ask price is 110.9
current ask price is 110.84
current ask price is 110.84
current ask price is 110.9
current ask price is 110.84
current ask price is 110.9
current ask price is 110.9
current ask price is 110.9
current ask price is 110.9
current ask price is 110.9
current ask price is 110.85
current ask price is 110.9
current ask price is 110.87
current ask price is 110.87
current ask price is 110.87
current ask price is 110.87
current ask price is 110.84
current ask price is 110.87
current ask price is 110.84
current ask price is 110.84
current ask price is 110.87
current ask price is 110.87
current ask price is 110.87
current ask price is 110.87
current ask price is 110.87
current ask price is 110.87
current ask price is 110.87
current ask price is 110.86
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 110.86
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 110.85
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 110.84
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 110.86
current ask price is 110.86
current ask price is 110.87
current ask price is 110.87
current ask price is 110.87
current ask price is 110.87
current ask price is 110.87
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 110.84
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 110.83
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 110.85
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 110.85
current ask price is 111.41
current ask price is 111.41
current ask price is 110.88
current ask price is 110.85
current ask price is 110.88
current ask price is 110.88
current ask price is 110.88
current ask price is 110.88
current ask price is 110.88
current ask price is 110.88
current ask price is 110.88
current ask price is 110.88
current ask price is 110.88
current ask price is 110.87
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.86
current ask price is 110.87
current ask price is 110.87
current ask price is 110.87
current ask price is 110.87
current ask price is 110.85
current ask price is 110.85
current ask price is 110.87
current ask price is 110.87
current ask price is 110.87
current ask price is 110.84
current ask price is 110.84
current ask price is 110.84
current ask price is 110.87
current ask price is 110.82
current ask price is 110.81
current ask price is 110.87
current ask price is 110.87
current ask price is 110.87
current ask price is 110.81
current ask price is 110.87
current ask price is 110.87
current ask price is 110.79
current ask price is 111.41
current ask price is 110.78
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 110.78
current ask price is 111.41
current ask price is 110.78
current ask price is 111.41
current ask price is 111.41
current ask price is 110.79
current ask price is 110.79
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 111.41
current ask price is 110.81
current ask price is 110.81

@nwda The reason you see such wide swings in quotes is because you are only subscribed to the free Basic data plan and connecting to the wss://stream.data.alpaca.markets/v2/iex feed. That only streams quotes from the IEX exchange which are not full market NBBO quotes and can vary quite a bit. The primary use case for the IEX data is testing and debug. There is more info on the difference between IEX and SIP data here in the docs.