The useMarkets hook extends the [useMarketsStream] hook with additional functionality like saving recent views and adding to favorites.

enum MarketsType {
  FAVORITES = 0,
  RECENT = 1,
  ALL = 2
}

Example

const [data, { addToHistory, favoriteTabs, updateFavoriteTabs, updateSymbolFavoriteState }] =
  useMarkets(MarketsType.ALL);