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
  • 651 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