useMarkets hook extends the [useMarketsStream] hook with additional functionality like saving recent views and adding to favorites.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Hook extending useMarketsStream with favorites, recent views, and history tracking.
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
}
const [data, { addToHistory, favoriteTabs, updateFavoriteTabs, updateSymbolFavoriteState }] =
useMarkets(MarketsType.ALL);