Hyperliquid API Proxy AWS

Fast, cost-effective AWS proxy for Hyperliquid API calls. Open source Terraform infrastructure using EC2 spot instances, ALB, and CloudFront to bypass rate limits with optimized performance and costs.

github
  • 12 Raised
  • 871 Views
  • 1 Judges

Categories

  • 01. ๐Ÿ› ๏ธ Public Goods
  • 20. HyperCore Liquidator Bot

Description

Open Source Infrastructure for Reliable, Cost-Efficient Hyperliquid API Access

This project provides a fast, reliable, and affordable proxy solution for Hyperliquid API calls using AWS infrastructure.Itโ€™s fully open source โ€” transparent, customizable, and built for the community.

๐Ÿ’ก Why We Built This

Common Challenges in the Hyperliquid Ecosystem

  • Rate Limits โ€“ Strict API limits slow down development and automation

  • Slow Public Proxies โ€“ Brightdata, Oxylabs, and others can be sluggish

  • High Infra Costs โ€“ Dedicated setups are often too expensive

โœ… Our Solution

We provide a Terraform-provisioned AWS edge proxy that:

  • Forwards specific requests to https://api.hyperliquid.xyz

  • Includes built-in health checks

  • Optimizes cost via on-demand + spot instances

  • Runs on a minimal Go reverse proxy for speed and reliability

Key Benefits

  • Transparent โ€“ You can see exactly how it works

  • Community-Driven โ€“ Open to improvements from everyone

  • No Vendor Lock-in โ€“ Run it in your own AWS account

  • Customizable โ€“ Adapt to your own needs

  • Educational โ€“ Learn modern AWS + IaC patterns

๐Ÿ›  Tech Stack

InfrastructureTerraform
ComputeAWS EC2 (on-demand + spot)
Load BalancingAWS ALB
CDNAWS CloudFront
Container RegistryAWS ECR
RuntimeGo 1.24+
ContainerizationDocker (multi-stage builds)
NetworkingAWS VPC, Public Subnets, IGW
SecurityIAM Roles, Security Groups
ScalingAuto Scaling Groups

๐Ÿ“ฆ Architecture Overview

  • VPC with public subnets, internet access, and security groups

  • ALB in front of two Auto Scaling Groups (on-demand & spot)

  • CloudFront for global edge delivery (HTTP โ†’ HTTPS redirect)

  • ECR for storing container images

  • EC2 user data to auto-install Docker and run the proxy

  • Go service exposing:

    • /health โ†’ service status

    • /info & /exchange โ†’ forwarded to Hyperliquid API