Hyperliquid_Copy_Trader icon indicating copy to clipboard operation
Hyperliquid_Copy_Trader copied to clipboard

Doesn't return markets for other clearing houses

Open NotoriousPyro opened this issue 7 months ago • 4 comments

This trader: https://hyperdash.com/address/0x303729b53e97d3f43a1bd13e7f4c6bf77ae41e83

You can see they are opening and closing trades.

However, the bot does not see the open trades. I traced this down to being the fact the clearinghouseState does not return other perps markets, only hyperliquid's.

I think instead, a functionality to subscribe to allDexsClearinghouseState is needed: https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions#subscription-messages

NotoriousPyro avatar Apr 07 '26 18:04 NotoriousPyro

Will look into this 👍

MaxIsOntoSomething avatar Apr 09 '26 12:04 MaxIsOntoSomething

@MaxIsOntoSomething @NotoriousPyro I added this functionality to keep track of perp positions across all DEXs and submitted a PR #5

hacheng0193 avatar May 10 '26 09:05 hacheng0193

@hacheng0193 will merge later today when I am on PC thanks for your work <3

MaxIsOntoSomething avatar May 10 '26 09:05 MaxIsOntoSomething

@hacheng0193 merged ;)

MaxIsOntoSomething avatar May 11 '26 11:05 MaxIsOntoSomething