What is the difference between subscribe_quotes and subscribe_trades? I’m assuming quotes are what Alpaca is quoting to its clients and trades are actual transactions that have occurred?
https://alpaca.markets/docs/python-sdk/api_reference/data/stock/live.html
I was having issues coding something and realized BRK.B had a 27.5 point spread using subscribe_quotes method. This is almost 10% of its stock price and this stock is highly liquid. This makes no sense to me.
subscribe_quotes(handler: Callable, *symbols ) → None
Subscribe to quote data for symbol inputs
PARAMETERS:
- handler (Callable) – The coroutine callback function to handle live quote data
- *symbols – Variable string arguments for ticker identifiers to be subscribed to.
subscribe_trades(handler: Callable, *symbols ) → None
Subscribe to trade data for symbol inputs
PARAMETERS:
- handler (Callable) – The coroutine callback function to handle live trade data
- *symbols – Variable string arguments for ticker identifiers to be subscribed to.