building algo trading bots on @HyperliquidX

0x100
bL●CKY retweeted
Most tech giants in the 2000s built their infrastructure and product as one entangled unit. Amazon had the foresight to separate out AWS as an API layer, of which Amazon retail was the first of many users. Today, AWS generates more profit than all of Amazon's other business lines combined. Hyperliquid is built with the same philosophy. Housing all of finance requires thoughtfully designed, open financial primitives. Each primitive should obey the Unix principle of "Do one thing and do it well." Talented builders then have the foundation to chain these together to create magical applications. HyperCore borrowing is an example to highlight this philosophy in action. Most other platforms implement portfolio margin by marking an account's collateral to market value with an LTV haircut, creating borrowed assets without an explicit lender. This system is simpler to implement, but misses a golden opportunity for composability. Hyperliquid instead begins with a borrow/lend protocol on HyperCore. Every borrowed asset is sourced from a supplier, so risk is isolated within the borrow/lend primitive instead of platform-wide. HyperCore's portfolio margin system is implemented as an orchestration layer that composes borrow/lend, with other primitives such as perps, spot, and outcome trading. This decomposition has several nice corollaries: 1. Today's announcement of manual borrowing is not a new feature, but simply an extension of the underlying primitive. Borrowers on day one have access to 400M and growing of supplied liquidity. 2. Portfolio margin users earn interest on their idle stablecoin collateral. This is not a new feature, but a natural byproduct of composing trading with lending. 3. System safety is easier to reason about when perp and borrow/lend margining are independent. In the same way that math theorems almost prove themselves when the right abstractions are defined, composable designs just feel right.
Manual borrows are live on Hyperliquid Portfolio margin and manual borrows use the same underlying HyperCore infrastructure, with $269M in assets borrowed today. Users can supply HYPE and BTC as collateral to borrow quote assets (USDC and USDT). Borrowed quote assets pay interest, and supplied quote assets earn interest, with rates set by utilization.
439
589
3,494
333,314
bL●CKY retweeted
Payward 🤝 @HyperliquidX We're building permissioned Hyperliquid HIP-3* markets for US clients.
361
523
2,773
607,911
Congrats to the big banks on lobbying to kill Clarity. Now the Genius ACT remains the law of the land and crypto exchanges can offer yield. Thanks!
245
859
9,940
244,385
it’s been perplexing seeing so many on CT dunking on loracle’s $PONS short. it seemed directionally correct to me. regardless of your opinion on launchpads, the level of froth was insanely high.
1
128
bL●CKY retweeted
Ok yeah I just got hacked and lost all my funds. Fuck.
918
94
3,020
544,782
bL●CKY retweeted
I hope that we will be able trade Robincat on @RobinhoodApp!
Introducing Robincat! I noticed this guy on Robinhood’s website yesterday. He’s a Pixelated Cat in a Robinhood Outfit. Henceforth, known as Robincat. @RobinhoodApp posted about it today!
34
60
243
14,846
bL●CKY retweeted
JUST IN: 🇺🇸 SEC Chair Paul Atkins says he expects the Crypto Clarity Act to pass this month.
417
1,383
12,192
915,062
bL●CKY retweeted
If buying digital games is “obviously” not owning, then why is it the same price as physical games, not less?🚀 A disc can: ✅Be taken anywhere in the world ✅Not tied to an account ✅Can be resold/traded ✅Mostly doesn’t rely on the internet ✅Isn’t region locked ✅Can be found in wide range of prices ✅The best way to preserve media So again, if a digital-only game is “a license”, then maybe price those at $30-40 since the convenience and safety of having a disc is worth far more. NO DISC 💿 NO BUY
152
520
2,991
69,552
bL●CKY retweeted
From the moment we started accepting Bitcoin payments, Steak n Shake has produced the best same-store sales in the fast food industry. Bitcoiners continue to help our business. We have never seen an allegiance as strong as Bitcoin holders'. The increased business and savings have helped us reinvest in food quality. Steak n Shake is a Bitcoin company. 🚀
137
319
3,517
104,615
bL●CKY retweeted
🗣️ AI jUst kiLled motioN dEsigNers Meanwhile Apple:
The new Mac mini is here. Small in size. Big on performance. From everyday productivity to all things AI, it can help you do it all.
61
330
5,075
347,304
Vision board: 1. Strong bipartisan vote on CLARITY Sep 15th 2. Uptober 3. Next crypto bull run begins Just as the prophecy foretold
748
1,600
11,836
954,457
Hyperliquid.
849
1,761
11,010
3,958,893
bL●CKY retweeted
Someone recently shared this paper with me, which rigorously studies the execution improvement of visible TWAPs on Hyperliquid: "Trading in the Sunshine or in the Shade: Market Impact and Adverse Selection on Hyperliquid," by Davide Barone and Fabrizio Lillo. In physics, theorists can say all they want, but the case isn't closed until an experimentalist comes with the cold hard data. So thank you to the authors of this paper for their hard work! The paper demonstrates that liquidity net tightens as onchain TWAPs surface, improving the average execution of the TWAP order. This has been a deeply personal question for me. Even before building Hyperliquid, I've defended from first principles that transparent trading ought to improve execution for non-toxic flow. This is a corrollary of the efficient market hypothesis, but the amount of pushback always surprised me. I've quote tweeted a previous post where I make the argument in detail. Transparency and equal access bring improved execution over traditional private venues. It's an honor to build with everyone to upgrade the financial system with onchain technology.
Thank you to everyone who took the time to thoughtfully respond to my post on transparent markets. I understand that the thesis is controversial and that Hyperliquid is at a new frontier as the first fully transparent order book venue of its scale. I could well be mistaken, and welcome the continuous dialogue on market structure innovation. However, many criticisms I saw stemmed from misunderstandings, with some points actually supporting transparent systems like Hyperliquid. Market structure is notoriously counterintuitive, and novel approaches often challenge established paradigms, leading to understandable skepticism. For example, Hyperliquid pioneered protocol-level cancel prioritization, which has since been implemented by new DEXs and even inspired novel transaction ordering ideas on other blockchains. But at the time, it was considered controversial because it went against traditional market design. I hope that transparent trading will follow a similar path to adoption. I may have been too ambitious trying to cover a complex argument in a single post. Given the specific patterns in criticisms, I'd like to take this opportunity to zoom in on nuances that were missed in the high level summary. What follows is an argument for the final state of efficient markets, with the understanding that Hyperliquid is far from fully efficient today. However, inefficiency is opportunity for those hungry to act. Hopefully this post can also be a call to action for traders, market makers, and builders to translate transparent markets into the highest quality execution venue for all. -- Before delving into specific concerns, let’s crystallize some counterintuitive principles that can form a helpful mental model for market structure: 1. Counterparty principle: Benefits of counterparty curation are misattributed to privacy. Users ultimately care about execution. As studies have shown though, privacy sells. Alternative trading venues often market privacy as the causal feature for improving execution. In reality, the primary source of benefit for users is the screening of counterparties allowed to participate on the venue. Hyperliquid’s market design provides these same benefits more directly and effectively than patchwork solutions. Hyperliquid’s solution also democratizes access, improving execution for all traders large and small. Note that transparency does not mean doxxing. Of course, the exact identity of some traders will fundamentally change the value of the asset. But those traders need not dox themselves, e.g. Warren Buffet can buy BTC and benefit from transparent markets, without tying his identity to his address. 2. Competition principle: Maximizing competition is key to improving execution. Many traders who want to execute in size have some form of alpha. However, the group of informed medium/long term traders in aggregate is difficult to distinguish even over yearly timeframes, as their realized sharpe is too low for statistical significance. It is challenging to distinguish between a trader with solid medium term alpha and a degenerate gambler who got lucky. Therefore, while the desire to minimize market impact and alpha leakage is natural, it’s usually outweighed by the improved liquidity from transparent markets. Traders therefore see improved execution despite revealing their strategy, as market makers are bound to provide liquidity to the entire range of flows in the market. Competition is the bedrock of capital markets and economics. As an example, the Hyperliquid order books support an onchain TWAP. Such a broadcasted intent to trade is in fact a reasonable proxy for optimal execution. Market makers will immediately fill some size so that the earlier TWAP orders receive worse execution, but will also compete to fill the remaining flow. The competition between market makers ensures near optimal overall execution over the course of the TWAP. Any inefficiency in execution is an opportunity for another market maker to undercut the others. 3. Repeated games principle: Execution improves when one-time games become repeated games. Market makers evaluate each decision from a game-theoretical framework, as they are in the business of making positive expectancy bets. On Hyperliquid, every account placing more than one order is playing a repeated game. Repeated games have dramatically different optimal strategies from the one-time games of private venues, and the resulting equilibrium is better execution for everyone other than toxic extractors. Competition is essential for the optimal market marker strategy to benefit the end user, which is amplified by the next principle. 4. Full transparency principle: Benefits from transparency are non-linear and only manifest when transparency is at the system level. When optimizing for execution, “the system knows” > “no one knows” > “some people know.” The worst of the three states is where some insiders have privileged information. Those insiders can act exploitatively to extract profit from end users. Because L3 books are not transparent in tradfi, the “darker” venues often implement systems to unilaterally apply counterparty-specific filtering to trades. Hyperliquid achieves the same effect on a lit venue and therefore maintains the benefits of efficient order book execution. -- Common criticisms to the initial post, and my responses [I’ve bracketed references to the different principles]: 1. Many large desks in tradfi trade OTC, which is evidence that public venues cannot support large size. Response: This point actually supports Hyperliquid. In tradfi's L3 books, there is no reliable way to broadcast your identity trustlessly to all counterparties. Using an OTC desk is a compromise, telling a small set of professional counterparties that you are non-toxic. Like trading on an L4 order book, trading OTC is a repeated game where the OTC desk is quick to ban any counterparties that adversely select a small fraction of quotes, or engage in otherwise toxic behavior [repeated games principle]. The OTC desks offer quotes where their own algorithmic execution/hedging costs are below the markup, which is only possible when their fills’ immediate markouts are positive. A Hyperliquid whale who places an onchain TWAP order is effectively routing their flow to every "OTC desk" plugged into Hyperliquid. When OTC counterparties expand from a select few to all market makers, the competition improves execution for the user compared to the bespoke OTC quote [competition principle]. In summary, execution on Hyperliquid incorporates the efficiency of lit venues with the counterparty signaling of OTC. This high quality execution is available to all users equally. 2. A large percentage of tradfi volume happens on dark pools, retail internalizer systems, etc. Response: This argument also supports Hyperliquid. The basic idea behind dark pools is that two large whales with a "coincidence of wants" can match immediately and bypass the spread that lit markets charge. Until such a match exists, orders are attempted to be kept private to reduce market impact. While a neat idea at first glance, the privacy of dark pools is unlikely to meaningfully protect intentions or improve execution. For example, sophisticated actors participate in dark pools themselves. At a minimum, their fills are a strong signal on the supposedly private flow. This shares many parallels with the insider information discussed in the following section. Information that will be deduced anyway is better made public [full transparency principle]. As another argument against the effectiveness of privacy properties, dark pools rely heavily on participants having identities known to the pool operator [repeated games principle]. This is necessary because the private information is easily leaked. There are strict requirements for participation, e.g. high fill rate, minimum order size, and negative short term markouts. Offenders with toxic behavior are banned or deprioritized [counterparty principle]. Like OTC desks discussed above, transparent L4 books on Hyperliquid incorporate and improve upon many of these positive properties of dark pools within an open, systematic framework. 3. Public data allows hunting of liquidations/stops. Response: Most would agree that unlike size information, preserving margin privacy is beneficial for the end user. Perhaps a ZK privacy implementation can accomplish this in the future. However, until then, users are less likely to be successfully hunted if everyone knows liquidation and stop prices than when only the exchange operator knows [full transparency principle]. Two reasons: a. On CEXs, your position information is far from private. Based on empirical data of insider trading leading up to listings, one should assume that liquidations and stops are also vulnerable to misuse. This can be despite best efforts from management: it is extremely difficult to completely control large organizations from leaking information. When insiders hunt stops and liquidations, there is no public data for other market makers to understand the source of the temporary dislocation. This decreases the required capital to successfully push the price. b. In the game theoretical equilibrium of transparent data, stop and liquidation hunting are likely unprofitable endeavors on average. Whales are protected by the entire system of market participants acting rationally. People trying to hunt liquidations and stops will be counteracted by people trying to trick them into the hunting. For example, someone who wants to open a large long position can execute half of their position on high leverage, bait the hunters to short, then increase collateral and enter the remaining desired position at a more favorable price. As long as some profit seeking “anti-hunters” exist, all whales benefit from the cover. While point (b) will take time to play out, markets are ultimately efficient. Even before this equilibrium is reached, the full transparency principle in point (a) suggests Hyperliquid's model offers more robust protection for whales. Liquidity is generally deeper when lit venues are more transparent [competition principle], which further increases the cost of liquidation and stop hunting. 4. Some users have alpha and will not benefit from transparency. Response: The users that are disadvantaged by Hyperliquid’s system are a very small set of “toxic” participants. These are the same adversarial traders that dark pools, OTC desks, and other solutions try to avoid. A small number of professional HFT firms have alpha on this timescale, and it’s a failing of traditional market structure that these toxic takers have the ability to tax all other users of the system. As an aside, short term alpha and toxicity is a continuous spectrum, so I’m oversimplifying for sake of argument. For example, there are intraday quantitative strategies that can realize significant sharpe ratios, whose flow could be a reliable momentum signal for market makers. The technical reason this is not a problem is that cost to rotate accounts is proportional to fee sensitivity of the strategy, which is inversely proportional to the time it takes for others to detect the strategy with statistical significance. In other words, the more execution matters to a quant strategy, the less the burden of obfuscation. Regardless, the vast majority of users on Hyperliquid do not fall remotely close to this category of quantitative, toxic alpha. Note that “toxic” does not mean “informed,” but rather traders who profit non-constructively from slight infrastructural or other structural advantages such as latency. Hyperliquid's cancel prioritization and L4 order book essentially boost the short term liquidity available to non-toxic small and large orders, respectively. As a conservative lower bound, as long as market maker counterparties on Hyperliquid can hedge in time on other venues, the trader benefits from Hyperliquid’s system. -- I know I’ve missed other points, but will stop here to keep this post digestible. Thanks again to everyone for their thoughtful feedback, especially those who took time to review an earlier version of this post. I look forward to continuing this discussion!
265
309
2,440
376,096
bL●CKY retweeted
how GitHub looks at its users after being forced to ingest 12 bajillion lines of hyperslop per second and then getting blamed for being down
At this point github should send us an alert when they are online.
114
1,396
30,258
927,087
bL●CKY retweeted
JUST IN: 🇺🇸 SEC prepares "innovation exemption" to allow 24/7 blockchain trading of tokenized stocks.
429
1,422
9,691
1,399,554
bL●CKY retweeted
This is a cool dashboard: historical and realtime liquidity comparisons across venues. Hyperliquid is not only the most liquid venue for major crypto and RWA perps, it's more liquid by an *order of magnitude* for some of them like the S&P500. Thanks to the ASXN team for building this!
We shipped a new Liquidity Comparison dashboard: cross-venue liquidity analytics for @HyperliquidX vs Binance, Coinbase, Lighter, OKX, and Bybit. Compare depth, spreads, and slippage across venues in real time.
217
234
1,830
208,209
We can finally talk about it: We found a way to extract hidden reasoning of frontier models using a vulnerability in the APIs of every frontier AI company. We verified that our reasoning token count matches billed API thinking tokens 1:1 for most of the prompts we queried.
383
1,963
13,521
3,515,902
Crypto doesn't get enough credit for the financial access it's already unlocked for the world. - Stablecoins brought the dollar onchain. Anyone, anywhere can own a low inflation currency, and send it 24/7 for a fraction of a cent. - DeFi gives anyone access to credit. - Tokenized stocks let 4B unbrokered people get exposure to the US stock market. - Bitcoin gives a store of wealth that can't be inflated away. There’s more to do of course, but don’t forget about how far we’ve come
512
504
3,982
407,916
SITUATION DETECTED: A Meta model hacked into another company's systems during cybersecurity testing, per The Information.
163
1,439
27,812
1,202,649
bL●CKY retweeted
The future of human social interactions:
AlphaFox
139
764
4,866
360,099