Last quote spread and BBO

Bid and Asks are super wide like $4 on EW below. How do i get a proper best bid/ask? Using Alpaca mkt data.

Examples below

EW price Quote({ ‘askexchange’: 15,
‘askprice’: 84.33,
‘asksize’: 1,
‘bidexchange’: 17,
‘bidprice’: 80.1,
‘bidsize’: 3,
‘timestamp’: 1598370981088000000}) 2020-08-25 11:56:21.088000-04:00

MSFT price Quote({ ‘askexchange’: 17,
‘askprice’: 215.2,
‘asksize’: 1,
‘bidexchange’: 17,
‘bidprice’: 214.87,
‘bidsize’: 1,
‘timestamp’: 1598370947369000000}) 2020-08-25 11:55:47.369000-04:00

1 Like

Same question. Anyone can answer? Is Alpaca support dead?

Are you receiving the issue on historical quotes on the same time period or in latest quotes?

@rahul Hi Rahul. It’s the real time quotes. As mentioned in the other thread, I’ve got BIG loss because of the HUGE spread gap returned from the Stream API. Please refer to the screenshot. Is there any way to work around this please?

Hi rock,

I’ve been investigating your issue - I think in the meantime, it’s best if you email support@alpaca.markets describing your issue.

I generally do not reply to posts this old, but there have been several links to this, and I wanted to circle back to resolve the issue.

The fundamental problem is that these individuals were fetching IEX data and not full market SIP data. IEX quotes only reflect the best quotes from the IEX exchange. It is accurate, but it does not represent the full market. SIP quotes, on the other hand, are full market National Best Bid Offer (NBBO) quotes consolidated across all exchanges.

IEX data should not be used for live trading decisions. It is provided primarily for testing when one does not have a market data plan that provides access to real-time SIP data.

The difference can be seen by querying quotes with feed=iex vs feed=sip. The REST historical quotes endpoint returns the same data that is streamed. The following query with feed=iex returns the same WYNN quotes that were posted above. Notice the ask_exchange and bid_exchange are all “V”. That is the IEX exchange code. All these quotes are from that single exchange.

[https://data.alpaca.markets/v2/stocks/quotes?symbols=WYNN&start=2022-11-28T11%3A15%3A58.353690-05%3A00&end=2022-11-28T11%3A15%3A58.400000-05%3A00&feed=iex

Querying quotes for that same timeframe, but with feed=sip returns the actual NBBO full market quotes at the time. Notice that the ask_exchange and bid_exchange are different.

[https://data.alpaca.markets/v2/stocks/quotes?symbols=WYNN&start=2022-11-28T11%3A15%3A58.353690-05%3A00&end=2022-11-28T11%3A15%3A58.400000-05%3A00&feed=sip

The Alpaca market data is correct. Traders should stream data from the /sip endpoint or specify feed=sip in REST calls to ensure they are getting full market NBBO quotes. Otherwise, the data is not full market and can be quite misleading.