feat(perps): show hip-3 markets without volume in dev #21986
Merged
+149
−61
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Description
This PR fixes an issue where HIP-3 markets (stocks and commodities) with $0.00 volume were incorrectly displayed in the Market List View and Home View.
What was the problem?
What is the solution?
Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/TAT-1957
Manual testing steps
Screenshots/Recordings
Before
Markets with $0.00 volume were visible in the Stocks tab and other HIP-3 market tabs.
After
Only markets with valid volume data are displayed. Zero-volume markets are filtered out consistently.
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Overhauls Perps Markets and Home with searchable/sortable tabs, consistent zero‑volume filtering, bulk Close/Cancel All flows, market hours banner/tooltip, refined leverage priority, and extensive hook/test updates.
PerpsHomeViewwith positions/orders sections, watchlist, market type sections, navigation card, and bottom sheets for Close All/Cancel All.PerpsMarketListViewwith tabs (All/Crypto/Stocks & Commodities), search header, sorting/filters, and reusablePerpsMarketList/row components.PerpsCloseAllPositionsView/PerpsCancelAllOrdersViewand modal variants; sharedPerpsCloseSummary.PerpsMarketHoursBannerand bottom-sheet tooltip content.usePerpsHomeData,usePerpsMarketListView,usePerpsSearch,usePerpsSorting; consistent zero‑volume filtering moved tousePerpsMarkets(opt‑in viashowZeroVolume).usePerpsCloseAllCalculations,usePerpsCloseAllPositions,usePerpsCancelAllOrdersfor fees/points and execution.usePerpsLiveFillsnow returns{ fills, isInitialLoading }.existingPositionLeverage.Written by Cursor Bugbot for commit c712e48. This will update automatically on new commits. Configure here.