@pear-protocol/hyperliquid-sdk 0.0.61 → 0.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -579,7 +579,9 @@ const useHyperliquidNativeWebSocket = ({ address, enabled = true, }) => {
|
|
|
579
579
|
{
|
|
580
580
|
const data = response.data;
|
|
581
581
|
const remapped = {
|
|
582
|
-
mids: Object.fromEntries(
|
|
582
|
+
mids: Object.fromEntries(
|
|
583
|
+
// only support non hip-3 and xyz market
|
|
584
|
+
Object.entries(data.mids || {}).filter(([k, v]) => !k.includes(':') || k.includes('xyz:')).map(([k, v]) => [toDisplaySymbol(k), v]))
|
|
583
585
|
};
|
|
584
586
|
setAllMids(remapped);
|
|
585
587
|
}
|